2 # From configure.ac Revision: 1.180 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for simgrid 3.3-cvs.
6 # Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
73 # Find who we are. Look in the path if we contain no directory separator.
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
164 if test $as_have_required = yes && (eval ":
174 as_func_ret_success () {
177 as_func_ret_failure () {
182 if as_func_success; then
186 echo as_func_success failed.
189 if as_func_failure; then
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
228 test -z "$as_dir" && as_dir=.
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
261 CONFIG_SHELL=$as_shell
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
289 as_func_ret_success () {
292 as_func_ret_failure () {
297 if as_func_success; then
301 echo as_func_success failed.
304 if as_func_failure; then
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
378 as_func_ret_success () {
381 as_func_ret_failure () {
386 if as_func_success; then
390 echo as_func_success failed.
393 if as_func_failure; then
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
475 ECHO_C= ECHO_N= ECHO_T=
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509 elif ln conf$$.file conf$$ 2>/dev/null; then
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
520 test -d ./-p && rmdir ./-p
524 if test -x / >/dev/null 2>&1; then
527 if ls -dL / >/dev/null 2>&1; then
534 if test -d "$1"; then
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556 # Check that we are running under the correct shell.
557 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Remove one level of quotation (which was required for Make).
562 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
567 if test "X$1" = X--no-reexec; then
568 # Discard the --no-reexec flag, and continue.
570 elif test "X$1" = X--fallback-echo; then
571 # Avoid inline document here, it may be left over
573 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574 # Yippee, $echo works!
577 # Restart under the correct shell.
578 exec $SHELL "$0" --no-reexec ${1+"$@"}
581 if test "X$1" = X--fallback-echo; then
582 # used as fallback echo
590 # The HP-UX ksh and POSIX shell print the target directory to stdout
592 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
594 if test -z "$ECHO"; then
595 if test "X${echo_test_string+set}" != Xset; then
596 # find a string as large as possible, as long as the shell can cope with it
597 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600 echo_test_string=`eval $cmd` &&
601 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
608 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # The Solaris, AIX, and Digital Unix default echo programs unquote
614 # backslashes. This makes it impossible to quote backslashes using
615 # echo "$something" | sed 's/\\/\\\\/g'
617 # So, first we look for a working echo in the user's PATH.
619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620 for dir in $PATH /usr/ucb; do
622 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
632 if test "X$echo" = Xecho; then
633 # We didn't find a better echo, so look for alternatives.
634 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636 test "X$echo_testing_string" = "X$echo_test_string"; then
637 # This shell has a builtin print -r that does the trick.
639 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640 test "X$CONFIG_SHELL" != X/bin/ksh; then
641 # If we have ksh, try running configure again with it.
642 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643 export ORIGINAL_CONFIG_SHELL
644 CONFIG_SHELL=/bin/ksh
646 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
650 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652 test "X$echo_testing_string" = "X$echo_test_string"; then
655 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656 test "X$echo_testing_string" = 'X\t' &&
657 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658 test "X$echo_testing_string" = "X$echo_test_string"; then
659 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661 SHELL="$CONFIG_SHELL"
663 echo="$CONFIG_SHELL $0 --fallback-echo"
664 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665 test "X$echo_testing_string" = 'X\t' &&
666 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667 test "X$echo_testing_string" = "X$echo_test_string"; then
668 echo="$CONFIG_SHELL $0 --fallback-echo"
670 # maybe with a smaller string...
673 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
681 if test "$prev" != 'sed 50q "$0"'; then
682 echo_test_string=`eval $prev`
683 export echo_test_string
684 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686 # Oops. We lost completely, so just stick with echo.
695 # Copy echo and quote the copy suitably for passing to libtool from
696 # the Makefile, instead of quoting the original, which is used later.
698 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
705 tagnames=${tagnames+${tagnames},}CXX
707 tagnames=${tagnames+${tagnames},}F77
709 tagnames=${tagnames+${tagnames},}GCJ
711 exec 7<&0 </dev/null 6>&1
714 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
715 # so uname gets run too.
716 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
721 ac_default_prefix=/usr/local
723 ac_config_libobj_dir=.
729 SHELL=${CONFIG_SHELL-/bin/sh}
731 # Identity of this package.
732 PACKAGE_NAME='simgrid'
733 PACKAGE_TARNAME='simgrid'
734 PACKAGE_VERSION='3.3-cvs'
735 PACKAGE_STRING='simgrid 3.3-cvs'
736 PACKAGE_BUGREPORT='simgrid-devel@lists.gforge.inria.fr'
738 ac_unique_file="include/gras.h"
739 # Factoring default headers for most tests.
740 ac_includes_default="\
742 #ifdef HAVE_SYS_TYPES_H
743 # include <sys/types.h>
745 #ifdef HAVE_SYS_STAT_H
746 # include <sys/stat.h>
752 # ifdef HAVE_STDLIB_H
757 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
762 #ifdef HAVE_STRINGS_H
763 # include <strings.h>
765 #ifdef HAVE_INTTYPES_H
766 # include <inttypes.h>
784 program_transform_name
850 INSTALL_STRIP_PROGRAM
887 GRAS_ARCH_32_BITS_TRUE
888 GRAS_ARCH_32_BITS_FALSE
890 CONTEXT_THREADS_FALSE
892 pth_skaddr_makecontext
893 pth_sksize_makecontext
904 MAINTAINER_MODE_FALSE
932 ac_precious_vars='build_alias
947 # Initialize some variables set by options.
949 ac_init_version=false
950 # The variables have the same names as the options, with
951 # dashes changed to underlines.
959 program_transform_name=s,x,x,
967 # Installation directory options.
968 # These are left unexpanded so users can "make install exec_prefix=/foo"
969 # and all the variables that are supposed to be based on exec_prefix
970 # by default will actually change.
971 # Use braces instead of parens because sh, perl, etc. also accept them.
972 # (The list follows the same order as the GNU Coding Standards.)
973 bindir='${exec_prefix}/bin'
974 sbindir='${exec_prefix}/sbin'
975 libexecdir='${exec_prefix}/libexec'
976 datarootdir='${prefix}/share'
977 datadir='${datarootdir}'
978 sysconfdir='${prefix}/etc'
979 sharedstatedir='${prefix}/com'
980 localstatedir='${prefix}/var'
981 includedir='${prefix}/include'
982 oldincludedir='/usr/include'
983 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
984 infodir='${datarootdir}/info'
989 libdir='${exec_prefix}/lib'
990 localedir='${datarootdir}/locale'
991 mandir='${datarootdir}/man'
997 # If the previous option needs an argument, assign it.
998 if test -n "$ac_prev"; then
999 eval $ac_prev=\$ac_option
1005 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1009 # Accept the important Cygnus configure options, so we can diagnose typos.
1011 case $ac_dashdash$ac_option in
1015 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1017 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1018 bindir=$ac_optarg ;;
1020 -build | --build | --buil | --bui | --bu)
1021 ac_prev=build_alias ;;
1022 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1023 build_alias=$ac_optarg ;;
1025 -cache-file | --cache-file | --cache-fil | --cache-fi \
1026 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1027 ac_prev=cache_file ;;
1028 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1029 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1030 cache_file=$ac_optarg ;;
1032 --config-cache | -C)
1033 cache_file=config.cache ;;
1035 -datadir | --datadir | --datadi | --datad)
1037 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1038 datadir=$ac_optarg ;;
1040 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1041 | --dataroo | --dataro | --datar)
1042 ac_prev=datarootdir ;;
1043 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1044 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1045 datarootdir=$ac_optarg ;;
1047 -disable-* | --disable-*)
1048 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1051 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1052 { (exit 1); exit 1; }; }
1053 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1054 eval enable_$ac_feature=no ;;
1056 -docdir | --docdir | --docdi | --doc | --do)
1058 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1059 docdir=$ac_optarg ;;
1061 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1063 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1064 dvidir=$ac_optarg ;;
1066 -enable-* | --enable-*)
1067 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1070 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1073 eval enable_$ac_feature=\$ac_optarg ;;
1075 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1076 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1077 | --exec | --exe | --ex)
1078 ac_prev=exec_prefix ;;
1079 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1080 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1081 | --exec=* | --exe=* | --ex=*)
1082 exec_prefix=$ac_optarg ;;
1084 -gas | --gas | --ga | --g)
1085 # Obsolete; use --with-gas.
1088 -help | --help | --hel | --he | -h)
1089 ac_init_help=long ;;
1090 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1091 ac_init_help=recursive ;;
1092 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1093 ac_init_help=short ;;
1095 -host | --host | --hos | --ho)
1096 ac_prev=host_alias ;;
1097 -host=* | --host=* | --hos=* | --ho=*)
1098 host_alias=$ac_optarg ;;
1100 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1102 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1104 htmldir=$ac_optarg ;;
1106 -includedir | --includedir | --includedi | --included | --include \
1107 | --includ | --inclu | --incl | --inc)
1108 ac_prev=includedir ;;
1109 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1110 | --includ=* | --inclu=* | --incl=* | --inc=*)
1111 includedir=$ac_optarg ;;
1113 -infodir | --infodir | --infodi | --infod | --info | --inf)
1115 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1116 infodir=$ac_optarg ;;
1118 -libdir | --libdir | --libdi | --libd)
1120 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1121 libdir=$ac_optarg ;;
1123 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1124 | --libexe | --libex | --libe)
1125 ac_prev=libexecdir ;;
1126 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1127 | --libexe=* | --libex=* | --libe=*)
1128 libexecdir=$ac_optarg ;;
1130 -localedir | --localedir | --localedi | --localed | --locale)
1131 ac_prev=localedir ;;
1132 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1133 localedir=$ac_optarg ;;
1135 -localstatedir | --localstatedir | --localstatedi | --localstated \
1136 | --localstate | --localstat | --localsta | --localst | --locals)
1137 ac_prev=localstatedir ;;
1138 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1139 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1140 localstatedir=$ac_optarg ;;
1142 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1144 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1145 mandir=$ac_optarg ;;
1147 -nfp | --nfp | --nf)
1148 # Obsolete; use --without-fp.
1151 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1152 | --no-cr | --no-c | -n)
1155 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1156 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1159 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1160 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1161 | --oldin | --oldi | --old | --ol | --o)
1162 ac_prev=oldincludedir ;;
1163 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1164 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1165 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1166 oldincludedir=$ac_optarg ;;
1168 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1170 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1171 prefix=$ac_optarg ;;
1173 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1174 | --program-pre | --program-pr | --program-p)
1175 ac_prev=program_prefix ;;
1176 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1177 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1178 program_prefix=$ac_optarg ;;
1180 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1181 | --program-suf | --program-su | --program-s)
1182 ac_prev=program_suffix ;;
1183 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1184 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1185 program_suffix=$ac_optarg ;;
1187 -program-transform-name | --program-transform-name \
1188 | --program-transform-nam | --program-transform-na \
1189 | --program-transform-n | --program-transform- \
1190 | --program-transform | --program-transfor \
1191 | --program-transfo | --program-transf \
1192 | --program-trans | --program-tran \
1193 | --progr-tra | --program-tr | --program-t)
1194 ac_prev=program_transform_name ;;
1195 -program-transform-name=* | --program-transform-name=* \
1196 | --program-transform-nam=* | --program-transform-na=* \
1197 | --program-transform-n=* | --program-transform-=* \
1198 | --program-transform=* | --program-transfor=* \
1199 | --program-transfo=* | --program-transf=* \
1200 | --program-trans=* | --program-tran=* \
1201 | --progr-tra=* | --program-tr=* | --program-t=*)
1202 program_transform_name=$ac_optarg ;;
1204 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1206 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1207 pdfdir=$ac_optarg ;;
1209 -psdir | --psdir | --psdi | --psd | --ps)
1211 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1218 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1220 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1222 sbindir=$ac_optarg ;;
1224 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1225 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1226 | --sharedst | --shareds | --shared | --share | --shar \
1228 ac_prev=sharedstatedir ;;
1229 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1230 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1231 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1233 sharedstatedir=$ac_optarg ;;
1235 -site | --site | --sit)
1237 -site=* | --site=* | --sit=*)
1240 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1242 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1243 srcdir=$ac_optarg ;;
1245 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1246 | --syscon | --sysco | --sysc | --sys | --sy)
1247 ac_prev=sysconfdir ;;
1248 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1249 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1250 sysconfdir=$ac_optarg ;;
1252 -target | --target | --targe | --targ | --tar | --ta | --t)
1253 ac_prev=target_alias ;;
1254 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1255 target_alias=$ac_optarg ;;
1257 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1260 -version | --version | --versio | --versi | --vers | -V)
1261 ac_init_version=: ;;
1264 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267 { echo "$as_me: error: invalid package name: $ac_package" >&2
1268 { (exit 1); exit 1; }; }
1269 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1270 eval with_$ac_package=\$ac_optarg ;;
1272 -without-* | --without-*)
1273 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1276 { echo "$as_me: error: invalid package name: $ac_package" >&2
1277 { (exit 1); exit 1; }; }
1278 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1279 eval with_$ac_package=no ;;
1282 # Obsolete; use --with-x.
1285 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1286 | --x-incl | --x-inc | --x-in | --x-i)
1287 ac_prev=x_includes ;;
1288 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1289 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1290 x_includes=$ac_optarg ;;
1292 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1293 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1294 ac_prev=x_libraries ;;
1295 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1296 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1297 x_libraries=$ac_optarg ;;
1299 -*) { echo "$as_me: error: unrecognized option: $ac_option
1300 Try \`$0 --help' for more information." >&2
1301 { (exit 1); exit 1; }; }
1305 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1306 # Reject names that are not valid shell variable names.
1307 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1308 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1309 { (exit 1); exit 1; }; }
1310 eval $ac_envvar=\$ac_optarg
1311 export $ac_envvar ;;
1314 # FIXME: should be removed in autoconf 3.0.
1315 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1316 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1317 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1318 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1324 if test -n "$ac_prev"; then
1325 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1326 { echo "$as_me: error: missing argument to $ac_option" >&2
1327 { (exit 1); exit 1; }; }
1330 # Be sure to have absolute directory names.
1331 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1332 datadir sysconfdir sharedstatedir localstatedir includedir \
1333 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1334 libdir localedir mandir
1336 eval ac_val=\$$ac_var
1338 [\\/$]* | ?:[\\/]* ) continue;;
1339 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1341 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1342 { (exit 1); exit 1; }; }
1345 # There might be people who depend on the old broken behavior: `$host'
1346 # used to hold the argument of --host etc.
1347 # FIXME: To remove some day.
1350 target=$target_alias
1352 # FIXME: To remove some day.
1353 if test "x$host_alias" != x; then
1354 if test "x$build_alias" = x; then
1355 cross_compiling=maybe
1356 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1357 If a cross compiler is detected then cross compile mode will be used." >&2
1358 elif test "x$build_alias" != "x$host_alias"; then
1364 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1366 test "$silent" = yes && exec 6>/dev/null
1369 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1370 ac_ls_di=`ls -di .` &&
1371 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1372 { echo "$as_me: error: Working directory cannot be determined" >&2
1373 { (exit 1); exit 1; }; }
1374 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1375 { echo "$as_me: error: pwd does not report name of working directory" >&2
1376 { (exit 1); exit 1; }; }
1379 # Find the source files, if location was not specified.
1380 if test -z "$srcdir"; then
1381 ac_srcdir_defaulted=yes
1382 # Try the directory containing this script, then the parent directory.
1383 ac_confdir=`$as_dirname -- "$0" ||
1384 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1385 X"$0" : 'X\(//\)[^/]' \| \
1386 X"$0" : 'X\(//\)$' \| \
1387 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1407 if test ! -r "$srcdir/$ac_unique_file"; then
1411 ac_srcdir_defaulted=no
1413 if test ! -r "$srcdir/$ac_unique_file"; then
1414 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1415 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1416 { (exit 1); exit 1; }; }
1418 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1420 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1421 { (exit 1); exit 1; }; }
1423 # When building in place, set srcdir=.
1424 if test "$ac_abs_confdir" = "$ac_pwd"; then
1427 # Remove unnecessary trailing slashes from srcdir.
1428 # Double slashes in file names in object file debugging info
1429 # mess up M-x gdb in Emacs.
1431 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1433 for ac_var in $ac_precious_vars; do
1434 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1435 eval ac_env_${ac_var}_value=\$${ac_var}
1436 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1437 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1441 # Report the --help message.
1443 if test "$ac_init_help" = "long"; then
1444 # Omit some internal or obsolete options to make the list less imposing.
1445 # This message is too long to be a string in the A/UX 3.1 sh.
1447 \`configure' configures simgrid 3.3-cvs to adapt to many kinds of systems.
1449 Usage: $0 [OPTION]... [VAR=VALUE]...
1451 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1452 VAR=VALUE. See below for descriptions of some of the useful variables.
1454 Defaults for the options are specified in brackets.
1457 -h, --help display this help and exit
1458 --help=short display options specific to this package
1459 --help=recursive display the short help of all the included packages
1460 -V, --version display version information and exit
1461 -q, --quiet, --silent do not print \`checking...' messages
1462 --cache-file=FILE cache test results in FILE [disabled]
1463 -C, --config-cache alias for \`--cache-file=config.cache'
1464 -n, --no-create do not create output files
1465 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1467 Installation directories:
1468 --prefix=PREFIX install architecture-independent files in PREFIX
1469 [$ac_default_prefix]
1470 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1473 By default, \`make install' will install all the files in
1474 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1475 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1476 for instance \`--prefix=\$HOME'.
1478 For better control, use the options below.
1480 Fine tuning of the installation directories:
1481 --bindir=DIR user executables [EPREFIX/bin]
1482 --sbindir=DIR system admin executables [EPREFIX/sbin]
1483 --libexecdir=DIR program executables [EPREFIX/libexec]
1484 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1485 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1486 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1487 --libdir=DIR object code libraries [EPREFIX/lib]
1488 --includedir=DIR C header files [PREFIX/include]
1489 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1490 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1491 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1492 --infodir=DIR info documentation [DATAROOTDIR/info]
1493 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1494 --mandir=DIR man documentation [DATAROOTDIR/man]
1495 --docdir=DIR documentation root [DATAROOTDIR/doc/simgrid]
1496 --htmldir=DIR html documentation [DOCDIR]
1497 --dvidir=DIR dvi documentation [DOCDIR]
1498 --pdfdir=DIR pdf documentation [DOCDIR]
1499 --psdir=DIR ps documentation [DOCDIR]
1505 --program-prefix=PREFIX prepend PREFIX to installed program names
1506 --program-suffix=SUFFIX append SUFFIX to installed program names
1507 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1510 --build=BUILD configure for building on BUILD [guessed]
1511 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1512 --target=TARGET configure for building compilers for TARGET [HOST]
1516 if test -n "$ac_init_help"; then
1517 case $ac_init_help in
1518 short | recursive ) echo "Configuration of simgrid 3.3-cvs:";;
1523 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1524 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1525 --disable-dependency-tracking speeds up one-time build
1526 --enable-dependency-tracking do not reject slow dependency extractors
1527 --enable-shared[=PKGS] build shared libraries [default=yes]
1528 --enable-static[=PKGS] build static libraries [default=yes]
1529 --enable-fast-install[=PKGS]
1530 optimize for fast installation [default=yes]
1531 --disable-libtool-lock avoid locking (might break parallel builds)
1532 --enable-maintainer-mode enable make rules and dependencies not useful
1533 (and sometimes confusing) to the casual installer
1534 --enable-compile-warnings
1535 use compiler warnings (default=no, unless in
1537 --disable-compile-optimizations
1538 use compiler optimizations (default=yes, unless if
1539 CFLAGS is explicitly set)
1540 --disable-java To not compile the Java bindings even if the tools
1544 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1545 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1546 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1547 --with-pic try to use only PIC/non-PIC objects [default=use
1549 --with-tags[=TAGS] include additional configurations [automatic]
1550 --with-pthread Use pthread instead of ucontext.
1551 --with-pthreads Use pthread instead of ucontext.
1552 --with-context=ucontext/pthread Use either (System V) swapcontext or pthread [default=auto].
1553 --with-gtnets Path to GTNetS installation (default to empty, ie
1555 --with-csdp Path to csdp installation (default to empty, i.e.
1558 Some influential environment variables:
1559 CC C compiler command
1560 CFLAGS C compiler flags
1561 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1562 nonstandard directory <lib dir>
1563 LIBS libraries to pass to the linker, e.g. -l<library>
1564 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1565 you have headers in a nonstandard directory <include dir>
1567 CXX C++ compiler command
1568 CXXFLAGS C++ compiler flags
1569 CXXCPP C++ preprocessor
1571 Use these variables to override the choices made by `configure' or to help
1572 it to find libraries and programs with nonstandard names/locations.
1574 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1579 if test "$ac_init_help" = "recursive"; then
1580 # If there are subdirs, report their specific --help.
1581 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1582 test -d "$ac_dir" || continue
1586 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1589 # A ".." for each directory in $ac_dir_suffix.
1590 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1591 case $ac_top_builddir_sub in
1592 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1596 ac_abs_top_builddir=$ac_pwd
1597 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1598 # for backward compatibility:
1599 ac_top_builddir=$ac_top_build_prefix
1602 .) # We are building in place.
1604 ac_top_srcdir=$ac_top_builddir_sub
1605 ac_abs_top_srcdir=$ac_pwd ;;
1606 [\\/]* | ?:[\\/]* ) # Absolute name.
1607 ac_srcdir=$srcdir$ac_dir_suffix;
1608 ac_top_srcdir=$srcdir
1609 ac_abs_top_srcdir=$srcdir ;;
1611 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1612 ac_top_srcdir=$ac_top_build_prefix$srcdir
1613 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1615 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1617 cd "$ac_dir" || { ac_status=$?; continue; }
1618 # Check for guested configure.
1619 if test -f "$ac_srcdir/configure.gnu"; then
1621 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1622 elif test -f "$ac_srcdir/configure"; then
1624 $SHELL "$ac_srcdir/configure" --help=recursive
1626 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1628 cd "$ac_pwd" || { ac_status=$?; break; }
1632 test -n "$ac_init_help" && exit $ac_status
1633 if $ac_init_version; then
1635 simgrid configure 3.3-cvs
1636 generated by GNU Autoconf 2.61
1638 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1639 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1640 This configure script is free software; the Free Software Foundation
1641 gives unlimited permission to copy, distribute and modify it.
1645 cat >config.log <<_ACEOF
1646 This file contains any messages produced by compilers while
1647 running configure, to aid debugging if configure makes a mistake.
1649 It was created by simgrid $as_me 3.3-cvs, which was
1650 generated by GNU Autoconf 2.61. Invocation command line was
1662 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1663 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1664 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1665 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1666 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1668 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1669 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1671 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1672 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1673 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1674 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1675 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1676 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1677 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685 test -z "$as_dir" && as_dir=.
1686 echo "PATH: $as_dir"
1702 # Keep a trace of the command line.
1703 # Strip out --no-create and --no-recursion so they do not pile up.
1704 # Strip out --silent because we don't want to record it for future runs.
1705 # Also quote any args containing shell meta-characters.
1706 # Make two passes to allow for proper duplicate-argument suppression.
1710 ac_must_keep_next=false
1716 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1717 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1718 | -silent | --silent | --silen | --sile | --sil)
1721 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1724 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1726 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1727 if test $ac_must_keep_next = true; then
1728 ac_must_keep_next=false # Got value, back to normal.
1731 *=* | --config-cache | -C | -disable-* | --disable-* \
1732 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1733 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1734 | -with-* | --with-* | -without-* | --without-* | --x)
1735 case "$ac_configure_args0 " in
1736 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1739 -* ) ac_must_keep_next=true ;;
1742 ac_configure_args="$ac_configure_args '$ac_arg'"
1747 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1748 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1750 # When interrupted or exit'd, cleanup temporary files, and complete
1751 # config.log. We remove comments because anyway the quotes in there
1752 # would cause problems or look ugly.
1753 # WARNING: Use '\'' to represent an apostrophe within the trap.
1754 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1755 trap 'exit_status=$?
1756 # Save into config.log some information that might help in debugging.
1761 ## ---------------- ##
1762 ## Cache variables. ##
1763 ## ---------------- ##
1766 # The following way of writing the cache mishandles newlines in values,
1768 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1769 eval ac_val=\$$ac_var
1773 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1774 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1777 _ | IFS | as_nl) ;; #(
1778 *) $as_unset $ac_var ;;
1783 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1784 *${as_nl}ac_space=\ *)
1786 "s/'\''/'\''\\\\'\'''\''/g;
1787 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1790 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1798 ## ----------------- ##
1799 ## Output variables. ##
1800 ## ----------------- ##
1803 for ac_var in $ac_subst_vars
1805 eval ac_val=\$$ac_var
1807 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1809 echo "$ac_var='\''$ac_val'\''"
1813 if test -n "$ac_subst_files"; then
1815 ## ------------------- ##
1816 ## File substitutions. ##
1817 ## ------------------- ##
1820 for ac_var in $ac_subst_files
1822 eval ac_val=\$$ac_var
1824 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1826 echo "$ac_var='\''$ac_val'\''"
1831 if test -s confdefs.h; then
1841 test "$ac_signal" != 0 &&
1842 echo "$as_me: caught signal $ac_signal"
1843 echo "$as_me: exit $exit_status"
1845 rm -f core *.core core.conftest.* &&
1846 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1849 for ac_signal in 1 2 13 15; do
1850 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1854 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1855 rm -f -r conftest* confdefs.h
1857 # Predefined preprocessor variables.
1859 cat >>confdefs.h <<_ACEOF
1860 #define PACKAGE_NAME "$PACKAGE_NAME"
1864 cat >>confdefs.h <<_ACEOF
1865 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1869 cat >>confdefs.h <<_ACEOF
1870 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1874 cat >>confdefs.h <<_ACEOF
1875 #define PACKAGE_STRING "$PACKAGE_STRING"
1879 cat >>confdefs.h <<_ACEOF
1880 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1884 # Let the site file select an alternate cache file if it wants to.
1885 # Prefer explicitly selected file to automatically selected ones.
1886 if test -n "$CONFIG_SITE"; then
1887 set x "$CONFIG_SITE"
1888 elif test "x$prefix" != xNONE; then
1889 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1891 set x "$ac_default_prefix/share/config.site" \
1892 "$ac_default_prefix/etc/config.site"
1897 if test -r "$ac_site_file"; then
1898 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1899 echo "$as_me: loading site script $ac_site_file" >&6;}
1900 sed 's/^/| /' "$ac_site_file" >&5
1905 if test -r "$cache_file"; then
1906 # Some versions of bash will fail to source /dev/null (special
1907 # files actually), so we avoid doing that.
1908 if test -f "$cache_file"; then
1909 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1910 echo "$as_me: loading cache $cache_file" >&6;}
1912 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1913 *) . "./$cache_file";;
1917 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1918 echo "$as_me: creating cache $cache_file" >&6;}
1922 # Check that the precious variables saved in the cache have kept the same
1924 ac_cache_corrupted=false
1925 for ac_var in $ac_precious_vars; do
1926 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1927 eval ac_new_set=\$ac_env_${ac_var}_set
1928 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1929 eval ac_new_val=\$ac_env_${ac_var}_value
1930 case $ac_old_set,$ac_new_set in
1932 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1933 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1934 ac_cache_corrupted=: ;;
1936 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1937 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1938 ac_cache_corrupted=: ;;
1941 if test "x$ac_old_val" != "x$ac_new_val"; then
1942 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1943 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1944 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1945 echo "$as_me: former value: $ac_old_val" >&2;}
1946 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1947 echo "$as_me: current value: $ac_new_val" >&2;}
1948 ac_cache_corrupted=:
1951 # Pass precious variables to config.status.
1952 if test "$ac_new_set" = set; then
1954 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1955 *) ac_arg=$ac_var=$ac_new_val ;;
1957 case " $ac_configure_args " in
1958 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1959 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1963 if $ac_cache_corrupted; then
1964 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1965 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1966 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1967 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1968 { (exit 1); exit 1; }; }
1996 ac_cpp='$CPP $CPPFLAGS'
1997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2003 ac_config_headers="$ac_config_headers src/gras_config.h"
2005 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
2009 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2010 if test -f "$ac_dir/install-sh"; then
2012 ac_install_sh="$ac_aux_dir/install-sh -c"
2014 elif test -f "$ac_dir/install.sh"; then
2016 ac_install_sh="$ac_aux_dir/install.sh -c"
2018 elif test -f "$ac_dir/shtool"; then
2020 ac_install_sh="$ac_aux_dir/shtool install -c"
2024 if test -z "$ac_aux_dir"; then
2025 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2026 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2027 { (exit 1); exit 1; }; }
2030 # These three variables are undocumented and unsupported,
2031 # and are intended to be withdrawn in a future Autoconf release.
2032 # They can cause serious problems if a builder's source tree is in a directory
2033 # whose full name contains unusual characters.
2034 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2035 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2036 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2039 # Make sure we can run config.sub.
2040 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2041 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2042 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2043 { (exit 1); exit 1; }; }
2045 { echo "$as_me:$LINENO: checking build system type" >&5
2046 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2047 if test "${ac_cv_build+set}" = set; then
2048 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 ac_build_alias=$build_alias
2051 test "x$ac_build_alias" = x &&
2052 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2053 test "x$ac_build_alias" = x &&
2054 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2055 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2056 { (exit 1); exit 1; }; }
2057 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2058 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2059 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2060 { (exit 1); exit 1; }; }
2063 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2064 echo "${ECHO_T}$ac_cv_build" >&6; }
2065 case $ac_cv_build in
2067 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2068 echo "$as_me: error: invalid value of canonical build" >&2;}
2069 { (exit 1); exit 1; }; };;
2072 ac_save_IFS=$IFS; IFS='-'
2078 # Remember, the first character of IFS is used to create $*,
2079 # except with old shells:
2082 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2085 { echo "$as_me:$LINENO: checking host system type" >&5
2086 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2087 if test "${ac_cv_host+set}" = set; then
2088 echo $ECHO_N "(cached) $ECHO_C" >&6
2090 if test "x$host_alias" = x; then
2091 ac_cv_host=$ac_cv_build
2093 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2094 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2095 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2096 { (exit 1); exit 1; }; }
2100 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2101 echo "${ECHO_T}$ac_cv_host" >&6; }
2104 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2105 echo "$as_me: error: invalid value of canonical host" >&2;}
2106 { (exit 1); exit 1; }; };;
2109 ac_save_IFS=$IFS; IFS='-'
2115 # Remember, the first character of IFS is used to create $*,
2116 # except with old shells:
2119 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2122 { echo "$as_me:$LINENO: checking target system type" >&5
2123 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2124 if test "${ac_cv_target+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2127 if test "x$target_alias" = x; then
2128 ac_cv_target=$ac_cv_host
2130 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2131 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2132 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2133 { (exit 1); exit 1; }; }
2137 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2138 echo "${ECHO_T}$ac_cv_target" >&6; }
2139 case $ac_cv_target in
2141 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2142 echo "$as_me: error: invalid value of canonical target" >&2;}
2143 { (exit 1); exit 1; }; };;
2145 target=$ac_cv_target
2146 ac_save_IFS=$IFS; IFS='-'
2152 # Remember, the first character of IFS is used to create $*,
2153 # except with old shells:
2156 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2159 # The aliases save the names the user supplied, while $host etc.
2160 # will get canonicalized.
2161 test -n "$target_alias" &&
2162 test "$program_prefix$program_suffix$program_transform_name" = \
2164 program_prefix=${target_alias}-
2166 ac_cpp='$CPP $CPPFLAGS'
2167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2171 rm -rf .tst 2>/dev/null
2172 mkdir .tst 2>/dev/null
2173 if test -d .tst; then
2178 rmdir .tst 2>/dev/null
2180 DEPDIR="${am__leading_dot}deps"
2182 ac_config_commands="$ac_config_commands depfiles"
2185 am_make=${MAKE-make}
2186 cat > confinc << 'END'
2191 # If we don't find an include directive, just comment out the code.
2192 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2193 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2197 # First try GNU make style include.
2198 echo "include confinc" > confmf
2199 # We grep out `Entering directory' and `Leaving directory'
2200 # messages which can occur if `w' ends up in MAKEFLAGS.
2201 # In particular we don't look at `^make:' because GNU make might
2202 # be invoked under some other name (usually "gmake"), in which
2203 # case it prints its new name instead of `make'.
2204 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2209 # Now try BSD make style include.
2210 if test "$am__include" = "#"; then
2211 echo '.include "confinc"' > confmf
2212 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2213 am__include=.include
2220 { echo "$as_me:$LINENO: result: $_am_result" >&5
2221 echo "${ECHO_T}$_am_result" >&6; }
2222 rm -f confinc confmf
2224 # Check whether --enable-dependency-tracking was given.
2225 if test "${enable_dependency_tracking+set}" = set; then
2226 enableval=$enable_dependency_tracking;
2229 if test "x$enable_dependency_tracking" != xno; then
2230 am_depcomp="$ac_aux_dir/depcomp"
2233 if test "x$enable_dependency_tracking" != xno; then
2245 # Extract the first word of "$ac_prog", so it can be a program name with args.
2246 set dummy $ac_prog; ac_word=$2
2247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2249 if test "${ac_cv_prog_GCJ+set}" = set; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2252 if test -n "$GCJ"; then
2253 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259 test -z "$as_dir" && as_dir=.
2260 for ac_exec_ext in '' $ac_executable_extensions; do
2261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2262 ac_cv_prog_GCJ="$ac_prog"
2263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2273 if test -n "$GCJ"; then
2274 { echo "$as_me:$LINENO: result: $GCJ" >&5
2275 echo "${ECHO_T}$GCJ" >&6; }
2277 { echo "$as_me:$LINENO: result: no" >&5
2278 echo "${ECHO_T}no" >&6; }
2282 test -n "$GCJ" && break
2284 test -n "$GCJ" || GCJ="gcj"
2286 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
2287 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
2288 { (exit 1); exit 1; }; }
2289 if test "x${GCJFLAGS-unset}" = xunset; then
2294 depcc="$GCJ" am_compiler_list='gcc3 gcc'
2296 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2297 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2298 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2301 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2302 # We make a subdir and do the tests there. Otherwise we can end up
2303 # making bogus files that we don't know about and never remove. For
2304 # instance it was reported that on HP-UX the gcc test will end up
2305 # making a dummy file named `D' -- because `-MD' means `put the output
2308 # Copy depcomp to subdir because otherwise we won't find it if we're
2309 # using a relative directory.
2310 cp "$am_depcomp" conftest.dir
2312 # We will build objects and dependencies in a subdirectory because
2313 # it helps to detect inapplicable dependency modes. For instance
2314 # both Tru64's cc and ICC support -MD to output dependencies as a
2315 # side effect of compilation, but ICC will put the dependencies in
2316 # the current directory while Tru64 will put them in the object
2320 am_cv_GCJ_dependencies_compiler_type=none
2321 if test "$am_compiler_list" = ""; then
2322 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2324 for depmode in $am_compiler_list; do
2325 # Setup a source with many dependencies, because some compilers
2326 # like to wrap large dependency lists on column 80 (with \), and
2327 # we should not choose a depcomp mode which is confused by this.
2329 # We need to recreate these files for each test, as the compiler may
2330 # overwrite some of them when testing with obscure command lines.
2331 # This happens at least with the AIX C compiler.
2333 for i in 1 2 3 4 5 6; do
2334 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2335 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2336 # Solaris 8's {/usr,}/bin/sh.
2337 touch sub/conftst$i.h
2339 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2343 # after this tag, mechanisms are not by side-effect, so they'll
2344 # only be used when explicitly requested
2345 if test "x$enable_dependency_tracking" = xyes; then
2353 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2354 # mode. It turns out that the SunPro C++ compiler does not properly
2355 # handle `-M -o', and we need to detect this.
2356 if depmode=$depmode \
2357 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2358 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2359 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2360 >/dev/null 2>conftest.err &&
2361 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2362 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2363 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2364 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2365 # icc doesn't choke on unknown options, it will just issue warnings
2366 # or remarks (even with -Werror). So we grep stderr for any message
2367 # that says an option was ignored or not supported.
2368 # When given -MP, icc 7.0 and 7.1 complain thusly:
2369 # icc: Command line warning: ignoring option '-M'; no argument required
2370 # The diagnosis changed in icc 8.0:
2371 # icc: Command line remark: option '-MP' not supported
2372 if (grep 'ignoring option' conftest.err ||
2373 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2374 am_cv_GCJ_dependencies_compiler_type=$depmode
2383 am_cv_GCJ_dependencies_compiler_type=none
2387 { echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
2388 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6; }
2389 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
2392 test "x$enable_dependency_tracking" != xno \
2393 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
2394 am__fastdepGCJ_TRUE=
2395 am__fastdepGCJ_FALSE='#'
2397 am__fastdepGCJ_TRUE='#'
2398 am__fastdepGCJ_FALSE=
2404 am__api_version='1.10'
2406 # Find a good install program. We prefer a C program (faster),
2407 # so one script is as good as another. But avoid the broken or
2408 # incompatible versions:
2409 # SysV /etc/install, /usr/sbin/install
2410 # SunOS /usr/etc/install
2411 # IRIX /sbin/install
2413 # AmigaOS /C/install, which installs bootblocks on floppy discs
2414 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2415 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2416 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2417 # OS/2's system install, which has a completely different semantic
2418 # ./install, which can be erroneously created by make from ./install.sh.
2419 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2420 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2421 if test -z "$INSTALL"; then
2422 if test "${ac_cv_path_install+set}" = set; then
2423 echo $ECHO_N "(cached) $ECHO_C" >&6
2425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429 test -z "$as_dir" && as_dir=.
2430 # Account for people who put trailing slashes in PATH elements.
2432 ./ | .// | /cC/* | \
2433 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2434 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2437 # OSF1 and SCO ODT 3.0 have their own names for install.
2438 # Don't use installbsd from OSF since it installs stuff as root
2440 for ac_prog in ginstall scoinst install; do
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2443 if test $ac_prog = install &&
2444 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2445 # AIX install. It has an incompatible calling convention.
2447 elif test $ac_prog = install &&
2448 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2449 # program-specific install script used by HP pwplus--don't use.
2452 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2465 if test "${ac_cv_path_install+set}" = set; then
2466 INSTALL=$ac_cv_path_install
2468 # As a last resort, use the slow shell script. Don't cache a
2469 # value for INSTALL within a source directory, because that will
2470 # break other packages using the cache if that directory is
2471 # removed, or if the value is a relative name.
2472 INSTALL=$ac_install_sh
2475 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2476 echo "${ECHO_T}$INSTALL" >&6; }
2478 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2479 # It thinks the first close brace ends the variable substitution.
2480 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2482 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2484 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2486 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2487 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2490 echo timestamp > conftest.file
2491 # Do `set' in a subshell so we don't clobber the current shell's
2492 # arguments. Must try -L first in case configure is actually a
2493 # symlink; some systems play weird games with the mod time of symlinks
2494 # (eg FreeBSD returns the mod time of the symlink's containing
2497 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2498 if test "$*" = "X"; then
2500 set X `ls -t $srcdir/configure conftest.file`
2503 if test "$*" != "X $srcdir/configure conftest.file" \
2504 && test "$*" != "X conftest.file $srcdir/configure"; then
2506 # If neither matched, then we have a broken ls. This can happen
2507 # if, for instance, CONFIG_SHELL is bash and it inherits a
2508 # broken ls alias from the environment. This has actually
2509 # happened. Such a system could not be considered "sane".
2510 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2511 alias in your environment" >&5
2512 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2513 alias in your environment" >&2;}
2514 { (exit 1); exit 1; }; }
2517 test "$2" = conftest.file
2523 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2524 Check your system clock" >&5
2525 echo "$as_me: error: newly created file is older than distributed files!
2526 Check your system clock" >&2;}
2527 { (exit 1); exit 1; }; }
2529 { echo "$as_me:$LINENO: result: yes" >&5
2530 echo "${ECHO_T}yes" >&6; }
2531 test "$program_prefix" != NONE &&
2532 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2533 # Use a double $ so make ignores it.
2534 test "$program_suffix" != NONE &&
2535 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2536 # Double any \ or $. echo might interpret backslashes.
2537 # By default was `s,x,x', remove it if useless.
2538 cat <<\_ACEOF >conftest.sed
2539 s/[\\$]/&&/g;s/;s,x,x,$//
2541 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2544 # expand $ac_aux_dir to an absolute path
2545 am_aux_dir=`cd $ac_aux_dir && pwd`
2547 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2548 # Use eval to expand $SHELL
2549 if eval "$MISSING --run true"; then
2550 am_missing_run="$MISSING --run "
2553 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2554 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2557 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2558 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2559 if test -z "$MKDIR_P"; then
2560 if test "${ac_cv_path_mkdir+set}" = set; then
2561 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2567 test -z "$as_dir" && as_dir=.
2568 for ac_prog in mkdir gmkdir; do
2569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2571 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2572 'mkdir (GNU coreutils) '* | \
2573 'mkdir (coreutils) '* | \
2574 'mkdir (fileutils) '4.1*)
2575 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2585 if test "${ac_cv_path_mkdir+set}" = set; then
2586 MKDIR_P="$ac_cv_path_mkdir -p"
2588 # As a last resort, use the slow shell script. Don't cache a
2589 # value for MKDIR_P within a source directory, because that will
2590 # break other packages using the cache if that directory is
2591 # removed, or if the value is a relative name.
2592 test -d ./--version && rmdir ./--version
2593 MKDIR_P="$ac_install_sh -d"
2596 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2597 echo "${ECHO_T}$MKDIR_P" >&6; }
2601 [\\/$]* | ?:[\\/]*) ;;
2602 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2605 for ac_prog in gawk mawk nawk awk
2607 # Extract the first word of "$ac_prog", so it can be a program name with args.
2608 set dummy $ac_prog; ac_word=$2
2609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2611 if test "${ac_cv_prog_AWK+set}" = set; then
2612 echo $ECHO_N "(cached) $ECHO_C" >&6
2614 if test -n "$AWK"; then
2615 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2624 ac_cv_prog_AWK="$ac_prog"
2625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 if test -n "$AWK"; then
2636 { echo "$as_me:$LINENO: result: $AWK" >&5
2637 echo "${ECHO_T}$AWK" >&6; }
2639 { echo "$as_me:$LINENO: result: no" >&5
2640 echo "${ECHO_T}no" >&6; }
2644 test -n "$AWK" && break
2647 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2648 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2649 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2650 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2651 echo $ECHO_N "(cached) $ECHO_C" >&6
2653 cat >conftest.make <<\_ACEOF
2656 @echo '@@@%%%=$(MAKE)=@@@%%%'
2658 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2659 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2661 eval ac_cv_prog_make_${ac_make}_set=yes;;
2663 eval ac_cv_prog_make_${ac_make}_set=no;;
2667 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2668 { echo "$as_me:$LINENO: result: yes" >&5
2669 echo "${ECHO_T}yes" >&6; }
2672 { echo "$as_me:$LINENO: result: no" >&5
2673 echo "${ECHO_T}no" >&6; }
2674 SET_MAKE="MAKE=${MAKE-make}"
2677 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2678 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2679 # is not polluted with repeated "-I."
2680 am__isrc=' -I$(srcdir)'
2681 # test to see if srcdir already configured
2682 if test -f $srcdir/config.status; then
2683 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2684 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2685 { (exit 1); exit 1; }; }
2689 # test whether we have cygpath
2690 if test -z "$CYGPATH_W"; then
2691 if (cygpath --version) >/dev/null 2>/dev/null; then
2692 CYGPATH_W='cygpath -w'
2699 # Define the identity of the package.
2704 cat >>confdefs.h <<_ACEOF
2705 #define PACKAGE "$PACKAGE"
2709 cat >>confdefs.h <<_ACEOF
2710 #define VERSION "$VERSION"
2713 # Some tools Automake needs.
2715 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2718 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2721 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2724 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2727 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2729 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2731 # Installed binaries are usually stripped using `strip' when the user
2732 # run `make install-strip'. However `strip' might not be the right
2733 # tool to use in cross-compilation environments, therefore Automake
2734 # will honor the `STRIP' environment variable to overrule this program.
2735 if test "$cross_compiling" != no; then
2736 if test -n "$ac_tool_prefix"; then
2737 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2738 set dummy ${ac_tool_prefix}strip; ac_word=$2
2739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2741 if test "${ac_cv_prog_STRIP+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 if test -n "$STRIP"; then
2745 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 test -z "$as_dir" && as_dir=.
2752 for ac_exec_ext in '' $ac_executable_extensions; do
2753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2754 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2764 STRIP=$ac_cv_prog_STRIP
2765 if test -n "$STRIP"; then
2766 { echo "$as_me:$LINENO: result: $STRIP" >&5
2767 echo "${ECHO_T}$STRIP" >&6; }
2769 { echo "$as_me:$LINENO: result: no" >&5
2770 echo "${ECHO_T}no" >&6; }
2775 if test -z "$ac_cv_prog_STRIP"; then
2777 # Extract the first word of "strip", so it can be a program name with args.
2778 set dummy strip; ac_word=$2
2779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2781 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 if test -n "$ac_ct_STRIP"; then
2785 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2794 ac_cv_prog_ac_ct_STRIP="strip"
2795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2804 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2805 if test -n "$ac_ct_STRIP"; then
2806 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2807 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2809 { echo "$as_me:$LINENO: result: no" >&5
2810 echo "${ECHO_T}no" >&6; }
2813 if test "x$ac_ct_STRIP" = x; then
2816 case $cross_compiling:$ac_tool_warned in
2818 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2819 whose name does not start with the host triplet. If you think this
2820 configuration is useful to you, please write to autoconf@gnu.org." >&5
2821 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2822 whose name does not start with the host triplet. If you think this
2823 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2824 ac_tool_warned=yes ;;
2829 STRIP="$ac_cv_prog_STRIP"
2833 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2835 # We need awk for the "check" target. The system "awk" is bad on
2837 # Always define AMTAR for backward compatibility.
2839 AMTAR=${AMTAR-"${am_missing_run}tar"}
2841 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2848 ACLOCAL="$ACLOCAL -I acmacro"
2855 # Check whether --enable-shared was given.
2856 if test "${enable_shared+set}" = set; then
2857 enableval=$enable_shared; p=${PACKAGE-default}
2859 yes) enable_shared=yes ;;
2860 no) enable_shared=no ;;
2863 # Look at the argument we got. We use all the common list separators.
2864 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2865 for pkg in $enableval; do
2867 if test "X$pkg" = "X$p"; then
2879 # Check whether --enable-static was given.
2880 if test "${enable_static+set}" = set; then
2881 enableval=$enable_static; p=${PACKAGE-default}
2883 yes) enable_static=yes ;;
2884 no) enable_static=no ;;
2887 # Look at the argument we got. We use all the common list separators.
2888 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2889 for pkg in $enableval; do
2891 if test "X$pkg" = "X$p"; then
2903 # Check whether --enable-fast-install was given.
2904 if test "${enable_fast_install+set}" = set; then
2905 enableval=$enable_fast_install; p=${PACKAGE-default}
2907 yes) enable_fast_install=yes ;;
2908 no) enable_fast_install=no ;;
2910 enable_fast_install=no
2911 # Look at the argument we got. We use all the common list separators.
2912 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2913 for pkg in $enableval; do
2915 if test "X$pkg" = "X$p"; then
2916 enable_fast_install=yes
2923 enable_fast_install=yes
2928 ac_cpp='$CPP $CPPFLAGS'
2929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2932 if test -n "$ac_tool_prefix"; then
2933 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2934 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2937 if test "${ac_cv_prog_CC+set}" = set; then
2938 echo $ECHO_N "(cached) $ECHO_C" >&6
2940 if test -n "$CC"; then
2941 ac_cv_prog_CC="$CC" # Let the user override the test.
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 test -z "$as_dir" && as_dir=.
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2950 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 if test -n "$CC"; then
2962 { echo "$as_me:$LINENO: result: $CC" >&5
2963 echo "${ECHO_T}$CC" >&6; }
2965 { echo "$as_me:$LINENO: result: no" >&5
2966 echo "${ECHO_T}no" >&6; }
2971 if test -z "$ac_cv_prog_CC"; then
2973 # Extract the first word of "gcc", so it can be a program name with args.
2974 set dummy gcc; ac_word=$2
2975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2977 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2980 if test -n "$ac_ct_CC"; then
2981 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990 ac_cv_prog_ac_ct_CC="gcc"
2991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3001 if test -n "$ac_ct_CC"; then
3002 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3003 echo "${ECHO_T}$ac_ct_CC" >&6; }
3005 { echo "$as_me:$LINENO: result: no" >&5
3006 echo "${ECHO_T}no" >&6; }
3009 if test "x$ac_ct_CC" = x; then
3012 case $cross_compiling:$ac_tool_warned in
3014 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3015 whose name does not start with the host triplet. If you think this
3016 configuration is useful to you, please write to autoconf@gnu.org." >&5
3017 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3018 whose name does not start with the host triplet. If you think this
3019 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3020 ac_tool_warned=yes ;;
3028 if test -z "$CC"; then
3029 if test -n "$ac_tool_prefix"; then
3030 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3031 set dummy ${ac_tool_prefix}cc; ac_word=$2
3032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3034 if test "${ac_cv_prog_CC+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3037 if test -n "$CC"; then
3038 ac_cv_prog_CC="$CC" # Let the user override the test.
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047 ac_cv_prog_CC="${ac_tool_prefix}cc"
3048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 if test -n "$CC"; then
3059 { echo "$as_me:$LINENO: result: $CC" >&5
3060 echo "${ECHO_T}$CC" >&6; }
3062 { echo "$as_me:$LINENO: result: no" >&5
3063 echo "${ECHO_T}no" >&6; }
3069 if test -z "$CC"; then
3070 # Extract the first word of "cc", so it can be a program name with args.
3071 set dummy cc; ac_word=$2
3072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3074 if test "${ac_cv_prog_CC+set}" = set; then
3075 echo $ECHO_N "(cached) $ECHO_C" >&6
3077 if test -n "$CC"; then
3078 ac_cv_prog_CC="$CC" # Let the user override the test.
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3088 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3089 ac_prog_rejected=yes
3093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 if test $ac_prog_rejected = yes; then
3101 # We found a bogon in the path, so make sure we never use it.
3102 set dummy $ac_cv_prog_CC
3104 if test $# != 0; then
3105 # We chose a different compiler from the bogus one.
3106 # However, it has the same basename, so the bogon will be chosen
3107 # first if we set CC to just the basename; use the full file name.
3109 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3115 if test -n "$CC"; then
3116 { echo "$as_me:$LINENO: result: $CC" >&5
3117 echo "${ECHO_T}$CC" >&6; }
3119 { echo "$as_me:$LINENO: result: no" >&5
3120 echo "${ECHO_T}no" >&6; }
3125 if test -z "$CC"; then
3126 if test -n "$ac_tool_prefix"; then
3127 for ac_prog in cl.exe
3129 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3130 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3133 if test "${ac_cv_prog_CC+set}" = set; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
3136 if test -n "$CC"; then
3137 ac_cv_prog_CC="$CC" # Let the user override the test.
3139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 test -z "$as_dir" && as_dir=.
3144 for ac_exec_ext in '' $ac_executable_extensions; do
3145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3146 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 if test -n "$CC"; then
3158 { echo "$as_me:$LINENO: result: $CC" >&5
3159 echo "${ECHO_T}$CC" >&6; }
3161 { echo "$as_me:$LINENO: result: no" >&5
3162 echo "${ECHO_T}no" >&6; }
3166 test -n "$CC" && break
3169 if test -z "$CC"; then
3171 for ac_prog in cl.exe
3173 # Extract the first word of "$ac_prog", so it can be a program name with args.
3174 set dummy $ac_prog; ac_word=$2
3175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3177 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3178 echo $ECHO_N "(cached) $ECHO_C" >&6
3180 if test -n "$ac_ct_CC"; then
3181 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3190 ac_cv_prog_ac_ct_CC="$ac_prog"
3191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3201 if test -n "$ac_ct_CC"; then
3202 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3203 echo "${ECHO_T}$ac_ct_CC" >&6; }
3205 { echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6; }
3210 test -n "$ac_ct_CC" && break
3213 if test "x$ac_ct_CC" = x; then
3216 case $cross_compiling:$ac_tool_warned in
3218 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3219 whose name does not start with the host triplet. If you think this
3220 configuration is useful to you, please write to autoconf@gnu.org." >&5
3221 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3222 whose name does not start with the host triplet. If you think this
3223 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3224 ac_tool_warned=yes ;;
3233 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3234 See \`config.log' for more details." >&5
3235 echo "$as_me: error: no acceptable C compiler found in \$PATH
3236 See \`config.log' for more details." >&2;}
3237 { (exit 1); exit 1; }; }
3239 # Provide some information about the compiler.
3240 echo "$as_me:$LINENO: checking for C compiler version" >&5
3241 ac_compiler=`set X $ac_compile; echo $2`
3242 { (ac_try="$ac_compiler --version >&5"
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248 (eval "$ac_compiler --version >&5") 2>&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); }
3252 { (ac_try="$ac_compiler -v >&5"
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3258 (eval "$ac_compiler -v >&5") 2>&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }
3262 { (ac_try="$ac_compiler -V >&5"
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3268 (eval "$ac_compiler -V >&5") 2>&5
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }
3273 cat >conftest.$ac_ext <<_ACEOF
3276 cat confdefs.h >>conftest.$ac_ext
3277 cat >>conftest.$ac_ext <<_ACEOF
3278 /* end confdefs.h. */
3288 ac_clean_files_save=$ac_clean_files
3289 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3290 # Try to create an executable without -o first, disregard a.out.
3291 # It will help us diagnose broken compilers, and finding out an intuition
3293 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3294 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3295 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3297 # List of possible output files, starting from the most likely.
3298 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3299 # only as a last resort. b.out is created by i960 compilers.
3300 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3302 # The IRIX 6 linker writes into existing files which may not be
3303 # executable, retaining their permissions. Remove them first so a
3304 # subsequent execution test works.
3306 for ac_file in $ac_files
3309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3310 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3315 if { (ac_try="$ac_link_default"
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3321 (eval "$ac_link_default") 2>&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; then
3325 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3326 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3327 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3328 # so that the user can short-circuit this test for compilers unknown to
3330 for ac_file in $ac_files ''
3332 test -f "$ac_file" || continue
3334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3337 # We found the default executable, but exeext='' is most
3341 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3343 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3345 # We set ac_cv_exeext here because the later test for it is not
3346 # safe: cross compilers may not add the suffix if given an `-o'
3347 # argument, so we may need to know it at that point already.
3348 # Even if this section looks crufty: it has the advantage of
3355 test "$ac_cv_exeext" = no && ac_cv_exeext=
3361 { echo "$as_me:$LINENO: result: $ac_file" >&5
3362 echo "${ECHO_T}$ac_file" >&6; }
3363 if test -z "$ac_file"; then
3364 echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3367 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3368 See \`config.log' for more details." >&5
3369 echo "$as_me: error: C compiler cannot create executables
3370 See \`config.log' for more details." >&2;}
3371 { (exit 77); exit 77; }; }
3374 ac_exeext=$ac_cv_exeext
3376 # Check that the compiler produces executables we can run. If not, either
3377 # the compiler is broken, or we cross compile.
3378 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3379 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3380 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3381 # If not cross compiling, check that we can run a simple program.
3382 if test "$cross_compiling" != yes; then
3383 if { ac_try='./$ac_file'
3384 { (case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3389 (eval "$ac_try") 2>&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }; }; then
3395 if test "$cross_compiling" = maybe; then
3398 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3399 If you meant to cross compile, use \`--host'.
3400 See \`config.log' for more details." >&5
3401 echo "$as_me: error: cannot run C compiled programs.
3402 If you meant to cross compile, use \`--host'.
3403 See \`config.log' for more details." >&2;}
3404 { (exit 1); exit 1; }; }
3408 { echo "$as_me:$LINENO: result: yes" >&5
3409 echo "${ECHO_T}yes" >&6; }
3411 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3412 ac_clean_files=$ac_clean_files_save
3413 # Check that the compiler produces executables we can run. If not, either
3414 # the compiler is broken, or we cross compile.
3415 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3416 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3417 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3418 echo "${ECHO_T}$cross_compiling" >&6; }
3420 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3421 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3422 if { (ac_try="$ac_link"
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3428 (eval "$ac_link") 2>&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; then
3432 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3433 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3434 # work properly (i.e., refer to `conftest.exe'), while it won't with
3436 for ac_file in conftest.exe conftest conftest.*; do
3437 test -f "$ac_file" || continue
3439 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3440 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3446 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3447 See \`config.log' for more details." >&5
3448 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3449 See \`config.log' for more details." >&2;}
3450 { (exit 1); exit 1; }; }
3453 rm -f conftest$ac_cv_exeext
3454 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3455 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3457 rm -f conftest.$ac_ext
3458 EXEEXT=$ac_cv_exeext
3460 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3461 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3462 if test "${ac_cv_objext+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3465 cat >conftest.$ac_ext <<_ACEOF
3468 cat confdefs.h >>conftest.$ac_ext
3469 cat >>conftest.$ac_ext <<_ACEOF
3470 /* end confdefs.h. */
3480 rm -f conftest.o conftest.obj
3481 if { (ac_try="$ac_compile"
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487 (eval "$ac_compile") 2>&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); }; then
3491 for ac_file in conftest.o conftest.obj conftest.*; do
3492 test -f "$ac_file" || continue;
3494 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3495 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3500 echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3503 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3504 See \`config.log' for more details." >&5
3505 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3506 See \`config.log' for more details." >&2;}
3507 { (exit 1); exit 1; }; }
3510 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3512 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3513 echo "${ECHO_T}$ac_cv_objext" >&6; }
3514 OBJEXT=$ac_cv_objext
3516 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3517 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3518 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
3521 cat >conftest.$ac_ext <<_ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3539 rm -f conftest.$ac_objext
3540 if { (ac_try="$ac_compile"
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3546 (eval "$ac_compile") 2>conftest.er1
3548 grep -v '^ *+' conftest.er1 >conftest.err
3550 cat conftest.err >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); } && {
3553 test -z "$ac_c_werror_flag" ||
3554 test ! -s conftest.err
3555 } && test -s conftest.$ac_objext; then
3558 echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3568 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3569 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3570 GCC=`test $ac_compiler_gnu = yes && echo yes`
3571 ac_test_CFLAGS=${CFLAGS+set}
3572 ac_save_CFLAGS=$CFLAGS
3573 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3574 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3575 if test "${ac_cv_prog_cc_g+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 ac_save_c_werror_flag=$ac_c_werror_flag
3579 ac_c_werror_flag=yes
3582 cat >conftest.$ac_ext <<_ACEOF
3585 cat confdefs.h >>conftest.$ac_ext
3586 cat >>conftest.$ac_ext <<_ACEOF
3587 /* end confdefs.h. */
3597 rm -f conftest.$ac_objext
3598 if { (ac_try="$ac_compile"
3600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601 *) ac_try_echo=$ac_try;;
3603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3604 (eval "$ac_compile") 2>conftest.er1
3606 grep -v '^ *+' conftest.er1 >conftest.err
3608 cat conftest.err >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); } && {
3611 test -z "$ac_c_werror_flag" ||
3612 test ! -s conftest.err
3613 } && test -s conftest.$ac_objext; then
3616 echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3620 cat >conftest.$ac_ext <<_ACEOF
3623 cat confdefs.h >>conftest.$ac_ext
3624 cat >>conftest.$ac_ext <<_ACEOF
3625 /* end confdefs.h. */
3635 rm -f conftest.$ac_objext
3636 if { (ac_try="$ac_compile"
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3642 (eval "$ac_compile") 2>conftest.er1
3644 grep -v '^ *+' conftest.er1 >conftest.err
3646 cat conftest.err >&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } && {
3649 test -z "$ac_c_werror_flag" ||
3650 test ! -s conftest.err
3651 } && test -s conftest.$ac_objext; then
3654 echo "$as_me: failed program was:" >&5
3655 sed 's/^/| /' conftest.$ac_ext >&5
3657 ac_c_werror_flag=$ac_save_c_werror_flag
3659 cat >conftest.$ac_ext <<_ACEOF
3662 cat confdefs.h >>conftest.$ac_ext
3663 cat >>conftest.$ac_ext <<_ACEOF
3664 /* end confdefs.h. */
3674 rm -f conftest.$ac_objext
3675 if { (ac_try="$ac_compile"
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_compile") 2>conftest.er1
3683 grep -v '^ *+' conftest.er1 >conftest.err
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } && {
3688 test -z "$ac_c_werror_flag" ||
3689 test ! -s conftest.err
3690 } && test -s conftest.$ac_objext; then
3693 echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.$ac_ext >&5
3699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3706 ac_c_werror_flag=$ac_save_c_werror_flag
3708 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3709 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3710 if test "$ac_test_CFLAGS" = set; then
3711 CFLAGS=$ac_save_CFLAGS
3712 elif test $ac_cv_prog_cc_g = yes; then
3713 if test "$GCC" = yes; then
3719 if test "$GCC" = yes; then
3725 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3726 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3727 if test "${ac_cv_prog_cc_c89+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 ac_cv_prog_cc_c89=no
3732 cat >conftest.$ac_ext <<_ACEOF
3735 cat confdefs.h >>conftest.$ac_ext
3736 cat >>conftest.$ac_ext <<_ACEOF
3737 /* end confdefs.h. */
3740 #include <sys/types.h>
3741 #include <sys/stat.h>
3742 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3743 struct buf { int x; };
3744 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3745 static char *e (p, i)
3751 static char *f (char * (*g) (char **, int), char **p, ...)
3756 s = g (p, va_arg (v,int));
3761 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3762 function prototypes and stuff, but not '\xHH' hex character constants.
3763 These don't provoke an error unfortunately, instead are silently treated
3764 as 'x'. The following induces an error, until -std is added to get
3765 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3766 array size at least. It's necessary to write '\x00'==0 to get something
3767 that's true only with -std. */
3768 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3770 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3771 inside strings and character constants. */
3773 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3775 int test (int i, double x);
3776 struct s1 {int (*f) (int a);};
3777 struct s2 {int (*f) (double a);};
3778 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3784 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3789 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3790 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3792 CC="$ac_save_CC $ac_arg"
3793 rm -f conftest.$ac_objext
3794 if { (ac_try="$ac_compile"
3796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797 *) ac_try_echo=$ac_try;;
3799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3800 (eval "$ac_compile") 2>conftest.er1
3802 grep -v '^ *+' conftest.er1 >conftest.err
3804 cat conftest.err >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); } && {
3807 test -z "$ac_c_werror_flag" ||
3808 test ! -s conftest.err
3809 } && test -s conftest.$ac_objext; then
3810 ac_cv_prog_cc_c89=$ac_arg
3812 echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3818 rm -f core conftest.err conftest.$ac_objext
3819 test "x$ac_cv_prog_cc_c89" != "xno" && break
3821 rm -f conftest.$ac_ext
3826 case "x$ac_cv_prog_cc_c89" in
3828 { echo "$as_me:$LINENO: result: none needed" >&5
3829 echo "${ECHO_T}none needed" >&6; } ;;
3831 { echo "$as_me:$LINENO: result: unsupported" >&5
3832 echo "${ECHO_T}unsupported" >&6; } ;;
3834 CC="$CC $ac_cv_prog_cc_c89"
3835 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3836 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3841 ac_cpp='$CPP $CPPFLAGS'
3842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3846 depcc="$CC" am_compiler_list=
3848 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3849 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3850 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3853 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3854 # We make a subdir and do the tests there. Otherwise we can end up
3855 # making bogus files that we don't know about and never remove. For
3856 # instance it was reported that on HP-UX the gcc test will end up
3857 # making a dummy file named `D' -- because `-MD' means `put the output
3860 # Copy depcomp to subdir because otherwise we won't find it if we're
3861 # using a relative directory.
3862 cp "$am_depcomp" conftest.dir
3864 # We will build objects and dependencies in a subdirectory because
3865 # it helps to detect inapplicable dependency modes. For instance
3866 # both Tru64's cc and ICC support -MD to output dependencies as a
3867 # side effect of compilation, but ICC will put the dependencies in
3868 # the current directory while Tru64 will put them in the object
3872 am_cv_CC_dependencies_compiler_type=none
3873 if test "$am_compiler_list" = ""; then
3874 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3876 for depmode in $am_compiler_list; do
3877 # Setup a source with many dependencies, because some compilers
3878 # like to wrap large dependency lists on column 80 (with \), and
3879 # we should not choose a depcomp mode which is confused by this.
3881 # We need to recreate these files for each test, as the compiler may
3882 # overwrite some of them when testing with obscure command lines.
3883 # This happens at least with the AIX C compiler.
3885 for i in 1 2 3 4 5 6; do
3886 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3887 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3888 # Solaris 8's {/usr,}/bin/sh.
3889 touch sub/conftst$i.h
3891 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3895 # after this tag, mechanisms are not by side-effect, so they'll
3896 # only be used when explicitly requested
3897 if test "x$enable_dependency_tracking" = xyes; then
3905 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3906 # mode. It turns out that the SunPro C++ compiler does not properly
3907 # handle `-M -o', and we need to detect this.
3908 if depmode=$depmode \
3909 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3910 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3911 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3912 >/dev/null 2>conftest.err &&
3913 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3914 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3915 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3916 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3917 # icc doesn't choke on unknown options, it will just issue warnings
3918 # or remarks (even with -Werror). So we grep stderr for any message
3919 # that says an option was ignored or not supported.
3920 # When given -MP, icc 7.0 and 7.1 complain thusly:
3921 # icc: Command line warning: ignoring option '-M'; no argument required
3922 # The diagnosis changed in icc 8.0:
3923 # icc: Command line remark: option '-MP' not supported
3924 if (grep 'ignoring option' conftest.err ||
3925 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3926 am_cv_CC_dependencies_compiler_type=$depmode
3935 am_cv_CC_dependencies_compiler_type=none
3939 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3940 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3941 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3944 test "x$enable_dependency_tracking" != xno \
3945 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3947 am__fastdepCC_FALSE='#'
3949 am__fastdepCC_TRUE='#'
3950 am__fastdepCC_FALSE=
3954 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3955 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3956 if test "${lt_cv_path_SED+set}" = set; then
3957 echo $ECHO_N "(cached) $ECHO_C" >&6
3959 # Loop through the user's path and test for sed and gsed.
3960 # Then use that list of sed's as ones to test for truncation.
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 test -z "$as_dir" && as_dir=.
3966 for lt_ac_prog in sed gsed; do
3967 for ac_exec_ext in '' $ac_executable_extensions; do
3968 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3969 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3977 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3978 # along with /bin/sed that truncates output.
3979 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3980 test ! -f $lt_ac_sed && continue
3981 cat /dev/null > conftest.in
3983 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3984 # Check for GNU sed and select it if it is found.
3985 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3986 lt_cv_path_SED=$lt_ac_sed
3990 cat conftest.in conftest.in >conftest.tmp
3991 mv conftest.tmp conftest.in
3992 cp conftest.in conftest.nl
3994 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3995 cmp -s conftest.out conftest.nl || break
3996 # 10000 chars as input seems more than enough
3997 test $lt_ac_count -gt 10 && break
3998 lt_ac_count=`expr $lt_ac_count + 1`
3999 if test $lt_ac_count -gt $lt_ac_max; then
4000 lt_ac_max=$lt_ac_count
4001 lt_cv_path_SED=$lt_ac_sed
4010 { echo "$as_me:$LINENO: result: $SED" >&5
4011 echo "${ECHO_T}$SED" >&6; }
4013 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4014 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4015 if test "${ac_cv_path_GREP+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 # Extract the first word of "grep ggrep" to use in msg output
4019 if test -z "$GREP"; then
4020 set dummy grep ggrep; ac_prog_name=$2
4021 if test "${ac_cv_path_GREP+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 ac_path_GREP_found=false
4025 # Loop through the user's path and test for each of PROGNAME-LIST
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4030 test -z "$as_dir" && as_dir=.
4031 for ac_prog in grep ggrep; do
4032 for ac_exec_ext in '' $ac_executable_extensions; do
4033 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4034 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4035 # Check for GNU ac_path_GREP and select it if it is found.
4036 # Check for GNU $ac_path_GREP
4037 case `"$ac_path_GREP" --version 2>&1` in
4039 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4042 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4045 cat "conftest.in" "conftest.in" >"conftest.tmp"
4046 mv "conftest.tmp" "conftest.in"
4047 cp "conftest.in" "conftest.nl"
4048 echo 'GREP' >> "conftest.nl"
4049 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4050 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4051 ac_count=`expr $ac_count + 1`
4052 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4053 # Best one so far, save it but keep looking for a better one
4054 ac_cv_path_GREP="$ac_path_GREP"
4055 ac_path_GREP_max=$ac_count
4057 # 10*(2^10) chars as input seems more than enough
4058 test $ac_count -gt 10 && break
4060 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4064 $ac_path_GREP_found && break 3
4074 GREP="$ac_cv_path_GREP"
4075 if test -z "$GREP"; then
4076 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4077 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4078 { (exit 1); exit 1; }; }
4082 ac_cv_path_GREP=$GREP
4087 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4088 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4089 GREP="$ac_cv_path_GREP"
4092 { echo "$as_me:$LINENO: checking for egrep" >&5
4093 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4094 if test "${ac_cv_path_EGREP+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4098 then ac_cv_path_EGREP="$GREP -E"
4100 # Extract the first word of "egrep" to use in msg output
4101 if test -z "$EGREP"; then
4102 set dummy egrep; ac_prog_name=$2
4103 if test "${ac_cv_path_EGREP+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4106 ac_path_EGREP_found=false
4107 # Loop through the user's path and test for each of PROGNAME-LIST
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4112 test -z "$as_dir" && as_dir=.
4113 for ac_prog in egrep; do
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4116 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4117 # Check for GNU ac_path_EGREP and select it if it is found.
4118 # Check for GNU $ac_path_EGREP
4119 case `"$ac_path_EGREP" --version 2>&1` in
4121 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4124 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4127 cat "conftest.in" "conftest.in" >"conftest.tmp"
4128 mv "conftest.tmp" "conftest.in"
4129 cp "conftest.in" "conftest.nl"
4130 echo 'EGREP' >> "conftest.nl"
4131 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4132 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4133 ac_count=`expr $ac_count + 1`
4134 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4135 # Best one so far, save it but keep looking for a better one
4136 ac_cv_path_EGREP="$ac_path_EGREP"
4137 ac_path_EGREP_max=$ac_count
4139 # 10*(2^10) chars as input seems more than enough
4140 test $ac_count -gt 10 && break
4142 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4146 $ac_path_EGREP_found && break 3
4156 EGREP="$ac_cv_path_EGREP"
4157 if test -z "$EGREP"; then
4158 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4159 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4160 { (exit 1); exit 1; }; }
4164 ac_cv_path_EGREP=$EGREP
4170 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4171 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4172 EGREP="$ac_cv_path_EGREP"
4176 # Check whether --with-gnu-ld was given.
4177 if test "${with_gnu_ld+set}" = set; then
4178 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4184 if test "$GCC" = yes; then
4185 # Check if gcc -print-prog-name=ld gives a path.
4186 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4187 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4190 # gcc leaves a trailing carriage return which upsets mingw
4191 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4193 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4196 # Accept absolute paths.
4198 re_direlt='/[^/][^/]*/\.\./'
4199 # Canonicalize the pathname of ld
4200 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4201 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4202 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4204 test -z "$LD" && LD="$ac_prog"
4207 # If it fails, then pretend we aren't using GCC.
4211 # If it is relative, then search for the first ld in PATH.
4215 elif test "$with_gnu_ld" = yes; then
4216 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4217 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4219 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4220 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4222 if test "${lt_cv_path_LD+set}" = set; then
4223 echo $ECHO_N "(cached) $ECHO_C" >&6
4225 if test -z "$LD"; then
4226 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4227 for ac_dir in $PATH; do
4229 test -z "$ac_dir" && ac_dir=.
4230 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4231 lt_cv_path_LD="$ac_dir/$ac_prog"
4232 # Check to see if the program is GNU ld. I'd rather use --version,
4233 # but apparently some variants of GNU ld only accept -v.
4234 # Break only if it was the GNU/non-GNU ld that we prefer.
4235 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4236 *GNU* | *'with BFD'*)
4237 test "$with_gnu_ld" != no && break
4240 test "$with_gnu_ld" != yes && break
4247 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4252 if test -n "$LD"; then
4253 { echo "$as_me:$LINENO: result: $LD" >&5
4254 echo "${ECHO_T}$LD" >&6; }
4256 { echo "$as_me:$LINENO: result: no" >&5
4257 echo "${ECHO_T}no" >&6; }
4259 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4260 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4261 { (exit 1); exit 1; }; }
4262 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4263 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4264 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4268 case `$LD -v 2>&1 </dev/null` in
4269 *GNU* | *'with BFD'*)
4270 lt_cv_prog_gnu_ld=yes
4273 lt_cv_prog_gnu_ld=no
4277 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4278 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4279 with_gnu_ld=$lt_cv_prog_gnu_ld
4282 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4283 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4284 if test "${lt_cv_ld_reload_flag+set}" = set; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
4287 lt_cv_ld_reload_flag='-r'
4289 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4290 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4291 reload_flag=$lt_cv_ld_reload_flag
4292 case $reload_flag in
4294 *) reload_flag=" $reload_flag" ;;
4296 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4299 if test "$GCC" = yes; then
4300 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4302 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4307 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4308 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4309 if test "${lt_cv_path_NM+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4312 if test -n "$NM"; then
4313 # Let the user override the test.
4316 lt_nm_to_check="${ac_tool_prefix}nm"
4317 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4318 lt_nm_to_check="$lt_nm_to_check nm"
4320 for lt_tmp_nm in $lt_nm_to_check; do
4321 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4322 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4324 test -z "$ac_dir" && ac_dir=.
4325 tmp_nm="$ac_dir/$lt_tmp_nm"
4326 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4327 # Check to see if the nm accepts a BSD-compat flag.
4328 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4329 # nm: unknown option "B" ignored
4330 # Tru64's nm complains that /dev/null is an invalid object file
4331 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4332 */dev/null* | *'Invalid file or object type'*)
4333 lt_cv_path_NM="$tmp_nm -B"
4337 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4339 lt_cv_path_NM="$tmp_nm -p"
4343 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4344 continue # so that we can try to find one that supports BSD flags
4353 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4356 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4357 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4360 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4361 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4363 if test "$LN_S" = "ln -s"; then
4364 { echo "$as_me:$LINENO: result: yes" >&5
4365 echo "${ECHO_T}yes" >&6; }
4367 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4368 echo "${ECHO_T}no, using $LN_S" >&6; }
4371 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4372 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4373 if test "${lt_cv_deplibs_check_method+set}" = set; then
4374 echo $ECHO_N "(cached) $ECHO_C" >&6
4376 lt_cv_file_magic_cmd='$MAGIC_CMD'
4377 lt_cv_file_magic_test_file=
4378 lt_cv_deplibs_check_method='unknown'
4379 # Need to set the preceding variable on all platforms that support
4380 # interlibrary dependencies.
4381 # 'none' -- dependencies not supported.
4382 # `unknown' -- same as none, but documents that we really don't know.
4383 # 'pass_all' -- all dependencies passed with no checks.
4384 # 'test_compile' -- check by making test program.
4385 # 'file_magic [[regex]]' -- check by looking for files in library path
4386 # which responds to the $file_magic_cmd with a given extended regex.
4387 # If you have `file' or equivalent on your system and you're not sure
4388 # whether `pass_all' will *always* work, you probably want this one.
4392 lt_cv_deplibs_check_method=pass_all
4396 lt_cv_deplibs_check_method=pass_all
4400 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4401 lt_cv_file_magic_cmd='/usr/bin/file -L'
4402 lt_cv_file_magic_test_file=/shlib/libc.so
4406 # func_win32_libid is a shell function defined in ltmain.sh
4407 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4408 lt_cv_file_magic_cmd='func_win32_libid'
4412 # Base MSYS/MinGW do not provide the 'file' command needed by
4413 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4414 # unless we find 'file', for example because we are cross-compiling.
4415 if ( file / ) >/dev/null 2>&1; then
4416 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4417 lt_cv_file_magic_cmd='func_win32_libid'
4419 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4420 lt_cv_file_magic_cmd='$OBJDUMP -f'
4424 darwin* | rhapsody*)
4425 lt_cv_deplibs_check_method=pass_all
4428 freebsd* | dragonfly*)
4429 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4432 # Not sure whether the presence of OpenBSD here was a mistake.
4433 # Let's accept both of them until this is cleared up.
4434 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4435 lt_cv_file_magic_cmd=/usr/bin/file
4436 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4440 lt_cv_deplibs_check_method=pass_all
4445 lt_cv_deplibs_check_method=pass_all
4448 hpux10.20* | hpux11*)
4449 lt_cv_file_magic_cmd=/usr/bin/file
4452 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4453 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4456 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]'
4457 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4460 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4461 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4467 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4468 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4471 irix5* | irix6* | nonstopux*)
4473 *-32|*"-32 ") libmagic=32-bit;;
4474 *-n32|*"-n32 ") libmagic=N32;;
4475 *-64|*"-64 ") libmagic=64-bit;;
4476 *) libmagic=never-match;;
4478 lt_cv_deplibs_check_method=pass_all
4481 # This must be Linux ELF.
4482 linux* | k*bsd*-gnu)
4483 lt_cv_deplibs_check_method=pass_all
4487 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4488 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4490 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4495 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4496 lt_cv_file_magic_cmd=/usr/bin/file
4497 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4501 lt_cv_deplibs_check_method=unknown
4505 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4506 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4508 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4512 osf3* | osf4* | osf5*)
4513 lt_cv_deplibs_check_method=pass_all
4517 lt_cv_deplibs_check_method=pass_all
4521 lt_cv_deplibs_check_method=pass_all
4525 case $host_vendor in
4527 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]'
4528 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4531 lt_cv_deplibs_check_method=pass_all
4534 lt_cv_file_magic_cmd='/bin/file'
4535 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4538 lt_cv_file_magic_cmd='/bin/file'
4539 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4540 lt_cv_file_magic_test_file=/lib/libc.so
4543 lt_cv_deplibs_check_method=pass_all
4546 lt_cv_deplibs_check_method=pass_all
4551 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4552 lt_cv_deplibs_check_method=pass_all
4557 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4558 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4559 file_magic_cmd=$lt_cv_file_magic_cmd
4560 deplibs_check_method=$lt_cv_deplibs_check_method
4561 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4566 # If no C compiler was specified, use CC.
4569 # If no C compiler flags were specified, use CFLAGS.
4570 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4572 # Allow CC to be a program name with arguments.
4576 # Check whether --enable-libtool-lock was given.
4577 if test "${enable_libtool_lock+set}" = set; then
4578 enableval=$enable_libtool_lock;
4581 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4583 # Some flags need to be propagated to the compiler or linker for good
4587 # Find out which ABI we are using.
4588 echo 'int i;' > conftest.$ac_ext
4589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4590 (eval $ac_compile) 2>&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; then
4594 case `/usr/bin/file conftest.$ac_objext` in
4606 # Find out which ABI we are using.
4607 echo '#line 4607 "configure"' > conftest.$ac_ext
4608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4609 (eval $ac_compile) 2>&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; then
4613 if test "$lt_cv_prog_gnu_ld" = yes; then
4614 case `/usr/bin/file conftest.$ac_objext` in
4616 LD="${LD-ld} -melf32bsmip"
4619 LD="${LD-ld} -melf32bmipn32"
4622 LD="${LD-ld} -melf64bmip"
4626 case `/usr/bin/file conftest.$ac_objext` in
4642 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4643 s390*-*linux*|sparc*-*linux*)
4644 # Find out which ABI we are using.
4645 echo 'int i;' > conftest.$ac_ext
4646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4647 (eval $ac_compile) 2>&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; then
4651 case `/usr/bin/file conftest.o` in
4654 x86_64-*kfreebsd*-gnu)
4655 LD="${LD-ld} -m elf_i386_fbsd"
4658 LD="${LD-ld} -m elf_i386"
4660 ppc64-*linux*|powerpc64-*linux*)
4661 LD="${LD-ld} -m elf32ppclinux"
4664 LD="${LD-ld} -m elf_s390"
4667 LD="${LD-ld} -m elf32_sparc"
4673 x86_64-*kfreebsd*-gnu)
4674 LD="${LD-ld} -m elf_x86_64_fbsd"
4677 LD="${LD-ld} -m elf_x86_64"
4679 ppc*-*linux*|powerpc*-*linux*)
4680 LD="${LD-ld} -m elf64ppc"
4683 LD="${LD-ld} -m elf64_s390"
4686 LD="${LD-ld} -m elf64_sparc"
4696 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4697 SAVE_CFLAGS="$CFLAGS"
4698 CFLAGS="$CFLAGS -belf"
4699 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4700 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4701 if test "${lt_cv_cc_needs_belf+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4705 ac_cpp='$CPP $CPPFLAGS'
4706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4710 cat >conftest.$ac_ext <<_ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h. */
4725 rm -f conftest.$ac_objext conftest$ac_exeext
4726 if { (ac_try="$ac_link"
4728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729 *) ac_try_echo=$ac_try;;
4731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4732 (eval "$ac_link") 2>conftest.er1
4734 grep -v '^ *+' conftest.er1 >conftest.err
4736 cat conftest.err >&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } && {
4739 test -z "$ac_c_werror_flag" ||
4740 test ! -s conftest.err
4741 } && test -s conftest$ac_exeext &&
4742 $as_test_x conftest$ac_exeext; then
4743 lt_cv_cc_needs_belf=yes
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4748 lt_cv_cc_needs_belf=no
4751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4752 conftest$ac_exeext conftest.$ac_ext
4754 ac_cpp='$CPP $CPPFLAGS'
4755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4760 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4761 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4762 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4763 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4764 CFLAGS="$SAVE_CFLAGS"
4768 # Find out which ABI we are using.
4769 echo 'int i;' > conftest.$ac_ext
4770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4771 (eval $ac_compile) 2>&5
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); }; then
4775 case `/usr/bin/file conftest.o` in
4777 case $lt_cv_prog_gnu_ld in
4778 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4779 *) LD="${LD-ld} -64" ;;
4787 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4788 if test -n "$ac_tool_prefix"; then
4789 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4790 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4793 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4796 if test -n "$DLLTOOL"; then
4797 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803 test -z "$as_dir" && as_dir=.
4804 for ac_exec_ext in '' $ac_executable_extensions; do
4805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4806 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 DLLTOOL=$ac_cv_prog_DLLTOOL
4817 if test -n "$DLLTOOL"; then
4818 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4819 echo "${ECHO_T}$DLLTOOL" >&6; }
4821 { echo "$as_me:$LINENO: result: no" >&5
4822 echo "${ECHO_T}no" >&6; }
4827 if test -z "$ac_cv_prog_DLLTOOL"; then
4828 ac_ct_DLLTOOL=$DLLTOOL
4829 # Extract the first word of "dlltool", so it can be a program name with args.
4830 set dummy dlltool; ac_word=$2
4831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4833 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
4836 if test -n "$ac_ct_DLLTOOL"; then
4837 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843 test -z "$as_dir" && as_dir=.
4844 for ac_exec_ext in '' $ac_executable_extensions; do
4845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4846 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4856 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4857 if test -n "$ac_ct_DLLTOOL"; then
4858 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4859 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4861 { echo "$as_me:$LINENO: result: no" >&5
4862 echo "${ECHO_T}no" >&6; }
4865 if test "x$ac_ct_DLLTOOL" = x; then
4868 case $cross_compiling:$ac_tool_warned in
4870 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4871 whose name does not start with the host triplet. If you think this
4872 configuration is useful to you, please write to autoconf@gnu.org." >&5
4873 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4874 whose name does not start with the host triplet. If you think this
4875 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4876 ac_tool_warned=yes ;;
4878 DLLTOOL=$ac_ct_DLLTOOL
4881 DLLTOOL="$ac_cv_prog_DLLTOOL"
4884 if test -n "$ac_tool_prefix"; then
4885 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4886 set dummy ${ac_tool_prefix}as; ac_word=$2
4887 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4889 if test "${ac_cv_prog_AS+set}" = set; then
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4892 if test -n "$AS"; then
4893 ac_cv_prog_AS="$AS" # Let the user override the test.
4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 test -z "$as_dir" && as_dir=.
4900 for ac_exec_ext in '' $ac_executable_extensions; do
4901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4902 ac_cv_prog_AS="${ac_tool_prefix}as"
4903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4913 if test -n "$AS"; then
4914 { echo "$as_me:$LINENO: result: $AS" >&5
4915 echo "${ECHO_T}$AS" >&6; }
4917 { echo "$as_me:$LINENO: result: no" >&5
4918 echo "${ECHO_T}no" >&6; }
4923 if test -z "$ac_cv_prog_AS"; then
4925 # Extract the first word of "as", so it can be a program name with args.
4926 set dummy as; ac_word=$2
4927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4929 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4930 echo $ECHO_N "(cached) $ECHO_C" >&6
4932 if test -n "$ac_ct_AS"; then
4933 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 test -z "$as_dir" && as_dir=.
4940 for ac_exec_ext in '' $ac_executable_extensions; do
4941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4942 ac_cv_prog_ac_ct_AS="as"
4943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4953 if test -n "$ac_ct_AS"; then
4954 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4955 echo "${ECHO_T}$ac_ct_AS" >&6; }
4957 { echo "$as_me:$LINENO: result: no" >&5
4958 echo "${ECHO_T}no" >&6; }
4961 if test "x$ac_ct_AS" = x; then
4964 case $cross_compiling:$ac_tool_warned in
4966 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4967 whose name does not start with the host triplet. If you think this
4968 configuration is useful to you, please write to autoconf@gnu.org." >&5
4969 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4970 whose name does not start with the host triplet. If you think this
4971 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4972 ac_tool_warned=yes ;;
4980 if test -n "$ac_tool_prefix"; then
4981 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4982 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4985 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4988 if test -n "$OBJDUMP"; then
4989 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 test -z "$as_dir" && as_dir=.
4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4998 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5008 OBJDUMP=$ac_cv_prog_OBJDUMP
5009 if test -n "$OBJDUMP"; then
5010 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5011 echo "${ECHO_T}$OBJDUMP" >&6; }
5013 { echo "$as_me:$LINENO: result: no" >&5
5014 echo "${ECHO_T}no" >&6; }
5019 if test -z "$ac_cv_prog_OBJDUMP"; then
5020 ac_ct_OBJDUMP=$OBJDUMP
5021 # Extract the first word of "objdump", so it can be a program name with args.
5022 set dummy objdump; ac_word=$2
5023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5025 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5028 if test -n "$ac_ct_OBJDUMP"; then
5029 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5038 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5049 if test -n "$ac_ct_OBJDUMP"; then
5050 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5051 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5053 { echo "$as_me:$LINENO: result: no" >&5
5054 echo "${ECHO_T}no" >&6; }
5057 if test "x$ac_ct_OBJDUMP" = x; then
5060 case $cross_compiling:$ac_tool_warned in
5062 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5063 whose name does not start with the host triplet. If you think this
5064 configuration is useful to you, please write to autoconf@gnu.org." >&5
5065 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5066 whose name does not start with the host triplet. If you think this
5067 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5068 ac_tool_warned=yes ;;
5070 OBJDUMP=$ac_ct_OBJDUMP
5073 OBJDUMP="$ac_cv_prog_OBJDUMP"
5080 need_locks="$enable_libtool_lock"
5084 ac_cpp='$CPP $CPPFLAGS'
5085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5088 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5089 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5090 # On Suns, sometimes $CPP names a directory.
5091 if test -n "$CPP" && test -d "$CPP"; then
5094 if test -z "$CPP"; then
5095 if test "${ac_cv_prog_CPP+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5098 # Double quotes because CPP needs to be expanded
5099 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5102 for ac_c_preproc_warn_flag in '' yes
5104 # Use a header file that comes with gcc, so configuring glibc
5105 # with a fresh cross-compiler works.
5106 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5107 # <limits.h> exists even on freestanding compilers.
5108 # On the NeXT, cc -E runs the code through the compiler's parser,
5109 # not just through cpp. "Syntax error" is here to catch this case.
5110 cat >conftest.$ac_ext <<_ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h. */
5117 # include <limits.h>
5119 # include <assert.h>
5123 if { (ac_try="$ac_cpp conftest.$ac_ext"
5125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126 *) ac_try_echo=$ac_try;;
5128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5131 grep -v '^ *+' conftest.er1 >conftest.err
5133 cat conftest.err >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } >/dev/null && {
5136 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5137 test ! -s conftest.err
5141 echo "$as_me: failed program was:" >&5
5142 sed 's/^/| /' conftest.$ac_ext >&5
5144 # Broken: fails on valid input.
5148 rm -f conftest.err conftest.$ac_ext
5150 # OK, works on sane cases. Now check whether nonexistent headers
5151 # can be detected and how.
5152 cat >conftest.$ac_ext <<_ACEOF
5155 cat confdefs.h >>conftest.$ac_ext
5156 cat >>conftest.$ac_ext <<_ACEOF
5157 /* end confdefs.h. */
5158 #include <ac_nonexistent.h>
5160 if { (ac_try="$ac_cpp conftest.$ac_ext"
5162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5163 *) ac_try_echo=$ac_try;;
5165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5168 grep -v '^ *+' conftest.er1 >conftest.err
5170 cat conftest.err >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); } >/dev/null && {
5173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5174 test ! -s conftest.err
5176 # Broken: success on invalid input.
5179 echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5182 # Passes both tests.
5187 rm -f conftest.err conftest.$ac_ext
5190 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5191 rm -f conftest.err conftest.$ac_ext
5192 if $ac_preproc_ok; then
5204 { echo "$as_me:$LINENO: result: $CPP" >&5
5205 echo "${ECHO_T}$CPP" >&6; }
5207 for ac_c_preproc_warn_flag in '' yes
5209 # Use a header file that comes with gcc, so configuring glibc
5210 # with a fresh cross-compiler works.
5211 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5212 # <limits.h> exists even on freestanding compilers.
5213 # On the NeXT, cc -E runs the code through the compiler's parser,
5214 # not just through cpp. "Syntax error" is here to catch this case.
5215 cat >conftest.$ac_ext <<_ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h. */
5222 # include <limits.h>
5224 # include <assert.h>
5228 if { (ac_try="$ac_cpp conftest.$ac_ext"
5230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5231 *) ac_try_echo=$ac_try;;
5233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5236 grep -v '^ *+' conftest.er1 >conftest.err
5238 cat conftest.err >&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } >/dev/null && {
5241 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5242 test ! -s conftest.err
5246 echo "$as_me: failed program was:" >&5
5247 sed 's/^/| /' conftest.$ac_ext >&5
5249 # Broken: fails on valid input.
5253 rm -f conftest.err conftest.$ac_ext
5255 # OK, works on sane cases. Now check whether nonexistent headers
5256 # can be detected and how.
5257 cat >conftest.$ac_ext <<_ACEOF
5260 cat confdefs.h >>conftest.$ac_ext
5261 cat >>conftest.$ac_ext <<_ACEOF
5262 /* end confdefs.h. */
5263 #include <ac_nonexistent.h>
5265 if { (ac_try="$ac_cpp conftest.$ac_ext"
5267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268 *) ac_try_echo=$ac_try;;
5270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5273 grep -v '^ *+' conftest.er1 >conftest.err
5275 cat conftest.err >&5
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); } >/dev/null && {
5278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5279 test ! -s conftest.err
5281 # Broken: success on invalid input.
5284 echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5287 # Passes both tests.
5292 rm -f conftest.err conftest.$ac_ext
5295 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5296 rm -f conftest.err conftest.$ac_ext
5297 if $ac_preproc_ok; then
5300 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5301 See \`config.log' for more details." >&5
5302 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5303 See \`config.log' for more details." >&2;}
5304 { (exit 1); exit 1; }; }
5308 ac_cpp='$CPP $CPPFLAGS'
5309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5314 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5315 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5316 if test "${ac_cv_header_stdc+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5319 cat >conftest.$ac_ext <<_ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5338 rm -f conftest.$ac_objext
5339 if { (ac_try="$ac_compile"
5341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5342 *) ac_try_echo=$ac_try;;
5344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5345 (eval "$ac_compile") 2>conftest.er1
5347 grep -v '^ *+' conftest.er1 >conftest.err
5349 cat conftest.err >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); } && {
5352 test -z "$ac_c_werror_flag" ||
5353 test ! -s conftest.err
5354 } && test -s conftest.$ac_objext; then
5355 ac_cv_header_stdc=yes
5357 echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5360 ac_cv_header_stdc=no
5363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5365 if test $ac_cv_header_stdc = yes; then
5366 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5367 cat >conftest.$ac_ext <<_ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h. */
5376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5377 $EGREP "memchr" >/dev/null 2>&1; then
5380 ac_cv_header_stdc=no
5386 if test $ac_cv_header_stdc = yes; then
5387 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5388 cat >conftest.$ac_ext <<_ACEOF
5391 cat confdefs.h >>conftest.$ac_ext
5392 cat >>conftest.$ac_ext <<_ACEOF
5393 /* end confdefs.h. */
5397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5398 $EGREP "free" >/dev/null 2>&1; then
5401 ac_cv_header_stdc=no
5407 if test $ac_cv_header_stdc = yes; then
5408 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5409 if test "$cross_compiling" = yes; then
5412 cat >conftest.$ac_ext <<_ACEOF
5415 cat confdefs.h >>conftest.$ac_ext
5416 cat >>conftest.$ac_ext <<_ACEOF
5417 /* end confdefs.h. */
5420 #if ((' ' & 0x0FF) == 0x020)
5421 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5422 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5424 # define ISLOWER(c) \
5425 (('a' <= (c) && (c) <= 'i') \
5426 || ('j' <= (c) && (c) <= 'r') \
5427 || ('s' <= (c) && (c) <= 'z'))
5428 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5431 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5436 for (i = 0; i < 256; i++)
5437 if (XOR (islower (i), ISLOWER (i))
5438 || toupper (i) != TOUPPER (i))
5443 rm -f conftest$ac_exeext
5444 if { (ac_try="$ac_link"
5446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5447 *) ac_try_echo=$ac_try;;
5449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5450 (eval "$ac_link") 2>&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5454 { (case "(($ac_try" in
5455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5456 *) ac_try_echo=$ac_try;;
5458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5459 (eval "$ac_try") 2>&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }; }; then
5465 echo "$as_me: program exited with status $ac_status" >&5
5466 echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.$ac_ext >&5
5470 ac_cv_header_stdc=no
5472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5478 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5479 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5480 if test $ac_cv_header_stdc = yes; then
5482 cat >>confdefs.h <<\_ACEOF
5483 #define STDC_HEADERS 1
5488 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5498 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5499 inttypes.h stdint.h unistd.h
5501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5502 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5507 cat >conftest.$ac_ext <<_ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h. */
5513 $ac_includes_default
5515 #include <$ac_header>
5517 rm -f conftest.$ac_objext
5518 if { (ac_try="$ac_compile"
5520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521 *) ac_try_echo=$ac_try;;
5523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5524 (eval "$ac_compile") 2>conftest.er1
5526 grep -v '^ *+' conftest.er1 >conftest.err
5528 cat conftest.err >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } && {
5531 test -z "$ac_c_werror_flag" ||
5532 test ! -s conftest.err
5533 } && test -s conftest.$ac_objext; then
5534 eval "$as_ac_Header=yes"
5536 echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5539 eval "$as_ac_Header=no"
5542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5544 ac_res=`eval echo '${'$as_ac_Header'}'`
5545 { echo "$as_me:$LINENO: result: $ac_res" >&5
5546 echo "${ECHO_T}$ac_res" >&6; }
5547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5548 cat >>confdefs.h <<_ACEOF
5549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5558 for ac_header in dlfcn.h
5560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5562 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 ac_res=`eval echo '${'$as_ac_Header'}'`
5568 { echo "$as_me:$LINENO: result: $ac_res" >&5
5569 echo "${ECHO_T}$ac_res" >&6; }
5571 # Is the header compilable?
5572 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5574 cat >conftest.$ac_ext <<_ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h. */
5580 $ac_includes_default
5581 #include <$ac_header>
5583 rm -f conftest.$ac_objext
5584 if { (ac_try="$ac_compile"
5586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5587 *) ac_try_echo=$ac_try;;
5589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5590 (eval "$ac_compile") 2>conftest.er1
5592 grep -v '^ *+' conftest.er1 >conftest.err
5594 cat conftest.err >&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); } && {
5597 test -z "$ac_c_werror_flag" ||
5598 test ! -s conftest.err
5599 } && test -s conftest.$ac_objext; then
5600 ac_header_compiler=yes
5602 echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.$ac_ext >&5
5605 ac_header_compiler=no
5608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5609 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5610 echo "${ECHO_T}$ac_header_compiler" >&6; }
5612 # Is the header present?
5613 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5614 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5615 cat >conftest.$ac_ext <<_ACEOF
5618 cat confdefs.h >>conftest.$ac_ext
5619 cat >>conftest.$ac_ext <<_ACEOF
5620 /* end confdefs.h. */
5621 #include <$ac_header>
5623 if { (ac_try="$ac_cpp conftest.$ac_ext"
5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626 *) ac_try_echo=$ac_try;;
5628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5631 grep -v '^ *+' conftest.er1 >conftest.err
5633 cat conftest.err >&5
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); } >/dev/null && {
5636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5637 test ! -s conftest.err
5639 ac_header_preproc=yes
5641 echo "$as_me: failed program was:" >&5
5642 sed 's/^/| /' conftest.$ac_ext >&5
5644 ac_header_preproc=no
5647 rm -f conftest.err conftest.$ac_ext
5648 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5649 echo "${ECHO_T}$ac_header_preproc" >&6; }
5651 # So? What about this header?
5652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5658 ac_header_preproc=yes
5661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5664 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5668 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5674 ## -------------------------------------------------- ##
5675 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
5676 ## -------------------------------------------------- ##
5678 ) | sed "s/^/$as_me: WARNING: /" >&2
5681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5686 eval "$as_ac_Header=\$ac_header_preproc"
5688 ac_res=`eval echo '${'$as_ac_Header'}'`
5689 { echo "$as_me:$LINENO: result: $ac_res" >&5
5690 echo "${ECHO_T}$ac_res" >&6; }
5693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5694 cat >>confdefs.h <<_ACEOF
5695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5703 ac_cpp='$CXXCPP $CPPFLAGS'
5704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5707 if test -z "$CXX"; then
5708 if test -n "$CCC"; then
5711 if test -n "$ac_tool_prefix"; then
5712 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5714 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5715 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5718 if test "${ac_cv_prog_CXX+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5721 if test -n "$CXX"; then
5722 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 test -z "$as_dir" && as_dir=.
5729 for ac_exec_ext in '' $ac_executable_extensions; do
5730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5731 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5742 if test -n "$CXX"; then
5743 { echo "$as_me:$LINENO: result: $CXX" >&5
5744 echo "${ECHO_T}$CXX" >&6; }
5746 { echo "$as_me:$LINENO: result: no" >&5
5747 echo "${ECHO_T}no" >&6; }
5751 test -n "$CXX" && break
5754 if test -z "$CXX"; then
5756 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5758 # Extract the first word of "$ac_prog", so it can be a program name with args.
5759 set dummy $ac_prog; ac_word=$2
5760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5762 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 if test -n "$ac_ct_CXX"; then
5766 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772 test -z "$as_dir" && as_dir=.
5773 for ac_exec_ext in '' $ac_executable_extensions; do
5774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5775 ac_cv_prog_ac_ct_CXX="$ac_prog"
5776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5785 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5786 if test -n "$ac_ct_CXX"; then
5787 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5788 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5790 { echo "$as_me:$LINENO: result: no" >&5
5791 echo "${ECHO_T}no" >&6; }
5795 test -n "$ac_ct_CXX" && break
5798 if test "x$ac_ct_CXX" = x; then
5801 case $cross_compiling:$ac_tool_warned in
5803 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5804 whose name does not start with the host triplet. If you think this
5805 configuration is useful to you, please write to autoconf@gnu.org." >&5
5806 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5807 whose name does not start with the host triplet. If you think this
5808 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5809 ac_tool_warned=yes ;;
5817 # Provide some information about the compiler.
5818 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5819 ac_compiler=`set X $ac_compile; echo $2`
5820 { (ac_try="$ac_compiler --version >&5"
5822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5823 *) ac_try_echo=$ac_try;;
5825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5826 (eval "$ac_compiler --version >&5") 2>&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }
5830 { (ac_try="$ac_compiler -v >&5"
5832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833 *) ac_try_echo=$ac_try;;
5835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836 (eval "$ac_compiler -v >&5") 2>&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }
5840 { (ac_try="$ac_compiler -V >&5"
5842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846 (eval "$ac_compiler -V >&5") 2>&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }
5851 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5852 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5853 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 cat >conftest.$ac_ext <<_ACEOF
5859 cat confdefs.h >>conftest.$ac_ext
5860 cat >>conftest.$ac_ext <<_ACEOF
5861 /* end confdefs.h. */
5874 rm -f conftest.$ac_objext
5875 if { (ac_try="$ac_compile"
5877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878 *) ac_try_echo=$ac_try;;
5880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5881 (eval "$ac_compile") 2>conftest.er1
5883 grep -v '^ *+' conftest.er1 >conftest.err
5885 cat conftest.err >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } && {
5888 test -z "$ac_cxx_werror_flag" ||
5889 test ! -s conftest.err
5890 } && test -s conftest.$ac_objext; then
5893 echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5900 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5903 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5904 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5905 GXX=`test $ac_compiler_gnu = yes && echo yes`
5906 ac_test_CXXFLAGS=${CXXFLAGS+set}
5907 ac_save_CXXFLAGS=$CXXFLAGS
5908 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5909 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5910 if test "${ac_cv_prog_cxx_g+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5914 ac_cxx_werror_flag=yes
5917 cat >conftest.$ac_ext <<_ACEOF
5920 cat confdefs.h >>conftest.$ac_ext
5921 cat >>conftest.$ac_ext <<_ACEOF
5922 /* end confdefs.h. */
5932 rm -f conftest.$ac_objext
5933 if { (ac_try="$ac_compile"
5935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939 (eval "$ac_compile") 2>conftest.er1
5941 grep -v '^ *+' conftest.er1 >conftest.err
5943 cat conftest.err >&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } && {
5946 test -z "$ac_cxx_werror_flag" ||
5947 test ! -s conftest.err
5948 } && test -s conftest.$ac_objext; then
5949 ac_cv_prog_cxx_g=yes
5951 echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.$ac_ext >&5
5955 cat >conftest.$ac_ext <<_ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h. */
5970 rm -f conftest.$ac_objext
5971 if { (ac_try="$ac_compile"
5973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974 *) ac_try_echo=$ac_try;;
5976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977 (eval "$ac_compile") 2>conftest.er1
5979 grep -v '^ *+' conftest.er1 >conftest.err
5981 cat conftest.err >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } && {
5984 test -z "$ac_cxx_werror_flag" ||
5985 test ! -s conftest.err
5986 } && test -s conftest.$ac_objext; then
5989 echo "$as_me: failed program was:" >&5
5990 sed 's/^/| /' conftest.$ac_ext >&5
5992 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5994 cat >conftest.$ac_ext <<_ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h. */
6009 rm -f conftest.$ac_objext
6010 if { (ac_try="$ac_compile"
6012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013 *) ac_try_echo=$ac_try;;
6015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016 (eval "$ac_compile") 2>conftest.er1
6018 grep -v '^ *+' conftest.er1 >conftest.err
6020 cat conftest.err >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } && {
6023 test -z "$ac_cxx_werror_flag" ||
6024 test ! -s conftest.err
6025 } && test -s conftest.$ac_objext; then
6026 ac_cv_prog_cxx_g=yes
6028 echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6041 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6043 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6044 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6045 if test "$ac_test_CXXFLAGS" = set; then
6046 CXXFLAGS=$ac_save_CXXFLAGS
6047 elif test $ac_cv_prog_cxx_g = yes; then
6048 if test "$GXX" = yes; then
6054 if test "$GXX" = yes; then
6061 ac_cpp='$CXXCPP $CPPFLAGS'
6062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6066 depcc="$CXX" am_compiler_list=
6068 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6069 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6070 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6074 # We make a subdir and do the tests there. Otherwise we can end up
6075 # making bogus files that we don't know about and never remove. For
6076 # instance it was reported that on HP-UX the gcc test will end up
6077 # making a dummy file named `D' -- because `-MD' means `put the output
6080 # Copy depcomp to subdir because otherwise we won't find it if we're
6081 # using a relative directory.
6082 cp "$am_depcomp" conftest.dir
6084 # We will build objects and dependencies in a subdirectory because
6085 # it helps to detect inapplicable dependency modes. For instance
6086 # both Tru64's cc and ICC support -MD to output dependencies as a
6087 # side effect of compilation, but ICC will put the dependencies in
6088 # the current directory while Tru64 will put them in the object
6092 am_cv_CXX_dependencies_compiler_type=none
6093 if test "$am_compiler_list" = ""; then
6094 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6096 for depmode in $am_compiler_list; do
6097 # Setup a source with many dependencies, because some compilers
6098 # like to wrap large dependency lists on column 80 (with \), and
6099 # we should not choose a depcomp mode which is confused by this.
6101 # We need to recreate these files for each test, as the compiler may
6102 # overwrite some of them when testing with obscure command lines.
6103 # This happens at least with the AIX C compiler.
6105 for i in 1 2 3 4 5 6; do
6106 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6107 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6108 # Solaris 8's {/usr,}/bin/sh.
6109 touch sub/conftst$i.h
6111 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6115 # after this tag, mechanisms are not by side-effect, so they'll
6116 # only be used when explicitly requested
6117 if test "x$enable_dependency_tracking" = xyes; then
6125 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6126 # mode. It turns out that the SunPro C++ compiler does not properly
6127 # handle `-M -o', and we need to detect this.
6128 if depmode=$depmode \
6129 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6130 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6131 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6132 >/dev/null 2>conftest.err &&
6133 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6134 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6135 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6136 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6137 # icc doesn't choke on unknown options, it will just issue warnings
6138 # or remarks (even with -Werror). So we grep stderr for any message
6139 # that says an option was ignored or not supported.
6140 # When given -MP, icc 7.0 and 7.1 complain thusly:
6141 # icc: Command line warning: ignoring option '-M'; no argument required
6142 # The diagnosis changed in icc 8.0:
6143 # icc: Command line remark: option '-MP' not supported
6144 if (grep 'ignoring option' conftest.err ||
6145 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6146 am_cv_CXX_dependencies_compiler_type=$depmode
6155 am_cv_CXX_dependencies_compiler_type=none
6159 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6160 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6161 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6164 test "x$enable_dependency_tracking" != xno \
6165 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6166 am__fastdepCXX_TRUE=
6167 am__fastdepCXX_FALSE='#'
6169 am__fastdepCXX_TRUE='#'
6170 am__fastdepCXX_FALSE=
6176 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6177 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6178 (test "X$CXX" != "Xg++"))) ; then
6180 ac_cpp='$CXXCPP $CPPFLAGS'
6181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6184 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6185 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6186 if test -z "$CXXCPP"; then
6187 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 # Double quotes because CXXCPP needs to be expanded
6191 for CXXCPP in "$CXX -E" "/lib/cpp"
6194 for ac_cxx_preproc_warn_flag in '' yes
6196 # Use a header file that comes with gcc, so configuring glibc
6197 # with a fresh cross-compiler works.
6198 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6199 # <limits.h> exists even on freestanding compilers.
6200 # On the NeXT, cc -E runs the code through the compiler's parser,
6201 # not just through cpp. "Syntax error" is here to catch this case.
6202 cat >conftest.$ac_ext <<_ACEOF
6205 cat confdefs.h >>conftest.$ac_ext
6206 cat >>conftest.$ac_ext <<_ACEOF
6207 /* end confdefs.h. */
6209 # include <limits.h>
6211 # include <assert.h>
6215 if { (ac_try="$ac_cpp conftest.$ac_ext"
6217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6218 *) ac_try_echo=$ac_try;;
6220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6223 grep -v '^ *+' conftest.er1 >conftest.err
6225 cat conftest.err >&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); } >/dev/null && {
6228 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6229 test ! -s conftest.err
6233 echo "$as_me: failed program was:" >&5
6234 sed 's/^/| /' conftest.$ac_ext >&5
6236 # Broken: fails on valid input.
6240 rm -f conftest.err conftest.$ac_ext
6242 # OK, works on sane cases. Now check whether nonexistent headers
6243 # can be detected and how.
6244 cat >conftest.$ac_ext <<_ACEOF
6247 cat confdefs.h >>conftest.$ac_ext
6248 cat >>conftest.$ac_ext <<_ACEOF
6249 /* end confdefs.h. */
6250 #include <ac_nonexistent.h>
6252 if { (ac_try="$ac_cpp conftest.$ac_ext"
6254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6255 *) ac_try_echo=$ac_try;;
6257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6260 grep -v '^ *+' conftest.er1 >conftest.err
6262 cat conftest.err >&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); } >/dev/null && {
6265 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6266 test ! -s conftest.err
6268 # Broken: success on invalid input.
6271 echo "$as_me: failed program was:" >&5
6272 sed 's/^/| /' conftest.$ac_ext >&5
6274 # Passes both tests.
6279 rm -f conftest.err conftest.$ac_ext
6282 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6283 rm -f conftest.err conftest.$ac_ext
6284 if $ac_preproc_ok; then
6289 ac_cv_prog_CXXCPP=$CXXCPP
6292 CXXCPP=$ac_cv_prog_CXXCPP
6294 ac_cv_prog_CXXCPP=$CXXCPP
6296 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6297 echo "${ECHO_T}$CXXCPP" >&6; }
6299 for ac_cxx_preproc_warn_flag in '' yes
6301 # Use a header file that comes with gcc, so configuring glibc
6302 # with a fresh cross-compiler works.
6303 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6304 # <limits.h> exists even on freestanding compilers.
6305 # On the NeXT, cc -E runs the code through the compiler's parser,
6306 # not just through cpp. "Syntax error" is here to catch this case.
6307 cat >conftest.$ac_ext <<_ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h. */
6314 # include <limits.h>
6316 # include <assert.h>
6320 if { (ac_try="$ac_cpp conftest.$ac_ext"
6322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6323 *) ac_try_echo=$ac_try;;
6325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6328 grep -v '^ *+' conftest.er1 >conftest.err
6330 cat conftest.err >&5
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); } >/dev/null && {
6333 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6334 test ! -s conftest.err
6338 echo "$as_me: failed program was:" >&5
6339 sed 's/^/| /' conftest.$ac_ext >&5
6341 # Broken: fails on valid input.
6345 rm -f conftest.err conftest.$ac_ext
6347 # OK, works on sane cases. Now check whether nonexistent headers
6348 # can be detected and how.
6349 cat >conftest.$ac_ext <<_ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h. */
6355 #include <ac_nonexistent.h>
6357 if { (ac_try="$ac_cpp conftest.$ac_ext"
6359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6360 *) ac_try_echo=$ac_try;;
6362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6365 grep -v '^ *+' conftest.er1 >conftest.err
6367 cat conftest.err >&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); } >/dev/null && {
6370 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6371 test ! -s conftest.err
6373 # Broken: success on invalid input.
6376 echo "$as_me: failed program was:" >&5
6377 sed 's/^/| /' conftest.$ac_ext >&5
6379 # Passes both tests.
6384 rm -f conftest.err conftest.$ac_ext
6387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6388 rm -f conftest.err conftest.$ac_ext
6389 if $ac_preproc_ok; then
6392 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6393 See \`config.log' for more details." >&5
6394 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6395 See \`config.log' for more details." >&2;}
6396 { (exit 1); exit 1; }; }
6400 ac_cpp='$CXXCPP $CPPFLAGS'
6401 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6402 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6403 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6411 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6413 # find the maximum length of command line arguments
6414 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6415 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6416 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6417 echo $ECHO_N "(cached) $ECHO_C" >&6
6424 # On DJGPP, this test can blow up pretty badly due to problems in libc
6425 # (any single argument exceeding 2000 bytes causes a buffer overrun
6426 # during glob expansion). Even if it were fixed, the result of this
6427 # check would be larger than it should be.
6428 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6432 # Under GNU Hurd, this test is not required because there is
6433 # no limit to the length of command line arguments.
6434 # Libtool will interpret -1 as no limit whatsoever
6435 lt_cv_sys_max_cmd_len=-1;
6439 # On Win9x/ME, this test blows up -- it succeeds, but takes
6440 # about 5 minutes as the teststring grows exponentially.
6441 # Worse, since 9x/ME are not pre-emptively multitasking,
6442 # you end up with a "frozen" computer, even though with patience
6443 # the test eventually succeeds (with a max line length of 256k).
6444 # Instead, let's just punt: use the minimum linelength reported by
6445 # all of the supported platforms: 8192 (on NT/2K/XP).
6446 lt_cv_sys_max_cmd_len=8192;
6450 # On AmigaOS with pdksh, this test takes hours, literally.
6451 # So we just punt and use a minimum line length of 8192.
6452 lt_cv_sys_max_cmd_len=8192;
6455 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6456 # This has been around since 386BSD, at least. Likely further.
6457 if test -x /sbin/sysctl; then
6458 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6459 elif test -x /usr/sbin/sysctl; then
6460 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6462 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6464 # And add a safety zone
6465 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6466 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6470 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6471 lt_cv_sys_max_cmd_len=196608
6475 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6476 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6477 # nice to cause kernel panics so lets avoid the loop below.
6478 # First set a reasonable default.
6479 lt_cv_sys_max_cmd_len=16384
6481 if test -x /sbin/sysconfig; then
6482 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6483 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6488 lt_cv_sys_max_cmd_len=102400
6490 sysv5* | sco5v6* | sysv4.2uw2*)
6491 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6492 if test -n "$kargmax"; then
6493 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6495 lt_cv_sys_max_cmd_len=32768
6499 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6500 if test -n "$lt_cv_sys_max_cmd_len"; then
6501 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6502 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6504 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6505 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6506 = "XX$teststring") >/dev/null 2>&1 &&
6507 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6508 lt_cv_sys_max_cmd_len=$new_result &&
6509 test $i != 17 # 1/2 MB should be enough
6512 teststring=$teststring$teststring
6515 # Add a significant safety factor because C++ compilers can tack on massive
6516 # amounts of additional arguments before passing them to the linker.
6517 # It appears as though 1/2 is a usable value.
6518 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6525 if test -n $lt_cv_sys_max_cmd_len ; then
6526 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6527 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6529 { echo "$as_me:$LINENO: result: none" >&5
6530 echo "${ECHO_T}none" >&6; }
6537 # Check for command to grab the raw symbol name followed by C symbol from nm.
6538 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6539 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6540 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6544 # These are sane defaults that work on at least a few old systems.
6545 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6547 # Character class describing NM global symbol codes.
6548 symcode='[BCDEGRST]'
6550 # Regexp to match symbols that can be accessed directly from C.
6551 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6553 # Transform an extracted symbol line into a proper C declaration
6554 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6556 # Transform an extracted symbol line into symbol name and symbol address
6557 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'"
6559 # Define system-specific variables.
6564 cygwin* | mingw* | pw32*)
6565 symcode='[ABCDGISTW]'
6567 hpux*) # Its linker distinguishes data from code symbols
6568 if test "$host_cpu" = ia64; then
6569 symcode='[ABCDEGRST]'
6571 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6572 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'"
6574 linux* | k*bsd*-gnu)
6575 if test "$host_cpu" = ia64; then
6576 symcode='[ABCDGIRSTW]'
6577 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6578 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'"
6582 symcode='[BCDEGRST]'
6585 symcode='[BCDEGQRST]'
6596 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6604 # Handle CRLF in mingw tool chain
6608 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6612 # If we're using GNU nm, then use its standard symbol codes.
6613 case `$NM -V 2>&1` in
6614 *GNU* | *'with BFD'*)
6615 symcode='[ABCDGIRSTW]' ;;
6618 # Try without a prefix undercore, then with it.
6619 for ac_symprfx in "" "_"; do
6621 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6622 symxfrm="\\1 $ac_symprfx\\2 \\2"
6624 # Write the raw and C identifiers.
6625 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6627 # Check to see that the pipe works correctly.
6631 cat > conftest.$ac_ext <<EOF
6636 void nm_test_func(){}
6640 int main(){nm_test_var='a';nm_test_func();return(0);}
6643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6644 (eval $ac_compile) 2>&5
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; then
6648 # Now try to grab the symbols.
6650 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6651 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } && test -s "$nlist"; then
6655 # Try sorting and uniquifying the output.
6656 if sort "$nlist" | uniq > "$nlist"T; then
6657 mv -f "$nlist"T "$nlist"
6662 # Make sure that we snagged all the symbols we need.
6663 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6664 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6665 cat <<EOF > conftest.$ac_ext
6671 # Now generate the symbol file.
6672 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6674 cat <<EOF >> conftest.$ac_ext
6675 #if defined (__STDC__) && __STDC__
6676 # define lt_ptr_t void *
6678 # define lt_ptr_t char *
6682 /* The mapping between symbol names and symbols. */
6687 lt_preloaded_symbols[] =
6690 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6691 cat <<\EOF >> conftest.$ac_ext
6699 # Now try linking the two files.
6700 mv conftest.$ac_objext conftstm.$ac_objext
6701 lt_save_LIBS="$LIBS"
6702 lt_save_CFLAGS="$CFLAGS"
6703 LIBS="conftstm.$ac_objext"
6704 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6706 (eval $ac_link) 2>&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6712 LIBS="$lt_save_LIBS"
6713 CFLAGS="$lt_save_CFLAGS"
6715 echo "cannot find nm_test_func in $nlist" >&5
6718 echo "cannot find nm_test_var in $nlist" >&5
6721 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6724 echo "$progname: failed program was:" >&5
6725 cat conftest.$ac_ext >&5
6727 rm -f conftest* conftst*
6729 # Do not use the global_symbol_pipe unless it works.
6730 if test "$pipe_works" = yes; then
6733 lt_cv_sys_global_symbol_pipe=
6739 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6740 lt_cv_sys_global_symbol_to_cdecl=
6742 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6743 { echo "$as_me:$LINENO: result: failed" >&5
6744 echo "${ECHO_T}failed" >&6; }
6746 { echo "$as_me:$LINENO: result: ok" >&5
6747 echo "${ECHO_T}ok" >&6; }
6750 { echo "$as_me:$LINENO: checking for objdir" >&5
6751 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6752 if test "${lt_cv_objdir+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6755 rm -f .libs 2>/dev/null
6756 mkdir .libs 2>/dev/null
6757 if test -d .libs; then
6760 # MS-DOS does not allow filenames that begin with a dot.
6763 rmdir .libs 2>/dev/null
6765 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6766 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6767 objdir=$lt_cv_objdir
6775 # AIX sometimes has problems with the GCC collect2 program. For some
6776 # reason, if we set the COLLECT_NAMES environment variable, the problems
6777 # vanish in a puff of smoke.
6778 if test "X${COLLECT_NAMES+set}" != Xset; then
6780 export COLLECT_NAMES
6785 # Sed substitution that helps us do robust quoting. It backslashifies
6786 # metacharacters that are still active within double-quoted strings.
6787 Xsed='sed -e 1s/^X//'
6788 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6790 # Same as above, but do not quote variable references.
6791 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6793 # Sed substitution to delay expansion of an escaped shell variable in a
6794 # double_quote_subst'ed string.
6795 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6797 # Sed substitution to avoid accidental globbing in evaled expressions
6798 no_glob_subst='s/\*/\\\*/g'
6804 default_ofile=libtool
6805 can_build_shared=yes
6807 # All known linkers require a `.a' archive for static linking (except MSVC,
6808 # which needs '.lib').
6810 ltmain="$ac_aux_dir/ltmain.sh"
6811 ofile="$default_ofile"
6812 with_gnu_ld="$lt_cv_prog_gnu_ld"
6814 if test -n "$ac_tool_prefix"; then
6815 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6816 set dummy ${ac_tool_prefix}ar; ac_word=$2
6817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6819 if test "${ac_cv_prog_AR+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6822 if test -n "$AR"; then
6823 ac_cv_prog_AR="$AR" # Let the user override the test.
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 test -z "$as_dir" && as_dir=.
6830 for ac_exec_ext in '' $ac_executable_extensions; do
6831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6832 ac_cv_prog_AR="${ac_tool_prefix}ar"
6833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6843 if test -n "$AR"; then
6844 { echo "$as_me:$LINENO: result: $AR" >&5
6845 echo "${ECHO_T}$AR" >&6; }
6847 { echo "$as_me:$LINENO: result: no" >&5
6848 echo "${ECHO_T}no" >&6; }
6853 if test -z "$ac_cv_prog_AR"; then
6855 # Extract the first word of "ar", so it can be a program name with args.
6856 set dummy ar; ac_word=$2
6857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6859 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6862 if test -n "$ac_ct_AR"; then
6863 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6872 ac_cv_prog_ac_ct_AR="ar"
6873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6883 if test -n "$ac_ct_AR"; then
6884 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6885 echo "${ECHO_T}$ac_ct_AR" >&6; }
6887 { echo "$as_me:$LINENO: result: no" >&5
6888 echo "${ECHO_T}no" >&6; }
6891 if test "x$ac_ct_AR" = x; then
6894 case $cross_compiling:$ac_tool_warned in
6896 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6897 whose name does not start with the host triplet. If you think this
6898 configuration is useful to you, please write to autoconf@gnu.org." >&5
6899 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6900 whose name does not start with the host triplet. If you think this
6901 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6902 ac_tool_warned=yes ;;
6910 if test -n "$ac_tool_prefix"; then
6911 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6912 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6915 if test "${ac_cv_prog_RANLIB+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6918 if test -n "$RANLIB"; then
6919 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925 test -z "$as_dir" && as_dir=.
6926 for ac_exec_ext in '' $ac_executable_extensions; do
6927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6928 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6938 RANLIB=$ac_cv_prog_RANLIB
6939 if test -n "$RANLIB"; then
6940 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6941 echo "${ECHO_T}$RANLIB" >&6; }
6943 { echo "$as_me:$LINENO: result: no" >&5
6944 echo "${ECHO_T}no" >&6; }
6949 if test -z "$ac_cv_prog_RANLIB"; then
6950 ac_ct_RANLIB=$RANLIB
6951 # Extract the first word of "ranlib", so it can be a program name with args.
6952 set dummy ranlib; ac_word=$2
6953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6955 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6956 echo $ECHO_N "(cached) $ECHO_C" >&6
6958 if test -n "$ac_ct_RANLIB"; then
6959 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6968 ac_cv_prog_ac_ct_RANLIB="ranlib"
6969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6978 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6979 if test -n "$ac_ct_RANLIB"; then
6980 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6981 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6983 { echo "$as_me:$LINENO: result: no" >&5
6984 echo "${ECHO_T}no" >&6; }
6987 if test "x$ac_ct_RANLIB" = x; then
6990 case $cross_compiling:$ac_tool_warned in
6992 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6993 whose name does not start with the host triplet. If you think this
6994 configuration is useful to you, please write to autoconf@gnu.org." >&5
6995 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6996 whose name does not start with the host triplet. If you think this
6997 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6998 ac_tool_warned=yes ;;
7000 RANLIB=$ac_ct_RANLIB
7003 RANLIB="$ac_cv_prog_RANLIB"
7006 if test -n "$ac_tool_prefix"; then
7007 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7008 set dummy ${ac_tool_prefix}strip; ac_word=$2
7009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7011 if test "${ac_cv_prog_STRIP+set}" = set; then
7012 echo $ECHO_N "(cached) $ECHO_C" >&6
7014 if test -n "$STRIP"; then
7015 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 test -z "$as_dir" && as_dir=.
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7024 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7034 STRIP=$ac_cv_prog_STRIP
7035 if test -n "$STRIP"; then
7036 { echo "$as_me:$LINENO: result: $STRIP" >&5
7037 echo "${ECHO_T}$STRIP" >&6; }
7039 { echo "$as_me:$LINENO: result: no" >&5
7040 echo "${ECHO_T}no" >&6; }
7045 if test -z "$ac_cv_prog_STRIP"; then
7047 # Extract the first word of "strip", so it can be a program name with args.
7048 set dummy strip; ac_word=$2
7049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7051 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7054 if test -n "$ac_ct_STRIP"; then
7055 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 test -z "$as_dir" && as_dir=.
7062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7064 ac_cv_prog_ac_ct_STRIP="strip"
7065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7074 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7075 if test -n "$ac_ct_STRIP"; then
7076 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7077 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7079 { echo "$as_me:$LINENO: result: no" >&5
7080 echo "${ECHO_T}no" >&6; }
7083 if test "x$ac_ct_STRIP" = x; then
7086 case $cross_compiling:$ac_tool_warned in
7088 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7089 whose name does not start with the host triplet. If you think this
7090 configuration is useful to you, please write to autoconf@gnu.org." >&5
7091 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7092 whose name does not start with the host triplet. If you think this
7093 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7094 ac_tool_warned=yes ;;
7099 STRIP="$ac_cv_prog_STRIP"
7104 old_CFLAGS="$CFLAGS"
7106 # Set sane defaults for various variables
7107 test -z "$AR" && AR=ar
7108 test -z "$AR_FLAGS" && AR_FLAGS=cru
7109 test -z "$AS" && AS=as
7110 test -z "$CC" && CC=cc
7111 test -z "$LTCC" && LTCC=$CC
7112 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7113 test -z "$DLLTOOL" && DLLTOOL=dlltool
7114 test -z "$LD" && LD=ld
7115 test -z "$LN_S" && LN_S="ln -s"
7116 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7117 test -z "$NM" && NM=nm
7118 test -z "$SED" && SED=sed
7119 test -z "$OBJDUMP" && OBJDUMP=objdump
7120 test -z "$RANLIB" && RANLIB=:
7121 test -z "$STRIP" && STRIP=:
7122 test -z "$ac_objext" && ac_objext=o
7124 # Determine commands to create old-style static archives.
7125 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7126 old_postinstall_cmds='chmod 644 $oldlib'
7127 old_postuninstall_cmds=
7129 if test -n "$RANLIB"; then
7132 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7135 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7138 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7141 for cc_temp in $compiler""; do
7143 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7144 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7149 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7152 # Only perform the check for file, if the check method requires it
7153 case $deplibs_check_method in
7155 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7156 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7157 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7158 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7159 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7166 lt_save_MAGIC_CMD="$MAGIC_CMD"
7167 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7168 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7169 for ac_dir in $ac_dummy; do
7171 test -z "$ac_dir" && ac_dir=.
7172 if test -f $ac_dir/${ac_tool_prefix}file; then
7173 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7174 if test -n "$file_magic_test_file"; then
7175 case $deplibs_check_method in
7177 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7178 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7179 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7180 $EGREP "$file_magic_regex" > /dev/null; then
7185 *** Warning: the command libtool uses to detect shared libraries,
7186 *** $file_magic_cmd, produces output that libtool cannot recognize.
7187 *** The result is that libtool may fail to recognize shared libraries
7188 *** as such. This will affect the creation of libtool libraries that
7189 *** depend on shared libraries, but programs linked with such libtool
7190 *** libraries will work regardless of this problem. Nevertheless, you
7191 *** may want to report the problem to your system manager and/or to
7192 *** bug-libtool@gnu.org
7202 MAGIC_CMD="$lt_save_MAGIC_CMD"
7207 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7208 if test -n "$MAGIC_CMD"; then
7209 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7210 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7212 { echo "$as_me:$LINENO: result: no" >&5
7213 echo "${ECHO_T}no" >&6; }
7216 if test -z "$lt_cv_path_MAGIC_CMD"; then
7217 if test -n "$ac_tool_prefix"; then
7218 { echo "$as_me:$LINENO: checking for file" >&5
7219 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7220 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7228 lt_save_MAGIC_CMD="$MAGIC_CMD"
7229 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7230 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7231 for ac_dir in $ac_dummy; do
7233 test -z "$ac_dir" && ac_dir=.
7234 if test -f $ac_dir/file; then
7235 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7236 if test -n "$file_magic_test_file"; then
7237 case $deplibs_check_method in
7239 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7240 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7241 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7242 $EGREP "$file_magic_regex" > /dev/null; then
7247 *** Warning: the command libtool uses to detect shared libraries,
7248 *** $file_magic_cmd, produces output that libtool cannot recognize.
7249 *** The result is that libtool may fail to recognize shared libraries
7250 *** as such. This will affect the creation of libtool libraries that
7251 *** depend on shared libraries, but programs linked with such libtool
7252 *** libraries will work regardless of this problem. Nevertheless, you
7253 *** may want to report the problem to your system manager and/or to
7254 *** bug-libtool@gnu.org
7264 MAGIC_CMD="$lt_save_MAGIC_CMD"
7269 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7270 if test -n "$MAGIC_CMD"; then
7271 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7272 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7274 { echo "$as_me:$LINENO: result: no" >&5
7275 echo "${ECHO_T}no" >&6; }
7288 enable_win32_dll=yes
7290 # Check whether --enable-libtool-lock was given.
7291 if test "${enable_libtool_lock+set}" = set; then
7292 enableval=$enable_libtool_lock;
7295 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7298 # Check whether --with-pic was given.
7299 if test "${with_pic+set}" = set; then
7300 withval=$with_pic; pic_mode="$withval"
7305 test -z "$pic_mode" && pic_mode=default
7307 # Check if we have a version mismatch between libtool.m4 and ltmain.sh.
7309 # Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
7310 # We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
7311 # calls AC_LIBTOOL_CONFIG and creates libtool.
7313 { echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
7314 echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6; }
7315 if test "x$ltmain" = "x" ; then
7316 { echo "$as_me:$LINENO: result: no" >&5
7317 echo "${ECHO_T}no" >&6; }
7318 { { echo "$as_me:$LINENO: error:
7320 *** [Gentoo] sanity check failed! ***
7321 *** \$ltmain is not defined, please check the patch for consistency! ***
7323 echo "$as_me: error:
7325 *** [Gentoo] sanity check failed! ***
7326 *** \$ltmain is not defined, please check the patch for consistency! ***
7328 { (exit 1); exit 1; }; }
7330 gentoo_lt_version="1.5.24"
7331 gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"`
7332 if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
7333 { echo "$as_me:$LINENO: result: no" >&5
7334 echo "${ECHO_T}no" >&6; }
7335 { { echo "$as_me:$LINENO: error:
7337 *** [Gentoo] sanity check failed! ***
7338 *** libtool.m4 and ltmain.sh have a version mismatch! ***
7339 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
7343 libtoolize --copy --force
7345 if appropriate, please contact the maintainer of this
7346 package (or your distribution) for help.
7348 echo "$as_me: error:
7350 *** [Gentoo] sanity check failed! ***
7351 *** libtool.m4 and ltmain.sh have a version mismatch! ***
7352 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
7356 libtoolize --copy --force
7358 if appropriate, please contact the maintainer of this
7359 package (or your distribution) for help.
7361 { (exit 1); exit 1; }; }
7363 { echo "$as_me:$LINENO: result: yes" >&5
7364 echo "${ECHO_T}yes" >&6; }
7368 # Use C for the default configuration in the libtool script
7372 ac_cpp='$CPP $CPPFLAGS'
7373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7378 # Source file extension for C test sources.
7381 # Object file extension for compiled C test sources.
7385 # Code to be used in simple compile tests
7386 lt_simple_compile_test_code="int some_variable = 0;"
7388 # Code to be used in simple link tests
7389 lt_simple_link_test_code='int main(){return(0);}'
7392 # If no C compiler was specified, use CC.
7395 # If no C compiler flags were specified, use CFLAGS.
7396 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7398 # Allow CC to be a program name with arguments.
7402 # save warnings/boilerplate of simple test code
7403 ac_outfile=conftest.$ac_objext
7404 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7405 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7406 _lt_compiler_boilerplate=`cat conftest.err`
7409 ac_outfile=conftest.$ac_objext
7410 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7411 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7412 _lt_linker_boilerplate=`cat conftest.err`
7417 lt_prog_compiler_no_builtin_flag=
7419 if test "$GCC" = yes; then
7420 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7423 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7424 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7425 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
7428 lt_cv_prog_compiler_rtti_exceptions=no
7429 ac_outfile=conftest.$ac_objext
7430 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7431 lt_compiler_flag="-fno-rtti -fno-exceptions"
7432 # Insert the option either (1) after the last *FLAGS variable, or
7433 # (2) before a word containing "conftest.", or (3) at the end.
7434 # Note that $ac_compile itself does not contain backslashes and begins
7435 # with a dollar sign (not a hyphen), so the echo should work correctly.
7436 # The option is referenced via a variable to avoid confusing sed.
7437 lt_compile=`echo "$ac_compile" | $SED \
7438 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7439 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7440 -e 's:$: $lt_compiler_flag:'`
7441 (eval echo "\"\$as_me:7441: $lt_compile\"" >&5)
7442 (eval "$lt_compile" 2>conftest.err)
7444 cat conftest.err >&5
7445 echo "$as_me:7445: \$? = $ac_status" >&5
7446 if (exit $ac_status) && test -s "$ac_outfile"; then
7447 # The compiler can only warn and ignore the option if not recognized
7448 # So say no if there are warnings other than the usual output.
7449 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7450 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7451 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7452 lt_cv_prog_compiler_rtti_exceptions=yes
7458 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7459 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7461 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7462 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7469 lt_prog_compiler_wl=
7470 lt_prog_compiler_pic=
7471 lt_prog_compiler_static=
7473 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7474 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7476 if test "$GCC" = yes; then
7477 lt_prog_compiler_wl='-Wl,'
7478 lt_prog_compiler_static='-static'
7482 # All AIX code is PIC.
7483 if test "$host_cpu" = ia64; then
7484 # AIX 5 now supports IA64 processor
7485 lt_prog_compiler_static='-Bstatic'
7490 # FIXME: we need at least 68020 code to build shared libraries, but
7491 # adding the `-m68020' flag to GCC prevents building anything better,
7493 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7496 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7497 # PIC is the default for these OSes.
7500 mingw* | cygwin* | pw32* | os2*)
7501 # This hack is so that the source file can tell whether it is being
7502 # built for inclusion in a dll (and should export symbols for example).
7503 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7504 # (--disable-auto-import) libraries
7505 lt_prog_compiler_pic='-DDLL_EXPORT'
7508 darwin* | rhapsody*)
7509 # PIC is the default on this platform
7510 # Common symbols not allowed in MH_DYLIB files
7511 lt_prog_compiler_pic='-fno-common'
7515 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7516 # Instead, we relocate shared libraries at runtime.
7520 # Just because we use GCC doesn't mean we suddenly get shared libraries
7521 # on systems that don't support them.
7522 lt_prog_compiler_can_build_shared=no
7527 if test -d /usr/nec; then
7528 lt_prog_compiler_pic=-Kconform_pic
7533 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7540 lt_prog_compiler_pic='-fPIC'
7546 lt_prog_compiler_pic='-fPIC'
7550 # PORTME Check for flag to pass linker flags through the system compiler.
7553 lt_prog_compiler_wl='-Wl,'
7554 if test "$host_cpu" = ia64; then
7555 # AIX 5 now supports IA64 processor
7556 lt_prog_compiler_static='-Bstatic'
7558 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7562 # PIC is the default on this platform
7563 # Common symbols not allowed in MH_DYLIB files
7564 case $cc_basename in
7566 lt_prog_compiler_pic='-qnocommon'
7567 lt_prog_compiler_wl='-Wl,'
7572 mingw* | cygwin* | pw32* | os2*)
7573 # This hack is so that the source file can tell whether it is being
7574 # built for inclusion in a dll (and should export symbols for example).
7575 lt_prog_compiler_pic='-DDLL_EXPORT'
7578 hpux9* | hpux10* | hpux11*)
7579 lt_prog_compiler_wl='-Wl,'
7580 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7587 lt_prog_compiler_pic='+Z'
7590 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7591 lt_prog_compiler_static='${wl}-a ${wl}archive'
7594 irix5* | irix6* | nonstopux*)
7595 lt_prog_compiler_wl='-Wl,'
7596 # PIC (with -KPIC) is the default.
7597 lt_prog_compiler_static='-non_shared'
7601 lt_prog_compiler_pic='-KPIC'
7602 lt_prog_compiler_static='-Bstatic'
7605 linux* | k*bsd*-gnu)
7606 case $cc_basename in
7608 lt_prog_compiler_wl='-Wl,'
7609 lt_prog_compiler_pic='-KPIC'
7610 lt_prog_compiler_static='-static'
7612 pgcc* | pgf77* | pgf90* | pgf95*)
7613 # Portland Group compilers (*not* the Pentium gcc compiler,
7614 # which looks to be a dead project)
7615 lt_prog_compiler_wl='-Wl,'
7616 lt_prog_compiler_pic='-fpic'
7617 lt_prog_compiler_static='-Bstatic'
7620 lt_prog_compiler_wl='-Wl,'
7621 # All Alpha code is PIC.
7622 lt_prog_compiler_static='-non_shared'
7625 case `$CC -V 2>&1 | sed 5q` in
7628 lt_prog_compiler_pic='-KPIC'
7629 lt_prog_compiler_static='-Bstatic'
7630 lt_prog_compiler_wl='-Wl,'
7633 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7634 lt_prog_compiler_pic='-KPIC'
7635 lt_prog_compiler_static='-Bstatic'
7636 lt_prog_compiler_wl=''
7643 osf3* | osf4* | osf5*)
7644 lt_prog_compiler_wl='-Wl,'
7645 # All OSF/1 code is PIC.
7646 lt_prog_compiler_static='-non_shared'
7650 lt_prog_compiler_static='-non_shared'
7654 lt_prog_compiler_pic='-KPIC'
7655 lt_prog_compiler_static='-Bstatic'
7656 case $cc_basename in
7658 lt_prog_compiler_wl='-Qoption ld ';;
7660 lt_prog_compiler_wl='-Wl,';;
7665 lt_prog_compiler_wl='-Qoption ld '
7666 lt_prog_compiler_pic='-PIC'
7667 lt_prog_compiler_static='-Bstatic'
7670 sysv4 | sysv4.2uw2* | sysv4.3*)
7671 lt_prog_compiler_wl='-Wl,'
7672 lt_prog_compiler_pic='-KPIC'
7673 lt_prog_compiler_static='-Bstatic'
7677 if test -d /usr/nec ;then
7678 lt_prog_compiler_pic='-Kconform_pic'
7679 lt_prog_compiler_static='-Bstatic'
7683 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7684 lt_prog_compiler_wl='-Wl,'
7685 lt_prog_compiler_pic='-KPIC'
7686 lt_prog_compiler_static='-Bstatic'
7690 lt_prog_compiler_wl='-Wl,'
7691 lt_prog_compiler_can_build_shared=no
7695 lt_prog_compiler_pic='-pic'
7696 lt_prog_compiler_static='-Bstatic'
7700 lt_prog_compiler_can_build_shared=no
7705 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7706 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7709 # Check to make sure the PIC flag actually works.
7711 if test -n "$lt_prog_compiler_pic"; then
7713 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7714 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7715 if test "${lt_prog_compiler_pic_works+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7718 lt_prog_compiler_pic_works=no
7719 ac_outfile=conftest.$ac_objext
7720 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7721 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7722 # Insert the option either (1) after the last *FLAGS variable, or
7723 # (2) before a word containing "conftest.", or (3) at the end.
7724 # Note that $ac_compile itself does not contain backslashes and begins
7725 # with a dollar sign (not a hyphen), so the echo should work correctly.
7726 # The option is referenced via a variable to avoid confusing sed.
7727 lt_compile=`echo "$ac_compile" | $SED \
7728 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7730 -e 's:$: $lt_compiler_flag:'`
7731 (eval echo "\"\$as_me:7731: $lt_compile\"" >&5)
7732 (eval "$lt_compile" 2>conftest.err)
7734 cat conftest.err >&5
7735 echo "$as_me:7735: \$? = $ac_status" >&5
7736 if (exit $ac_status) && test -s "$ac_outfile"; then
7737 # The compiler can only warn and ignore the option if not recognized
7738 # So say no if there are warnings other than the usual output.
7739 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7740 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7741 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7742 lt_prog_compiler_pic_works=yes
7748 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7749 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7751 if test x"$lt_prog_compiler_pic_works" = xyes; then
7752 case $lt_prog_compiler_pic in
7754 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7757 lt_prog_compiler_pic=
7758 lt_prog_compiler_can_build_shared=no
7763 # For platforms which do not support PIC, -DPIC is meaningless:
7765 lt_prog_compiler_pic=
7768 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7773 # Check to make sure the static flag actually works.
7775 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7776 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7777 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7778 if test "${lt_prog_compiler_static_works+set}" = set; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
7781 lt_prog_compiler_static_works=no
7782 save_LDFLAGS="$LDFLAGS"
7783 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7784 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7785 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7786 # The linker can only warn and ignore the option if not recognized
7787 # So say no if there are warnings
7788 if test -s conftest.err; then
7789 # Append any errors to the config.log.
7790 cat conftest.err 1>&5
7791 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7792 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7793 if diff conftest.exp conftest.er2 >/dev/null; then
7794 lt_prog_compiler_static_works=yes
7797 lt_prog_compiler_static_works=yes
7801 LDFLAGS="$save_LDFLAGS"
7804 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7805 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7807 if test x"$lt_prog_compiler_static_works" = xyes; then
7810 lt_prog_compiler_static=
7814 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7815 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7816 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7817 echo $ECHO_N "(cached) $ECHO_C" >&6
7819 lt_cv_prog_compiler_c_o=no
7820 $rm -r conftest 2>/dev/null
7824 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7826 lt_compiler_flag="-o out/conftest2.$ac_objext"
7827 # Insert the option either (1) after the last *FLAGS variable, or
7828 # (2) before a word containing "conftest.", or (3) at the end.
7829 # Note that $ac_compile itself does not contain backslashes and begins
7830 # with a dollar sign (not a hyphen), so the echo should work correctly.
7831 lt_compile=`echo "$ac_compile" | $SED \
7832 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7833 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7834 -e 's:$: $lt_compiler_flag:'`
7835 (eval echo "\"\$as_me:7835: $lt_compile\"" >&5)
7836 (eval "$lt_compile" 2>out/conftest.err)
7838 cat out/conftest.err >&5
7839 echo "$as_me:7839: \$? = $ac_status" >&5
7840 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7842 # The compiler can only warn and ignore the option if not recognized
7843 # So say no if there are warnings
7844 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7845 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7846 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7847 lt_cv_prog_compiler_c_o=yes
7852 # SGI C++ compiler will create directory out/ii_files/ for
7853 # template instantiation
7854 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7855 $rm out/* && rmdir out
7861 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7862 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7865 hard_links="nottested"
7866 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7867 # do not overwrite the value of need_locks provided by the user
7868 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7869 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7872 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7874 ln conftest.a conftest.b 2>&5 || hard_links=no
7875 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7876 { echo "$as_me:$LINENO: result: $hard_links" >&5
7877 echo "${ECHO_T}$hard_links" >&6; }
7878 if test "$hard_links" = no; then
7879 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7880 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7887 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7888 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7891 allow_undefined_flag=
7892 enable_shared_with_static_runtimes=no
7894 archive_expsym_cmds=
7895 old_archive_From_new_cmds=
7896 old_archive_from_expsyms_cmds=
7897 export_dynamic_flag_spec=
7898 whole_archive_flag_spec=
7899 thread_safe_flag_spec=
7900 hardcode_libdir_flag_spec=
7901 hardcode_libdir_flag_spec_ld=
7902 hardcode_libdir_separator=
7905 hardcode_shlibpath_var=unsupported
7906 link_all_deplibs=unknown
7907 hardcode_automatic=no
7910 always_export_symbols=no
7911 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7912 # include_expsyms should be a list of space-separated symbols to be *always*
7913 # included in the symbol list
7915 # exclude_expsyms can be an extended regexp of symbols to exclude
7916 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7917 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7918 # as well as any symbol that contains `d'.
7919 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7920 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7921 # platforms (ab)use it in PIC code, but their linkers get confused if
7922 # the symbol is explicitly referenced. Since portable code cannot
7923 # rely on this symbol name, it's probably fine to never include it in
7924 # preloaded symbol tables.
7925 extract_expsyms_cmds=
7926 # Just being paranoid about ensuring that cc_basename is set.
7927 for cc_temp in $compiler""; do
7929 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7930 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7935 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7938 cygwin* | mingw* | pw32*)
7939 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7940 # When not using gcc, we currently assume that we are using
7941 # Microsoft Visual C++.
7942 if test "$GCC" != yes; then
7947 # we just hope/assume this is gcc and not c89 (= MSVC++)
7956 if test "$with_gnu_ld" = yes; then
7957 # If archive_cmds runs LD, not CC, wlarc should be empty
7960 # Set some defaults for GNU ld with shared library support. These
7961 # are reset later if shared libraries are not supported. Putting them
7962 # here allows them to be overridden if necessary.
7963 runpath_var=LD_RUN_PATH
7964 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7965 export_dynamic_flag_spec='${wl}--export-dynamic'
7966 # ancient GNU ld didn't support --whole-archive et. al.
7967 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7968 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7970 whole_archive_flag_spec=
7972 supports_anon_versioning=no
7973 case `$LD -v 2>/dev/null` in
7974 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7975 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7976 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7977 *\ 2.11.*) ;; # other 2.11 versions
7978 *) supports_anon_versioning=yes ;;
7981 # See if GNU ld supports shared libraries.
7983 aix3* | aix4* | aix5*)
7984 # On AIX/PPC, the GNU linker is very broken
7985 if test "$host_cpu" != ia64; then
7989 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7990 *** to be unable to reliably create shared libraries on AIX.
7991 *** Therefore, libtool is disabling shared libraries support. If you
7992 *** really care for shared libraries, you may want to modify your PATH
7993 *** so that a non-GNU linker is found, and then restart.
8000 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)'
8001 hardcode_libdir_flag_spec='-L$libdir'
8002 hardcode_minus_L=yes
8004 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8005 # that the semantics of dynamic libraries on AmigaOS, at least up
8006 # to version 4, is to share data among multiple programs linked
8007 # with the same dynamic library. Since this doesn't match the
8008 # behavior of shared libraries on other platforms, we can't use
8014 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8015 allow_undefined_flag=unsupported
8016 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8017 # support --undefined. This deserves some investigation. FIXME
8018 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8024 cygwin* | mingw* | pw32*)
8025 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8026 # as there is no search path for DLLs.
8027 hardcode_libdir_flag_spec='-L$libdir'
8028 allow_undefined_flag=unsupported
8029 always_export_symbols=no
8030 enable_shared_with_static_runtimes=yes
8031 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8033 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8034 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8035 # If the export-symbols file already is a .def file (1st line
8036 # is EXPORTS), use it as is; otherwise, prepend...
8037 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8038 cp $export_symbols $output_objdir/$soname.def;
8040 echo EXPORTS > $output_objdir/$soname.def;
8041 cat $export_symbols >> $output_objdir/$soname.def;
8043 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8051 hardcode_shlibpath_var=no
8052 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8053 export_dynamic_flag_spec='${wl}-E'
8054 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8055 # Instead, shared libraries are loaded at an image base (0x10000000 by
8056 # default) and relocated if they conflict, which is a slow very memory
8057 # consuming and fragmenting process. To avoid this, we pick a random,
8058 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8059 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8060 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8061 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'
8064 gnu* | linux* | k*bsd*-gnu)
8065 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8067 case $cc_basename,$host_cpu in
8068 pgcc*) # Portland Group C compiler
8069 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'
8070 tmp_addflag=' $pic_flag'
8072 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8073 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'
8074 tmp_addflag=' $pic_flag -Mnomain' ;;
8075 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8076 tmp_addflag=' -i_dynamic' ;;
8077 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8078 tmp_addflag=' -i_dynamic -nofor_main' ;;
8079 ifc* | ifort*) # Intel Fortran compiler
8080 tmp_addflag=' -nofor_main' ;;
8082 case `$CC -V 2>&1 | sed 5q` in
8083 *Sun\ C*) # Sun C 5.9
8084 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8085 tmp_sharedflag='-G' ;;
8086 *Sun\ F*) # Sun Fortran 8.3
8087 tmp_sharedflag='-G' ;;
8089 tmp_sharedflag='-shared' ;;
8091 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8093 if test $supports_anon_versioning = yes; then
8094 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8095 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8096 $echo "local: *; };" >> $output_objdir/$libname.ver~
8097 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8105 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8106 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8110 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8115 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8119 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8120 *** create shared libraries on Solaris systems. Therefore, libtool
8121 *** is disabling shared libraries support. We urge you to upgrade GNU
8122 *** binutils to release 2.9.1 or newer. Another option is to modify
8123 *** your PATH or compiler configuration so that the native linker is
8124 *** used, and then restart.
8127 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8128 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8129 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8135 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8136 case `$LD -v 2>&1` in
8137 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8141 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8142 *** reliably create shared libraries on SCO systems. Therefore, libtool
8143 *** is disabling shared libraries support. We urge you to upgrade GNU
8144 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8145 *** your PATH or compiler configuration so that the native linker is
8146 *** used, and then restart.
8151 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8152 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8153 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8154 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8163 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8166 hardcode_shlibpath_var=no
8170 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8171 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8172 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8179 if test "$ld_shlibs" = no; then
8181 hardcode_libdir_flag_spec=
8182 export_dynamic_flag_spec=
8183 whole_archive_flag_spec=
8186 # PORTME fill in a description of your system's linker (not GNU ld)
8189 allow_undefined_flag=unsupported
8190 always_export_symbols=yes
8191 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'
8192 # Note: this linker hardcodes the directories in LIBPATH if there
8193 # are no directories specified by -L.
8194 hardcode_minus_L=yes
8195 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8196 # Neither direct hardcoding nor static linking is supported with a
8198 hardcode_direct=unsupported
8203 if test "$host_cpu" = ia64; then
8204 # On IA64, the linker does run time linking by default, so we don't
8205 # have to do anything special.
8206 aix_use_runtimelinking=no
8207 exp_sym_flag='-Bexport'
8210 # If we're using GNU nm, then we don't want the "-C" option.
8211 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8212 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8213 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'
8215 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'
8217 aix_use_runtimelinking=no
8219 # Test if we are trying to use run time linking or normal
8220 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8221 # need to do runtime linking.
8222 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8223 for ld_flag in $LDFLAGS; do
8224 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8225 aix_use_runtimelinking=yes
8232 exp_sym_flag='-bexport'
8233 no_entry_flag='-bnoentry'
8236 # When large executables or shared objects are built, AIX ld can
8237 # have problems creating the table of contents. If linking a library
8238 # or program results in "error TOC overflow" add -mminimal-toc to
8239 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8240 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8244 hardcode_libdir_separator=':'
8245 link_all_deplibs=yes
8247 if test "$GCC" = yes; then
8248 case $host_os in aix4.[012]|aix4.[012].*)
8249 # We only want to do this on AIX 4.2 and lower, the check
8250 # below for broken collect2 doesn't work under 4.3+
8251 collect2name=`${CC} -print-prog-name=collect2`
8252 if test -f "$collect2name" && \
8253 strings "$collect2name" | grep resolve_lib_name >/dev/null
8255 # We have reworked collect2
8258 # We have old collect2
8259 hardcode_direct=unsupported
8260 # It fails to find uninstalled libraries when the uninstalled
8261 # path is not listed in the libpath. Setting hardcode_minus_L
8262 # to unsupported forces relinking
8263 hardcode_minus_L=yes
8264 hardcode_libdir_flag_spec='-L$libdir'
8265 hardcode_libdir_separator=
8269 shared_flag='-shared'
8270 if test "$aix_use_runtimelinking" = yes; then
8271 shared_flag="$shared_flag "'${wl}-G'
8275 if test "$host_cpu" = ia64; then
8276 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8277 # chokes on -Wl,-G. The following line is correct:
8280 if test "$aix_use_runtimelinking" = yes; then
8281 shared_flag='${wl}-G'
8283 shared_flag='${wl}-bM:SRE'
8288 # It seems that -bexpall does not export symbols beginning with
8289 # underscore (_), so it is better to generate a list of symbols to export.
8290 always_export_symbols=yes
8291 if test "$aix_use_runtimelinking" = yes; then
8292 # Warning - without using the other runtime loading flags (-brtl),
8293 # -berok will link without error, but may produce a broken library.
8294 allow_undefined_flag='-berok'
8295 # Determine the default libpath from the value encoded in an empty executable.
8296 cat >conftest.$ac_ext <<_ACEOF
8299 cat confdefs.h >>conftest.$ac_ext
8300 cat >>conftest.$ac_ext <<_ACEOF
8301 /* end confdefs.h. */
8311 rm -f conftest.$ac_objext conftest$ac_exeext
8312 if { (ac_try="$ac_link"
8314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315 *) ac_try_echo=$ac_try;;
8317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318 (eval "$ac_link") 2>conftest.er1
8320 grep -v '^ *+' conftest.er1 >conftest.err
8322 cat conftest.err >&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } && {
8325 test -z "$ac_c_werror_flag" ||
8326 test ! -s conftest.err
8327 } && test -s conftest$ac_exeext &&
8328 $as_test_x conftest$ac_exeext; then
8330 lt_aix_libpath_sed='
8331 /Import File Strings/,/^$/ {
8337 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8338 # Check for a 64-bit object if we didn't find anything.
8339 if test -z "$aix_libpath"; then
8340 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8343 echo "$as_me: failed program was:" >&5
8344 sed 's/^/| /' conftest.$ac_ext >&5
8349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8350 conftest$ac_exeext conftest.$ac_ext
8351 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8353 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8354 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"
8356 if test "$host_cpu" = ia64; then
8357 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8358 allow_undefined_flag="-z nodefs"
8359 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"
8361 # Determine the default libpath from the value encoded in an empty executable.
8362 cat >conftest.$ac_ext <<_ACEOF
8365 cat confdefs.h >>conftest.$ac_ext
8366 cat >>conftest.$ac_ext <<_ACEOF
8367 /* end confdefs.h. */
8377 rm -f conftest.$ac_objext conftest$ac_exeext
8378 if { (ac_try="$ac_link"
8380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8381 *) ac_try_echo=$ac_try;;
8383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8384 (eval "$ac_link") 2>conftest.er1
8386 grep -v '^ *+' conftest.er1 >conftest.err
8388 cat conftest.err >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } && {
8391 test -z "$ac_c_werror_flag" ||
8392 test ! -s conftest.err
8393 } && test -s conftest$ac_exeext &&
8394 $as_test_x conftest$ac_exeext; then
8396 lt_aix_libpath_sed='
8397 /Import File Strings/,/^$/ {
8403 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8404 # Check for a 64-bit object if we didn't find anything.
8405 if test -z "$aix_libpath"; then
8406 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8409 echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8416 conftest$ac_exeext conftest.$ac_ext
8417 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8419 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8420 # Warning - without using the other run time loading flags,
8421 # -berok will link without error, but may produce a broken library.
8422 no_undefined_flag=' ${wl}-bernotok'
8423 allow_undefined_flag=' ${wl}-berok'
8424 # Exported symbols can be pulled into shared objects from archives
8425 whole_archive_flag_spec='$convenience'
8426 archive_cmds_need_lc=yes
8427 # This is similar to how AIX traditionally builds its shared libraries.
8428 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'
8434 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)'
8435 hardcode_libdir_flag_spec='-L$libdir'
8436 hardcode_minus_L=yes
8437 # see comment about different semantics on the GNU ld section
8442 export_dynamic_flag_spec=-rdynamic
8445 cygwin* | mingw* | pw32*)
8446 # When not using gcc, we currently assume that we are using
8447 # Microsoft Visual C++.
8448 # hardcode_libdir_flag_spec is actually meaningless, as there is
8449 # no search path for DLLs.
8450 hardcode_libdir_flag_spec=' '
8451 allow_undefined_flag=unsupported
8452 # Tell ltmain to make .lib files, not .a files.
8454 # Tell ltmain to make .dll files, not .so files.
8456 # FIXME: Setting linknames here is a bad hack.
8457 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8458 # The linker will automatically build a .lib file if we build a DLL.
8459 old_archive_From_new_cmds='true'
8460 # FIXME: Should let the user specify the lib program.
8461 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8462 fix_srcfile_path='`cygpath -w "$srcfile"`'
8463 enable_shared_with_static_runtimes=yes
8466 darwin* | rhapsody*)
8468 rhapsody* | darwin1.[012])
8469 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8472 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8473 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8475 case ${MACOSX_DEPLOYMENT_TARGET} in
8477 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8480 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8486 archive_cmds_need_lc=no
8488 hardcode_automatic=yes
8489 hardcode_shlibpath_var=unsupported
8490 whole_archive_flag_spec=''
8491 link_all_deplibs=yes
8492 if test "$GCC" = yes ; then
8493 output_verbose_link_cmd='echo'
8494 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8495 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8496 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8497 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}'
8498 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}'
8500 case $cc_basename in
8502 output_verbose_link_cmd='echo'
8503 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8504 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8505 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8506 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8507 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}'
8517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8518 hardcode_libdir_flag_spec='-L$libdir'
8519 hardcode_shlibpath_var=no
8526 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8527 # support. Future versions do this automatically, but an explicit c++rt0.o
8528 # does not break anything, and helps significantly (at the cost of a little
8531 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8532 hardcode_libdir_flag_spec='-R$libdir'
8534 hardcode_shlibpath_var=no
8537 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8539 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8541 hardcode_minus_L=yes
8542 hardcode_shlibpath_var=no
8545 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8546 freebsd* | dragonfly*)
8547 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8548 hardcode_libdir_flag_spec='-R$libdir'
8550 hardcode_shlibpath_var=no
8554 if test "$GCC" = yes; then
8555 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'
8557 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'
8559 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8560 hardcode_libdir_separator=:
8563 # hardcode_minus_L: Not really in the search PATH,
8564 # but as the default location of the library.
8565 hardcode_minus_L=yes
8566 export_dynamic_flag_spec='${wl}-E'
8570 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8571 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8573 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8575 if test "$with_gnu_ld" = no; then
8576 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8577 hardcode_libdir_separator=:
8580 export_dynamic_flag_spec='${wl}-E'
8582 # hardcode_minus_L: Not really in the search PATH,
8583 # but as the default location of the library.
8584 hardcode_minus_L=yes
8589 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8592 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8595 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8598 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8604 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8607 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8610 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8614 if test "$with_gnu_ld" = no; then
8615 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8616 hardcode_libdir_separator=:
8620 hardcode_libdir_flag_spec_ld='+b $libdir'
8622 hardcode_shlibpath_var=no
8626 export_dynamic_flag_spec='${wl}-E'
8628 # hardcode_minus_L: Not really in the search PATH,
8629 # but as the default location of the library.
8630 hardcode_minus_L=yes
8636 irix5* | irix6* | nonstopux*)
8637 if test "$GCC" = yes; then
8638 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'
8640 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'
8641 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8643 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8644 hardcode_libdir_separator=:
8645 link_all_deplibs=yes
8649 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8650 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8652 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8654 hardcode_libdir_flag_spec='-R$libdir'
8656 hardcode_shlibpath_var=no
8660 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8662 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8663 hardcode_libdir_separator=:
8664 hardcode_shlibpath_var=no
8668 if test -f /usr/libexec/ld.so; then
8670 hardcode_shlibpath_var=no
8671 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8672 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8673 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8674 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8675 export_dynamic_flag_spec='${wl}-E'
8678 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8679 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8680 hardcode_libdir_flag_spec='-R$libdir'
8683 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8684 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8694 hardcode_libdir_flag_spec='-L$libdir'
8695 hardcode_minus_L=yes
8696 allow_undefined_flag=unsupported
8697 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'
8698 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8702 if test "$GCC" = yes; then
8703 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8704 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'
8706 allow_undefined_flag=' -expect_unresolved \*'
8707 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'
8709 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8710 hardcode_libdir_separator=:
8713 osf4* | osf5*) # as osf3* with the addition of -msym flag
8714 if test "$GCC" = yes; then
8715 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8716 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'
8717 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8719 allow_undefined_flag=' -expect_unresolved \*'
8720 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'
8721 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8722 $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'
8724 # Both c and cxx compiler support -rpath directly
8725 hardcode_libdir_flag_spec='-rpath $libdir'
8727 hardcode_libdir_separator=:
8731 no_undefined_flag=' -z text'
8732 if test "$GCC" = yes; then
8734 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8735 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8736 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8739 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8740 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8741 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8743 hardcode_libdir_flag_spec='-R$libdir'
8744 hardcode_shlibpath_var=no
8746 solaris2.[0-5] | solaris2.[0-5].*) ;;
8748 # The compiler driver will combine and reorder linker options,
8749 # but understands `-z linker_flag'. GCC discards it without `$wl',
8750 # but is careful enough not to reorder.
8751 # Supported since Solaris 2.6 (maybe 2.5.1?)
8752 if test "$GCC" = yes; then
8753 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8755 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8759 link_all_deplibs=yes
8763 if test "x$host_vendor" = xsequent; then
8764 # Use $CC to link under sequent, because it throws in some extra .o
8765 # files that make .init and .fini sections work.
8766 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8768 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8770 hardcode_libdir_flag_spec='-L$libdir'
8772 hardcode_minus_L=yes
8773 hardcode_shlibpath_var=no
8777 case $host_vendor in
8779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8780 hardcode_direct=yes # is this really true???
8783 ## LD is ld it makes a PLAMLIB
8784 ## CC just makes a GrossModule.
8785 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8786 reload_cmds='$CC -r -o $output$reload_objs'
8790 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8791 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8794 runpath_var='LD_RUN_PATH'
8795 hardcode_shlibpath_var=no
8799 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8800 hardcode_shlibpath_var=no
8801 export_dynamic_flag_spec='-Bexport'
8805 if test -d /usr/nec; then
8806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8807 hardcode_shlibpath_var=no
8808 runpath_var=LD_RUN_PATH
8809 hardcode_runpath_var=yes
8814 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8815 no_undefined_flag='${wl}-z,text'
8816 archive_cmds_need_lc=no
8817 hardcode_shlibpath_var=no
8818 runpath_var='LD_RUN_PATH'
8820 if test "$GCC" = yes; then
8821 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8822 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8824 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8825 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8829 sysv5* | sco3.2v5* | sco5v6*)
8830 # Note: We can NOT use -z defs as we might desire, because we do not
8831 # link with -lc, and that would cause any symbols used from libc to
8832 # always be unresolved, which means just about no library would
8833 # ever link correctly. If we're not using GNU ld we use -z text
8834 # though, which does catch some bad symbols but isn't as heavy-handed
8836 no_undefined_flag='${wl}-z,text'
8837 allow_undefined_flag='${wl}-z,nodefs'
8838 archive_cmds_need_lc=no
8839 hardcode_shlibpath_var=no
8840 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8841 hardcode_libdir_separator=':'
8842 link_all_deplibs=yes
8843 export_dynamic_flag_spec='${wl}-Bexport'
8844 runpath_var='LD_RUN_PATH'
8846 if test "$GCC" = yes; then
8847 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8848 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8850 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8851 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8857 hardcode_libdir_flag_spec='-L$libdir'
8858 hardcode_shlibpath_var=no
8867 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8868 echo "${ECHO_T}$ld_shlibs" >&6; }
8869 test "$ld_shlibs" = no && can_build_shared=no
8872 # Do we need to explicitly link libc?
8874 case "x$archive_cmds_need_lc" in
8876 # Assume -lc should be added
8877 archive_cmds_need_lc=yes
8879 if test "$enable_shared" = yes && test "$GCC" = yes; then
8880 case $archive_cmds in
8882 # FIXME: we may have to deal with multi-command sequences.
8885 # Test whether the compiler implicitly links with -lc since on some
8886 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8887 # to ld, don't add -lc before -lgcc.
8888 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8889 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8891 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8894 (eval $ac_compile) 2>&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } 2>conftest.err; then
8900 libobjs=conftest.$ac_objext
8902 wl=$lt_prog_compiler_wl
8903 pic_flag=$lt_prog_compiler_pic
8909 lt_save_allow_undefined_flag=$allow_undefined_flag
8910 allow_undefined_flag=
8911 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8912 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }
8917 archive_cmds_need_lc=no
8919 archive_cmds_need_lc=yes
8921 allow_undefined_flag=$lt_save_allow_undefined_flag
8923 cat conftest.err 1>&5
8926 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8927 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8934 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8935 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8937 libname_spec='lib$name'
8945 shlibpath_overrides_runpath=unknown
8947 dynamic_linker="$host_os ld.so"
8948 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8950 if test "$GCC" = yes; then
8952 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8953 *) lt_awk_arg="/^libraries:/" ;;
8955 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8956 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8957 # if the path contains ";" then we assume it to be the separator
8958 # otherwise default to the standard path separator (i.e. ":") - it is
8959 # assumed that no part of a normal pathname contains ";" but that should
8960 # okay in the real world where ";" in dirpaths is itself problematic.
8961 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8963 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8965 # Ok, now we have the path, separated by spaces, we can step through it
8966 # and add multilib dir if necessary.
8967 lt_tmp_lt_search_path_spec=
8968 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8969 for lt_sys_path in $lt_search_path_spec; do
8970 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8971 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8973 test -d "$lt_sys_path" && \
8974 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8977 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8978 BEGIN {RS=" "; FS="/|\n";} {
8981 for (lt_i = NF; lt_i > 0; lt_i--) {
8982 if ($lt_i != "" && $lt_i != ".") {
8983 if ($lt_i == "..") {
8986 if (lt_count == 0) {
8987 lt_foo="/" $lt_i lt_foo;
8994 if (lt_foo != "") { lt_freq[lt_foo]++; }
8995 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8997 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8999 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9001 need_lib_prefix=unknown
9002 hardcode_into_libs=no
9004 # when you set need_version to no, make sure it does not cause -set_version
9005 # flags to be left without arguments
9006 need_version=unknown
9011 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9012 shlibpath_var=LIBPATH
9014 # AIX 3 has no versioning support, so we append a major version to the name.
9015 soname_spec='${libname}${release}${shared_ext}$major'
9022 hardcode_into_libs=yes
9023 if test "$host_cpu" = ia64; then
9024 # AIX 5 supports IA64
9025 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9026 shlibpath_var=LD_LIBRARY_PATH
9028 # With GCC up to 2.95.x, collect2 would create an import file
9029 # for dependence libraries. The import file would start with
9030 # the line `#! .'. This would cause the generated library to
9031 # depend on `.', always an invalid library. This was fixed in
9032 # development snapshots of GCC prior to 3.0.
9034 aix4 | aix4.[01] | aix4.[01].*)
9035 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9037 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9044 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9045 # soname into executable. Probably we can add versioning support to
9046 # collect2, so additional links can be useful in future.
9047 if test "$aix_use_runtimelinking" = yes; then
9048 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9049 # instead of lib<name>.a to let people know that these are not
9050 # typical AIX shared libraries.
9051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9053 # We preserve .a as extension for shared libraries through AIX4.2
9054 # and later when we are not doing run time linking.
9055 library_names_spec='${libname}${release}.a $libname.a'
9056 soname_spec='${libname}${release}${shared_ext}$major'
9058 shlibpath_var=LIBPATH
9063 library_names_spec='$libname.ixlibrary $libname.a'
9064 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9065 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'
9069 library_names_spec='${libname}${shared_ext}'
9070 dynamic_linker="$host_os ld.so"
9071 shlibpath_var=LIBRARY_PATH
9077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9078 soname_spec='${libname}${release}${shared_ext}$major'
9079 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9080 shlibpath_var=LD_LIBRARY_PATH
9081 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9082 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9083 # the default ld.so.conf also contains /usr/contrib/lib and
9084 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9085 # libtool to hard-code these into programs
9088 cygwin* | mingw* | pw32*)
9089 version_type=windows
9094 case $GCC,$host_os in
9095 yes,cygwin* | yes,mingw* | yes,pw32*)
9096 library_names_spec='$libname.dll.a'
9097 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9098 postinstall_cmds='base_file=`basename \${file}`~
9099 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9100 dldir=$destdir/`dirname \$dlpath`~
9101 test -d \$dldir || mkdir -p \$dldir~
9102 $install_prog $dir/$dlname \$dldir/$dlname~
9103 chmod a+x \$dldir/$dlname'
9104 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9105 dlpath=$dir/\$dldll~
9107 shlibpath_overrides_runpath=yes
9111 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9112 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9113 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9116 # MinGW DLLs use traditional 'lib' prefix
9117 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9118 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9119 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9120 # It is most probably a Windows format PATH printed by
9121 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9122 # path with ; separators, and with drive letters. We can handle the
9123 # drive letters (cygwin fileutils understands them), so leave them,
9124 # especially as we might pass files found there to a mingw objdump,
9125 # which wouldn't understand a cygwinified path. Ahh.
9126 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9128 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9132 # pw32 DLLs use 'pw' prefix rather than 'lib'
9133 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9139 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9142 dynamic_linker='Win32 ld.exe'
9143 # FIXME: first we should search . and the directory the executable is in
9147 darwin* | rhapsody*)
9148 dynamic_linker="$host_os dyld"
9152 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9153 soname_spec='${libname}${release}${major}$shared_ext'
9154 shlibpath_overrides_runpath=yes
9155 shlibpath_var=DYLD_LIBRARY_PATH
9156 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9158 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9159 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9167 soname_spec='${libname}${release}${shared_ext}$major'
9168 shlibpath_var=LD_LIBRARY_PATH
9175 freebsd* | dragonfly*)
9176 # DragonFly does not have aout. When/if they implement a new
9177 # versioning mechanism, adjust this.
9178 if test -x /usr/bin/objformat; then
9179 objformat=`/usr/bin/objformat`
9182 freebsd[123]*) objformat=aout ;;
9186 # Handle Gentoo/FreeBSD as it was Linux
9187 case $host_vendor in
9189 version_type=linux ;;
9191 version_type=freebsd-$objformat ;;
9194 case $version_type in
9196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9201 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9206 soname_spec='${libname}${release}${shared_ext}$major'
9211 shlibpath_var=LD_LIBRARY_PATH
9214 shlibpath_overrides_runpath=yes
9216 freebsd3.[01]* | freebsdelf3.[01]*)
9217 shlibpath_overrides_runpath=yes
9218 hardcode_into_libs=yes
9220 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9221 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9222 shlibpath_overrides_runpath=no
9223 hardcode_into_libs=yes
9225 *) # from 4.6 on, and DragonFly
9226 shlibpath_overrides_runpath=yes
9227 hardcode_into_libs=yes
9236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9237 soname_spec='${libname}${release}${shared_ext}$major'
9238 shlibpath_var=LD_LIBRARY_PATH
9239 hardcode_into_libs=yes
9242 hpux9* | hpux10* | hpux11*)
9243 # Give a soname corresponding to the major version so that dld.sl refuses to
9244 # link against other versions.
9251 hardcode_into_libs=yes
9252 dynamic_linker="$host_os dld.so"
9253 shlibpath_var=LD_LIBRARY_PATH
9254 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9256 soname_spec='${libname}${release}${shared_ext}$major'
9257 if test "X$HPUX_IA64_MODE" = X32; then
9258 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9260 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9262 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9266 hardcode_into_libs=yes
9267 dynamic_linker="$host_os dld.sl"
9268 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9269 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9273 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9277 dynamic_linker="$host_os dld.sl"
9278 shlibpath_var=SHLIB_PATH
9279 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9281 soname_spec='${libname}${release}${shared_ext}$major'
9284 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9285 postinstall_cmds='chmod 555 $lib'
9292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9293 soname_spec='${libname}${release}${shared_ext}$major'
9294 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9295 shlibpath_var=LD_LIBRARY_PATH
9296 shlibpath_overrides_runpath=no
9297 hardcode_into_libs=yes
9300 irix5* | irix6* | nonstopux*)
9302 nonstopux*) version_type=nonstopux ;;
9304 if test "$lt_cv_prog_gnu_ld" = yes; then
9312 soname_spec='${libname}${release}${shared_ext}$major'
9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9315 irix5* | nonstopux*)
9319 case $LD in # libtool.m4 will add one of these switches to LD
9320 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9321 libsuff= shlibsuff= libmagic=32-bit;;
9322 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9323 libsuff=32 shlibsuff=N32 libmagic=N32;;
9324 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9325 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9326 *) libsuff= shlibsuff= libmagic=never-match;;
9330 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9331 shlibpath_overrides_runpath=no
9332 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9333 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9334 hardcode_into_libs=yes
9337 # No shared lib support for Linux oldld, aout, or coff.
9338 linux*oldld* | linux*aout* | linux*coff*)
9342 # This must be Linux ELF.
9343 linux* | k*bsd*-gnu)
9347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9348 soname_spec='${libname}${release}${shared_ext}$major'
9349 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9350 shlibpath_var=LD_LIBRARY_PATH
9351 shlibpath_overrides_runpath=no
9352 # This implies no fast_install, which is unacceptable.
9353 # Some rework will be needed to allow for fast_install
9354 # before this can be enabled.
9355 hardcode_into_libs=yes
9357 # Append ld.so.conf contents to the search path
9358 if test -f /etc/ld.so.conf; then
9359 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9360 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9363 # We used to test for /lib/ld.so.1 and disable shared libraries on
9364 # powerpc, because MkLinux only supported shared libraries with the
9365 # GNU dynamic linker. Since this was broken with cross compilers,
9366 # most powerpc-linux boxes support dynamic linking these days and
9367 # people can always --disable-shared, the test was removed, and we
9368 # assume the GNU/Linux dynamic linker is in use.
9369 dynamic_linker='GNU/Linux ld.so'
9376 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9378 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9379 dynamic_linker='NetBSD (a.out) ld.so'
9381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9382 soname_spec='${libname}${release}${shared_ext}$major'
9383 dynamic_linker='NetBSD ld.elf_so'
9385 shlibpath_var=LD_LIBRARY_PATH
9386 shlibpath_overrides_runpath=yes
9387 hardcode_into_libs=yes
9392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9393 shlibpath_var=LD_LIBRARY_PATH
9394 shlibpath_overrides_runpath=yes
9401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9402 soname_spec='${libname}${release}${shared_ext}$major'
9403 shlibpath_var=LD_LIBRARY_PATH
9404 shlibpath_overrides_runpath=yes
9409 sys_lib_dlsearch_path_spec="/usr/lib"
9411 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9413 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9414 *) need_version=no ;;
9416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9418 shlibpath_var=LD_LIBRARY_PATH
9419 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9421 openbsd2.[89] | openbsd2.[89].*)
9422 shlibpath_overrides_runpath=no
9425 shlibpath_overrides_runpath=yes
9429 shlibpath_overrides_runpath=yes
9434 libname_spec='$name'
9437 library_names_spec='$libname${shared_ext} $libname.a'
9438 dynamic_linker='OS/2 ld.exe'
9439 shlibpath_var=LIBPATH
9442 osf3* | osf4* | osf5*)
9446 soname_spec='${libname}${release}${shared_ext}$major'
9447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9448 shlibpath_var=LD_LIBRARY_PATH
9449 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9450 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9462 soname_spec='${libname}${release}${shared_ext}$major'
9463 shlibpath_var=LD_LIBRARY_PATH
9464 shlibpath_overrides_runpath=yes
9465 hardcode_into_libs=yes
9466 # ldd complains unless libraries are executable
9467 postinstall_cmds='chmod +x $lib'
9472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9473 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9474 shlibpath_var=LD_LIBRARY_PATH
9475 shlibpath_overrides_runpath=yes
9476 if test "$with_gnu_ld" = yes; then
9484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485 soname_spec='${libname}${release}${shared_ext}$major'
9486 shlibpath_var=LD_LIBRARY_PATH
9487 case $host_vendor in
9489 shlibpath_overrides_runpath=no
9491 export_dynamic_flag_spec='${wl}-Blargedynsym'
9492 runpath_var=LD_RUN_PATH
9500 shlibpath_overrides_runpath=no
9501 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9507 if test -d /usr/nec ;then
9509 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9510 soname_spec='$libname${shared_ext}.$major'
9511 shlibpath_var=LD_LIBRARY_PATH
9515 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9516 version_type=freebsd-elf
9519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9520 soname_spec='${libname}${release}${shared_ext}$major'
9521 shlibpath_var=LD_LIBRARY_PATH
9522 hardcode_into_libs=yes
9523 if test "$with_gnu_ld" = yes; then
9524 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9525 shlibpath_overrides_runpath=no
9527 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9528 shlibpath_overrides_runpath=yes
9531 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9535 sys_lib_dlsearch_path_spec='/usr/lib'
9540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9541 soname_spec='${libname}${release}${shared_ext}$major'
9542 shlibpath_var=LD_LIBRARY_PATH
9549 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9550 echo "${ECHO_T}$dynamic_linker" >&6; }
9551 test "$dynamic_linker" = no && can_build_shared=no
9553 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9554 if test "$GCC" = yes; then
9555 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9558 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9559 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9561 if test -n "$hardcode_libdir_flag_spec" || \
9562 test -n "$runpath_var" || \
9563 test "X$hardcode_automatic" = "Xyes" ; then
9565 # We can hardcode non-existant directories.
9566 if test "$hardcode_direct" != no &&
9567 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9568 # have to relink, otherwise we might link with an installed library
9569 # when we should be linking with a yet-to-be-installed one
9570 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9571 test "$hardcode_minus_L" != no; then
9572 # Linking always hardcodes the temporary library directory.
9573 hardcode_action=relink
9575 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9576 hardcode_action=immediate
9579 # We cannot hardcode anything, or else we can only hardcode existing
9581 hardcode_action=unsupported
9583 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9584 echo "${ECHO_T}$hardcode_action" >&6; }
9586 if test "$hardcode_action" = relink; then
9587 # Fast installation is not supported
9588 enable_fast_install=no
9589 elif test "$shlibpath_overrides_runpath" = yes ||
9590 test "$enable_shared" = no; then
9591 # Fast installation is not necessary
9592 enable_fast_install=needless
9597 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9598 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9599 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9600 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9601 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9602 { echo "$as_me:$LINENO: result: yes" >&5
9603 echo "${ECHO_T}yes" >&6; }
9605 # FIXME - insert some real tests, host_os isn't really good enough
9608 if test -n "$STRIP" ; then
9609 striplib="$STRIP -x"
9610 old_striplib="$STRIP -S"
9611 { echo "$as_me:$LINENO: result: yes" >&5
9612 echo "${ECHO_T}yes" >&6; }
9614 { echo "$as_me:$LINENO: result: no" >&5
9615 echo "${ECHO_T}no" >&6; }
9619 { echo "$as_me:$LINENO: result: no" >&5
9620 echo "${ECHO_T}no" >&6; }
9625 if test "x$enable_dlopen" != xyes; then
9626 enable_dlopen=unknown
9627 enable_dlopen_self=unknown
9628 enable_dlopen_self_static=unknown
9635 lt_cv_dlopen="load_add_on"
9637 lt_cv_dlopen_self=yes
9641 lt_cv_dlopen="LoadLibrary"
9646 lt_cv_dlopen="dlopen"
9651 # if libdl is installed we need to link against it
9652 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9653 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9654 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9655 echo $ECHO_N "(cached) $ECHO_C" >&6
9657 ac_check_lib_save_LIBS=$LIBS
9659 cat >conftest.$ac_ext <<_ACEOF
9662 cat confdefs.h >>conftest.$ac_ext
9663 cat >>conftest.$ac_ext <<_ACEOF
9664 /* end confdefs.h. */
9666 /* Override any GCC internal prototype to avoid an error.
9667 Use char because int might match the return type of a GCC
9668 builtin and then its argument prototype would still apply. */
9681 rm -f conftest.$ac_objext conftest$ac_exeext
9682 if { (ac_try="$ac_link"
9684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685 *) ac_try_echo=$ac_try;;
9687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688 (eval "$ac_link") 2>conftest.er1
9690 grep -v '^ *+' conftest.er1 >conftest.err
9692 cat conftest.err >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } && {
9695 test -z "$ac_c_werror_flag" ||
9696 test ! -s conftest.err
9697 } && test -s conftest$ac_exeext &&
9698 $as_test_x conftest$ac_exeext; then
9699 ac_cv_lib_dl_dlopen=yes
9701 echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9704 ac_cv_lib_dl_dlopen=no
9707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9708 conftest$ac_exeext conftest.$ac_ext
9709 LIBS=$ac_check_lib_save_LIBS
9711 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9712 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9713 if test $ac_cv_lib_dl_dlopen = yes; then
9714 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9719 lt_cv_dlopen_self=yes
9726 { echo "$as_me:$LINENO: checking for shl_load" >&5
9727 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9728 if test "${ac_cv_func_shl_load+set}" = set; then
9729 echo $ECHO_N "(cached) $ECHO_C" >&6
9731 cat >conftest.$ac_ext <<_ACEOF
9734 cat confdefs.h >>conftest.$ac_ext
9735 cat >>conftest.$ac_ext <<_ACEOF
9736 /* end confdefs.h. */
9737 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9739 #define shl_load innocuous_shl_load
9741 /* System header to define __stub macros and hopefully few prototypes,
9742 which can conflict with char shl_load (); below.
9743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9744 <limits.h> exists even on freestanding compilers. */
9747 # include <limits.h>
9749 # include <assert.h>
9754 /* Override any GCC internal prototype to avoid an error.
9755 Use char because int might match the return type of a GCC
9756 builtin and then its argument prototype would still apply. */
9761 /* The GNU C library defines this for functions which it implements
9762 to always fail with ENOSYS. Some functions are actually named
9763 something starting with __ and the normal name is an alias. */
9764 #if defined __stub_shl_load || defined __stub___shl_load
9776 rm -f conftest.$ac_objext conftest$ac_exeext
9777 if { (ac_try="$ac_link"
9779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9780 *) ac_try_echo=$ac_try;;
9782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9783 (eval "$ac_link") 2>conftest.er1
9785 grep -v '^ *+' conftest.er1 >conftest.err
9787 cat conftest.err >&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); } && {
9790 test -z "$ac_c_werror_flag" ||
9791 test ! -s conftest.err
9792 } && test -s conftest$ac_exeext &&
9793 $as_test_x conftest$ac_exeext; then
9794 ac_cv_func_shl_load=yes
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9799 ac_cv_func_shl_load=no
9802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9803 conftest$ac_exeext conftest.$ac_ext
9805 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9806 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9807 if test $ac_cv_func_shl_load = yes; then
9808 lt_cv_dlopen="shl_load"
9810 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9811 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9812 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9813 echo $ECHO_N "(cached) $ECHO_C" >&6
9815 ac_check_lib_save_LIBS=$LIBS
9817 cat >conftest.$ac_ext <<_ACEOF
9820 cat confdefs.h >>conftest.$ac_ext
9821 cat >>conftest.$ac_ext <<_ACEOF
9822 /* end confdefs.h. */
9824 /* Override any GCC internal prototype to avoid an error.
9825 Use char because int might match the return type of a GCC
9826 builtin and then its argument prototype would still apply. */
9839 rm -f conftest.$ac_objext conftest$ac_exeext
9840 if { (ac_try="$ac_link"
9842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9843 *) ac_try_echo=$ac_try;;
9845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9846 (eval "$ac_link") 2>conftest.er1
9848 grep -v '^ *+' conftest.er1 >conftest.err
9850 cat conftest.err >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); } && {
9853 test -z "$ac_c_werror_flag" ||
9854 test ! -s conftest.err
9855 } && test -s conftest$ac_exeext &&
9856 $as_test_x conftest$ac_exeext; then
9857 ac_cv_lib_dld_shl_load=yes
9859 echo "$as_me: failed program was:" >&5
9860 sed 's/^/| /' conftest.$ac_ext >&5
9862 ac_cv_lib_dld_shl_load=no
9865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9866 conftest$ac_exeext conftest.$ac_ext
9867 LIBS=$ac_check_lib_save_LIBS
9869 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9870 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9871 if test $ac_cv_lib_dld_shl_load = yes; then
9872 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9874 { echo "$as_me:$LINENO: checking for dlopen" >&5
9875 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9876 if test "${ac_cv_func_dlopen+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9879 cat >conftest.$ac_ext <<_ACEOF
9882 cat confdefs.h >>conftest.$ac_ext
9883 cat >>conftest.$ac_ext <<_ACEOF
9884 /* end confdefs.h. */
9885 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9887 #define dlopen innocuous_dlopen
9889 /* System header to define __stub macros and hopefully few prototypes,
9890 which can conflict with char dlopen (); below.
9891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9892 <limits.h> exists even on freestanding compilers. */
9895 # include <limits.h>
9897 # include <assert.h>
9902 /* Override any GCC internal prototype to avoid an error.
9903 Use char because int might match the return type of a GCC
9904 builtin and then its argument prototype would still apply. */
9909 /* The GNU C library defines this for functions which it implements
9910 to always fail with ENOSYS. Some functions are actually named
9911 something starting with __ and the normal name is an alias. */
9912 #if defined __stub_dlopen || defined __stub___dlopen
9924 rm -f conftest.$ac_objext conftest$ac_exeext
9925 if { (ac_try="$ac_link"
9927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9928 *) ac_try_echo=$ac_try;;
9930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9931 (eval "$ac_link") 2>conftest.er1
9933 grep -v '^ *+' conftest.er1 >conftest.err
9935 cat conftest.err >&5
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); } && {
9938 test -z "$ac_c_werror_flag" ||
9939 test ! -s conftest.err
9940 } && test -s conftest$ac_exeext &&
9941 $as_test_x conftest$ac_exeext; then
9942 ac_cv_func_dlopen=yes
9944 echo "$as_me: failed program was:" >&5
9945 sed 's/^/| /' conftest.$ac_ext >&5
9947 ac_cv_func_dlopen=no
9950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9951 conftest$ac_exeext conftest.$ac_ext
9953 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9954 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9955 if test $ac_cv_func_dlopen = yes; then
9956 lt_cv_dlopen="dlopen"
9958 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9959 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9960 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 ac_check_lib_save_LIBS=$LIBS
9965 cat >conftest.$ac_ext <<_ACEOF
9968 cat confdefs.h >>conftest.$ac_ext
9969 cat >>conftest.$ac_ext <<_ACEOF
9970 /* end confdefs.h. */
9972 /* Override any GCC internal prototype to avoid an error.
9973 Use char because int might match the return type of a GCC
9974 builtin and then its argument prototype would still apply. */
9987 rm -f conftest.$ac_objext conftest$ac_exeext
9988 if { (ac_try="$ac_link"
9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994 (eval "$ac_link") 2>conftest.er1
9996 grep -v '^ *+' conftest.er1 >conftest.err
9998 cat conftest.err >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); } && {
10001 test -z "$ac_c_werror_flag" ||
10002 test ! -s conftest.err
10003 } && test -s conftest$ac_exeext &&
10004 $as_test_x conftest$ac_exeext; then
10005 ac_cv_lib_dl_dlopen=yes
10007 echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10010 ac_cv_lib_dl_dlopen=no
10013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10014 conftest$ac_exeext conftest.$ac_ext
10015 LIBS=$ac_check_lib_save_LIBS
10017 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10018 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10019 if test $ac_cv_lib_dl_dlopen = yes; then
10020 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10022 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10023 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10024 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10025 echo $ECHO_N "(cached) $ECHO_C" >&6
10027 ac_check_lib_save_LIBS=$LIBS
10028 LIBS="-lsvld $LIBS"
10029 cat >conftest.$ac_ext <<_ACEOF
10032 cat confdefs.h >>conftest.$ac_ext
10033 cat >>conftest.$ac_ext <<_ACEOF
10034 /* end confdefs.h. */
10036 /* Override any GCC internal prototype to avoid an error.
10037 Use char because int might match the return type of a GCC
10038 builtin and then its argument prototype would still apply. */
10051 rm -f conftest.$ac_objext conftest$ac_exeext
10052 if { (ac_try="$ac_link"
10053 case "(($ac_try" in
10054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055 *) ac_try_echo=$ac_try;;
10057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058 (eval "$ac_link") 2>conftest.er1
10060 grep -v '^ *+' conftest.er1 >conftest.err
10062 cat conftest.err >&5
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); } && {
10065 test -z "$ac_c_werror_flag" ||
10066 test ! -s conftest.err
10067 } && test -s conftest$ac_exeext &&
10068 $as_test_x conftest$ac_exeext; then
10069 ac_cv_lib_svld_dlopen=yes
10071 echo "$as_me: failed program was:" >&5
10072 sed 's/^/| /' conftest.$ac_ext >&5
10074 ac_cv_lib_svld_dlopen=no
10077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10078 conftest$ac_exeext conftest.$ac_ext
10079 LIBS=$ac_check_lib_save_LIBS
10081 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10082 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10083 if test $ac_cv_lib_svld_dlopen = yes; then
10084 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10086 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10087 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10088 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10089 echo $ECHO_N "(cached) $ECHO_C" >&6
10091 ac_check_lib_save_LIBS=$LIBS
10093 cat >conftest.$ac_ext <<_ACEOF
10096 cat confdefs.h >>conftest.$ac_ext
10097 cat >>conftest.$ac_ext <<_ACEOF
10098 /* end confdefs.h. */
10100 /* Override any GCC internal prototype to avoid an error.
10101 Use char because int might match the return type of a GCC
10102 builtin and then its argument prototype would still apply. */
10110 return dld_link ();
10115 rm -f conftest.$ac_objext conftest$ac_exeext
10116 if { (ac_try="$ac_link"
10117 case "(($ac_try" in
10118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10119 *) ac_try_echo=$ac_try;;
10121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122 (eval "$ac_link") 2>conftest.er1
10124 grep -v '^ *+' conftest.er1 >conftest.err
10126 cat conftest.err >&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); } && {
10129 test -z "$ac_c_werror_flag" ||
10130 test ! -s conftest.err
10131 } && test -s conftest$ac_exeext &&
10132 $as_test_x conftest$ac_exeext; then
10133 ac_cv_lib_dld_dld_link=yes
10135 echo "$as_me: failed program was:" >&5
10136 sed 's/^/| /' conftest.$ac_ext >&5
10138 ac_cv_lib_dld_dld_link=no
10141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10142 conftest$ac_exeext conftest.$ac_ext
10143 LIBS=$ac_check_lib_save_LIBS
10145 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10146 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10147 if test $ac_cv_lib_dld_dld_link = yes; then
10148 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10169 if test "x$lt_cv_dlopen" != xno; then
10175 case $lt_cv_dlopen in
10177 save_CPPFLAGS="$CPPFLAGS"
10178 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10180 save_LDFLAGS="$LDFLAGS"
10181 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10184 LIBS="$lt_cv_dlopen_libs $LIBS"
10186 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10187 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10188 if test "${lt_cv_dlopen_self+set}" = set; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10191 if test "$cross_compiling" = yes; then :
10192 lt_cv_dlopen_self=cross
10194 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10195 lt_status=$lt_dlunknown
10196 cat > conftest.$ac_ext <<EOF
10197 #line 10197 "configure"
10198 #include "confdefs.h"
10207 # define LT_DLGLOBAL RTLD_GLOBAL
10210 # define LT_DLGLOBAL DL_GLOBAL
10212 # define LT_DLGLOBAL 0
10216 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10217 find out it does not work in some platform. */
10218 #ifndef LT_DLLAZY_OR_NOW
10220 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10223 # define LT_DLLAZY_OR_NOW DL_LAZY
10226 # define LT_DLLAZY_OR_NOW RTLD_NOW
10229 # define LT_DLLAZY_OR_NOW DL_NOW
10231 # define LT_DLLAZY_OR_NOW 0
10239 extern "C" void exit (int);
10242 void fnord() { int i=42;}
10245 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10246 int status = $lt_dlunknown;
10250 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10251 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10252 /* dlclose (self); */
10260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10261 (eval $ac_link) 2>&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10265 (./conftest; exit; ) >&5 2>/dev/null
10267 case x$lt_status in
10268 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10269 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10270 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10273 # compilation failed
10274 lt_cv_dlopen_self=no
10281 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10282 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10284 if test "x$lt_cv_dlopen_self" = xyes; then
10285 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10286 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10287 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10288 if test "${lt_cv_dlopen_self_static+set}" = set; then
10289 echo $ECHO_N "(cached) $ECHO_C" >&6
10291 if test "$cross_compiling" = yes; then :
10292 lt_cv_dlopen_self_static=cross
10294 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10295 lt_status=$lt_dlunknown
10296 cat > conftest.$ac_ext <<EOF
10297 #line 10297 "configure"
10298 #include "confdefs.h"
10307 # define LT_DLGLOBAL RTLD_GLOBAL
10310 # define LT_DLGLOBAL DL_GLOBAL
10312 # define LT_DLGLOBAL 0
10316 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10317 find out it does not work in some platform. */
10318 #ifndef LT_DLLAZY_OR_NOW
10320 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10323 # define LT_DLLAZY_OR_NOW DL_LAZY
10326 # define LT_DLLAZY_OR_NOW RTLD_NOW
10329 # define LT_DLLAZY_OR_NOW DL_NOW
10331 # define LT_DLLAZY_OR_NOW 0
10339 extern "C" void exit (int);
10342 void fnord() { int i=42;}
10345 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10346 int status = $lt_dlunknown;
10350 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10351 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10352 /* dlclose (self); */
10360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10361 (eval $ac_link) 2>&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10365 (./conftest; exit; ) >&5 2>/dev/null
10367 case x$lt_status in
10368 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10369 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10370 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10373 # compilation failed
10374 lt_cv_dlopen_self_static=no
10381 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10382 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10385 CPPFLAGS="$save_CPPFLAGS"
10386 LDFLAGS="$save_LDFLAGS"
10391 case $lt_cv_dlopen_self in
10392 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10393 *) enable_dlopen_self=unknown ;;
10396 case $lt_cv_dlopen_self_static in
10397 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10398 *) enable_dlopen_self_static=unknown ;;
10403 # Report which library types will actually be built
10404 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10405 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10406 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10407 echo "${ECHO_T}$can_build_shared" >&6; }
10409 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10410 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10411 test "$can_build_shared" = "no" && enable_shared=no
10413 # On AIX, shared libraries and static libraries use the same namespace, and
10414 # are all built from PIC.
10417 test "$enable_shared" = yes && enable_static=no
10418 if test -n "$RANLIB"; then
10419 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10420 postinstall_cmds='$RANLIB $lib'
10425 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10426 test "$enable_shared" = yes && enable_static=no
10430 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10431 echo "${ECHO_T}$enable_shared" >&6; }
10433 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10434 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10435 # Make sure either enable_shared or enable_static is yes.
10436 test "$enable_shared" = yes || enable_static=yes
10437 { echo "$as_me:$LINENO: result: $enable_static" >&5
10438 echo "${ECHO_T}$enable_static" >&6; }
10440 # The else clause should only fire when bootstrapping the
10441 # libtool distribution, otherwise you forgot to ship ltmain.sh
10442 # with your package, and you will get complaints that there are
10443 # no rules to generate ltmain.sh.
10444 if test -f "$ltmain"; then
10445 # See if we are running on zsh, and set the options which allow our commands through
10446 # without removal of \ escapes.
10447 if test -n "${ZSH_VERSION+set}" ; then
10448 setopt NO_GLOB_SUBST
10450 # Now quote all the things that may contain metacharacters while being
10451 # careful not to overquote the AC_SUBSTed values. We take copies of the
10452 # variables and quote the copies for generation of the libtool script.
10453 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10455 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10456 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10457 deplibs_check_method reload_flag reload_cmds need_locks \
10458 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10459 lt_cv_sys_global_symbol_to_c_name_address \
10460 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10461 old_postinstall_cmds old_postuninstall_cmds \
10465 lt_prog_compiler_wl \
10466 lt_prog_compiler_pic \
10467 lt_prog_compiler_static \
10468 lt_prog_compiler_no_builtin_flag \
10469 export_dynamic_flag_spec \
10470 thread_safe_flag_spec \
10471 whole_archive_flag_spec \
10472 enable_shared_with_static_runtimes \
10474 old_archive_from_new_cmds \
10479 compiler_lib_search_path \
10481 archive_expsym_cmds \
10483 postuninstall_cmds \
10484 old_archive_from_expsyms_cmds \
10485 allow_undefined_flag \
10486 no_undefined_flag \
10487 export_symbols_cmds \
10488 hardcode_libdir_flag_spec \
10489 hardcode_libdir_flag_spec_ld \
10490 hardcode_libdir_separator \
10491 hardcode_automatic \
10493 module_expsym_cmds \
10494 lt_cv_prog_compiler_c_o \
10497 include_expsyms; do
10500 old_archive_cmds | \
10501 old_archive_from_new_cmds | \
10503 archive_expsym_cmds | \
10505 module_expsym_cmds | \
10506 old_archive_from_expsyms_cmds | \
10507 export_symbols_cmds | \
10508 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10509 postinstall_cmds | postuninstall_cmds | \
10510 old_postinstall_cmds | old_postuninstall_cmds | \
10511 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10512 # Double-quote double-evaled strings.
10513 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10516 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10522 *'\$0 --fallback-echo"')
10523 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10527 cfgfile="${ofile}T"
10528 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10530 { echo "$as_me:$LINENO: creating $ofile" >&5
10531 echo "$as_me: creating $ofile" >&6;}
10533 cat <<__EOF__ >> "$cfgfile"
10536 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10537 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10538 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10540 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10541 # Free Software Foundation, Inc.
10543 # This file is part of GNU Libtool:
10544 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10546 # This program is free software; you can redistribute it and/or modify
10547 # it under the terms of the GNU General Public License as published by
10548 # the Free Software Foundation; either version 2 of the License, or
10549 # (at your option) any later version.
10551 # This program is distributed in the hope that it will be useful, but
10552 # WITHOUT ANY WARRANTY; without even the implied warranty of
10553 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10554 # General Public License for more details.
10556 # You should have received a copy of the GNU General Public License
10557 # along with this program; if not, write to the Free Software
10558 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10560 # As a special exception to the GNU General Public License, if you
10561 # distribute this file as part of a program that contains a
10562 # configuration script generated by Autoconf, you may include it under
10563 # the same distribution terms that you use for the rest of that program.
10565 # A sed program that does not truncate output.
10568 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10569 Xsed="$SED -e 1s/^X//"
10571 # The HP-UX ksh and POSIX shell print the target directory to stdout
10572 # if CDPATH is set.
10573 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10575 # The names of the tagged configurations supported by this script.
10578 # ### BEGIN LIBTOOL CONFIG
10580 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10582 # Shell to use when invoking shell scripts.
10585 # Whether or not to build shared libraries.
10586 build_libtool_libs=$enable_shared
10588 # Whether or not to build static libraries.
10589 build_old_libs=$enable_static
10591 # Whether or not to add -lc for building shared libraries.
10592 build_libtool_need_lc=$archive_cmds_need_lc
10594 # Whether or not to disallow shared libs when runtime libs are static
10595 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10597 # Whether or not to optimize for fast installation.
10598 fast_install=$enable_fast_install
10601 host_alias=$host_alias
10605 # The build system.
10606 build_alias=$build_alias
10610 # An echo program that does not interpret backslashes.
10615 AR_FLAGS=$lt_AR_FLAGS
10620 # LTCC compiler flags.
10621 LTCFLAGS=$lt_LTCFLAGS
10623 # A language-specific compiler.
10626 # Is the compiler the GNU C compiler?
10632 # The linker used to build libraries.
10635 # Whether we need hard or soft links.
10638 # A BSD-compatible nm program.
10641 # A symbol stripping program
10644 # Used to examine libraries when file_magic_cmd begins "file"
10645 MAGIC_CMD=$MAGIC_CMD
10647 # Used on cygwin: DLL creation program.
10650 # Used on cygwin: object dumper.
10653 # Used on cygwin: assembler.
10656 # The name of the directory that contains temporary libtool files.
10659 # How to create reloadable object files.
10660 reload_flag=$lt_reload_flag
10661 reload_cmds=$lt_reload_cmds
10663 # How to pass a linker flag through the compiler.
10664 wl=$lt_lt_prog_compiler_wl
10666 # Object file suffix (normally "o").
10667 objext="$ac_objext"
10669 # Old archive suffix (normally "a").
10672 # Shared library suffix (normally ".so").
10673 shrext_cmds='$shrext_cmds'
10675 # Executable file suffix (normally "").
10678 # Additional compiler flags for building library objects.
10679 pic_flag=$lt_lt_prog_compiler_pic
10682 # What is the maximum length of a command?
10683 max_cmd_len=$lt_cv_sys_max_cmd_len
10685 # Does compiler simultaneously support -c and -o options?
10686 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10688 # Must we lock files when doing compilation?
10689 need_locks=$lt_need_locks
10691 # Do we need the lib prefix for modules?
10692 need_lib_prefix=$need_lib_prefix
10694 # Do we need a version for libraries?
10695 need_version=$need_version
10697 # Whether dlopen is supported.
10698 dlopen_support=$enable_dlopen
10700 # Whether dlopen of programs is supported.
10701 dlopen_self=$enable_dlopen_self
10703 # Whether dlopen of statically linked programs is supported.
10704 dlopen_self_static=$enable_dlopen_self_static
10706 # Compiler flag to prevent dynamic linking.
10707 link_static_flag=$lt_lt_prog_compiler_static
10709 # Compiler flag to turn off builtin functions.
10710 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10712 # Compiler flag to allow reflexive dlopens.
10713 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10715 # Compiler flag to generate shared objects directly from archives.
10716 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10718 # Compiler flag to generate thread-safe objects.
10719 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10721 # Library versioning type.
10722 version_type=$version_type
10724 # Format of library name prefix.
10725 libname_spec=$lt_libname_spec
10727 # List of archive names. First name is the real one, the rest are links.
10728 # The last name is the one that the linker finds with -lNAME.
10729 library_names_spec=$lt_library_names_spec
10731 # The coded name of the library, if different from the real name.
10732 soname_spec=$lt_soname_spec
10734 # Commands used to build and install an old-style archive.
10736 old_archive_cmds=$lt_old_archive_cmds
10737 old_postinstall_cmds=$lt_old_postinstall_cmds
10738 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10740 # Create an old-style archive from a shared archive.
10741 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10743 # Create a temporary old-style archive to link instead of a shared archive.
10744 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10746 # Commands used to build and install a shared archive.
10747 archive_cmds=$lt_archive_cmds
10748 archive_expsym_cmds=$lt_archive_expsym_cmds
10749 postinstall_cmds=$lt_postinstall_cmds
10750 postuninstall_cmds=$lt_postuninstall_cmds
10752 # Commands used to build a loadable module (assumed same as above if empty)
10753 module_cmds=$lt_module_cmds
10754 module_expsym_cmds=$lt_module_expsym_cmds
10756 # Commands to strip libraries.
10757 old_striplib=$lt_old_striplib
10758 striplib=$lt_striplib
10760 # Dependencies to place before the objects being linked to create a
10762 predep_objects=$lt_predep_objects
10764 # Dependencies to place after the objects being linked to create a
10766 postdep_objects=$lt_postdep_objects
10768 # Dependencies to place before the objects being linked to create a
10770 predeps=$lt_predeps
10772 # Dependencies to place after the objects being linked to create a
10774 postdeps=$lt_postdeps
10776 # The library search path used internally by the compiler when linking
10777 # a shared library.
10778 compiler_lib_search_path=$lt_compiler_lib_search_path
10780 # Method to check whether dependent libraries are shared objects.
10781 deplibs_check_method=$lt_deplibs_check_method
10783 # Command to use when deplibs_check_method == file_magic.
10784 file_magic_cmd=$lt_file_magic_cmd
10786 # Flag that allows shared libraries with undefined symbols to be built.
10787 allow_undefined_flag=$lt_allow_undefined_flag
10789 # Flag that forces no undefined symbols.
10790 no_undefined_flag=$lt_no_undefined_flag
10792 # Commands used to finish a libtool library installation in a directory.
10793 finish_cmds=$lt_finish_cmds
10795 # Same as above, but a single script fragment to be evaled but not shown.
10796 finish_eval=$lt_finish_eval
10798 # Take the output of nm and produce a listing of raw symbols and C names.
10799 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10801 # Transform the output of nm in a proper C declaration
10802 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10804 # Transform the output of nm in a C name address pair
10805 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10807 # This is the shared library runtime path variable.
10808 runpath_var=$runpath_var
10810 # This is the shared library path variable.
10811 shlibpath_var=$shlibpath_var
10813 # Is shlibpath searched before the hard-coded library search path?
10814 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10816 # How to hardcode a shared library path into an executable.
10817 hardcode_action=$hardcode_action
10819 # Whether we should hardcode library paths into libraries.
10820 hardcode_into_libs=$hardcode_into_libs
10822 # Flag to hardcode \$libdir into a binary during linking.
10823 # This must work even if \$libdir does not exist.
10824 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10826 # If ld is used when linking, flag to hardcode \$libdir into
10827 # a binary during linking. This must work even if \$libdir does
10829 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10831 # Whether we need a single -rpath flag with a separated argument.
10832 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10834 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10835 # resulting binary.
10836 hardcode_direct=$hardcode_direct
10838 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10839 # resulting binary.
10840 hardcode_minus_L=$hardcode_minus_L
10842 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10843 # the resulting binary.
10844 hardcode_shlibpath_var=$hardcode_shlibpath_var
10846 # Set to yes if building a shared library automatically hardcodes DIR into the library
10847 # and all subsequent libraries and executables linked against it.
10848 hardcode_automatic=$hardcode_automatic
10850 # Variables whose values should be saved in libtool wrapper scripts and
10851 # restored at relink time.
10852 variables_saved_for_relink="$variables_saved_for_relink"
10854 # Whether libtool must link a program against all its dependency libraries.
10855 link_all_deplibs=$link_all_deplibs
10857 # Compile-time system search path for libraries
10858 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10860 # Run-time system search path for libraries
10861 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10863 # Fix the shell variable \$srcfile for the compiler.
10864 fix_srcfile_path=$lt_fix_srcfile_path
10866 # Set to yes if exported symbols are required.
10867 always_export_symbols=$always_export_symbols
10869 # The commands to list exported symbols.
10870 export_symbols_cmds=$lt_export_symbols_cmds
10872 # The commands to extract the exported symbol list from a shared archive.
10873 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10875 # Symbols that should not be listed in the preloaded symbols.
10876 exclude_expsyms=$lt_exclude_expsyms
10878 # Symbols that must always be exported.
10879 include_expsyms=$lt_include_expsyms
10881 # ### END LIBTOOL CONFIG
10888 cat <<\EOF >> "$cfgfile"
10890 # AIX sometimes has problems with the GCC collect2 program. For some
10891 # reason, if we set the COLLECT_NAMES environment variable, the problems
10892 # vanish in a puff of smoke.
10893 if test "X${COLLECT_NAMES+set}" != Xset; then
10895 export COLLECT_NAMES
10901 # We use sed instead of cat because bash on DJGPP gets confused if
10902 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10903 # text mode, it properly converts lines to CR/LF. This bash problem
10904 # is reportedly fixed, but why not run on old versions too?
10905 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10907 mv -f "$cfgfile" "$ofile" || \
10908 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10912 # If there is no Makefile yet, we rely on a make rule to execute
10913 # `config.status --recheck' to rerun these tests and create the
10914 # libtool script then.
10915 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10916 if test -f "$ltmain_in"; then
10917 test -f Makefile && make "$ltmain"
10923 ac_cpp='$CPP $CPPFLAGS'
10924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10931 # Check whether --with-tags was given.
10932 if test "${with_tags+set}" = set; then
10933 withval=$with_tags; tagnames="$withval"
10937 if test -f "$ltmain" && test -n "$tagnames"; then
10938 if test ! -f "${ofile}"; then
10939 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10940 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10943 if test -z "$LTCC"; then
10944 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10945 if test -z "$LTCC"; then
10946 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10947 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10949 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10950 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10953 if test -z "$LTCFLAGS"; then
10954 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10957 # Extract list of available tagged configurations in $ofile.
10958 # Note that this assumes the entire list is on one line.
10959 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10961 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10962 for tagname in $tagnames; do
10964 # Check whether tagname contains only valid characters
10965 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10967 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10968 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10969 { (exit 1); exit 1; }; }
10973 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10975 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10976 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10977 { (exit 1); exit 1; }; }
10980 # Update the list of available tags.
10981 if test -n "$tagname"; then
10982 echo appending configuration tag \"$tagname\" to $ofile
10986 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10987 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10988 (test "X$CXX" != "Xg++"))) ; then
10990 ac_cpp='$CXXCPP $CPPFLAGS'
10991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10998 archive_cmds_need_lc_CXX=no
10999 allow_undefined_flag_CXX=
11000 always_export_symbols_CXX=no
11001 archive_expsym_cmds_CXX=
11002 export_dynamic_flag_spec_CXX=
11003 hardcode_direct_CXX=no
11004 hardcode_libdir_flag_spec_CXX=
11005 hardcode_libdir_flag_spec_ld_CXX=
11006 hardcode_libdir_separator_CXX=
11007 hardcode_minus_L_CXX=no
11008 hardcode_shlibpath_var_CXX=unsupported
11009 hardcode_automatic_CXX=no
11011 module_expsym_cmds_CXX=
11012 link_all_deplibs_CXX=unknown
11013 old_archive_cmds_CXX=$old_archive_cmds
11014 no_undefined_flag_CXX=
11015 whole_archive_flag_spec_CXX=
11016 enable_shared_with_static_runtimes_CXX=no
11018 # Dependencies to place before and after the object being linked:
11019 predep_objects_CXX=
11020 postdep_objects_CXX=
11023 compiler_lib_search_path_CXX=
11025 # Source file extension for C++ test sources.
11028 # Object file extension for compiled C++ test sources.
11032 # Code to be used in simple compile tests
11033 lt_simple_compile_test_code="int some_variable = 0;"
11035 # Code to be used in simple link tests
11036 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11038 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11040 # If no C compiler was specified, use CC.
11043 # If no C compiler flags were specified, use CFLAGS.
11044 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11046 # Allow CC to be a program name with arguments.
11050 # save warnings/boilerplate of simple test code
11051 ac_outfile=conftest.$ac_objext
11052 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11053 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11054 _lt_compiler_boilerplate=`cat conftest.err`
11057 ac_outfile=conftest.$ac_objext
11058 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11059 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11060 _lt_linker_boilerplate=`cat conftest.err`
11064 # Allow CC to be a program name with arguments.
11069 lt_save_with_gnu_ld=$with_gnu_ld
11070 lt_save_path_LD=$lt_cv_path_LD
11071 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11072 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11074 $as_unset lt_cv_prog_gnu_ld
11076 if test -n "${lt_cv_path_LDCXX+set}"; then
11077 lt_cv_path_LD=$lt_cv_path_LDCXX
11079 $as_unset lt_cv_path_LD
11081 test -z "${LDCXX+set}" || LD=$LDCXX
11085 for cc_temp in $compiler""; do
11087 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11088 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11093 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11096 # We don't want -fno-exception wen compiling C++ code, so set the
11097 # no_builtin_flag separately
11098 if test "$GXX" = yes; then
11099 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11101 lt_prog_compiler_no_builtin_flag_CXX=
11104 if test "$GXX" = yes; then
11105 # Set up default GNU C++ configuration
11108 # Check whether --with-gnu-ld was given.
11109 if test "${with_gnu_ld+set}" = set; then
11110 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11116 if test "$GCC" = yes; then
11117 # Check if gcc -print-prog-name=ld gives a path.
11118 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11119 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11122 # gcc leaves a trailing carriage return which upsets mingw
11123 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11125 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11128 # Accept absolute paths.
11130 re_direlt='/[^/][^/]*/\.\./'
11131 # Canonicalize the pathname of ld
11132 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11133 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11134 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11136 test -z "$LD" && LD="$ac_prog"
11139 # If it fails, then pretend we aren't using GCC.
11143 # If it is relative, then search for the first ld in PATH.
11144 with_gnu_ld=unknown
11147 elif test "$with_gnu_ld" = yes; then
11148 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11149 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11151 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11152 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11154 if test "${lt_cv_path_LD+set}" = set; then
11155 echo $ECHO_N "(cached) $ECHO_C" >&6
11157 if test -z "$LD"; then
11158 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11159 for ac_dir in $PATH; do
11161 test -z "$ac_dir" && ac_dir=.
11162 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11163 lt_cv_path_LD="$ac_dir/$ac_prog"
11164 # Check to see if the program is GNU ld. I'd rather use --version,
11165 # but apparently some variants of GNU ld only accept -v.
11166 # Break only if it was the GNU/non-GNU ld that we prefer.
11167 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11168 *GNU* | *'with BFD'*)
11169 test "$with_gnu_ld" != no && break
11172 test "$with_gnu_ld" != yes && break
11179 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11183 LD="$lt_cv_path_LD"
11184 if test -n "$LD"; then
11185 { echo "$as_me:$LINENO: result: $LD" >&5
11186 echo "${ECHO_T}$LD" >&6; }
11188 { echo "$as_me:$LINENO: result: no" >&5
11189 echo "${ECHO_T}no" >&6; }
11191 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11192 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11193 { (exit 1); exit 1; }; }
11194 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11195 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11196 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
11199 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11200 case `$LD -v 2>&1 </dev/null` in
11201 *GNU* | *'with BFD'*)
11202 lt_cv_prog_gnu_ld=yes
11205 lt_cv_prog_gnu_ld=no
11209 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11210 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11211 with_gnu_ld=$lt_cv_prog_gnu_ld
11215 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11216 # archiving commands below assume that GNU ld is being used.
11217 if test "$with_gnu_ld" = yes; then
11218 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11219 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'
11221 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11222 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11224 # If archive_cmds runs LD, not CC, wlarc should be empty
11225 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11226 # investigate it a little bit more. (MM)
11229 # ancient GNU ld didn't support --whole-archive et. al.
11230 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11231 grep 'no-whole-archive' > /dev/null; then
11232 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11234 whole_archive_flag_spec_CXX=
11240 # A generic and very simple default shared library creation
11241 # command for GNU C++ for the case where it uses the native
11242 # linker, instead of GNU ld. If possible, this setting should
11243 # overridden to take advantage of the native linker features on
11244 # the platform it is being used on.
11245 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11248 # Commands to make compiler produce verbose output that lists
11249 # what "hidden" libraries, object files and flags are used when
11250 # linking a shared library.
11251 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11259 # PORTME: fill in a description of your system's C++ link characteristics
11260 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11261 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11265 # FIXME: insert proper C++ library support
11269 if test "$host_cpu" = ia64; then
11270 # On IA64, the linker does run time linking by default, so we don't
11271 # have to do anything special.
11272 aix_use_runtimelinking=no
11273 exp_sym_flag='-Bexport'
11276 aix_use_runtimelinking=no
11278 # Test if we are trying to use run time linking or normal
11279 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11280 # need to do runtime linking.
11281 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11282 for ld_flag in $LDFLAGS; do
11285 aix_use_runtimelinking=yes
11293 exp_sym_flag='-bexport'
11294 no_entry_flag='-bnoentry'
11297 # When large executables or shared objects are built, AIX ld can
11298 # have problems creating the table of contents. If linking a library
11299 # or program results in "error TOC overflow" add -mminimal-toc to
11300 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11301 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11303 archive_cmds_CXX=''
11304 hardcode_direct_CXX=yes
11305 hardcode_libdir_separator_CXX=':'
11306 link_all_deplibs_CXX=yes
11308 if test "$GXX" = yes; then
11309 case $host_os in aix4.[012]|aix4.[012].*)
11310 # We only want to do this on AIX 4.2 and lower, the check
11311 # below for broken collect2 doesn't work under 4.3+
11312 collect2name=`${CC} -print-prog-name=collect2`
11313 if test -f "$collect2name" && \
11314 strings "$collect2name" | grep resolve_lib_name >/dev/null
11316 # We have reworked collect2
11319 # We have old collect2
11320 hardcode_direct_CXX=unsupported
11321 # It fails to find uninstalled libraries when the uninstalled
11322 # path is not listed in the libpath. Setting hardcode_minus_L
11323 # to unsupported forces relinking
11324 hardcode_minus_L_CXX=yes
11325 hardcode_libdir_flag_spec_CXX='-L$libdir'
11326 hardcode_libdir_separator_CXX=
11330 shared_flag='-shared'
11331 if test "$aix_use_runtimelinking" = yes; then
11332 shared_flag="$shared_flag "'${wl}-G'
11336 if test "$host_cpu" = ia64; then
11337 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11338 # chokes on -Wl,-G. The following line is correct:
11341 if test "$aix_use_runtimelinking" = yes; then
11342 shared_flag='${wl}-G'
11344 shared_flag='${wl}-bM:SRE'
11349 # It seems that -bexpall does not export symbols beginning with
11350 # underscore (_), so it is better to generate a list of symbols to export.
11351 always_export_symbols_CXX=yes
11352 if test "$aix_use_runtimelinking" = yes; then
11353 # Warning - without using the other runtime loading flags (-brtl),
11354 # -berok will link without error, but may produce a broken library.
11355 allow_undefined_flag_CXX='-berok'
11356 # Determine the default libpath from the value encoded in an empty executable.
11357 cat >conftest.$ac_ext <<_ACEOF
11360 cat confdefs.h >>conftest.$ac_ext
11361 cat >>conftest.$ac_ext <<_ACEOF
11362 /* end confdefs.h. */
11372 rm -f conftest.$ac_objext conftest$ac_exeext
11373 if { (ac_try="$ac_link"
11374 case "(($ac_try" in
11375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11376 *) ac_try_echo=$ac_try;;
11378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11379 (eval "$ac_link") 2>conftest.er1
11381 grep -v '^ *+' conftest.er1 >conftest.err
11383 cat conftest.err >&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); } && {
11386 test -z "$ac_cxx_werror_flag" ||
11387 test ! -s conftest.err
11388 } && test -s conftest$ac_exeext &&
11389 $as_test_x conftest$ac_exeext; then
11391 lt_aix_libpath_sed='
11392 /Import File Strings/,/^$/ {
11398 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11399 # Check for a 64-bit object if we didn't find anything.
11400 if test -z "$aix_libpath"; then
11401 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11404 echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.$ac_ext >&5
11410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11411 conftest$ac_exeext conftest.$ac_ext
11412 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11414 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11416 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"
11418 if test "$host_cpu" = ia64; then
11419 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11420 allow_undefined_flag_CXX="-z nodefs"
11421 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"
11423 # Determine the default libpath from the value encoded in an empty executable.
11424 cat >conftest.$ac_ext <<_ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11439 rm -f conftest.$ac_objext conftest$ac_exeext
11440 if { (ac_try="$ac_link"
11441 case "(($ac_try" in
11442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443 *) ac_try_echo=$ac_try;;
11445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11446 (eval "$ac_link") 2>conftest.er1
11448 grep -v '^ *+' conftest.er1 >conftest.err
11450 cat conftest.err >&5
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); } && {
11453 test -z "$ac_cxx_werror_flag" ||
11454 test ! -s conftest.err
11455 } && test -s conftest$ac_exeext &&
11456 $as_test_x conftest$ac_exeext; then
11458 lt_aix_libpath_sed='
11459 /Import File Strings/,/^$/ {
11465 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11466 # Check for a 64-bit object if we didn't find anything.
11467 if test -z "$aix_libpath"; then
11468 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11471 echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11478 conftest$ac_exeext conftest.$ac_ext
11479 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11481 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11482 # Warning - without using the other run time loading flags,
11483 # -berok will link without error, but may produce a broken library.
11484 no_undefined_flag_CXX=' ${wl}-bernotok'
11485 allow_undefined_flag_CXX=' ${wl}-berok'
11486 # Exported symbols can be pulled into shared objects from archives
11487 whole_archive_flag_spec_CXX='$convenience'
11488 archive_cmds_need_lc_CXX=yes
11489 # This is similar to how AIX traditionally builds its shared libraries.
11490 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'
11496 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11497 allow_undefined_flag_CXX=unsupported
11498 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11499 # support --undefined. This deserves some investigation. FIXME
11500 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11507 case $cc_basename in
11509 # FIXME: insert proper C++ library support
11515 cygwin* | mingw* | pw32*)
11516 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11517 # as there is no search path for DLLs.
11518 hardcode_libdir_flag_spec_CXX='-L$libdir'
11519 allow_undefined_flag_CXX=unsupported
11520 always_export_symbols_CXX=no
11521 enable_shared_with_static_runtimes_CXX=yes
11523 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11524 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'
11525 # If the export-symbols file already is a .def file (1st line
11526 # is EXPORTS), use it as is; otherwise, prepend...
11527 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11528 cp $export_symbols $output_objdir/$soname.def;
11530 echo EXPORTS > $output_objdir/$soname.def;
11531 cat $export_symbols >> $output_objdir/$soname.def;
11533 $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'
11538 darwin* | rhapsody*)
11540 rhapsody* | darwin1.[012])
11541 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11544 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11545 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11547 case ${MACOSX_DEPLOYMENT_TARGET} in
11549 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11552 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11558 archive_cmds_need_lc_CXX=no
11559 hardcode_direct_CXX=no
11560 hardcode_automatic_CXX=yes
11561 hardcode_shlibpath_var_CXX=unsupported
11562 whole_archive_flag_spec_CXX=''
11563 link_all_deplibs_CXX=yes
11565 if test "$GXX" = yes ; then
11566 lt_int_apple_cc_single_mod=no
11567 output_verbose_link_cmd='echo'
11568 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11569 lt_int_apple_cc_single_mod=yes
11571 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11572 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11574 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'
11576 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11577 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11578 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11579 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}'
11581 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}'
11583 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}'
11585 case $cc_basename in
11587 output_verbose_link_cmd='echo'
11588 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11589 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11590 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11591 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11592 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}'
11602 case $cc_basename in
11604 # FIXME: insert proper C++ library support
11608 # Green Hills C++ Compiler
11609 # FIXME: insert proper C++ library support
11613 # FIXME: insert proper C++ library support
11619 # C++ shared libraries reported to be fairly broken before switch to ELF
11623 archive_cmds_need_lc_CXX=no
11625 freebsd* | dragonfly*)
11626 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11633 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11634 hardcode_libdir_separator_CXX=:
11635 export_dynamic_flag_spec_CXX='${wl}-E'
11636 hardcode_direct_CXX=yes
11637 hardcode_minus_L_CXX=yes # Not in the search PATH,
11638 # but as the default
11639 # location of the library.
11641 case $cc_basename in
11643 # FIXME: insert proper C++ library support
11647 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'
11648 # Commands to make compiler produce verbose output that lists
11649 # what "hidden" libraries, object files and flags are used when
11650 # linking a shared library.
11652 # There doesn't appear to be a way to prevent this compiler from
11653 # explicitly linking system object files so we need to strip them
11654 # from the output so that they don't get included in the library
11656 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'
11659 if test "$GXX" = yes; then
11660 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'
11662 # FIXME: insert proper C++ library support
11669 if test $with_gnu_ld = no; then
11670 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11671 hardcode_libdir_separator_CXX=:
11676 export_dynamic_flag_spec_CXX='${wl}-E'
11682 hardcode_direct_CXX=no
11683 hardcode_shlibpath_var_CXX=no
11686 hardcode_direct_CXX=yes
11687 hardcode_minus_L_CXX=yes # Not in the search PATH,
11688 # but as the default
11689 # location of the library.
11693 case $cc_basename in
11695 # FIXME: insert proper C++ library support
11701 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11704 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11707 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11710 # Commands to make compiler produce verbose output that lists
11711 # what "hidden" libraries, object files and flags are used when
11712 # linking a shared library.
11714 # There doesn't appear to be a way to prevent this compiler from
11715 # explicitly linking system object files so we need to strip them
11716 # from the output so that they don't get included in the library
11718 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'
11721 if test "$GXX" = yes; then
11722 if test $with_gnu_ld = no; then
11725 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11728 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11731 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'
11736 # FIXME: insert proper C++ library support
11743 hardcode_direct_CXX=no
11744 hardcode_shlibpath_var_CXX=no
11745 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11746 export_dynamic_flag_spec_CXX='${wl}-E'
11747 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11748 # Instead, shared libraries are loaded at an image base (0x10000000 by
11749 # default) and relocated if they conflict, which is a slow very memory
11750 # consuming and fragmenting process. To avoid this, we pick a random,
11751 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11752 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11753 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'
11754 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'
11757 case $cc_basename in
11760 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'
11762 # Archives containing C++ object files must be created using
11763 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11764 # necessary to make sure instantiated templates are included
11766 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11769 if test "$GXX" = yes; then
11770 if test "$with_gnu_ld" = no; then
11771 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'
11773 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'
11776 link_all_deplibs_CXX=yes
11779 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11780 hardcode_libdir_separator_CXX=:
11782 linux* | k*bsd*-gnu)
11783 case $cc_basename in
11785 # Kuck and Associates, Inc. (KAI) C++ Compiler
11787 # KCC will only create a shared library if the output file
11788 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11789 # to its proper name (with version) after linking.
11790 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'
11791 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'
11792 # Commands to make compiler produce verbose output that lists
11793 # what "hidden" libraries, object files and flags are used when
11794 # linking a shared library.
11796 # There doesn't appear to be a way to prevent this compiler from
11797 # explicitly linking system object files so we need to strip them
11798 # from the output so that they don't get included in the library
11800 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'
11802 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11803 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11805 # Archives containing C++ object files must be created using
11806 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11807 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11812 # version 8.0 and above of icpc choke on multiply defined symbols
11813 # if we add $predep_objects and $postdep_objects, however 7.1 and
11814 # earlier do not add the objects themselves.
11815 case `$CC -V 2>&1` in
11817 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11818 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'
11820 *) # Version 8.0 or newer
11823 ia64*) tmp_idyn=' -i_dynamic';;
11825 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11826 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'
11829 archive_cmds_need_lc_CXX=no
11830 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11831 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11832 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11835 # Portland Group C++ compiler
11836 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11837 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'
11839 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11840 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11841 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'
11845 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11846 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'
11848 runpath_var=LD_RUN_PATH
11849 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11850 hardcode_libdir_separator_CXX=:
11852 # Commands to make compiler produce verbose output that lists
11853 # what "hidden" libraries, object files and flags are used when
11854 # linking a shared library.
11856 # There doesn't appear to be a way to prevent this compiler from
11857 # explicitly linking system object files so we need to strip them
11858 # from the output so that they don't get included in the library
11860 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'
11863 case `$CC -V 2>&1 | sed 5q` in
11866 no_undefined_flag_CXX=' -zdefs'
11867 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11868 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11869 hardcode_libdir_flag_spec_CXX='-R$libdir'
11870 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11872 # Not sure whether something based on
11873 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11875 output_verbose_link_cmd='echo'
11877 # Archives containing C++ object files must be created using
11878 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11879 # necessary to make sure instantiated templates are included
11881 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11888 # FIXME: insert proper C++ library support
11892 # FIXME: insert proper C++ library support
11896 case $cc_basename in
11898 # FIXME: insert proper C++ library support
11902 # FIXME: insert proper C++ library support
11908 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11909 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11911 hardcode_libdir_flag_spec_CXX='-R$libdir'
11912 hardcode_direct_CXX=yes
11913 hardcode_shlibpath_var_CXX=no
11915 # Workaround some broken pre-1.5 toolchains
11916 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11919 # C++ shared libraries are fairly broken
11923 if test -f /usr/libexec/ld.so; then
11924 hardcode_direct_CXX=yes
11925 hardcode_shlibpath_var_CXX=no
11926 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11927 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11928 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11929 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11930 export_dynamic_flag_spec_CXX='${wl}-E'
11931 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11933 output_verbose_link_cmd='echo'
11939 case $cc_basename in
11941 # Kuck and Associates, Inc. (KAI) C++ Compiler
11943 # KCC will only create a shared library if the output file
11944 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11945 # to its proper name (with version) after linking.
11946 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'
11948 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11949 hardcode_libdir_separator_CXX=:
11951 # Archives containing C++ object files must be created using
11952 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11953 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11957 # Rational C++ 2.4.1
11958 # FIXME: insert proper C++ library support
11962 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11963 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'
11965 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11966 hardcode_libdir_separator_CXX=:
11968 # Commands to make compiler produce verbose output that lists
11969 # what "hidden" libraries, object files and flags are used when
11970 # linking a shared library.
11972 # There doesn't appear to be a way to prevent this compiler from
11973 # explicitly linking system object files so we need to strip them
11974 # from the output so that they don't get included in the library
11976 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'
11979 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11980 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11981 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'
11983 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11984 hardcode_libdir_separator_CXX=:
11986 # Commands to make compiler produce verbose output that lists
11987 # what "hidden" libraries, object files and flags are used when
11988 # linking a shared library.
11989 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11992 # FIXME: insert proper C++ library support
11999 case $cc_basename in
12001 # Kuck and Associates, Inc. (KAI) C++ Compiler
12003 # KCC will only create a shared library if the output file
12004 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12005 # to its proper name (with version) after linking.
12006 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'
12008 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12009 hardcode_libdir_separator_CXX=:
12011 # Archives containing C++ object files must be created using
12012 # the KAI C++ compiler.
12013 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12016 # Rational C++ 2.4.1
12017 # FIXME: insert proper C++ library support
12021 allow_undefined_flag_CXX=' -expect_unresolved \*'
12022 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'
12023 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12024 echo "-hidden">> $lib.exp~
12025 $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~
12028 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12029 hardcode_libdir_separator_CXX=:
12031 # Commands to make compiler produce verbose output that lists
12032 # what "hidden" libraries, object files and flags are used when
12033 # linking a shared library.
12035 # There doesn't appear to be a way to prevent this compiler from
12036 # explicitly linking system object files so we need to strip them
12037 # from the output so that they don't get included in the library
12039 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'
12042 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12043 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12044 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'
12046 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12047 hardcode_libdir_separator_CXX=:
12049 # Commands to make compiler produce verbose output that lists
12050 # what "hidden" libraries, object files and flags are used when
12051 # linking a shared library.
12052 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12055 # FIXME: insert proper C++ library support
12062 # FIXME: insert proper C++ library support
12066 case $cc_basename in
12069 # FIXME: insert proper C++ library support
12074 # FIXME: insert proper C++ library support
12078 # FIXME: insert proper C++ library support
12084 case $cc_basename in
12086 # Sun C++ 4.2, 5.x and Centerline C++
12087 archive_cmds_need_lc_CXX=yes
12088 no_undefined_flag_CXX=' -zdefs'
12089 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12090 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12091 $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'
12093 hardcode_libdir_flag_spec_CXX='-R$libdir'
12094 hardcode_shlibpath_var_CXX=no
12096 solaris2.[0-5] | solaris2.[0-5].*) ;;
12098 # The compiler driver will combine and reorder linker options,
12099 # but understands `-z linker_flag'.
12100 # Supported since Solaris 2.6 (maybe 2.5.1?)
12101 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12104 link_all_deplibs_CXX=yes
12106 output_verbose_link_cmd='echo'
12108 # Archives containing C++ object files must be created using
12109 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12110 # necessary to make sure instantiated templates are included
12112 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12115 # Green Hills C++ Compiler
12116 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12118 # The C++ compiler must be used to create the archive.
12119 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12122 # GNU C++ compiler with Solaris linker
12123 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12124 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12125 if $CC --version | grep -v '^2\.7' > /dev/null; then
12126 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12127 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12128 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12130 # Commands to make compiler produce verbose output that lists
12131 # what "hidden" libraries, object files and flags are used when
12132 # linking a shared library.
12133 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12135 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12137 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12138 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12139 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12141 # Commands to make compiler produce verbose output that lists
12142 # what "hidden" libraries, object files and flags are used when
12143 # linking a shared library.
12144 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12147 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12149 solaris2.[0-5] | solaris2.[0-5].*) ;;
12151 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12158 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12159 no_undefined_flag_CXX='${wl}-z,text'
12160 archive_cmds_need_lc_CXX=no
12161 hardcode_shlibpath_var_CXX=no
12162 runpath_var='LD_RUN_PATH'
12164 case $cc_basename in
12166 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12167 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12170 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12171 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12175 sysv5* | sco3.2v5* | sco5v6*)
12176 # Note: We can NOT use -z defs as we might desire, because we do not
12177 # link with -lc, and that would cause any symbols used from libc to
12178 # always be unresolved, which means just about no library would
12179 # ever link correctly. If we're not using GNU ld we use -z text
12180 # though, which does catch some bad symbols but isn't as heavy-handed
12182 # For security reasons, it is highly recommended that you always
12183 # use absolute paths for naming shared libraries, and exclude the
12184 # DT_RUNPATH tag from executables and libraries. But doing so
12185 # requires that you compile everything twice, which is a pain.
12186 # So that behaviour is only enabled if SCOABSPATH is set to a
12187 # non-empty value in the environment. Most likely only useful for
12188 # creating official distributions of packages.
12189 # This is a hack until libtool officially supports absolute path
12190 # names for shared libraries.
12191 no_undefined_flag_CXX='${wl}-z,text'
12192 allow_undefined_flag_CXX='${wl}-z,nodefs'
12193 archive_cmds_need_lc_CXX=no
12194 hardcode_shlibpath_var_CXX=no
12195 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12196 hardcode_libdir_separator_CXX=':'
12197 link_all_deplibs_CXX=yes
12198 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12199 runpath_var='LD_RUN_PATH'
12201 case $cc_basename in
12203 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12204 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12207 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12208 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12213 case $cc_basename in
12215 # NonStop-UX NCC 3.20
12216 # FIXME: insert proper C++ library support
12220 # FIXME: insert proper C++ library support
12226 # FIXME: insert proper C++ library support
12230 # FIXME: insert proper C++ library support
12234 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12235 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12236 test "$ld_shlibs_CXX" = no && can_build_shared=no
12242 cat > conftest.$ac_ext <<EOF
12246 Foo (void) { a = 0; }
12252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12253 (eval $ac_compile) 2>&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; then
12257 # Parse the compiler output and extract the necessary
12258 # objects, libraries and library flags.
12260 # Sentinel used to keep track of whether or not we are before
12261 # the conftest object file.
12262 pre_test_object_deps_done=no
12264 # The `*' in the case matches for architectures that use `case' in
12265 # $output_verbose_cmd can trigger glob expansion during the loop
12266 # eval without this substitution.
12267 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12269 for p in `eval $output_verbose_link_cmd`; do
12273 # Some compilers place space between "-{L,R}" and the path.
12274 # Remove the space.
12275 if test $p = "-L" \
12276 || test $p = "-R"; then
12283 if test "$pre_test_object_deps_done" = no; then
12286 # Internal compiler library paths should come after those
12287 # provided the user. The postdeps already come after the
12288 # user supplied libs so there is no need to process them.
12289 if test -z "$compiler_lib_search_path_CXX"; then
12290 compiler_lib_search_path_CXX="${prev}${p}"
12292 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12295 # The "-l" case would never come before the object being
12296 # linked, so don't bother handling this case.
12299 if test -z "$postdeps_CXX"; then
12300 postdeps_CXX="${prev}${p}"
12302 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12308 # This assumes that the test object file only shows up
12309 # once in the compiler output.
12310 if test "$p" = "conftest.$objext"; then
12311 pre_test_object_deps_done=yes
12315 if test "$pre_test_object_deps_done" = no; then
12316 if test -z "$predep_objects_CXX"; then
12317 predep_objects_CXX="$p"
12319 predep_objects_CXX="$predep_objects_CXX $p"
12322 if test -z "$postdep_objects_CXX"; then
12323 postdep_objects_CXX="$p"
12325 postdep_objects_CXX="$postdep_objects_CXX $p"
12330 *) ;; # Ignore the rest.
12338 echo "libtool.m4: error: problem compiling CXX test program"
12341 $rm -f confest.$objext
12343 # PORTME: override above test on systems where it is broken
12346 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12347 # hack all around it, let's just trust "g++" to DTRT.
12348 predep_objects_CXX=
12349 postdep_objects_CXX=
12354 case `$CC -V 2>&1 | sed 5q` in
12358 # The more standards-conforming stlport4 library is
12359 # incompatible with the Cstd library. Avoid specifying
12360 # it if it's in CXXFLAGS. Ignore libCrun as
12361 # -library=stlport4 depends on it.
12362 case " $CXX $CXXFLAGS " in
12363 *" -library=stlport4 "*)
12364 solaris_use_stlport4=yes
12367 if test "$solaris_use_stlport4" != yes; then
12368 postdeps_CXX='-library=Cstd -library=Crun'
12375 case $cc_basename in
12377 # The more standards-conforming stlport4 library is
12378 # incompatible with the Cstd library. Avoid specifying
12379 # it if it's in CXXFLAGS. Ignore libCrun as
12380 # -library=stlport4 depends on it.
12381 case " $CXX $CXXFLAGS " in
12382 *" -library=stlport4 "*)
12383 solaris_use_stlport4=yes
12387 # Adding this requires a known-good setup of shared libraries for
12388 # Sun compiler versions before 5.6, else PIC objects from an old
12389 # archive will be linked into the output, leading to subtle bugs.
12390 if test "$solaris_use_stlport4" != yes; then
12391 postdeps_CXX='-library=Cstd -library=Crun'
12399 case " $postdeps_CXX " in
12400 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12403 lt_prog_compiler_wl_CXX=
12404 lt_prog_compiler_pic_CXX=
12405 lt_prog_compiler_static_CXX=
12407 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12408 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12410 # C++ specific cases for pic, static, wl, etc.
12411 if test "$GXX" = yes; then
12412 lt_prog_compiler_wl_CXX='-Wl,'
12413 lt_prog_compiler_static_CXX='-static'
12417 # All AIX code is PIC.
12418 if test "$host_cpu" = ia64; then
12419 # AIX 5 now supports IA64 processor
12420 lt_prog_compiler_static_CXX='-Bstatic'
12424 # FIXME: we need at least 68020 code to build shared libraries, but
12425 # adding the `-m68020' flag to GCC prevents building anything better,
12427 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12429 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12430 # PIC is the default for these OSes.
12432 mingw* | cygwin* | os2* | pw32*)
12433 # This hack is so that the source file can tell whether it is being
12434 # built for inclusion in a dll (and should export symbols for example).
12435 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12436 # (--disable-auto-import) libraries
12437 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12439 darwin* | rhapsody*)
12440 # PIC is the default on this platform
12441 # Common symbols not allowed in MH_DYLIB files
12442 lt_prog_compiler_pic_CXX='-fno-common'
12445 # DJGPP does not support shared libraries at all
12446 lt_prog_compiler_pic_CXX=
12449 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12450 # Instead, we relocate shared libraries at runtime.
12453 if test -d /usr/nec; then
12454 lt_prog_compiler_pic_CXX=-Kconform_pic
12458 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12459 # not for PA HP-UX.
12464 lt_prog_compiler_pic_CXX='-fPIC'
12469 lt_prog_compiler_pic_CXX='-fPIC'
12475 # All AIX code is PIC.
12476 if test "$host_cpu" = ia64; then
12477 # AIX 5 now supports IA64 processor
12478 lt_prog_compiler_static_CXX='-Bstatic'
12480 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12484 case $cc_basename in
12486 # Green Hills C++ Compiler
12487 # _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"
12492 # PIC is the default on this platform
12493 # Common symbols not allowed in MH_DYLIB files
12494 case $cc_basename in
12496 lt_prog_compiler_pic_CXX='-qnocommon'
12497 lt_prog_compiler_wl_CXX='-Wl,'
12502 case $cc_basename in
12504 lt_prog_compiler_pic_CXX='-KPIC'
12507 # Green Hills C++ Compiler
12508 lt_prog_compiler_pic_CXX='-pic'
12514 freebsd* | dragonfly*)
12515 # FreeBSD uses GNU C++
12517 hpux9* | hpux10* | hpux11*)
12518 case $cc_basename in
12520 lt_prog_compiler_wl_CXX='-Wl,'
12521 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12522 if test "$host_cpu" != ia64; then
12523 lt_prog_compiler_pic_CXX='+Z'
12527 lt_prog_compiler_wl_CXX='-Wl,'
12528 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12534 lt_prog_compiler_pic_CXX='+Z'
12543 # This is c89, which is MS Visual C++ (no shared libs)
12544 # Anyone wants to do a port?
12546 irix5* | irix6* | nonstopux*)
12547 case $cc_basename in
12549 lt_prog_compiler_wl_CXX='-Wl,'
12550 lt_prog_compiler_static_CXX='-non_shared'
12551 # CC pic flag -KPIC is the default.
12557 linux* | k*bsd*-gnu)
12558 case $cc_basename in
12561 lt_prog_compiler_wl_CXX='--backend -Wl,'
12562 lt_prog_compiler_pic_CXX='-fPIC'
12566 lt_prog_compiler_wl_CXX='-Wl,'
12567 lt_prog_compiler_pic_CXX='-KPIC'
12568 lt_prog_compiler_static_CXX='-static'
12571 # Portland Group C++ compiler.
12572 lt_prog_compiler_wl_CXX='-Wl,'
12573 lt_prog_compiler_pic_CXX='-fpic'
12574 lt_prog_compiler_static_CXX='-Bstatic'
12578 # Make sure the PIC flag is empty. It appears that all Alpha
12579 # Linux and Compaq Tru64 Unix objects are PIC.
12580 lt_prog_compiler_pic_CXX=
12581 lt_prog_compiler_static_CXX='-non_shared'
12584 case `$CC -V 2>&1 | sed 5q` in
12587 lt_prog_compiler_pic_CXX='-KPIC'
12588 lt_prog_compiler_static_CXX='-Bstatic'
12589 lt_prog_compiler_wl_CXX='-Qoption ld '
12600 case $cc_basename in
12602 lt_prog_compiler_pic_CXX='-W c,exportall'
12610 osf3* | osf4* | osf5*)
12611 case $cc_basename in
12613 lt_prog_compiler_wl_CXX='--backend -Wl,'
12616 # Rational C++ 2.4.1
12617 lt_prog_compiler_pic_CXX='-pic'
12620 # Digital/Compaq C++
12621 lt_prog_compiler_wl_CXX='-Wl,'
12622 # Make sure the PIC flag is empty. It appears that all Alpha
12623 # Linux and Compaq Tru64 Unix objects are PIC.
12624 lt_prog_compiler_pic_CXX=
12625 lt_prog_compiler_static_CXX='-non_shared'
12634 case $cc_basename in
12636 # Sun C++ 4.2, 5.x and Centerline C++
12637 lt_prog_compiler_pic_CXX='-KPIC'
12638 lt_prog_compiler_static_CXX='-Bstatic'
12639 lt_prog_compiler_wl_CXX='-Qoption ld '
12642 # Green Hills C++ Compiler
12643 lt_prog_compiler_pic_CXX='-PIC'
12650 case $cc_basename in
12653 lt_prog_compiler_pic_CXX='-pic'
12654 lt_prog_compiler_static_CXX='-Bstatic'
12658 lt_prog_compiler_pic_CXX='-pic'
12665 case $cc_basename in
12667 # NonStop-UX NCC 3.20
12668 lt_prog_compiler_pic_CXX='-KPIC'
12674 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12675 case $cc_basename in
12677 lt_prog_compiler_wl_CXX='-Wl,'
12678 lt_prog_compiler_pic_CXX='-KPIC'
12679 lt_prog_compiler_static_CXX='-Bstatic'
12686 lt_prog_compiler_can_build_shared_CXX=no
12691 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12692 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12695 # Check to make sure the PIC flag actually works.
12697 if test -n "$lt_prog_compiler_pic_CXX"; then
12699 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12700 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12701 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12702 echo $ECHO_N "(cached) $ECHO_C" >&6
12704 lt_prog_compiler_pic_works_CXX=no
12705 ac_outfile=conftest.$ac_objext
12706 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12707 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12708 # Insert the option either (1) after the last *FLAGS variable, or
12709 # (2) before a word containing "conftest.", or (3) at the end.
12710 # Note that $ac_compile itself does not contain backslashes and begins
12711 # with a dollar sign (not a hyphen), so the echo should work correctly.
12712 # The option is referenced via a variable to avoid confusing sed.
12713 lt_compile=`echo "$ac_compile" | $SED \
12714 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12715 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12716 -e 's:$: $lt_compiler_flag:'`
12717 (eval echo "\"\$as_me:12717: $lt_compile\"" >&5)
12718 (eval "$lt_compile" 2>conftest.err)
12720 cat conftest.err >&5
12721 echo "$as_me:12721: \$? = $ac_status" >&5
12722 if (exit $ac_status) && test -s "$ac_outfile"; then
12723 # The compiler can only warn and ignore the option if not recognized
12724 # So say no if there are warnings other than the usual output.
12725 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12726 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12727 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12728 lt_prog_compiler_pic_works_CXX=yes
12734 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12735 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12737 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12738 case $lt_prog_compiler_pic_CXX in
12740 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12743 lt_prog_compiler_pic_CXX=
12744 lt_prog_compiler_can_build_shared_CXX=no
12749 # For platforms which do not support PIC, -DPIC is meaningless:
12751 lt_prog_compiler_pic_CXX=
12754 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12759 # Check to make sure the static flag actually works.
12761 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12762 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12763 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12764 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12765 echo $ECHO_N "(cached) $ECHO_C" >&6
12767 lt_prog_compiler_static_works_CXX=no
12768 save_LDFLAGS="$LDFLAGS"
12769 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12770 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12771 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12772 # The linker can only warn and ignore the option if not recognized
12773 # So say no if there are warnings
12774 if test -s conftest.err; then
12775 # Append any errors to the config.log.
12776 cat conftest.err 1>&5
12777 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12778 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12779 if diff conftest.exp conftest.er2 >/dev/null; then
12780 lt_prog_compiler_static_works_CXX=yes
12783 lt_prog_compiler_static_works_CXX=yes
12787 LDFLAGS="$save_LDFLAGS"
12790 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12791 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12793 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12796 lt_prog_compiler_static_CXX=
12800 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12801 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12802 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12803 echo $ECHO_N "(cached) $ECHO_C" >&6
12805 lt_cv_prog_compiler_c_o_CXX=no
12806 $rm -r conftest 2>/dev/null
12810 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12812 lt_compiler_flag="-o out/conftest2.$ac_objext"
12813 # Insert the option either (1) after the last *FLAGS variable, or
12814 # (2) before a word containing "conftest.", or (3) at the end.
12815 # Note that $ac_compile itself does not contain backslashes and begins
12816 # with a dollar sign (not a hyphen), so the echo should work correctly.
12817 lt_compile=`echo "$ac_compile" | $SED \
12818 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12819 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12820 -e 's:$: $lt_compiler_flag:'`
12821 (eval echo "\"\$as_me:12821: $lt_compile\"" >&5)
12822 (eval "$lt_compile" 2>out/conftest.err)
12824 cat out/conftest.err >&5
12825 echo "$as_me:12825: \$? = $ac_status" >&5
12826 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12828 # The compiler can only warn and ignore the option if not recognized
12829 # So say no if there are warnings
12830 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12831 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12832 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12833 lt_cv_prog_compiler_c_o_CXX=yes
12838 # SGI C++ compiler will create directory out/ii_files/ for
12839 # template instantiation
12840 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12841 $rm out/* && rmdir out
12847 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12848 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12851 hard_links="nottested"
12852 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12853 # do not overwrite the value of need_locks provided by the user
12854 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12855 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12858 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12860 ln conftest.a conftest.b 2>&5 || hard_links=no
12861 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12862 { echo "$as_me:$LINENO: result: $hard_links" >&5
12863 echo "${ECHO_T}$hard_links" >&6; }
12864 if test "$hard_links" = no; then
12865 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12866 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12873 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12874 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12876 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12879 # If we're using GNU nm, then we don't want the "-C" option.
12880 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12881 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12882 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'
12884 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'
12888 export_symbols_cmds_CXX="$ltdll_cmds"
12891 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'
12894 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12898 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12899 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12900 test "$ld_shlibs_CXX" = no && can_build_shared=no
12903 # Do we need to explicitly link libc?
12905 case "x$archive_cmds_need_lc_CXX" in
12907 # Assume -lc should be added
12908 archive_cmds_need_lc_CXX=yes
12910 if test "$enable_shared" = yes && test "$GCC" = yes; then
12911 case $archive_cmds_CXX in
12913 # FIXME: we may have to deal with multi-command sequences.
12916 # Test whether the compiler implicitly links with -lc since on some
12917 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12918 # to ld, don't add -lc before -lgcc.
12919 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12920 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12922 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12925 (eval $ac_compile) 2>&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); } 2>conftest.err; then
12931 libobjs=conftest.$ac_objext
12933 wl=$lt_prog_compiler_wl_CXX
12934 pic_flag=$lt_prog_compiler_pic_CXX
12940 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12941 allow_undefined_flag_CXX=
12942 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12943 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }
12948 archive_cmds_need_lc_CXX=no
12950 archive_cmds_need_lc_CXX=yes
12952 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12954 cat conftest.err 1>&5
12957 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12958 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12965 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12966 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12967 library_names_spec=
12968 libname_spec='lib$name'
12972 postuninstall_cmds=
12976 shlibpath_overrides_runpath=unknown
12978 dynamic_linker="$host_os ld.so"
12979 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12981 need_lib_prefix=unknown
12982 hardcode_into_libs=no
12984 # when you set need_version to no, make sure it does not cause -set_version
12985 # flags to be left without arguments
12986 need_version=unknown
12991 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12992 shlibpath_var=LIBPATH
12994 # AIX 3 has no versioning support, so we append a major version to the name.
12995 soname_spec='${libname}${release}${shared_ext}$major'
13002 hardcode_into_libs=yes
13003 if test "$host_cpu" = ia64; then
13004 # AIX 5 supports IA64
13005 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13006 shlibpath_var=LD_LIBRARY_PATH
13008 # With GCC up to 2.95.x, collect2 would create an import file
13009 # for dependence libraries. The import file would start with
13010 # the line `#! .'. This would cause the generated library to
13011 # depend on `.', always an invalid library. This was fixed in
13012 # development snapshots of GCC prior to 3.0.
13014 aix4 | aix4.[01] | aix4.[01].*)
13015 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13017 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13020 can_build_shared=no
13024 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13025 # soname into executable. Probably we can add versioning support to
13026 # collect2, so additional links can be useful in future.
13027 if test "$aix_use_runtimelinking" = yes; then
13028 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13029 # instead of lib<name>.a to let people know that these are not
13030 # typical AIX shared libraries.
13031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13033 # We preserve .a as extension for shared libraries through AIX4.2
13034 # and later when we are not doing run time linking.
13035 library_names_spec='${libname}${release}.a $libname.a'
13036 soname_spec='${libname}${release}${shared_ext}$major'
13038 shlibpath_var=LIBPATH
13043 library_names_spec='$libname.ixlibrary $libname.a'
13044 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13045 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'
13049 library_names_spec='${libname}${shared_ext}'
13050 dynamic_linker="$host_os ld.so"
13051 shlibpath_var=LIBRARY_PATH
13057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13058 soname_spec='${libname}${release}${shared_ext}$major'
13059 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13060 shlibpath_var=LD_LIBRARY_PATH
13061 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13062 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13063 # the default ld.so.conf also contains /usr/contrib/lib and
13064 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13065 # libtool to hard-code these into programs
13068 cygwin* | mingw* | pw32*)
13069 version_type=windows
13074 case $GCC,$host_os in
13075 yes,cygwin* | yes,mingw* | yes,pw32*)
13076 library_names_spec='$libname.dll.a'
13077 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13078 postinstall_cmds='base_file=`basename \${file}`~
13079 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13080 dldir=$destdir/`dirname \$dlpath`~
13081 test -d \$dldir || mkdir -p \$dldir~
13082 $install_prog $dir/$dlname \$dldir/$dlname~
13083 chmod a+x \$dldir/$dlname'
13084 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13085 dlpath=$dir/\$dldll~
13087 shlibpath_overrides_runpath=yes
13091 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13092 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13093 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13096 # MinGW DLLs use traditional 'lib' prefix
13097 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13098 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13099 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13100 # It is most probably a Windows format PATH printed by
13101 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13102 # path with ; separators, and with drive letters. We can handle the
13103 # drive letters (cygwin fileutils understands them), so leave them,
13104 # especially as we might pass files found there to a mingw objdump,
13105 # which wouldn't understand a cygwinified path. Ahh.
13106 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13108 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13112 # pw32 DLLs use 'pw' prefix rather than 'lib'
13113 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13119 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13122 dynamic_linker='Win32 ld.exe'
13123 # FIXME: first we should search . and the directory the executable is in
13127 darwin* | rhapsody*)
13128 dynamic_linker="$host_os dyld"
13129 version_type=darwin
13132 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13133 soname_spec='${libname}${release}${major}$shared_ext'
13134 shlibpath_overrides_runpath=yes
13135 shlibpath_var=DYLD_LIBRARY_PATH
13136 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13138 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13146 soname_spec='${libname}${release}${shared_ext}$major'
13147 shlibpath_var=LD_LIBRARY_PATH
13154 freebsd* | dragonfly*)
13155 # DragonFly does not have aout. When/if they implement a new
13156 # versioning mechanism, adjust this.
13157 if test -x /usr/bin/objformat; then
13158 objformat=`/usr/bin/objformat`
13161 freebsd[123]*) objformat=aout ;;
13162 *) objformat=elf ;;
13165 # Handle Gentoo/FreeBSD as it was Linux
13166 case $host_vendor in
13168 version_type=linux ;;
13170 version_type=freebsd-$objformat ;;
13173 case $version_type in
13175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13180 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13185 soname_spec='${libname}${release}${shared_ext}$major'
13190 shlibpath_var=LD_LIBRARY_PATH
13193 shlibpath_overrides_runpath=yes
13195 freebsd3.[01]* | freebsdelf3.[01]*)
13196 shlibpath_overrides_runpath=yes
13197 hardcode_into_libs=yes
13199 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13200 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13201 shlibpath_overrides_runpath=no
13202 hardcode_into_libs=yes
13204 *) # from 4.6 on, and DragonFly
13205 shlibpath_overrides_runpath=yes
13206 hardcode_into_libs=yes
13215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13216 soname_spec='${libname}${release}${shared_ext}$major'
13217 shlibpath_var=LD_LIBRARY_PATH
13218 hardcode_into_libs=yes
13221 hpux9* | hpux10* | hpux11*)
13222 # Give a soname corresponding to the major version so that dld.sl refuses to
13223 # link against other versions.
13230 hardcode_into_libs=yes
13231 dynamic_linker="$host_os dld.so"
13232 shlibpath_var=LD_LIBRARY_PATH
13233 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13235 soname_spec='${libname}${release}${shared_ext}$major'
13236 if test "X$HPUX_IA64_MODE" = X32; then
13237 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13239 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13241 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13245 hardcode_into_libs=yes
13246 dynamic_linker="$host_os dld.sl"
13247 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13248 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13250 soname_spec='${libname}${release}${shared_ext}$major'
13251 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13252 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13256 dynamic_linker="$host_os dld.sl"
13257 shlibpath_var=SHLIB_PATH
13258 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13260 soname_spec='${libname}${release}${shared_ext}$major'
13263 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13264 postinstall_cmds='chmod 555 $lib'
13271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13272 soname_spec='${libname}${release}${shared_ext}$major'
13273 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13274 shlibpath_var=LD_LIBRARY_PATH
13275 shlibpath_overrides_runpath=no
13276 hardcode_into_libs=yes
13279 irix5* | irix6* | nonstopux*)
13281 nonstopux*) version_type=nonstopux ;;
13283 if test "$lt_cv_prog_gnu_ld" = yes; then
13291 soname_spec='${libname}${release}${shared_ext}$major'
13292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13294 irix5* | nonstopux*)
13295 libsuff= shlibsuff=
13298 case $LD in # libtool.m4 will add one of these switches to LD
13299 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13300 libsuff= shlibsuff= libmagic=32-bit;;
13301 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13302 libsuff=32 shlibsuff=N32 libmagic=N32;;
13303 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13304 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13305 *) libsuff= shlibsuff= libmagic=never-match;;
13309 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13310 shlibpath_overrides_runpath=no
13311 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13312 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13313 hardcode_into_libs=yes
13316 # No shared lib support for Linux oldld, aout, or coff.
13317 linux*oldld* | linux*aout* | linux*coff*)
13321 # This must be Linux ELF.
13322 linux* | k*bsd*-gnu)
13326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13327 soname_spec='${libname}${release}${shared_ext}$major'
13328 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13329 shlibpath_var=LD_LIBRARY_PATH
13330 shlibpath_overrides_runpath=no
13331 # This implies no fast_install, which is unacceptable.
13332 # Some rework will be needed to allow for fast_install
13333 # before this can be enabled.
13334 hardcode_into_libs=yes
13336 # Append ld.so.conf contents to the search path
13337 if test -f /etc/ld.so.conf; then
13338 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13339 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13342 # We used to test for /lib/ld.so.1 and disable shared libraries on
13343 # powerpc, because MkLinux only supported shared libraries with the
13344 # GNU dynamic linker. Since this was broken with cross compilers,
13345 # most powerpc-linux boxes support dynamic linking these days and
13346 # people can always --disable-shared, the test was removed, and we
13347 # assume the GNU/Linux dynamic linker is in use.
13348 dynamic_linker='GNU/Linux ld.so'
13355 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13358 dynamic_linker='NetBSD (a.out) ld.so'
13360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13361 soname_spec='${libname}${release}${shared_ext}$major'
13362 dynamic_linker='NetBSD ld.elf_so'
13364 shlibpath_var=LD_LIBRARY_PATH
13365 shlibpath_overrides_runpath=yes
13366 hardcode_into_libs=yes
13371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13372 shlibpath_var=LD_LIBRARY_PATH
13373 shlibpath_overrides_runpath=yes
13380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13381 soname_spec='${libname}${release}${shared_ext}$major'
13382 shlibpath_var=LD_LIBRARY_PATH
13383 shlibpath_overrides_runpath=yes
13388 sys_lib_dlsearch_path_spec="/usr/lib"
13390 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13392 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13393 *) need_version=no ;;
13395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13397 shlibpath_var=LD_LIBRARY_PATH
13398 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13400 openbsd2.[89] | openbsd2.[89].*)
13401 shlibpath_overrides_runpath=no
13404 shlibpath_overrides_runpath=yes
13408 shlibpath_overrides_runpath=yes
13413 libname_spec='$name'
13416 library_names_spec='$libname${shared_ext} $libname.a'
13417 dynamic_linker='OS/2 ld.exe'
13418 shlibpath_var=LIBPATH
13421 osf3* | osf4* | osf5*)
13425 soname_spec='${libname}${release}${shared_ext}$major'
13426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13427 shlibpath_var=LD_LIBRARY_PATH
13428 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13429 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13441 soname_spec='${libname}${release}${shared_ext}$major'
13442 shlibpath_var=LD_LIBRARY_PATH
13443 shlibpath_overrides_runpath=yes
13444 hardcode_into_libs=yes
13445 # ldd complains unless libraries are executable
13446 postinstall_cmds='chmod +x $lib'
13451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13452 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13453 shlibpath_var=LD_LIBRARY_PATH
13454 shlibpath_overrides_runpath=yes
13455 if test "$with_gnu_ld" = yes; then
13463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13464 soname_spec='${libname}${release}${shared_ext}$major'
13465 shlibpath_var=LD_LIBRARY_PATH
13466 case $host_vendor in
13468 shlibpath_overrides_runpath=no
13470 export_dynamic_flag_spec='${wl}-Blargedynsym'
13471 runpath_var=LD_RUN_PATH
13479 shlibpath_overrides_runpath=no
13480 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13486 if test -d /usr/nec ;then
13488 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13489 soname_spec='$libname${shared_ext}.$major'
13490 shlibpath_var=LD_LIBRARY_PATH
13494 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13495 version_type=freebsd-elf
13498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13499 soname_spec='${libname}${release}${shared_ext}$major'
13500 shlibpath_var=LD_LIBRARY_PATH
13501 hardcode_into_libs=yes
13502 if test "$with_gnu_ld" = yes; then
13503 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13504 shlibpath_overrides_runpath=no
13506 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13507 shlibpath_overrides_runpath=yes
13510 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13514 sys_lib_dlsearch_path_spec='/usr/lib'
13519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13520 soname_spec='${libname}${release}${shared_ext}$major'
13521 shlibpath_var=LD_LIBRARY_PATH
13528 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13529 echo "${ECHO_T}$dynamic_linker" >&6; }
13530 test "$dynamic_linker" = no && can_build_shared=no
13532 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13533 if test "$GCC" = yes; then
13534 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13537 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13538 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13539 hardcode_action_CXX=
13540 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13541 test -n "$runpath_var_CXX" || \
13542 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13544 # We can hardcode non-existant directories.
13545 if test "$hardcode_direct_CXX" != no &&
13546 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13547 # have to relink, otherwise we might link with an installed library
13548 # when we should be linking with a yet-to-be-installed one
13549 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13550 test "$hardcode_minus_L_CXX" != no; then
13551 # Linking always hardcodes the temporary library directory.
13552 hardcode_action_CXX=relink
13554 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13555 hardcode_action_CXX=immediate
13558 # We cannot hardcode anything, or else we can only hardcode existing
13560 hardcode_action_CXX=unsupported
13562 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13563 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13565 if test "$hardcode_action_CXX" = relink; then
13566 # Fast installation is not supported
13567 enable_fast_install=no
13568 elif test "$shlibpath_overrides_runpath" = yes ||
13569 test "$enable_shared" = no; then
13570 # Fast installation is not necessary
13571 enable_fast_install=needless
13575 # The else clause should only fire when bootstrapping the
13576 # libtool distribution, otherwise you forgot to ship ltmain.sh
13577 # with your package, and you will get complaints that there are
13578 # no rules to generate ltmain.sh.
13579 if test -f "$ltmain"; then
13580 # See if we are running on zsh, and set the options which allow our commands through
13581 # without removal of \ escapes.
13582 if test -n "${ZSH_VERSION+set}" ; then
13583 setopt NO_GLOB_SUBST
13585 # Now quote all the things that may contain metacharacters while being
13586 # careful not to overquote the AC_SUBSTed values. We take copies of the
13587 # variables and quote the copies for generation of the libtool script.
13588 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13590 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13591 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13592 deplibs_check_method reload_flag reload_cmds need_locks \
13593 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13594 lt_cv_sys_global_symbol_to_c_name_address \
13595 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13596 old_postinstall_cmds old_postuninstall_cmds \
13600 lt_prog_compiler_wl_CXX \
13601 lt_prog_compiler_pic_CXX \
13602 lt_prog_compiler_static_CXX \
13603 lt_prog_compiler_no_builtin_flag_CXX \
13604 export_dynamic_flag_spec_CXX \
13605 thread_safe_flag_spec_CXX \
13606 whole_archive_flag_spec_CXX \
13607 enable_shared_with_static_runtimes_CXX \
13608 old_archive_cmds_CXX \
13609 old_archive_from_new_cmds_CXX \
13610 predep_objects_CXX \
13611 postdep_objects_CXX \
13614 compiler_lib_search_path_CXX \
13616 archive_expsym_cmds_CXX \
13617 postinstall_cmds_CXX \
13618 postuninstall_cmds_CXX \
13619 old_archive_from_expsyms_cmds_CXX \
13620 allow_undefined_flag_CXX \
13621 no_undefined_flag_CXX \
13622 export_symbols_cmds_CXX \
13623 hardcode_libdir_flag_spec_CXX \
13624 hardcode_libdir_flag_spec_ld_CXX \
13625 hardcode_libdir_separator_CXX \
13626 hardcode_automatic_CXX \
13628 module_expsym_cmds_CXX \
13629 lt_cv_prog_compiler_c_o_CXX \
13630 fix_srcfile_path_CXX \
13631 exclude_expsyms_CXX \
13632 include_expsyms_CXX; do
13635 old_archive_cmds_CXX | \
13636 old_archive_from_new_cmds_CXX | \
13637 archive_cmds_CXX | \
13638 archive_expsym_cmds_CXX | \
13639 module_cmds_CXX | \
13640 module_expsym_cmds_CXX | \
13641 old_archive_from_expsyms_cmds_CXX | \
13642 export_symbols_cmds_CXX | \
13643 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13644 postinstall_cmds | postuninstall_cmds | \
13645 old_postinstall_cmds | old_postuninstall_cmds | \
13646 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13647 # Double-quote double-evaled strings.
13648 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13651 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13657 *'\$0 --fallback-echo"')
13658 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13664 cat <<__EOF__ >> "$cfgfile"
13665 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13667 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13669 # Shell to use when invoking shell scripts.
13672 # Whether or not to build shared libraries.
13673 build_libtool_libs=$enable_shared
13675 # Whether or not to build static libraries.
13676 build_old_libs=$enable_static
13678 # Whether or not to add -lc for building shared libraries.
13679 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13681 # Whether or not to disallow shared libs when runtime libs are static
13682 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13684 # Whether or not to optimize for fast installation.
13685 fast_install=$enable_fast_install
13688 host_alias=$host_alias
13692 # The build system.
13693 build_alias=$build_alias
13697 # An echo program that does not interpret backslashes.
13702 AR_FLAGS=$lt_AR_FLAGS
13707 # LTCC compiler flags.
13708 LTCFLAGS=$lt_LTCFLAGS
13710 # A language-specific compiler.
13711 CC=$lt_compiler_CXX
13713 # Is the compiler the GNU C compiler?
13719 # The linker used to build libraries.
13722 # Whether we need hard or soft links.
13725 # A BSD-compatible nm program.
13728 # A symbol stripping program
13731 # Used to examine libraries when file_magic_cmd begins "file"
13732 MAGIC_CMD=$MAGIC_CMD
13734 # Used on cygwin: DLL creation program.
13737 # Used on cygwin: object dumper.
13740 # Used on cygwin: assembler.
13743 # The name of the directory that contains temporary libtool files.
13746 # How to create reloadable object files.
13747 reload_flag=$lt_reload_flag
13748 reload_cmds=$lt_reload_cmds
13750 # How to pass a linker flag through the compiler.
13751 wl=$lt_lt_prog_compiler_wl_CXX
13753 # Object file suffix (normally "o").
13754 objext="$ac_objext"
13756 # Old archive suffix (normally "a").
13759 # Shared library suffix (normally ".so").
13760 shrext_cmds='$shrext_cmds'
13762 # Executable file suffix (normally "").
13765 # Additional compiler flags for building library objects.
13766 pic_flag=$lt_lt_prog_compiler_pic_CXX
13769 # What is the maximum length of a command?
13770 max_cmd_len=$lt_cv_sys_max_cmd_len
13772 # Does compiler simultaneously support -c and -o options?
13773 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13775 # Must we lock files when doing compilation?
13776 need_locks=$lt_need_locks
13778 # Do we need the lib prefix for modules?
13779 need_lib_prefix=$need_lib_prefix
13781 # Do we need a version for libraries?
13782 need_version=$need_version
13784 # Whether dlopen is supported.
13785 dlopen_support=$enable_dlopen
13787 # Whether dlopen of programs is supported.
13788 dlopen_self=$enable_dlopen_self
13790 # Whether dlopen of statically linked programs is supported.
13791 dlopen_self_static=$enable_dlopen_self_static
13793 # Compiler flag to prevent dynamic linking.
13794 link_static_flag=$lt_lt_prog_compiler_static_CXX
13796 # Compiler flag to turn off builtin functions.
13797 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13799 # Compiler flag to allow reflexive dlopens.
13800 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13802 # Compiler flag to generate shared objects directly from archives.
13803 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13805 # Compiler flag to generate thread-safe objects.
13806 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13808 # Library versioning type.
13809 version_type=$version_type
13811 # Format of library name prefix.
13812 libname_spec=$lt_libname_spec
13814 # List of archive names. First name is the real one, the rest are links.
13815 # The last name is the one that the linker finds with -lNAME.
13816 library_names_spec=$lt_library_names_spec
13818 # The coded name of the library, if different from the real name.
13819 soname_spec=$lt_soname_spec
13821 # Commands used to build and install an old-style archive.
13823 old_archive_cmds=$lt_old_archive_cmds_CXX
13824 old_postinstall_cmds=$lt_old_postinstall_cmds
13825 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13827 # Create an old-style archive from a shared archive.
13828 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13830 # Create a temporary old-style archive to link instead of a shared archive.
13831 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13833 # Commands used to build and install a shared archive.
13834 archive_cmds=$lt_archive_cmds_CXX
13835 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13836 postinstall_cmds=$lt_postinstall_cmds
13837 postuninstall_cmds=$lt_postuninstall_cmds
13839 # Commands used to build a loadable module (assumed same as above if empty)
13840 module_cmds=$lt_module_cmds_CXX
13841 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13843 # Commands to strip libraries.
13844 old_striplib=$lt_old_striplib
13845 striplib=$lt_striplib
13847 # Dependencies to place before the objects being linked to create a
13849 predep_objects=$lt_predep_objects_CXX
13851 # Dependencies to place after the objects being linked to create a
13853 postdep_objects=$lt_postdep_objects_CXX
13855 # Dependencies to place before the objects being linked to create a
13857 predeps=$lt_predeps_CXX
13859 # Dependencies to place after the objects being linked to create a
13861 postdeps=$lt_postdeps_CXX
13863 # The library search path used internally by the compiler when linking
13864 # a shared library.
13865 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13867 # Method to check whether dependent libraries are shared objects.
13868 deplibs_check_method=$lt_deplibs_check_method
13870 # Command to use when deplibs_check_method == file_magic.
13871 file_magic_cmd=$lt_file_magic_cmd
13873 # Flag that allows shared libraries with undefined symbols to be built.
13874 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13876 # Flag that forces no undefined symbols.
13877 no_undefined_flag=$lt_no_undefined_flag_CXX
13879 # Commands used to finish a libtool library installation in a directory.
13880 finish_cmds=$lt_finish_cmds
13882 # Same as above, but a single script fragment to be evaled but not shown.
13883 finish_eval=$lt_finish_eval
13885 # Take the output of nm and produce a listing of raw symbols and C names.
13886 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13888 # Transform the output of nm in a proper C declaration
13889 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13891 # Transform the output of nm in a C name address pair
13892 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13894 # This is the shared library runtime path variable.
13895 runpath_var=$runpath_var
13897 # This is the shared library path variable.
13898 shlibpath_var=$shlibpath_var
13900 # Is shlibpath searched before the hard-coded library search path?
13901 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13903 # How to hardcode a shared library path into an executable.
13904 hardcode_action=$hardcode_action_CXX
13906 # Whether we should hardcode library paths into libraries.
13907 hardcode_into_libs=$hardcode_into_libs
13909 # Flag to hardcode \$libdir into a binary during linking.
13910 # This must work even if \$libdir does not exist.
13911 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13913 # If ld is used when linking, flag to hardcode \$libdir into
13914 # a binary during linking. This must work even if \$libdir does
13916 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13918 # Whether we need a single -rpath flag with a separated argument.
13919 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13921 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13922 # resulting binary.
13923 hardcode_direct=$hardcode_direct_CXX
13925 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13926 # resulting binary.
13927 hardcode_minus_L=$hardcode_minus_L_CXX
13929 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13930 # the resulting binary.
13931 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13933 # Set to yes if building a shared library automatically hardcodes DIR into the library
13934 # and all subsequent libraries and executables linked against it.
13935 hardcode_automatic=$hardcode_automatic_CXX
13937 # Variables whose values should be saved in libtool wrapper scripts and
13938 # restored at relink time.
13939 variables_saved_for_relink="$variables_saved_for_relink"
13941 # Whether libtool must link a program against all its dependency libraries.
13942 link_all_deplibs=$link_all_deplibs_CXX
13944 # Compile-time system search path for libraries
13945 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13947 # Run-time system search path for libraries
13948 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13950 # Fix the shell variable \$srcfile for the compiler.
13951 fix_srcfile_path=$lt_fix_srcfile_path
13953 # Set to yes if exported symbols are required.
13954 always_export_symbols=$always_export_symbols_CXX
13956 # The commands to list exported symbols.
13957 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13959 # The commands to extract the exported symbol list from a shared archive.
13960 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13962 # Symbols that should not be listed in the preloaded symbols.
13963 exclude_expsyms=$lt_exclude_expsyms_CXX
13965 # Symbols that must always be exported.
13966 include_expsyms=$lt_include_expsyms_CXX
13968 # ### END LIBTOOL TAG CONFIG: $tagname
13974 # If there is no Makefile yet, we rely on a make rule to execute
13975 # `config.status --recheck' to rerun these tests and create the
13976 # libtool script then.
13977 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13978 if test -f "$ltmain_in"; then
13979 test -f Makefile && make "$ltmain"
13985 ac_cpp='$CPP $CPPFLAGS'
13986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13994 with_gnu_ldcxx=$with_gnu_ld
13995 with_gnu_ld=$lt_save_with_gnu_ld
13996 lt_cv_path_LDCXX=$lt_cv_path_LD
13997 lt_cv_path_LD=$lt_save_path_LD
13998 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13999 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14007 if test -n "$F77" && test "X$F77" != "Xno"; then
14010 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14011 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14012 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14015 archive_cmds_need_lc_F77=no
14016 allow_undefined_flag_F77=
14017 always_export_symbols_F77=no
14018 archive_expsym_cmds_F77=
14019 export_dynamic_flag_spec_F77=
14020 hardcode_direct_F77=no
14021 hardcode_libdir_flag_spec_F77=
14022 hardcode_libdir_flag_spec_ld_F77=
14023 hardcode_libdir_separator_F77=
14024 hardcode_minus_L_F77=no
14025 hardcode_automatic_F77=no
14027 module_expsym_cmds_F77=
14028 link_all_deplibs_F77=unknown
14029 old_archive_cmds_F77=$old_archive_cmds
14030 no_undefined_flag_F77=
14031 whole_archive_flag_spec_F77=
14032 enable_shared_with_static_runtimes_F77=no
14034 # Source file extension for f77 test sources.
14037 # Object file extension for compiled f77 test sources.
14041 # Code to be used in simple compile tests
14042 lt_simple_compile_test_code="\
14048 # Code to be used in simple link tests
14049 lt_simple_link_test_code="\
14054 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14056 # If no C compiler was specified, use CC.
14059 # If no C compiler flags were specified, use CFLAGS.
14060 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14062 # Allow CC to be a program name with arguments.
14066 # save warnings/boilerplate of simple test code
14067 ac_outfile=conftest.$ac_objext
14068 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14069 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14070 _lt_compiler_boilerplate=`cat conftest.err`
14073 ac_outfile=conftest.$ac_objext
14074 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14075 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14076 _lt_linker_boilerplate=`cat conftest.err`
14080 # Allow CC to be a program name with arguments.
14085 for cc_temp in $compiler""; do
14087 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14088 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14093 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14096 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14097 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14098 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14099 echo "${ECHO_T}$can_build_shared" >&6; }
14101 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14102 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14103 test "$can_build_shared" = "no" && enable_shared=no
14105 # On AIX, shared libraries and static libraries use the same namespace, and
14106 # are all built from PIC.
14109 test "$enable_shared" = yes && enable_static=no
14110 if test -n "$RANLIB"; then
14111 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14112 postinstall_cmds='$RANLIB $lib'
14116 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14117 test "$enable_shared" = yes && enable_static=no
14121 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14122 echo "${ECHO_T}$enable_shared" >&6; }
14124 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14125 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14126 # Make sure either enable_shared or enable_static is yes.
14127 test "$enable_shared" = yes || enable_static=yes
14128 { echo "$as_me:$LINENO: result: $enable_static" >&5
14129 echo "${ECHO_T}$enable_static" >&6; }
14134 lt_prog_compiler_wl_F77=
14135 lt_prog_compiler_pic_F77=
14136 lt_prog_compiler_static_F77=
14138 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14139 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14141 if test "$GCC" = yes; then
14142 lt_prog_compiler_wl_F77='-Wl,'
14143 lt_prog_compiler_static_F77='-static'
14147 # All AIX code is PIC.
14148 if test "$host_cpu" = ia64; then
14149 # AIX 5 now supports IA64 processor
14150 lt_prog_compiler_static_F77='-Bstatic'
14155 # FIXME: we need at least 68020 code to build shared libraries, but
14156 # adding the `-m68020' flag to GCC prevents building anything better,
14158 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14161 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14162 # PIC is the default for these OSes.
14165 mingw* | cygwin* | pw32* | os2*)
14166 # This hack is so that the source file can tell whether it is being
14167 # built for inclusion in a dll (and should export symbols for example).
14168 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14169 # (--disable-auto-import) libraries
14170 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14173 darwin* | rhapsody*)
14174 # PIC is the default on this platform
14175 # Common symbols not allowed in MH_DYLIB files
14176 lt_prog_compiler_pic_F77='-fno-common'
14180 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14181 # Instead, we relocate shared libraries at runtime.
14185 # Just because we use GCC doesn't mean we suddenly get shared libraries
14186 # on systems that don't support them.
14187 lt_prog_compiler_can_build_shared_F77=no
14192 if test -d /usr/nec; then
14193 lt_prog_compiler_pic_F77=-Kconform_pic
14198 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14199 # not for PA HP-UX.
14205 lt_prog_compiler_pic_F77='-fPIC'
14211 lt_prog_compiler_pic_F77='-fPIC'
14215 # PORTME Check for flag to pass linker flags through the system compiler.
14218 lt_prog_compiler_wl_F77='-Wl,'
14219 if test "$host_cpu" = ia64; then
14220 # AIX 5 now supports IA64 processor
14221 lt_prog_compiler_static_F77='-Bstatic'
14223 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14227 # PIC is the default on this platform
14228 # Common symbols not allowed in MH_DYLIB files
14229 case $cc_basename in
14231 lt_prog_compiler_pic_F77='-qnocommon'
14232 lt_prog_compiler_wl_F77='-Wl,'
14237 mingw* | cygwin* | pw32* | os2*)
14238 # This hack is so that the source file can tell whether it is being
14239 # built for inclusion in a dll (and should export symbols for example).
14240 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14243 hpux9* | hpux10* | hpux11*)
14244 lt_prog_compiler_wl_F77='-Wl,'
14245 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14246 # not for PA HP-UX.
14252 lt_prog_compiler_pic_F77='+Z'
14255 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14256 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14259 irix5* | irix6* | nonstopux*)
14260 lt_prog_compiler_wl_F77='-Wl,'
14261 # PIC (with -KPIC) is the default.
14262 lt_prog_compiler_static_F77='-non_shared'
14266 lt_prog_compiler_pic_F77='-KPIC'
14267 lt_prog_compiler_static_F77='-Bstatic'
14270 linux* | k*bsd*-gnu)
14271 case $cc_basename in
14273 lt_prog_compiler_wl_F77='-Wl,'
14274 lt_prog_compiler_pic_F77='-KPIC'
14275 lt_prog_compiler_static_F77='-static'
14277 pgcc* | pgf77* | pgf90* | pgf95*)
14278 # Portland Group compilers (*not* the Pentium gcc compiler,
14279 # which looks to be a dead project)
14280 lt_prog_compiler_wl_F77='-Wl,'
14281 lt_prog_compiler_pic_F77='-fpic'
14282 lt_prog_compiler_static_F77='-Bstatic'
14285 lt_prog_compiler_wl_F77='-Wl,'
14286 # All Alpha code is PIC.
14287 lt_prog_compiler_static_F77='-non_shared'
14290 case `$CC -V 2>&1 | sed 5q` in
14293 lt_prog_compiler_pic_F77='-KPIC'
14294 lt_prog_compiler_static_F77='-Bstatic'
14295 lt_prog_compiler_wl_F77='-Wl,'
14298 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14299 lt_prog_compiler_pic_F77='-KPIC'
14300 lt_prog_compiler_static_F77='-Bstatic'
14301 lt_prog_compiler_wl_F77=''
14308 osf3* | osf4* | osf5*)
14309 lt_prog_compiler_wl_F77='-Wl,'
14310 # All OSF/1 code is PIC.
14311 lt_prog_compiler_static_F77='-non_shared'
14315 lt_prog_compiler_static_F77='-non_shared'
14319 lt_prog_compiler_pic_F77='-KPIC'
14320 lt_prog_compiler_static_F77='-Bstatic'
14321 case $cc_basename in
14322 f77* | f90* | f95*)
14323 lt_prog_compiler_wl_F77='-Qoption ld ';;
14325 lt_prog_compiler_wl_F77='-Wl,';;
14330 lt_prog_compiler_wl_F77='-Qoption ld '
14331 lt_prog_compiler_pic_F77='-PIC'
14332 lt_prog_compiler_static_F77='-Bstatic'
14335 sysv4 | sysv4.2uw2* | sysv4.3*)
14336 lt_prog_compiler_wl_F77='-Wl,'
14337 lt_prog_compiler_pic_F77='-KPIC'
14338 lt_prog_compiler_static_F77='-Bstatic'
14342 if test -d /usr/nec ;then
14343 lt_prog_compiler_pic_F77='-Kconform_pic'
14344 lt_prog_compiler_static_F77='-Bstatic'
14348 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14349 lt_prog_compiler_wl_F77='-Wl,'
14350 lt_prog_compiler_pic_F77='-KPIC'
14351 lt_prog_compiler_static_F77='-Bstatic'
14355 lt_prog_compiler_wl_F77='-Wl,'
14356 lt_prog_compiler_can_build_shared_F77=no
14360 lt_prog_compiler_pic_F77='-pic'
14361 lt_prog_compiler_static_F77='-Bstatic'
14365 lt_prog_compiler_can_build_shared_F77=no
14370 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14371 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14374 # Check to make sure the PIC flag actually works.
14376 if test -n "$lt_prog_compiler_pic_F77"; then
14378 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14379 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14380 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14381 echo $ECHO_N "(cached) $ECHO_C" >&6
14383 lt_prog_compiler_pic_works_F77=no
14384 ac_outfile=conftest.$ac_objext
14385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14386 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14387 # Insert the option either (1) after the last *FLAGS variable, or
14388 # (2) before a word containing "conftest.", or (3) at the end.
14389 # Note that $ac_compile itself does not contain backslashes and begins
14390 # with a dollar sign (not a hyphen), so the echo should work correctly.
14391 # The option is referenced via a variable to avoid confusing sed.
14392 lt_compile=`echo "$ac_compile" | $SED \
14393 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14395 -e 's:$: $lt_compiler_flag:'`
14396 (eval echo "\"\$as_me:14396: $lt_compile\"" >&5)
14397 (eval "$lt_compile" 2>conftest.err)
14399 cat conftest.err >&5
14400 echo "$as_me:14400: \$? = $ac_status" >&5
14401 if (exit $ac_status) && test -s "$ac_outfile"; then
14402 # The compiler can only warn and ignore the option if not recognized
14403 # So say no if there are warnings other than the usual output.
14404 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14405 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14406 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14407 lt_prog_compiler_pic_works_F77=yes
14413 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14414 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14416 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14417 case $lt_prog_compiler_pic_F77 in
14419 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14422 lt_prog_compiler_pic_F77=
14423 lt_prog_compiler_can_build_shared_F77=no
14428 # For platforms which do not support PIC, -DPIC is meaningless:
14430 lt_prog_compiler_pic_F77=
14433 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14438 # Check to make sure the static flag actually works.
14440 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14441 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14442 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14443 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14444 echo $ECHO_N "(cached) $ECHO_C" >&6
14446 lt_prog_compiler_static_works_F77=no
14447 save_LDFLAGS="$LDFLAGS"
14448 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14449 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14450 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14451 # The linker can only warn and ignore the option if not recognized
14452 # So say no if there are warnings
14453 if test -s conftest.err; then
14454 # Append any errors to the config.log.
14455 cat conftest.err 1>&5
14456 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14457 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14458 if diff conftest.exp conftest.er2 >/dev/null; then
14459 lt_prog_compiler_static_works_F77=yes
14462 lt_prog_compiler_static_works_F77=yes
14466 LDFLAGS="$save_LDFLAGS"
14469 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14470 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14472 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14475 lt_prog_compiler_static_F77=
14479 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14480 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14481 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14482 echo $ECHO_N "(cached) $ECHO_C" >&6
14484 lt_cv_prog_compiler_c_o_F77=no
14485 $rm -r conftest 2>/dev/null
14489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14491 lt_compiler_flag="-o out/conftest2.$ac_objext"
14492 # Insert the option either (1) after the last *FLAGS variable, or
14493 # (2) before a word containing "conftest.", or (3) at the end.
14494 # Note that $ac_compile itself does not contain backslashes and begins
14495 # with a dollar sign (not a hyphen), so the echo should work correctly.
14496 lt_compile=`echo "$ac_compile" | $SED \
14497 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14498 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14499 -e 's:$: $lt_compiler_flag:'`
14500 (eval echo "\"\$as_me:14500: $lt_compile\"" >&5)
14501 (eval "$lt_compile" 2>out/conftest.err)
14503 cat out/conftest.err >&5
14504 echo "$as_me:14504: \$? = $ac_status" >&5
14505 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14507 # The compiler can only warn and ignore the option if not recognized
14508 # So say no if there are warnings
14509 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14510 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14511 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14512 lt_cv_prog_compiler_c_o_F77=yes
14517 # SGI C++ compiler will create directory out/ii_files/ for
14518 # template instantiation
14519 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14520 $rm out/* && rmdir out
14526 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14527 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14530 hard_links="nottested"
14531 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14532 # do not overwrite the value of need_locks provided by the user
14533 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14534 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14537 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14539 ln conftest.a conftest.b 2>&5 || hard_links=no
14540 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14541 { echo "$as_me:$LINENO: result: $hard_links" >&5
14542 echo "${ECHO_T}$hard_links" >&6; }
14543 if test "$hard_links" = no; then
14544 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14545 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14552 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14553 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14556 allow_undefined_flag_F77=
14557 enable_shared_with_static_runtimes_F77=no
14559 archive_expsym_cmds_F77=
14560 old_archive_From_new_cmds_F77=
14561 old_archive_from_expsyms_cmds_F77=
14562 export_dynamic_flag_spec_F77=
14563 whole_archive_flag_spec_F77=
14564 thread_safe_flag_spec_F77=
14565 hardcode_libdir_flag_spec_F77=
14566 hardcode_libdir_flag_spec_ld_F77=
14567 hardcode_libdir_separator_F77=
14568 hardcode_direct_F77=no
14569 hardcode_minus_L_F77=no
14570 hardcode_shlibpath_var_F77=unsupported
14571 link_all_deplibs_F77=unknown
14572 hardcode_automatic_F77=no
14574 module_expsym_cmds_F77=
14575 always_export_symbols_F77=no
14576 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14577 # include_expsyms should be a list of space-separated symbols to be *always*
14578 # included in the symbol list
14579 include_expsyms_F77=
14580 # exclude_expsyms can be an extended regexp of symbols to exclude
14581 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14582 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14583 # as well as any symbol that contains `d'.
14584 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14585 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14586 # platforms (ab)use it in PIC code, but their linkers get confused if
14587 # the symbol is explicitly referenced. Since portable code cannot
14588 # rely on this symbol name, it's probably fine to never include it in
14589 # preloaded symbol tables.
14590 extract_expsyms_cmds=
14591 # Just being paranoid about ensuring that cc_basename is set.
14592 for cc_temp in $compiler""; do
14594 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14595 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14600 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14603 cygwin* | mingw* | pw32*)
14604 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14605 # When not using gcc, we currently assume that we are using
14606 # Microsoft Visual C++.
14607 if test "$GCC" != yes; then
14612 # we just hope/assume this is gcc and not c89 (= MSVC++)
14621 if test "$with_gnu_ld" = yes; then
14622 # If archive_cmds runs LD, not CC, wlarc should be empty
14625 # Set some defaults for GNU ld with shared library support. These
14626 # are reset later if shared libraries are not supported. Putting them
14627 # here allows them to be overridden if necessary.
14628 runpath_var=LD_RUN_PATH
14629 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14630 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14631 # ancient GNU ld didn't support --whole-archive et. al.
14632 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14633 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14635 whole_archive_flag_spec_F77=
14637 supports_anon_versioning=no
14638 case `$LD -v 2>/dev/null` in
14639 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14640 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14641 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14642 *\ 2.11.*) ;; # other 2.11 versions
14643 *) supports_anon_versioning=yes ;;
14646 # See if GNU ld supports shared libraries.
14648 aix3* | aix4* | aix5*)
14649 # On AIX/PPC, the GNU linker is very broken
14650 if test "$host_cpu" != ia64; then
14654 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14655 *** to be unable to reliably create shared libraries on AIX.
14656 *** Therefore, libtool is disabling shared libraries support. If you
14657 *** really care for shared libraries, you may want to modify your PATH
14658 *** so that a non-GNU linker is found, and then restart.
14665 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)'
14666 hardcode_libdir_flag_spec_F77='-L$libdir'
14667 hardcode_minus_L_F77=yes
14669 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14670 # that the semantics of dynamic libraries on AmigaOS, at least up
14671 # to version 4, is to share data among multiple programs linked
14672 # with the same dynamic library. Since this doesn't match the
14673 # behavior of shared libraries on other platforms, we can't use
14679 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14680 allow_undefined_flag_F77=unsupported
14681 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14682 # support --undefined. This deserves some investigation. FIXME
14683 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14689 cygwin* | mingw* | pw32*)
14690 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14691 # as there is no search path for DLLs.
14692 hardcode_libdir_flag_spec_F77='-L$libdir'
14693 allow_undefined_flag_F77=unsupported
14694 always_export_symbols_F77=no
14695 enable_shared_with_static_runtimes_F77=yes
14696 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14698 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14699 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14700 # If the export-symbols file already is a .def file (1st line
14701 # is EXPORTS), use it as is; otherwise, prepend...
14702 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14703 cp $export_symbols $output_objdir/$soname.def;
14705 echo EXPORTS > $output_objdir/$soname.def;
14706 cat $export_symbols >> $output_objdir/$soname.def;
14708 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14715 hardcode_direct_F77=no
14716 hardcode_shlibpath_var_F77=no
14717 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14718 export_dynamic_flag_spec_F77='${wl}-E'
14719 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14720 # Instead, shared libraries are loaded at an image base (0x10000000 by
14721 # default) and relocated if they conflict, which is a slow very memory
14722 # consuming and fragmenting process. To avoid this, we pick a random,
14723 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14724 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14725 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'
14726 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'
14729 gnu* | linux* | k*bsd*-gnu)
14730 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14732 case $cc_basename,$host_cpu in
14733 pgcc*) # Portland Group C compiler
14734 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'
14735 tmp_addflag=' $pic_flag'
14737 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14738 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'
14739 tmp_addflag=' $pic_flag -Mnomain' ;;
14740 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14741 tmp_addflag=' -i_dynamic' ;;
14742 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14743 tmp_addflag=' -i_dynamic -nofor_main' ;;
14744 ifc* | ifort*) # Intel Fortran compiler
14745 tmp_addflag=' -nofor_main' ;;
14747 case `$CC -V 2>&1 | sed 5q` in
14748 *Sun\ C*) # Sun C 5.9
14749 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14750 tmp_sharedflag='-G' ;;
14751 *Sun\ F*) # Sun Fortran 8.3
14752 tmp_sharedflag='-G' ;;
14754 tmp_sharedflag='-shared' ;;
14756 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14758 if test $supports_anon_versioning = yes; then
14759 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14760 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14761 $echo "local: *; };" >> $output_objdir/$libname.ver~
14762 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14770 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14771 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14774 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14775 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14780 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14784 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14785 *** create shared libraries on Solaris systems. Therefore, libtool
14786 *** is disabling shared libraries support. We urge you to upgrade GNU
14787 *** binutils to release 2.9.1 or newer. Another option is to modify
14788 *** your PATH or compiler configuration so that the native linker is
14789 *** used, and then restart.
14792 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14793 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14794 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14800 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14801 case `$LD -v 2>&1` in
14802 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14806 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14807 *** reliably create shared libraries on SCO systems. Therefore, libtool
14808 *** is disabling shared libraries support. We urge you to upgrade GNU
14809 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14810 *** your PATH or compiler configuration so that the native linker is
14811 *** used, and then restart.
14816 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14817 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14818 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14819 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14828 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14830 hardcode_direct_F77=yes
14831 hardcode_shlibpath_var_F77=no
14835 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14836 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14837 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14844 if test "$ld_shlibs_F77" = no; then
14846 hardcode_libdir_flag_spec_F77=
14847 export_dynamic_flag_spec_F77=
14848 whole_archive_flag_spec_F77=
14851 # PORTME fill in a description of your system's linker (not GNU ld)
14854 allow_undefined_flag_F77=unsupported
14855 always_export_symbols_F77=yes
14856 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'
14857 # Note: this linker hardcodes the directories in LIBPATH if there
14858 # are no directories specified by -L.
14859 hardcode_minus_L_F77=yes
14860 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14861 # Neither direct hardcoding nor static linking is supported with a
14863 hardcode_direct_F77=unsupported
14868 if test "$host_cpu" = ia64; then
14869 # On IA64, the linker does run time linking by default, so we don't
14870 # have to do anything special.
14871 aix_use_runtimelinking=no
14872 exp_sym_flag='-Bexport'
14875 # If we're using GNU nm, then we don't want the "-C" option.
14876 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14877 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14878 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'
14880 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'
14882 aix_use_runtimelinking=no
14884 # Test if we are trying to use run time linking or normal
14885 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14886 # need to do runtime linking.
14887 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14888 for ld_flag in $LDFLAGS; do
14889 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14890 aix_use_runtimelinking=yes
14897 exp_sym_flag='-bexport'
14898 no_entry_flag='-bnoentry'
14901 # When large executables or shared objects are built, AIX ld can
14902 # have problems creating the table of contents. If linking a library
14903 # or program results in "error TOC overflow" add -mminimal-toc to
14904 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14905 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14907 archive_cmds_F77=''
14908 hardcode_direct_F77=yes
14909 hardcode_libdir_separator_F77=':'
14910 link_all_deplibs_F77=yes
14912 if test "$GCC" = yes; then
14913 case $host_os in aix4.[012]|aix4.[012].*)
14914 # We only want to do this on AIX 4.2 and lower, the check
14915 # below for broken collect2 doesn't work under 4.3+
14916 collect2name=`${CC} -print-prog-name=collect2`
14917 if test -f "$collect2name" && \
14918 strings "$collect2name" | grep resolve_lib_name >/dev/null
14920 # We have reworked collect2
14923 # We have old collect2
14924 hardcode_direct_F77=unsupported
14925 # It fails to find uninstalled libraries when the uninstalled
14926 # path is not listed in the libpath. Setting hardcode_minus_L
14927 # to unsupported forces relinking
14928 hardcode_minus_L_F77=yes
14929 hardcode_libdir_flag_spec_F77='-L$libdir'
14930 hardcode_libdir_separator_F77=
14934 shared_flag='-shared'
14935 if test "$aix_use_runtimelinking" = yes; then
14936 shared_flag="$shared_flag "'${wl}-G'
14940 if test "$host_cpu" = ia64; then
14941 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14942 # chokes on -Wl,-G. The following line is correct:
14945 if test "$aix_use_runtimelinking" = yes; then
14946 shared_flag='${wl}-G'
14948 shared_flag='${wl}-bM:SRE'
14953 # It seems that -bexpall does not export symbols beginning with
14954 # underscore (_), so it is better to generate a list of symbols to export.
14955 always_export_symbols_F77=yes
14956 if test "$aix_use_runtimelinking" = yes; then
14957 # Warning - without using the other runtime loading flags (-brtl),
14958 # -berok will link without error, but may produce a broken library.
14959 allow_undefined_flag_F77='-berok'
14960 # Determine the default libpath from the value encoded in an empty executable.
14961 cat >conftest.$ac_ext <<_ACEOF
14966 rm -f conftest.$ac_objext conftest$ac_exeext
14967 if { (ac_try="$ac_link"
14968 case "(($ac_try" in
14969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970 *) ac_try_echo=$ac_try;;
14972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14973 (eval "$ac_link") 2>conftest.er1
14975 grep -v '^ *+' conftest.er1 >conftest.err
14977 cat conftest.err >&5
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); } && {
14980 test -z "$ac_f77_werror_flag" ||
14981 test ! -s conftest.err
14982 } && test -s conftest$ac_exeext &&
14983 $as_test_x conftest$ac_exeext; then
14985 lt_aix_libpath_sed='
14986 /Import File Strings/,/^$/ {
14992 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14993 # Check for a 64-bit object if we didn't find anything.
14994 if test -z "$aix_libpath"; then
14995 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14998 echo "$as_me: failed program was:" >&5
14999 sed 's/^/| /' conftest.$ac_ext >&5
15004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15005 conftest$ac_exeext conftest.$ac_ext
15006 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15008 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15009 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"
15011 if test "$host_cpu" = ia64; then
15012 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15013 allow_undefined_flag_F77="-z nodefs"
15014 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"
15016 # Determine the default libpath from the value encoded in an empty executable.
15017 cat >conftest.$ac_ext <<_ACEOF
15022 rm -f conftest.$ac_objext conftest$ac_exeext
15023 if { (ac_try="$ac_link"
15024 case "(($ac_try" in
15025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15026 *) ac_try_echo=$ac_try;;
15028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15029 (eval "$ac_link") 2>conftest.er1
15031 grep -v '^ *+' conftest.er1 >conftest.err
15033 cat conftest.err >&5
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); } && {
15036 test -z "$ac_f77_werror_flag" ||
15037 test ! -s conftest.err
15038 } && test -s conftest$ac_exeext &&
15039 $as_test_x conftest$ac_exeext; then
15041 lt_aix_libpath_sed='
15042 /Import File Strings/,/^$/ {
15048 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15049 # Check for a 64-bit object if we didn't find anything.
15050 if test -z "$aix_libpath"; then
15051 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15054 echo "$as_me: failed program was:" >&5
15055 sed 's/^/| /' conftest.$ac_ext >&5
15060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15061 conftest$ac_exeext conftest.$ac_ext
15062 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15064 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15065 # Warning - without using the other run time loading flags,
15066 # -berok will link without error, but may produce a broken library.
15067 no_undefined_flag_F77=' ${wl}-bernotok'
15068 allow_undefined_flag_F77=' ${wl}-berok'
15069 # Exported symbols can be pulled into shared objects from archives
15070 whole_archive_flag_spec_F77='$convenience'
15071 archive_cmds_need_lc_F77=yes
15072 # This is similar to how AIX traditionally builds its shared libraries.
15073 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'
15079 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)'
15080 hardcode_libdir_flag_spec_F77='-L$libdir'
15081 hardcode_minus_L_F77=yes
15082 # see comment about different semantics on the GNU ld section
15087 export_dynamic_flag_spec_F77=-rdynamic
15090 cygwin* | mingw* | pw32*)
15091 # When not using gcc, we currently assume that we are using
15092 # Microsoft Visual C++.
15093 # hardcode_libdir_flag_spec is actually meaningless, as there is
15094 # no search path for DLLs.
15095 hardcode_libdir_flag_spec_F77=' '
15096 allow_undefined_flag_F77=unsupported
15097 # Tell ltmain to make .lib files, not .a files.
15099 # Tell ltmain to make .dll files, not .so files.
15101 # FIXME: Setting linknames here is a bad hack.
15102 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15103 # The linker will automatically build a .lib file if we build a DLL.
15104 old_archive_From_new_cmds_F77='true'
15105 # FIXME: Should let the user specify the lib program.
15106 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15107 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15108 enable_shared_with_static_runtimes_F77=yes
15111 darwin* | rhapsody*)
15113 rhapsody* | darwin1.[012])
15114 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15117 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15118 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15120 case ${MACOSX_DEPLOYMENT_TARGET} in
15122 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15125 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15131 archive_cmds_need_lc_F77=no
15132 hardcode_direct_F77=no
15133 hardcode_automatic_F77=yes
15134 hardcode_shlibpath_var_F77=unsupported
15135 whole_archive_flag_spec_F77=''
15136 link_all_deplibs_F77=yes
15137 if test "$GCC" = yes ; then
15138 output_verbose_link_cmd='echo'
15139 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15140 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15141 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15142 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}'
15143 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}'
15145 case $cc_basename in
15147 output_verbose_link_cmd='echo'
15148 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15149 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15150 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15151 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15152 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}'
15162 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15163 hardcode_libdir_flag_spec_F77='-L$libdir'
15164 hardcode_shlibpath_var_F77=no
15171 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15172 # support. Future versions do this automatically, but an explicit c++rt0.o
15173 # does not break anything, and helps significantly (at the cost of a little
15176 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15177 hardcode_libdir_flag_spec_F77='-R$libdir'
15178 hardcode_direct_F77=yes
15179 hardcode_shlibpath_var_F77=no
15182 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15184 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15185 hardcode_direct_F77=yes
15186 hardcode_minus_L_F77=yes
15187 hardcode_shlibpath_var_F77=no
15190 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15191 freebsd* | dragonfly*)
15192 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15193 hardcode_libdir_flag_spec_F77='-R$libdir'
15194 hardcode_direct_F77=yes
15195 hardcode_shlibpath_var_F77=no
15199 if test "$GCC" = yes; then
15200 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'
15202 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'
15204 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15205 hardcode_libdir_separator_F77=:
15206 hardcode_direct_F77=yes
15208 # hardcode_minus_L: Not really in the search PATH,
15209 # but as the default location of the library.
15210 hardcode_minus_L_F77=yes
15211 export_dynamic_flag_spec_F77='${wl}-E'
15215 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15216 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15218 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15220 if test "$with_gnu_ld" = no; then
15221 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15222 hardcode_libdir_separator_F77=:
15224 hardcode_direct_F77=yes
15225 export_dynamic_flag_spec_F77='${wl}-E'
15227 # hardcode_minus_L: Not really in the search PATH,
15228 # but as the default location of the library.
15229 hardcode_minus_L_F77=yes
15234 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15237 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15240 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15243 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15249 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15252 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15255 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15259 if test "$with_gnu_ld" = no; then
15260 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15261 hardcode_libdir_separator_F77=:
15265 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15266 hardcode_direct_F77=no
15267 hardcode_shlibpath_var_F77=no
15270 hardcode_direct_F77=yes
15271 export_dynamic_flag_spec_F77='${wl}-E'
15273 # hardcode_minus_L: Not really in the search PATH,
15274 # but as the default location of the library.
15275 hardcode_minus_L_F77=yes
15281 irix5* | irix6* | nonstopux*)
15282 if test "$GCC" = yes; then
15283 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'
15285 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'
15286 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15288 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15289 hardcode_libdir_separator_F77=:
15290 link_all_deplibs_F77=yes
15294 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15295 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15297 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15299 hardcode_libdir_flag_spec_F77='-R$libdir'
15300 hardcode_direct_F77=yes
15301 hardcode_shlibpath_var_F77=no
15305 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15306 hardcode_direct_F77=yes
15307 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15308 hardcode_libdir_separator_F77=:
15309 hardcode_shlibpath_var_F77=no
15313 if test -f /usr/libexec/ld.so; then
15314 hardcode_direct_F77=yes
15315 hardcode_shlibpath_var_F77=no
15316 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15317 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15318 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15319 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15320 export_dynamic_flag_spec_F77='${wl}-E'
15323 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15324 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15325 hardcode_libdir_flag_spec_F77='-R$libdir'
15328 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15329 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15339 hardcode_libdir_flag_spec_F77='-L$libdir'
15340 hardcode_minus_L_F77=yes
15341 allow_undefined_flag_F77=unsupported
15342 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'
15343 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15347 if test "$GCC" = yes; then
15348 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15349 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'
15351 allow_undefined_flag_F77=' -expect_unresolved \*'
15352 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'
15354 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15355 hardcode_libdir_separator_F77=:
15358 osf4* | osf5*) # as osf3* with the addition of -msym flag
15359 if test "$GCC" = yes; then
15360 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15361 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'
15362 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15364 allow_undefined_flag_F77=' -expect_unresolved \*'
15365 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'
15366 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~
15367 $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'
15369 # Both c and cxx compiler support -rpath directly
15370 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15372 hardcode_libdir_separator_F77=:
15376 no_undefined_flag_F77=' -z text'
15377 if test "$GCC" = yes; then
15379 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15380 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15381 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15384 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15385 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15386 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15388 hardcode_libdir_flag_spec_F77='-R$libdir'
15389 hardcode_shlibpath_var_F77=no
15391 solaris2.[0-5] | solaris2.[0-5].*) ;;
15393 # The compiler driver will combine and reorder linker options,
15394 # but understands `-z linker_flag'. GCC discards it without `$wl',
15395 # but is careful enough not to reorder.
15396 # Supported since Solaris 2.6 (maybe 2.5.1?)
15397 if test "$GCC" = yes; then
15398 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15400 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15404 link_all_deplibs_F77=yes
15408 if test "x$host_vendor" = xsequent; then
15409 # Use $CC to link under sequent, because it throws in some extra .o
15410 # files that make .init and .fini sections work.
15411 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15413 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15415 hardcode_libdir_flag_spec_F77='-L$libdir'
15416 hardcode_direct_F77=yes
15417 hardcode_minus_L_F77=yes
15418 hardcode_shlibpath_var_F77=no
15422 case $host_vendor in
15424 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15425 hardcode_direct_F77=yes # is this really true???
15428 ## LD is ld it makes a PLAMLIB
15429 ## CC just makes a GrossModule.
15430 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15431 reload_cmds_F77='$CC -r -o $output$reload_objs'
15432 hardcode_direct_F77=no
15435 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15436 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15439 runpath_var='LD_RUN_PATH'
15440 hardcode_shlibpath_var_F77=no
15444 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15445 hardcode_shlibpath_var_F77=no
15446 export_dynamic_flag_spec_F77='-Bexport'
15450 if test -d /usr/nec; then
15451 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15452 hardcode_shlibpath_var_F77=no
15453 runpath_var=LD_RUN_PATH
15454 hardcode_runpath_var=yes
15459 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15460 no_undefined_flag_F77='${wl}-z,text'
15461 archive_cmds_need_lc_F77=no
15462 hardcode_shlibpath_var_F77=no
15463 runpath_var='LD_RUN_PATH'
15465 if test "$GCC" = yes; then
15466 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15467 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15469 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15470 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15474 sysv5* | sco3.2v5* | sco5v6*)
15475 # Note: We can NOT use -z defs as we might desire, because we do not
15476 # link with -lc, and that would cause any symbols used from libc to
15477 # always be unresolved, which means just about no library would
15478 # ever link correctly. If we're not using GNU ld we use -z text
15479 # though, which does catch some bad symbols but isn't as heavy-handed
15481 no_undefined_flag_F77='${wl}-z,text'
15482 allow_undefined_flag_F77='${wl}-z,nodefs'
15483 archive_cmds_need_lc_F77=no
15484 hardcode_shlibpath_var_F77=no
15485 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15486 hardcode_libdir_separator_F77=':'
15487 link_all_deplibs_F77=yes
15488 export_dynamic_flag_spec_F77='${wl}-Bexport'
15489 runpath_var='LD_RUN_PATH'
15491 if test "$GCC" = yes; then
15492 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15493 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15495 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15496 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15501 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15502 hardcode_libdir_flag_spec_F77='-L$libdir'
15503 hardcode_shlibpath_var_F77=no
15512 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15513 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15514 test "$ld_shlibs_F77" = no && can_build_shared=no
15517 # Do we need to explicitly link libc?
15519 case "x$archive_cmds_need_lc_F77" in
15521 # Assume -lc should be added
15522 archive_cmds_need_lc_F77=yes
15524 if test "$enable_shared" = yes && test "$GCC" = yes; then
15525 case $archive_cmds_F77 in
15527 # FIXME: we may have to deal with multi-command sequences.
15530 # Test whether the compiler implicitly links with -lc since on some
15531 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15532 # to ld, don't add -lc before -lgcc.
15533 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15534 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15539 (eval $ac_compile) 2>&5
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); } 2>conftest.err; then
15545 libobjs=conftest.$ac_objext
15547 wl=$lt_prog_compiler_wl_F77
15548 pic_flag=$lt_prog_compiler_pic_F77
15554 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15555 allow_undefined_flag_F77=
15556 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15557 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); }
15562 archive_cmds_need_lc_F77=no
15564 archive_cmds_need_lc_F77=yes
15566 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15568 cat conftest.err 1>&5
15571 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15572 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15579 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15580 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15581 library_names_spec=
15582 libname_spec='lib$name'
15586 postuninstall_cmds=
15590 shlibpath_overrides_runpath=unknown
15592 dynamic_linker="$host_os ld.so"
15593 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15595 need_lib_prefix=unknown
15596 hardcode_into_libs=no
15598 # when you set need_version to no, make sure it does not cause -set_version
15599 # flags to be left without arguments
15600 need_version=unknown
15605 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15606 shlibpath_var=LIBPATH
15608 # AIX 3 has no versioning support, so we append a major version to the name.
15609 soname_spec='${libname}${release}${shared_ext}$major'
15616 hardcode_into_libs=yes
15617 if test "$host_cpu" = ia64; then
15618 # AIX 5 supports IA64
15619 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15620 shlibpath_var=LD_LIBRARY_PATH
15622 # With GCC up to 2.95.x, collect2 would create an import file
15623 # for dependence libraries. The import file would start with
15624 # the line `#! .'. This would cause the generated library to
15625 # depend on `.', always an invalid library. This was fixed in
15626 # development snapshots of GCC prior to 3.0.
15628 aix4 | aix4.[01] | aix4.[01].*)
15629 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15631 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15634 can_build_shared=no
15638 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15639 # soname into executable. Probably we can add versioning support to
15640 # collect2, so additional links can be useful in future.
15641 if test "$aix_use_runtimelinking" = yes; then
15642 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15643 # instead of lib<name>.a to let people know that these are not
15644 # typical AIX shared libraries.
15645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15647 # We preserve .a as extension for shared libraries through AIX4.2
15648 # and later when we are not doing run time linking.
15649 library_names_spec='${libname}${release}.a $libname.a'
15650 soname_spec='${libname}${release}${shared_ext}$major'
15652 shlibpath_var=LIBPATH
15657 library_names_spec='$libname.ixlibrary $libname.a'
15658 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15659 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'
15663 library_names_spec='${libname}${shared_ext}'
15664 dynamic_linker="$host_os ld.so"
15665 shlibpath_var=LIBRARY_PATH
15671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15672 soname_spec='${libname}${release}${shared_ext}$major'
15673 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15674 shlibpath_var=LD_LIBRARY_PATH
15675 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15676 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15677 # the default ld.so.conf also contains /usr/contrib/lib and
15678 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15679 # libtool to hard-code these into programs
15682 cygwin* | mingw* | pw32*)
15683 version_type=windows
15688 case $GCC,$host_os in
15689 yes,cygwin* | yes,mingw* | yes,pw32*)
15690 library_names_spec='$libname.dll.a'
15691 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15692 postinstall_cmds='base_file=`basename \${file}`~
15693 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15694 dldir=$destdir/`dirname \$dlpath`~
15695 test -d \$dldir || mkdir -p \$dldir~
15696 $install_prog $dir/$dlname \$dldir/$dlname~
15697 chmod a+x \$dldir/$dlname'
15698 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15699 dlpath=$dir/\$dldll~
15701 shlibpath_overrides_runpath=yes
15705 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15706 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15707 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15710 # MinGW DLLs use traditional 'lib' prefix
15711 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15712 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15713 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15714 # It is most probably a Windows format PATH printed by
15715 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15716 # path with ; separators, and with drive letters. We can handle the
15717 # drive letters (cygwin fileutils understands them), so leave them,
15718 # especially as we might pass files found there to a mingw objdump,
15719 # which wouldn't understand a cygwinified path. Ahh.
15720 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15722 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15726 # pw32 DLLs use 'pw' prefix rather than 'lib'
15727 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15733 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15736 dynamic_linker='Win32 ld.exe'
15737 # FIXME: first we should search . and the directory the executable is in
15741 darwin* | rhapsody*)
15742 dynamic_linker="$host_os dyld"
15743 version_type=darwin
15746 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15747 soname_spec='${libname}${release}${major}$shared_ext'
15748 shlibpath_overrides_runpath=yes
15749 shlibpath_var=DYLD_LIBRARY_PATH
15750 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15752 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15760 soname_spec='${libname}${release}${shared_ext}$major'
15761 shlibpath_var=LD_LIBRARY_PATH
15768 freebsd* | dragonfly*)
15769 # DragonFly does not have aout. When/if they implement a new
15770 # versioning mechanism, adjust this.
15771 if test -x /usr/bin/objformat; then
15772 objformat=`/usr/bin/objformat`
15775 freebsd[123]*) objformat=aout ;;
15776 *) objformat=elf ;;
15779 # Handle Gentoo/FreeBSD as it was Linux
15780 case $host_vendor in
15782 version_type=linux ;;
15784 version_type=freebsd-$objformat ;;
15787 case $version_type in
15789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15794 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15799 soname_spec='${libname}${release}${shared_ext}$major'
15804 shlibpath_var=LD_LIBRARY_PATH
15807 shlibpath_overrides_runpath=yes
15809 freebsd3.[01]* | freebsdelf3.[01]*)
15810 shlibpath_overrides_runpath=yes
15811 hardcode_into_libs=yes
15813 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15814 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15815 shlibpath_overrides_runpath=no
15816 hardcode_into_libs=yes
15818 *) # from 4.6 on, and DragonFly
15819 shlibpath_overrides_runpath=yes
15820 hardcode_into_libs=yes
15829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15830 soname_spec='${libname}${release}${shared_ext}$major'
15831 shlibpath_var=LD_LIBRARY_PATH
15832 hardcode_into_libs=yes
15835 hpux9* | hpux10* | hpux11*)
15836 # Give a soname corresponding to the major version so that dld.sl refuses to
15837 # link against other versions.
15844 hardcode_into_libs=yes
15845 dynamic_linker="$host_os dld.so"
15846 shlibpath_var=LD_LIBRARY_PATH
15847 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15849 soname_spec='${libname}${release}${shared_ext}$major'
15850 if test "X$HPUX_IA64_MODE" = X32; then
15851 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15853 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15855 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15859 hardcode_into_libs=yes
15860 dynamic_linker="$host_os dld.sl"
15861 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15862 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15864 soname_spec='${libname}${release}${shared_ext}$major'
15865 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15866 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15870 dynamic_linker="$host_os dld.sl"
15871 shlibpath_var=SHLIB_PATH
15872 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15874 soname_spec='${libname}${release}${shared_ext}$major'
15877 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15878 postinstall_cmds='chmod 555 $lib'
15885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15886 soname_spec='${libname}${release}${shared_ext}$major'
15887 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15888 shlibpath_var=LD_LIBRARY_PATH
15889 shlibpath_overrides_runpath=no
15890 hardcode_into_libs=yes
15893 irix5* | irix6* | nonstopux*)
15895 nonstopux*) version_type=nonstopux ;;
15897 if test "$lt_cv_prog_gnu_ld" = yes; then
15905 soname_spec='${libname}${release}${shared_ext}$major'
15906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15908 irix5* | nonstopux*)
15909 libsuff= shlibsuff=
15912 case $LD in # libtool.m4 will add one of these switches to LD
15913 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15914 libsuff= shlibsuff= libmagic=32-bit;;
15915 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15916 libsuff=32 shlibsuff=N32 libmagic=N32;;
15917 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15918 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15919 *) libsuff= shlibsuff= libmagic=never-match;;
15923 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15924 shlibpath_overrides_runpath=no
15925 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15926 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15927 hardcode_into_libs=yes
15930 # No shared lib support for Linux oldld, aout, or coff.
15931 linux*oldld* | linux*aout* | linux*coff*)
15935 # This must be Linux ELF.
15936 linux* | k*bsd*-gnu)
15940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15941 soname_spec='${libname}${release}${shared_ext}$major'
15942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15943 shlibpath_var=LD_LIBRARY_PATH
15944 shlibpath_overrides_runpath=no
15945 # This implies no fast_install, which is unacceptable.
15946 # Some rework will be needed to allow for fast_install
15947 # before this can be enabled.
15948 hardcode_into_libs=yes
15950 # Append ld.so.conf contents to the search path
15951 if test -f /etc/ld.so.conf; then
15952 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15953 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15956 # We used to test for /lib/ld.so.1 and disable shared libraries on
15957 # powerpc, because MkLinux only supported shared libraries with the
15958 # GNU dynamic linker. Since this was broken with cross compilers,
15959 # most powerpc-linux boxes support dynamic linking these days and
15960 # people can always --disable-shared, the test was removed, and we
15961 # assume the GNU/Linux dynamic linker is in use.
15962 dynamic_linker='GNU/Linux ld.so'
15969 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15971 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15972 dynamic_linker='NetBSD (a.out) ld.so'
15974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15975 soname_spec='${libname}${release}${shared_ext}$major'
15976 dynamic_linker='NetBSD ld.elf_so'
15978 shlibpath_var=LD_LIBRARY_PATH
15979 shlibpath_overrides_runpath=yes
15980 hardcode_into_libs=yes
15985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15986 shlibpath_var=LD_LIBRARY_PATH
15987 shlibpath_overrides_runpath=yes
15994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15995 soname_spec='${libname}${release}${shared_ext}$major'
15996 shlibpath_var=LD_LIBRARY_PATH
15997 shlibpath_overrides_runpath=yes
16002 sys_lib_dlsearch_path_spec="/usr/lib"
16004 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16006 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16007 *) need_version=no ;;
16009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16010 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16011 shlibpath_var=LD_LIBRARY_PATH
16012 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16014 openbsd2.[89] | openbsd2.[89].*)
16015 shlibpath_overrides_runpath=no
16018 shlibpath_overrides_runpath=yes
16022 shlibpath_overrides_runpath=yes
16027 libname_spec='$name'
16030 library_names_spec='$libname${shared_ext} $libname.a'
16031 dynamic_linker='OS/2 ld.exe'
16032 shlibpath_var=LIBPATH
16035 osf3* | osf4* | osf5*)
16039 soname_spec='${libname}${release}${shared_ext}$major'
16040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16041 shlibpath_var=LD_LIBRARY_PATH
16042 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16043 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16055 soname_spec='${libname}${release}${shared_ext}$major'
16056 shlibpath_var=LD_LIBRARY_PATH
16057 shlibpath_overrides_runpath=yes
16058 hardcode_into_libs=yes
16059 # ldd complains unless libraries are executable
16060 postinstall_cmds='chmod +x $lib'
16065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16066 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16067 shlibpath_var=LD_LIBRARY_PATH
16068 shlibpath_overrides_runpath=yes
16069 if test "$with_gnu_ld" = yes; then
16077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16078 soname_spec='${libname}${release}${shared_ext}$major'
16079 shlibpath_var=LD_LIBRARY_PATH
16080 case $host_vendor in
16082 shlibpath_overrides_runpath=no
16084 export_dynamic_flag_spec='${wl}-Blargedynsym'
16085 runpath_var=LD_RUN_PATH
16093 shlibpath_overrides_runpath=no
16094 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16100 if test -d /usr/nec ;then
16102 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16103 soname_spec='$libname${shared_ext}.$major'
16104 shlibpath_var=LD_LIBRARY_PATH
16108 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16109 version_type=freebsd-elf
16112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16113 soname_spec='${libname}${release}${shared_ext}$major'
16114 shlibpath_var=LD_LIBRARY_PATH
16115 hardcode_into_libs=yes
16116 if test "$with_gnu_ld" = yes; then
16117 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16118 shlibpath_overrides_runpath=no
16120 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16121 shlibpath_overrides_runpath=yes
16124 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16128 sys_lib_dlsearch_path_spec='/usr/lib'
16133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16134 soname_spec='${libname}${release}${shared_ext}$major'
16135 shlibpath_var=LD_LIBRARY_PATH
16142 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16143 echo "${ECHO_T}$dynamic_linker" >&6; }
16144 test "$dynamic_linker" = no && can_build_shared=no
16146 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16147 if test "$GCC" = yes; then
16148 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16151 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16152 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16153 hardcode_action_F77=
16154 if test -n "$hardcode_libdir_flag_spec_F77" || \
16155 test -n "$runpath_var_F77" || \
16156 test "X$hardcode_automatic_F77" = "Xyes" ; then
16158 # We can hardcode non-existant directories.
16159 if test "$hardcode_direct_F77" != no &&
16160 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16161 # have to relink, otherwise we might link with an installed library
16162 # when we should be linking with a yet-to-be-installed one
16163 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16164 test "$hardcode_minus_L_F77" != no; then
16165 # Linking always hardcodes the temporary library directory.
16166 hardcode_action_F77=relink
16168 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16169 hardcode_action_F77=immediate
16172 # We cannot hardcode anything, or else we can only hardcode existing
16174 hardcode_action_F77=unsupported
16176 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16177 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16179 if test "$hardcode_action_F77" = relink; then
16180 # Fast installation is not supported
16181 enable_fast_install=no
16182 elif test "$shlibpath_overrides_runpath" = yes ||
16183 test "$enable_shared" = no; then
16184 # Fast installation is not necessary
16185 enable_fast_install=needless
16189 # The else clause should only fire when bootstrapping the
16190 # libtool distribution, otherwise you forgot to ship ltmain.sh
16191 # with your package, and you will get complaints that there are
16192 # no rules to generate ltmain.sh.
16193 if test -f "$ltmain"; then
16194 # See if we are running on zsh, and set the options which allow our commands through
16195 # without removal of \ escapes.
16196 if test -n "${ZSH_VERSION+set}" ; then
16197 setopt NO_GLOB_SUBST
16199 # Now quote all the things that may contain metacharacters while being
16200 # careful not to overquote the AC_SUBSTed values. We take copies of the
16201 # variables and quote the copies for generation of the libtool script.
16202 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16204 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16205 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16206 deplibs_check_method reload_flag reload_cmds need_locks \
16207 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16208 lt_cv_sys_global_symbol_to_c_name_address \
16209 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16210 old_postinstall_cmds old_postuninstall_cmds \
16214 lt_prog_compiler_wl_F77 \
16215 lt_prog_compiler_pic_F77 \
16216 lt_prog_compiler_static_F77 \
16217 lt_prog_compiler_no_builtin_flag_F77 \
16218 export_dynamic_flag_spec_F77 \
16219 thread_safe_flag_spec_F77 \
16220 whole_archive_flag_spec_F77 \
16221 enable_shared_with_static_runtimes_F77 \
16222 old_archive_cmds_F77 \
16223 old_archive_from_new_cmds_F77 \
16224 predep_objects_F77 \
16225 postdep_objects_F77 \
16228 compiler_lib_search_path_F77 \
16230 archive_expsym_cmds_F77 \
16231 postinstall_cmds_F77 \
16232 postuninstall_cmds_F77 \
16233 old_archive_from_expsyms_cmds_F77 \
16234 allow_undefined_flag_F77 \
16235 no_undefined_flag_F77 \
16236 export_symbols_cmds_F77 \
16237 hardcode_libdir_flag_spec_F77 \
16238 hardcode_libdir_flag_spec_ld_F77 \
16239 hardcode_libdir_separator_F77 \
16240 hardcode_automatic_F77 \
16242 module_expsym_cmds_F77 \
16243 lt_cv_prog_compiler_c_o_F77 \
16244 fix_srcfile_path_F77 \
16245 exclude_expsyms_F77 \
16246 include_expsyms_F77; do
16249 old_archive_cmds_F77 | \
16250 old_archive_from_new_cmds_F77 | \
16251 archive_cmds_F77 | \
16252 archive_expsym_cmds_F77 | \
16253 module_cmds_F77 | \
16254 module_expsym_cmds_F77 | \
16255 old_archive_from_expsyms_cmds_F77 | \
16256 export_symbols_cmds_F77 | \
16257 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16258 postinstall_cmds | postuninstall_cmds | \
16259 old_postinstall_cmds | old_postuninstall_cmds | \
16260 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16261 # Double-quote double-evaled strings.
16262 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16265 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16271 *'\$0 --fallback-echo"')
16272 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16278 cat <<__EOF__ >> "$cfgfile"
16279 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16281 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16283 # Shell to use when invoking shell scripts.
16286 # Whether or not to build shared libraries.
16287 build_libtool_libs=$enable_shared
16289 # Whether or not to build static libraries.
16290 build_old_libs=$enable_static
16292 # Whether or not to add -lc for building shared libraries.
16293 build_libtool_need_lc=$archive_cmds_need_lc_F77
16295 # Whether or not to disallow shared libs when runtime libs are static
16296 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16298 # Whether or not to optimize for fast installation.
16299 fast_install=$enable_fast_install
16302 host_alias=$host_alias
16306 # The build system.
16307 build_alias=$build_alias
16311 # An echo program that does not interpret backslashes.
16316 AR_FLAGS=$lt_AR_FLAGS
16321 # LTCC compiler flags.
16322 LTCFLAGS=$lt_LTCFLAGS
16324 # A language-specific compiler.
16325 CC=$lt_compiler_F77
16327 # Is the compiler the GNU C compiler?
16333 # The linker used to build libraries.
16336 # Whether we need hard or soft links.
16339 # A BSD-compatible nm program.
16342 # A symbol stripping program
16345 # Used to examine libraries when file_magic_cmd begins "file"
16346 MAGIC_CMD=$MAGIC_CMD
16348 # Used on cygwin: DLL creation program.
16351 # Used on cygwin: object dumper.
16354 # Used on cygwin: assembler.
16357 # The name of the directory that contains temporary libtool files.
16360 # How to create reloadable object files.
16361 reload_flag=$lt_reload_flag
16362 reload_cmds=$lt_reload_cmds
16364 # How to pass a linker flag through the compiler.
16365 wl=$lt_lt_prog_compiler_wl_F77
16367 # Object file suffix (normally "o").
16368 objext="$ac_objext"
16370 # Old archive suffix (normally "a").
16373 # Shared library suffix (normally ".so").
16374 shrext_cmds='$shrext_cmds'
16376 # Executable file suffix (normally "").
16379 # Additional compiler flags for building library objects.
16380 pic_flag=$lt_lt_prog_compiler_pic_F77
16383 # What is the maximum length of a command?
16384 max_cmd_len=$lt_cv_sys_max_cmd_len
16386 # Does compiler simultaneously support -c and -o options?
16387 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16389 # Must we lock files when doing compilation?
16390 need_locks=$lt_need_locks
16392 # Do we need the lib prefix for modules?
16393 need_lib_prefix=$need_lib_prefix
16395 # Do we need a version for libraries?
16396 need_version=$need_version
16398 # Whether dlopen is supported.
16399 dlopen_support=$enable_dlopen
16401 # Whether dlopen of programs is supported.
16402 dlopen_self=$enable_dlopen_self
16404 # Whether dlopen of statically linked programs is supported.
16405 dlopen_self_static=$enable_dlopen_self_static
16407 # Compiler flag to prevent dynamic linking.
16408 link_static_flag=$lt_lt_prog_compiler_static_F77
16410 # Compiler flag to turn off builtin functions.
16411 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16413 # Compiler flag to allow reflexive dlopens.
16414 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16416 # Compiler flag to generate shared objects directly from archives.
16417 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16419 # Compiler flag to generate thread-safe objects.
16420 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16422 # Library versioning type.
16423 version_type=$version_type
16425 # Format of library name prefix.
16426 libname_spec=$lt_libname_spec
16428 # List of archive names. First name is the real one, the rest are links.
16429 # The last name is the one that the linker finds with -lNAME.
16430 library_names_spec=$lt_library_names_spec
16432 # The coded name of the library, if different from the real name.
16433 soname_spec=$lt_soname_spec
16435 # Commands used to build and install an old-style archive.
16437 old_archive_cmds=$lt_old_archive_cmds_F77
16438 old_postinstall_cmds=$lt_old_postinstall_cmds
16439 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16441 # Create an old-style archive from a shared archive.
16442 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16444 # Create a temporary old-style archive to link instead of a shared archive.
16445 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16447 # Commands used to build and install a shared archive.
16448 archive_cmds=$lt_archive_cmds_F77
16449 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16450 postinstall_cmds=$lt_postinstall_cmds
16451 postuninstall_cmds=$lt_postuninstall_cmds
16453 # Commands used to build a loadable module (assumed same as above if empty)
16454 module_cmds=$lt_module_cmds_F77
16455 module_expsym_cmds=$lt_module_expsym_cmds_F77
16457 # Commands to strip libraries.
16458 old_striplib=$lt_old_striplib
16459 striplib=$lt_striplib
16461 # Dependencies to place before the objects being linked to create a
16463 predep_objects=$lt_predep_objects_F77
16465 # Dependencies to place after the objects being linked to create a
16467 postdep_objects=$lt_postdep_objects_F77
16469 # Dependencies to place before the objects being linked to create a
16471 predeps=$lt_predeps_F77
16473 # Dependencies to place after the objects being linked to create a
16475 postdeps=$lt_postdeps_F77
16477 # The library search path used internally by the compiler when linking
16478 # a shared library.
16479 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16481 # Method to check whether dependent libraries are shared objects.
16482 deplibs_check_method=$lt_deplibs_check_method
16484 # Command to use when deplibs_check_method == file_magic.
16485 file_magic_cmd=$lt_file_magic_cmd
16487 # Flag that allows shared libraries with undefined symbols to be built.
16488 allow_undefined_flag=$lt_allow_undefined_flag_F77
16490 # Flag that forces no undefined symbols.
16491 no_undefined_flag=$lt_no_undefined_flag_F77
16493 # Commands used to finish a libtool library installation in a directory.
16494 finish_cmds=$lt_finish_cmds
16496 # Same as above, but a single script fragment to be evaled but not shown.
16497 finish_eval=$lt_finish_eval
16499 # Take the output of nm and produce a listing of raw symbols and C names.
16500 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16502 # Transform the output of nm in a proper C declaration
16503 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16505 # Transform the output of nm in a C name address pair
16506 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16508 # This is the shared library runtime path variable.
16509 runpath_var=$runpath_var
16511 # This is the shared library path variable.
16512 shlibpath_var=$shlibpath_var
16514 # Is shlibpath searched before the hard-coded library search path?
16515 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16517 # How to hardcode a shared library path into an executable.
16518 hardcode_action=$hardcode_action_F77
16520 # Whether we should hardcode library paths into libraries.
16521 hardcode_into_libs=$hardcode_into_libs
16523 # Flag to hardcode \$libdir into a binary during linking.
16524 # This must work even if \$libdir does not exist.
16525 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16527 # If ld is used when linking, flag to hardcode \$libdir into
16528 # a binary during linking. This must work even if \$libdir does
16530 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16532 # Whether we need a single -rpath flag with a separated argument.
16533 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16535 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16536 # resulting binary.
16537 hardcode_direct=$hardcode_direct_F77
16539 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16540 # resulting binary.
16541 hardcode_minus_L=$hardcode_minus_L_F77
16543 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16544 # the resulting binary.
16545 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16547 # Set to yes if building a shared library automatically hardcodes DIR into the library
16548 # and all subsequent libraries and executables linked against it.
16549 hardcode_automatic=$hardcode_automatic_F77
16551 # Variables whose values should be saved in libtool wrapper scripts and
16552 # restored at relink time.
16553 variables_saved_for_relink="$variables_saved_for_relink"
16555 # Whether libtool must link a program against all its dependency libraries.
16556 link_all_deplibs=$link_all_deplibs_F77
16558 # Compile-time system search path for libraries
16559 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16561 # Run-time system search path for libraries
16562 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16564 # Fix the shell variable \$srcfile for the compiler.
16565 fix_srcfile_path=$lt_fix_srcfile_path
16567 # Set to yes if exported symbols are required.
16568 always_export_symbols=$always_export_symbols_F77
16570 # The commands to list exported symbols.
16571 export_symbols_cmds=$lt_export_symbols_cmds_F77
16573 # The commands to extract the exported symbol list from a shared archive.
16574 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16576 # Symbols that should not be listed in the preloaded symbols.
16577 exclude_expsyms=$lt_exclude_expsyms_F77
16579 # Symbols that must always be exported.
16580 include_expsyms=$lt_include_expsyms_F77
16582 # ### END LIBTOOL TAG CONFIG: $tagname
16588 # If there is no Makefile yet, we rely on a make rule to execute
16589 # `config.status --recheck' to rerun these tests and create the
16590 # libtool script then.
16591 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16592 if test -f "$ltmain_in"; then
16593 test -f Makefile && make "$ltmain"
16599 ac_cpp='$CPP $CPPFLAGS'
16600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16612 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16615 # Source file extension for Java test sources.
16618 # Object file extension for compiled Java test sources.
16622 # Code to be used in simple compile tests
16623 lt_simple_compile_test_code="class foo {}"
16625 # Code to be used in simple link tests
16626 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16628 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16630 # If no C compiler was specified, use CC.
16633 # If no C compiler flags were specified, use CFLAGS.
16634 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16636 # Allow CC to be a program name with arguments.
16640 # save warnings/boilerplate of simple test code
16641 ac_outfile=conftest.$ac_objext
16642 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16643 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16644 _lt_compiler_boilerplate=`cat conftest.err`
16647 ac_outfile=conftest.$ac_objext
16648 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16649 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16650 _lt_linker_boilerplate=`cat conftest.err`
16654 # Allow CC to be a program name with arguments.
16659 for cc_temp in $compiler""; do
16661 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16662 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16667 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16670 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16671 archive_cmds_need_lc_GCJ=no
16673 old_archive_cmds_GCJ=$old_archive_cmds
16676 lt_prog_compiler_no_builtin_flag_GCJ=
16678 if test "$GCC" = yes; then
16679 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16682 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16683 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16684 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16685 echo $ECHO_N "(cached) $ECHO_C" >&6
16687 lt_cv_prog_compiler_rtti_exceptions=no
16688 ac_outfile=conftest.$ac_objext
16689 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16690 lt_compiler_flag="-fno-rtti -fno-exceptions"
16691 # Insert the option either (1) after the last *FLAGS variable, or
16692 # (2) before a word containing "conftest.", or (3) at the end.
16693 # Note that $ac_compile itself does not contain backslashes and begins
16694 # with a dollar sign (not a hyphen), so the echo should work correctly.
16695 # The option is referenced via a variable to avoid confusing sed.
16696 lt_compile=`echo "$ac_compile" | $SED \
16697 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16698 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16699 -e 's:$: $lt_compiler_flag:'`
16700 (eval echo "\"\$as_me:16700: $lt_compile\"" >&5)
16701 (eval "$lt_compile" 2>conftest.err)
16703 cat conftest.err >&5
16704 echo "$as_me:16704: \$? = $ac_status" >&5
16705 if (exit $ac_status) && test -s "$ac_outfile"; then
16706 # The compiler can only warn and ignore the option if not recognized
16707 # So say no if there are warnings other than the usual output.
16708 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16709 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16710 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16711 lt_cv_prog_compiler_rtti_exceptions=yes
16717 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16718 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16720 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16721 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16728 lt_prog_compiler_wl_GCJ=
16729 lt_prog_compiler_pic_GCJ=
16730 lt_prog_compiler_static_GCJ=
16732 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16733 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16735 if test "$GCC" = yes; then
16736 lt_prog_compiler_wl_GCJ='-Wl,'
16737 lt_prog_compiler_static_GCJ='-static'
16741 # All AIX code is PIC.
16742 if test "$host_cpu" = ia64; then
16743 # AIX 5 now supports IA64 processor
16744 lt_prog_compiler_static_GCJ='-Bstatic'
16749 # FIXME: we need at least 68020 code to build shared libraries, but
16750 # adding the `-m68020' flag to GCC prevents building anything better,
16752 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16755 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16756 # PIC is the default for these OSes.
16759 mingw* | cygwin* | pw32* | os2*)
16760 # This hack is so that the source file can tell whether it is being
16761 # built for inclusion in a dll (and should export symbols for example).
16762 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16763 # (--disable-auto-import) libraries
16764 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16767 darwin* | rhapsody*)
16768 # PIC is the default on this platform
16769 # Common symbols not allowed in MH_DYLIB files
16770 lt_prog_compiler_pic_GCJ='-fno-common'
16774 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16775 # Instead, we relocate shared libraries at runtime.
16779 # Just because we use GCC doesn't mean we suddenly get shared libraries
16780 # on systems that don't support them.
16781 lt_prog_compiler_can_build_shared_GCJ=no
16786 if test -d /usr/nec; then
16787 lt_prog_compiler_pic_GCJ=-Kconform_pic
16792 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16793 # not for PA HP-UX.
16799 lt_prog_compiler_pic_GCJ='-fPIC'
16805 lt_prog_compiler_pic_GCJ='-fPIC'
16809 # PORTME Check for flag to pass linker flags through the system compiler.
16812 lt_prog_compiler_wl_GCJ='-Wl,'
16813 if test "$host_cpu" = ia64; then
16814 # AIX 5 now supports IA64 processor
16815 lt_prog_compiler_static_GCJ='-Bstatic'
16817 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16821 # PIC is the default on this platform
16822 # Common symbols not allowed in MH_DYLIB files
16823 case $cc_basename in
16825 lt_prog_compiler_pic_GCJ='-qnocommon'
16826 lt_prog_compiler_wl_GCJ='-Wl,'
16831 mingw* | cygwin* | pw32* | os2*)
16832 # This hack is so that the source file can tell whether it is being
16833 # built for inclusion in a dll (and should export symbols for example).
16834 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16837 hpux9* | hpux10* | hpux11*)
16838 lt_prog_compiler_wl_GCJ='-Wl,'
16839 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16840 # not for PA HP-UX.
16846 lt_prog_compiler_pic_GCJ='+Z'
16849 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16850 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16853 irix5* | irix6* | nonstopux*)
16854 lt_prog_compiler_wl_GCJ='-Wl,'
16855 # PIC (with -KPIC) is the default.
16856 lt_prog_compiler_static_GCJ='-non_shared'
16860 lt_prog_compiler_pic_GCJ='-KPIC'
16861 lt_prog_compiler_static_GCJ='-Bstatic'
16864 linux* | k*bsd*-gnu)
16865 case $cc_basename in
16867 lt_prog_compiler_wl_GCJ='-Wl,'
16868 lt_prog_compiler_pic_GCJ='-KPIC'
16869 lt_prog_compiler_static_GCJ='-static'
16871 pgcc* | pgf77* | pgf90* | pgf95*)
16872 # Portland Group compilers (*not* the Pentium gcc compiler,
16873 # which looks to be a dead project)
16874 lt_prog_compiler_wl_GCJ='-Wl,'
16875 lt_prog_compiler_pic_GCJ='-fpic'
16876 lt_prog_compiler_static_GCJ='-Bstatic'
16879 lt_prog_compiler_wl_GCJ='-Wl,'
16880 # All Alpha code is PIC.
16881 lt_prog_compiler_static_GCJ='-non_shared'
16884 case `$CC -V 2>&1 | sed 5q` in
16887 lt_prog_compiler_pic_GCJ='-KPIC'
16888 lt_prog_compiler_static_GCJ='-Bstatic'
16889 lt_prog_compiler_wl_GCJ='-Wl,'
16892 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16893 lt_prog_compiler_pic_GCJ='-KPIC'
16894 lt_prog_compiler_static_GCJ='-Bstatic'
16895 lt_prog_compiler_wl_GCJ=''
16902 osf3* | osf4* | osf5*)
16903 lt_prog_compiler_wl_GCJ='-Wl,'
16904 # All OSF/1 code is PIC.
16905 lt_prog_compiler_static_GCJ='-non_shared'
16909 lt_prog_compiler_static_GCJ='-non_shared'
16913 lt_prog_compiler_pic_GCJ='-KPIC'
16914 lt_prog_compiler_static_GCJ='-Bstatic'
16915 case $cc_basename in
16916 f77* | f90* | f95*)
16917 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16919 lt_prog_compiler_wl_GCJ='-Wl,';;
16924 lt_prog_compiler_wl_GCJ='-Qoption ld '
16925 lt_prog_compiler_pic_GCJ='-PIC'
16926 lt_prog_compiler_static_GCJ='-Bstatic'
16929 sysv4 | sysv4.2uw2* | sysv4.3*)
16930 lt_prog_compiler_wl_GCJ='-Wl,'
16931 lt_prog_compiler_pic_GCJ='-KPIC'
16932 lt_prog_compiler_static_GCJ='-Bstatic'
16936 if test -d /usr/nec ;then
16937 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16938 lt_prog_compiler_static_GCJ='-Bstatic'
16942 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16943 lt_prog_compiler_wl_GCJ='-Wl,'
16944 lt_prog_compiler_pic_GCJ='-KPIC'
16945 lt_prog_compiler_static_GCJ='-Bstatic'
16949 lt_prog_compiler_wl_GCJ='-Wl,'
16950 lt_prog_compiler_can_build_shared_GCJ=no
16954 lt_prog_compiler_pic_GCJ='-pic'
16955 lt_prog_compiler_static_GCJ='-Bstatic'
16959 lt_prog_compiler_can_build_shared_GCJ=no
16964 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16965 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16968 # Check to make sure the PIC flag actually works.
16970 if test -n "$lt_prog_compiler_pic_GCJ"; then
16972 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16973 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16974 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16975 echo $ECHO_N "(cached) $ECHO_C" >&6
16977 lt_prog_compiler_pic_works_GCJ=no
16978 ac_outfile=conftest.$ac_objext
16979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16980 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16981 # Insert the option either (1) after the last *FLAGS variable, or
16982 # (2) before a word containing "conftest.", or (3) at the end.
16983 # Note that $ac_compile itself does not contain backslashes and begins
16984 # with a dollar sign (not a hyphen), so the echo should work correctly.
16985 # The option is referenced via a variable to avoid confusing sed.
16986 lt_compile=`echo "$ac_compile" | $SED \
16987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16989 -e 's:$: $lt_compiler_flag:'`
16990 (eval echo "\"\$as_me:16990: $lt_compile\"" >&5)
16991 (eval "$lt_compile" 2>conftest.err)
16993 cat conftest.err >&5
16994 echo "$as_me:16994: \$? = $ac_status" >&5
16995 if (exit $ac_status) && test -s "$ac_outfile"; then
16996 # The compiler can only warn and ignore the option if not recognized
16997 # So say no if there are warnings other than the usual output.
16998 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17000 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17001 lt_prog_compiler_pic_works_GCJ=yes
17007 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17008 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17010 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17011 case $lt_prog_compiler_pic_GCJ in
17013 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17016 lt_prog_compiler_pic_GCJ=
17017 lt_prog_compiler_can_build_shared_GCJ=no
17022 # For platforms which do not support PIC, -DPIC is meaningless:
17024 lt_prog_compiler_pic_GCJ=
17027 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17032 # Check to make sure the static flag actually works.
17034 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17035 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17036 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17037 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17038 echo $ECHO_N "(cached) $ECHO_C" >&6
17040 lt_prog_compiler_static_works_GCJ=no
17041 save_LDFLAGS="$LDFLAGS"
17042 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17043 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17044 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17045 # The linker can only warn and ignore the option if not recognized
17046 # So say no if there are warnings
17047 if test -s conftest.err; then
17048 # Append any errors to the config.log.
17049 cat conftest.err 1>&5
17050 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17051 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17052 if diff conftest.exp conftest.er2 >/dev/null; then
17053 lt_prog_compiler_static_works_GCJ=yes
17056 lt_prog_compiler_static_works_GCJ=yes
17060 LDFLAGS="$save_LDFLAGS"
17063 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17064 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17066 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17069 lt_prog_compiler_static_GCJ=
17073 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17074 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17075 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17076 echo $ECHO_N "(cached) $ECHO_C" >&6
17078 lt_cv_prog_compiler_c_o_GCJ=no
17079 $rm -r conftest 2>/dev/null
17083 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17085 lt_compiler_flag="-o out/conftest2.$ac_objext"
17086 # Insert the option either (1) after the last *FLAGS variable, or
17087 # (2) before a word containing "conftest.", or (3) at the end.
17088 # Note that $ac_compile itself does not contain backslashes and begins
17089 # with a dollar sign (not a hyphen), so the echo should work correctly.
17090 lt_compile=`echo "$ac_compile" | $SED \
17091 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17092 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17093 -e 's:$: $lt_compiler_flag:'`
17094 (eval echo "\"\$as_me:17094: $lt_compile\"" >&5)
17095 (eval "$lt_compile" 2>out/conftest.err)
17097 cat out/conftest.err >&5
17098 echo "$as_me:17098: \$? = $ac_status" >&5
17099 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17101 # The compiler can only warn and ignore the option if not recognized
17102 # So say no if there are warnings
17103 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17104 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17105 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17106 lt_cv_prog_compiler_c_o_GCJ=yes
17111 # SGI C++ compiler will create directory out/ii_files/ for
17112 # template instantiation
17113 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17114 $rm out/* && rmdir out
17120 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17121 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17124 hard_links="nottested"
17125 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17126 # do not overwrite the value of need_locks provided by the user
17127 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17128 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17131 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17133 ln conftest.a conftest.b 2>&5 || hard_links=no
17134 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17135 { echo "$as_me:$LINENO: result: $hard_links" >&5
17136 echo "${ECHO_T}$hard_links" >&6; }
17137 if test "$hard_links" = no; then
17138 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17139 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17146 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17147 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17150 allow_undefined_flag_GCJ=
17151 enable_shared_with_static_runtimes_GCJ=no
17153 archive_expsym_cmds_GCJ=
17154 old_archive_From_new_cmds_GCJ=
17155 old_archive_from_expsyms_cmds_GCJ=
17156 export_dynamic_flag_spec_GCJ=
17157 whole_archive_flag_spec_GCJ=
17158 thread_safe_flag_spec_GCJ=
17159 hardcode_libdir_flag_spec_GCJ=
17160 hardcode_libdir_flag_spec_ld_GCJ=
17161 hardcode_libdir_separator_GCJ=
17162 hardcode_direct_GCJ=no
17163 hardcode_minus_L_GCJ=no
17164 hardcode_shlibpath_var_GCJ=unsupported
17165 link_all_deplibs_GCJ=unknown
17166 hardcode_automatic_GCJ=no
17168 module_expsym_cmds_GCJ=
17169 always_export_symbols_GCJ=no
17170 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17171 # include_expsyms should be a list of space-separated symbols to be *always*
17172 # included in the symbol list
17173 include_expsyms_GCJ=
17174 # exclude_expsyms can be an extended regexp of symbols to exclude
17175 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17176 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17177 # as well as any symbol that contains `d'.
17178 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17179 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17180 # platforms (ab)use it in PIC code, but their linkers get confused if
17181 # the symbol is explicitly referenced. Since portable code cannot
17182 # rely on this symbol name, it's probably fine to never include it in
17183 # preloaded symbol tables.
17184 extract_expsyms_cmds=
17185 # Just being paranoid about ensuring that cc_basename is set.
17186 for cc_temp in $compiler""; do
17188 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17189 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17194 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17197 cygwin* | mingw* | pw32*)
17198 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17199 # When not using gcc, we currently assume that we are using
17200 # Microsoft Visual C++.
17201 if test "$GCC" != yes; then
17206 # we just hope/assume this is gcc and not c89 (= MSVC++)
17215 if test "$with_gnu_ld" = yes; then
17216 # If archive_cmds runs LD, not CC, wlarc should be empty
17219 # Set some defaults for GNU ld with shared library support. These
17220 # are reset later if shared libraries are not supported. Putting them
17221 # here allows them to be overridden if necessary.
17222 runpath_var=LD_RUN_PATH
17223 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17224 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17225 # ancient GNU ld didn't support --whole-archive et. al.
17226 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17227 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17229 whole_archive_flag_spec_GCJ=
17231 supports_anon_versioning=no
17232 case `$LD -v 2>/dev/null` in
17233 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17234 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17235 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17236 *\ 2.11.*) ;; # other 2.11 versions
17237 *) supports_anon_versioning=yes ;;
17240 # See if GNU ld supports shared libraries.
17242 aix3* | aix4* | aix5*)
17243 # On AIX/PPC, the GNU linker is very broken
17244 if test "$host_cpu" != ia64; then
17248 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17249 *** to be unable to reliably create shared libraries on AIX.
17250 *** Therefore, libtool is disabling shared libraries support. If you
17251 *** really care for shared libraries, you may want to modify your PATH
17252 *** so that a non-GNU linker is found, and then restart.
17259 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)'
17260 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17261 hardcode_minus_L_GCJ=yes
17263 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17264 # that the semantics of dynamic libraries on AmigaOS, at least up
17265 # to version 4, is to share data among multiple programs linked
17266 # with the same dynamic library. Since this doesn't match the
17267 # behavior of shared libraries on other platforms, we can't use
17273 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17274 allow_undefined_flag_GCJ=unsupported
17275 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17276 # support --undefined. This deserves some investigation. FIXME
17277 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17283 cygwin* | mingw* | pw32*)
17284 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17285 # as there is no search path for DLLs.
17286 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17287 allow_undefined_flag_GCJ=unsupported
17288 always_export_symbols_GCJ=no
17289 enable_shared_with_static_runtimes_GCJ=yes
17290 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17292 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17293 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17294 # If the export-symbols file already is a .def file (1st line
17295 # is EXPORTS), use it as is; otherwise, prepend...
17296 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17297 cp $export_symbols $output_objdir/$soname.def;
17299 echo EXPORTS > $output_objdir/$soname.def;
17300 cat $export_symbols >> $output_objdir/$soname.def;
17302 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17309 hardcode_direct_GCJ=no
17310 hardcode_shlibpath_var_GCJ=no
17311 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17312 export_dynamic_flag_spec_GCJ='${wl}-E'
17313 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17314 # Instead, shared libraries are loaded at an image base (0x10000000 by
17315 # default) and relocated if they conflict, which is a slow very memory
17316 # consuming and fragmenting process. To avoid this, we pick a random,
17317 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17318 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17319 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'
17320 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'
17323 gnu* | linux* | k*bsd*-gnu)
17324 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17326 case $cc_basename,$host_cpu in
17327 pgcc*) # Portland Group C compiler
17328 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'
17329 tmp_addflag=' $pic_flag'
17331 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17332 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'
17333 tmp_addflag=' $pic_flag -Mnomain' ;;
17334 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17335 tmp_addflag=' -i_dynamic' ;;
17336 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17337 tmp_addflag=' -i_dynamic -nofor_main' ;;
17338 ifc* | ifort*) # Intel Fortran compiler
17339 tmp_addflag=' -nofor_main' ;;
17341 case `$CC -V 2>&1 | sed 5q` in
17342 *Sun\ C*) # Sun C 5.9
17343 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17344 tmp_sharedflag='-G' ;;
17345 *Sun\ F*) # Sun Fortran 8.3
17346 tmp_sharedflag='-G' ;;
17348 tmp_sharedflag='-shared' ;;
17350 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17352 if test $supports_anon_versioning = yes; then
17353 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17354 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17355 $echo "local: *; };" >> $output_objdir/$libname.ver~
17356 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17364 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17365 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17368 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17369 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17374 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17378 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17379 *** create shared libraries on Solaris systems. Therefore, libtool
17380 *** is disabling shared libraries support. We urge you to upgrade GNU
17381 *** binutils to release 2.9.1 or newer. Another option is to modify
17382 *** your PATH or compiler configuration so that the native linker is
17383 *** used, and then restart.
17386 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17387 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17388 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17394 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17395 case `$LD -v 2>&1` in
17396 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17400 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17401 *** reliably create shared libraries on SCO systems. Therefore, libtool
17402 *** is disabling shared libraries support. We urge you to upgrade GNU
17403 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17404 *** your PATH or compiler configuration so that the native linker is
17405 *** used, and then restart.
17410 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17411 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17412 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17413 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17422 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17424 hardcode_direct_GCJ=yes
17425 hardcode_shlibpath_var_GCJ=no
17429 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17430 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17431 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17438 if test "$ld_shlibs_GCJ" = no; then
17440 hardcode_libdir_flag_spec_GCJ=
17441 export_dynamic_flag_spec_GCJ=
17442 whole_archive_flag_spec_GCJ=
17445 # PORTME fill in a description of your system's linker (not GNU ld)
17448 allow_undefined_flag_GCJ=unsupported
17449 always_export_symbols_GCJ=yes
17450 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'
17451 # Note: this linker hardcodes the directories in LIBPATH if there
17452 # are no directories specified by -L.
17453 hardcode_minus_L_GCJ=yes
17454 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17455 # Neither direct hardcoding nor static linking is supported with a
17457 hardcode_direct_GCJ=unsupported
17462 if test "$host_cpu" = ia64; then
17463 # On IA64, the linker does run time linking by default, so we don't
17464 # have to do anything special.
17465 aix_use_runtimelinking=no
17466 exp_sym_flag='-Bexport'
17469 # If we're using GNU nm, then we don't want the "-C" option.
17470 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17471 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17472 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'
17474 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'
17476 aix_use_runtimelinking=no
17478 # Test if we are trying to use run time linking or normal
17479 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17480 # need to do runtime linking.
17481 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17482 for ld_flag in $LDFLAGS; do
17483 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17484 aix_use_runtimelinking=yes
17491 exp_sym_flag='-bexport'
17492 no_entry_flag='-bnoentry'
17495 # When large executables or shared objects are built, AIX ld can
17496 # have problems creating the table of contents. If linking a library
17497 # or program results in "error TOC overflow" add -mminimal-toc to
17498 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17499 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17501 archive_cmds_GCJ=''
17502 hardcode_direct_GCJ=yes
17503 hardcode_libdir_separator_GCJ=':'
17504 link_all_deplibs_GCJ=yes
17506 if test "$GCC" = yes; then
17507 case $host_os in aix4.[012]|aix4.[012].*)
17508 # We only want to do this on AIX 4.2 and lower, the check
17509 # below for broken collect2 doesn't work under 4.3+
17510 collect2name=`${CC} -print-prog-name=collect2`
17511 if test -f "$collect2name" && \
17512 strings "$collect2name" | grep resolve_lib_name >/dev/null
17514 # We have reworked collect2
17517 # We have old collect2
17518 hardcode_direct_GCJ=unsupported
17519 # It fails to find uninstalled libraries when the uninstalled
17520 # path is not listed in the libpath. Setting hardcode_minus_L
17521 # to unsupported forces relinking
17522 hardcode_minus_L_GCJ=yes
17523 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17524 hardcode_libdir_separator_GCJ=
17528 shared_flag='-shared'
17529 if test "$aix_use_runtimelinking" = yes; then
17530 shared_flag="$shared_flag "'${wl}-G'
17534 if test "$host_cpu" = ia64; then
17535 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17536 # chokes on -Wl,-G. The following line is correct:
17539 if test "$aix_use_runtimelinking" = yes; then
17540 shared_flag='${wl}-G'
17542 shared_flag='${wl}-bM:SRE'
17547 # It seems that -bexpall does not export symbols beginning with
17548 # underscore (_), so it is better to generate a list of symbols to export.
17549 always_export_symbols_GCJ=yes
17550 if test "$aix_use_runtimelinking" = yes; then
17551 # Warning - without using the other runtime loading flags (-brtl),
17552 # -berok will link without error, but may produce a broken library.
17553 allow_undefined_flag_GCJ='-berok'
17554 # Determine the default libpath from the value encoded in an empty executable.
17555 cat >conftest.$ac_ext <<_ACEOF
17558 cat confdefs.h >>conftest.$ac_ext
17559 cat >>conftest.$ac_ext <<_ACEOF
17560 /* end confdefs.h. */
17570 rm -f conftest.$ac_objext conftest$ac_exeext
17571 if { (ac_try="$ac_link"
17572 case "(($ac_try" in
17573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17574 *) ac_try_echo=$ac_try;;
17576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17577 (eval "$ac_link") 2>conftest.er1
17579 grep -v '^ *+' conftest.er1 >conftest.err
17581 cat conftest.err >&5
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); } && {
17584 test -z "$ac_c_werror_flag" ||
17585 test ! -s conftest.err
17586 } && test -s conftest$ac_exeext &&
17587 $as_test_x conftest$ac_exeext; then
17589 lt_aix_libpath_sed='
17590 /Import File Strings/,/^$/ {
17596 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17597 # Check for a 64-bit object if we didn't find anything.
17598 if test -z "$aix_libpath"; then
17599 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17602 echo "$as_me: failed program was:" >&5
17603 sed 's/^/| /' conftest.$ac_ext >&5
17608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17609 conftest$ac_exeext conftest.$ac_ext
17610 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17612 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17613 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"
17615 if test "$host_cpu" = ia64; then
17616 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17617 allow_undefined_flag_GCJ="-z nodefs"
17618 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"
17620 # Determine the default libpath from the value encoded in an empty executable.
17621 cat >conftest.$ac_ext <<_ACEOF
17624 cat confdefs.h >>conftest.$ac_ext
17625 cat >>conftest.$ac_ext <<_ACEOF
17626 /* end confdefs.h. */
17636 rm -f conftest.$ac_objext conftest$ac_exeext
17637 if { (ac_try="$ac_link"
17638 case "(($ac_try" in
17639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17640 *) ac_try_echo=$ac_try;;
17642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17643 (eval "$ac_link") 2>conftest.er1
17645 grep -v '^ *+' conftest.er1 >conftest.err
17647 cat conftest.err >&5
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); } && {
17650 test -z "$ac_c_werror_flag" ||
17651 test ! -s conftest.err
17652 } && test -s conftest$ac_exeext &&
17653 $as_test_x conftest$ac_exeext; then
17655 lt_aix_libpath_sed='
17656 /Import File Strings/,/^$/ {
17662 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17663 # Check for a 64-bit object if we didn't find anything.
17664 if test -z "$aix_libpath"; then
17665 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17668 echo "$as_me: failed program was:" >&5
17669 sed 's/^/| /' conftest.$ac_ext >&5
17674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17675 conftest$ac_exeext conftest.$ac_ext
17676 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17678 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17679 # Warning - without using the other run time loading flags,
17680 # -berok will link without error, but may produce a broken library.
17681 no_undefined_flag_GCJ=' ${wl}-bernotok'
17682 allow_undefined_flag_GCJ=' ${wl}-berok'
17683 # Exported symbols can be pulled into shared objects from archives
17684 whole_archive_flag_spec_GCJ='$convenience'
17685 archive_cmds_need_lc_GCJ=yes
17686 # This is similar to how AIX traditionally builds its shared libraries.
17687 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'
17693 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)'
17694 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17695 hardcode_minus_L_GCJ=yes
17696 # see comment about different semantics on the GNU ld section
17701 export_dynamic_flag_spec_GCJ=-rdynamic
17704 cygwin* | mingw* | pw32*)
17705 # When not using gcc, we currently assume that we are using
17706 # Microsoft Visual C++.
17707 # hardcode_libdir_flag_spec is actually meaningless, as there is
17708 # no search path for DLLs.
17709 hardcode_libdir_flag_spec_GCJ=' '
17710 allow_undefined_flag_GCJ=unsupported
17711 # Tell ltmain to make .lib files, not .a files.
17713 # Tell ltmain to make .dll files, not .so files.
17715 # FIXME: Setting linknames here is a bad hack.
17716 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17717 # The linker will automatically build a .lib file if we build a DLL.
17718 old_archive_From_new_cmds_GCJ='true'
17719 # FIXME: Should let the user specify the lib program.
17720 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17721 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17722 enable_shared_with_static_runtimes_GCJ=yes
17725 darwin* | rhapsody*)
17727 rhapsody* | darwin1.[012])
17728 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17731 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17732 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17734 case ${MACOSX_DEPLOYMENT_TARGET} in
17736 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17739 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17745 archive_cmds_need_lc_GCJ=no
17746 hardcode_direct_GCJ=no
17747 hardcode_automatic_GCJ=yes
17748 hardcode_shlibpath_var_GCJ=unsupported
17749 whole_archive_flag_spec_GCJ=''
17750 link_all_deplibs_GCJ=yes
17751 if test "$GCC" = yes ; then
17752 output_verbose_link_cmd='echo'
17753 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17754 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17755 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17756 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}'
17757 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}'
17759 case $cc_basename in
17761 output_verbose_link_cmd='echo'
17762 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17763 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17764 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17765 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17766 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}'
17776 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17777 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17778 hardcode_shlibpath_var_GCJ=no
17785 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17786 # support. Future versions do this automatically, but an explicit c++rt0.o
17787 # does not break anything, and helps significantly (at the cost of a little
17790 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17791 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17792 hardcode_direct_GCJ=yes
17793 hardcode_shlibpath_var_GCJ=no
17796 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17798 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17799 hardcode_direct_GCJ=yes
17800 hardcode_minus_L_GCJ=yes
17801 hardcode_shlibpath_var_GCJ=no
17804 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17805 freebsd* | dragonfly*)
17806 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17807 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17808 hardcode_direct_GCJ=yes
17809 hardcode_shlibpath_var_GCJ=no
17813 if test "$GCC" = yes; then
17814 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'
17816 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'
17818 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17819 hardcode_libdir_separator_GCJ=:
17820 hardcode_direct_GCJ=yes
17822 # hardcode_minus_L: Not really in the search PATH,
17823 # but as the default location of the library.
17824 hardcode_minus_L_GCJ=yes
17825 export_dynamic_flag_spec_GCJ='${wl}-E'
17829 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17830 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17832 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17834 if test "$with_gnu_ld" = no; then
17835 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17836 hardcode_libdir_separator_GCJ=:
17838 hardcode_direct_GCJ=yes
17839 export_dynamic_flag_spec_GCJ='${wl}-E'
17841 # hardcode_minus_L: Not really in the search PATH,
17842 # but as the default location of the library.
17843 hardcode_minus_L_GCJ=yes
17848 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17851 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17854 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17857 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17863 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17866 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17869 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17873 if test "$with_gnu_ld" = no; then
17874 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17875 hardcode_libdir_separator_GCJ=:
17879 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17880 hardcode_direct_GCJ=no
17881 hardcode_shlibpath_var_GCJ=no
17884 hardcode_direct_GCJ=yes
17885 export_dynamic_flag_spec_GCJ='${wl}-E'
17887 # hardcode_minus_L: Not really in the search PATH,
17888 # but as the default location of the library.
17889 hardcode_minus_L_GCJ=yes
17895 irix5* | irix6* | nonstopux*)
17896 if test "$GCC" = yes; then
17897 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'
17899 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'
17900 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17902 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17903 hardcode_libdir_separator_GCJ=:
17904 link_all_deplibs_GCJ=yes
17908 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17909 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17911 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17913 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17914 hardcode_direct_GCJ=yes
17915 hardcode_shlibpath_var_GCJ=no
17919 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17920 hardcode_direct_GCJ=yes
17921 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17922 hardcode_libdir_separator_GCJ=:
17923 hardcode_shlibpath_var_GCJ=no
17927 if test -f /usr/libexec/ld.so; then
17928 hardcode_direct_GCJ=yes
17929 hardcode_shlibpath_var_GCJ=no
17930 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17931 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17932 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17933 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17934 export_dynamic_flag_spec_GCJ='${wl}-E'
17937 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17938 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17939 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17942 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17943 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17953 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17954 hardcode_minus_L_GCJ=yes
17955 allow_undefined_flag_GCJ=unsupported
17956 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'
17957 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17961 if test "$GCC" = yes; then
17962 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17963 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'
17965 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17966 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'
17968 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17969 hardcode_libdir_separator_GCJ=:
17972 osf4* | osf5*) # as osf3* with the addition of -msym flag
17973 if test "$GCC" = yes; then
17974 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17975 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'
17976 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17978 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17979 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'
17980 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~
17981 $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'
17983 # Both c and cxx compiler support -rpath directly
17984 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17986 hardcode_libdir_separator_GCJ=:
17990 no_undefined_flag_GCJ=' -z text'
17991 if test "$GCC" = yes; then
17993 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17994 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17995 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17998 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17999 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18000 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18002 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18003 hardcode_shlibpath_var_GCJ=no
18005 solaris2.[0-5] | solaris2.[0-5].*) ;;
18007 # The compiler driver will combine and reorder linker options,
18008 # but understands `-z linker_flag'. GCC discards it without `$wl',
18009 # but is careful enough not to reorder.
18010 # Supported since Solaris 2.6 (maybe 2.5.1?)
18011 if test "$GCC" = yes; then
18012 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18014 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18018 link_all_deplibs_GCJ=yes
18022 if test "x$host_vendor" = xsequent; then
18023 # Use $CC to link under sequent, because it throws in some extra .o
18024 # files that make .init and .fini sections work.
18025 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18027 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18029 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18030 hardcode_direct_GCJ=yes
18031 hardcode_minus_L_GCJ=yes
18032 hardcode_shlibpath_var_GCJ=no
18036 case $host_vendor in
18038 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18039 hardcode_direct_GCJ=yes # is this really true???
18042 ## LD is ld it makes a PLAMLIB
18043 ## CC just makes a GrossModule.
18044 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18045 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18046 hardcode_direct_GCJ=no
18049 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18050 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18053 runpath_var='LD_RUN_PATH'
18054 hardcode_shlibpath_var_GCJ=no
18058 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18059 hardcode_shlibpath_var_GCJ=no
18060 export_dynamic_flag_spec_GCJ='-Bexport'
18064 if test -d /usr/nec; then
18065 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18066 hardcode_shlibpath_var_GCJ=no
18067 runpath_var=LD_RUN_PATH
18068 hardcode_runpath_var=yes
18073 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18074 no_undefined_flag_GCJ='${wl}-z,text'
18075 archive_cmds_need_lc_GCJ=no
18076 hardcode_shlibpath_var_GCJ=no
18077 runpath_var='LD_RUN_PATH'
18079 if test "$GCC" = yes; then
18080 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18081 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18083 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18084 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18088 sysv5* | sco3.2v5* | sco5v6*)
18089 # Note: We can NOT use -z defs as we might desire, because we do not
18090 # link with -lc, and that would cause any symbols used from libc to
18091 # always be unresolved, which means just about no library would
18092 # ever link correctly. If we're not using GNU ld we use -z text
18093 # though, which does catch some bad symbols but isn't as heavy-handed
18095 no_undefined_flag_GCJ='${wl}-z,text'
18096 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18097 archive_cmds_need_lc_GCJ=no
18098 hardcode_shlibpath_var_GCJ=no
18099 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18100 hardcode_libdir_separator_GCJ=':'
18101 link_all_deplibs_GCJ=yes
18102 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18103 runpath_var='LD_RUN_PATH'
18105 if test "$GCC" = yes; then
18106 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18107 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18109 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18110 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18115 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18116 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18117 hardcode_shlibpath_var_GCJ=no
18126 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18127 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18128 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18131 # Do we need to explicitly link libc?
18133 case "x$archive_cmds_need_lc_GCJ" in
18135 # Assume -lc should be added
18136 archive_cmds_need_lc_GCJ=yes
18138 if test "$enable_shared" = yes && test "$GCC" = yes; then
18139 case $archive_cmds_GCJ in
18141 # FIXME: we may have to deal with multi-command sequences.
18144 # Test whether the compiler implicitly links with -lc since on some
18145 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18146 # to ld, don't add -lc before -lgcc.
18147 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18148 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18153 (eval $ac_compile) 2>&5
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); } 2>conftest.err; then
18159 libobjs=conftest.$ac_objext
18161 wl=$lt_prog_compiler_wl_GCJ
18162 pic_flag=$lt_prog_compiler_pic_GCJ
18168 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18169 allow_undefined_flag_GCJ=
18170 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18171 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }
18176 archive_cmds_need_lc_GCJ=no
18178 archive_cmds_need_lc_GCJ=yes
18180 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18182 cat conftest.err 1>&5
18185 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18186 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18193 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18194 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18195 library_names_spec=
18196 libname_spec='lib$name'
18200 postuninstall_cmds=
18204 shlibpath_overrides_runpath=unknown
18206 dynamic_linker="$host_os ld.so"
18207 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18209 need_lib_prefix=unknown
18210 hardcode_into_libs=no
18212 # when you set need_version to no, make sure it does not cause -set_version
18213 # flags to be left without arguments
18214 need_version=unknown
18219 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18220 shlibpath_var=LIBPATH
18222 # AIX 3 has no versioning support, so we append a major version to the name.
18223 soname_spec='${libname}${release}${shared_ext}$major'
18230 hardcode_into_libs=yes
18231 if test "$host_cpu" = ia64; then
18232 # AIX 5 supports IA64
18233 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18234 shlibpath_var=LD_LIBRARY_PATH
18236 # With GCC up to 2.95.x, collect2 would create an import file
18237 # for dependence libraries. The import file would start with
18238 # the line `#! .'. This would cause the generated library to
18239 # depend on `.', always an invalid library. This was fixed in
18240 # development snapshots of GCC prior to 3.0.
18242 aix4 | aix4.[01] | aix4.[01].*)
18243 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18245 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18248 can_build_shared=no
18252 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18253 # soname into executable. Probably we can add versioning support to
18254 # collect2, so additional links can be useful in future.
18255 if test "$aix_use_runtimelinking" = yes; then
18256 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18257 # instead of lib<name>.a to let people know that these are not
18258 # typical AIX shared libraries.
18259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18261 # We preserve .a as extension for shared libraries through AIX4.2
18262 # and later when we are not doing run time linking.
18263 library_names_spec='${libname}${release}.a $libname.a'
18264 soname_spec='${libname}${release}${shared_ext}$major'
18266 shlibpath_var=LIBPATH
18271 library_names_spec='$libname.ixlibrary $libname.a'
18272 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18273 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'
18277 library_names_spec='${libname}${shared_ext}'
18278 dynamic_linker="$host_os ld.so"
18279 shlibpath_var=LIBRARY_PATH
18285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18286 soname_spec='${libname}${release}${shared_ext}$major'
18287 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18288 shlibpath_var=LD_LIBRARY_PATH
18289 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18290 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18291 # the default ld.so.conf also contains /usr/contrib/lib and
18292 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18293 # libtool to hard-code these into programs
18296 cygwin* | mingw* | pw32*)
18297 version_type=windows
18302 case $GCC,$host_os in
18303 yes,cygwin* | yes,mingw* | yes,pw32*)
18304 library_names_spec='$libname.dll.a'
18305 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18306 postinstall_cmds='base_file=`basename \${file}`~
18307 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18308 dldir=$destdir/`dirname \$dlpath`~
18309 test -d \$dldir || mkdir -p \$dldir~
18310 $install_prog $dir/$dlname \$dldir/$dlname~
18311 chmod a+x \$dldir/$dlname'
18312 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18313 dlpath=$dir/\$dldll~
18315 shlibpath_overrides_runpath=yes
18319 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18320 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18321 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18324 # MinGW DLLs use traditional 'lib' prefix
18325 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18326 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18327 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18328 # It is most probably a Windows format PATH printed by
18329 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18330 # path with ; separators, and with drive letters. We can handle the
18331 # drive letters (cygwin fileutils understands them), so leave them,
18332 # especially as we might pass files found there to a mingw objdump,
18333 # which wouldn't understand a cygwinified path. Ahh.
18334 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18336 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18340 # pw32 DLLs use 'pw' prefix rather than 'lib'
18341 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18347 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18350 dynamic_linker='Win32 ld.exe'
18351 # FIXME: first we should search . and the directory the executable is in
18355 darwin* | rhapsody*)
18356 dynamic_linker="$host_os dyld"
18357 version_type=darwin
18360 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18361 soname_spec='${libname}${release}${major}$shared_ext'
18362 shlibpath_overrides_runpath=yes
18363 shlibpath_var=DYLD_LIBRARY_PATH
18364 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18366 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18374 soname_spec='${libname}${release}${shared_ext}$major'
18375 shlibpath_var=LD_LIBRARY_PATH
18382 freebsd* | dragonfly*)
18383 # DragonFly does not have aout. When/if they implement a new
18384 # versioning mechanism, adjust this.
18385 if test -x /usr/bin/objformat; then
18386 objformat=`/usr/bin/objformat`
18389 freebsd[123]*) objformat=aout ;;
18390 *) objformat=elf ;;
18393 # Handle Gentoo/FreeBSD as it was Linux
18394 case $host_vendor in
18396 version_type=linux ;;
18398 version_type=freebsd-$objformat ;;
18401 case $version_type in
18403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18408 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18413 soname_spec='${libname}${release}${shared_ext}$major'
18418 shlibpath_var=LD_LIBRARY_PATH
18421 shlibpath_overrides_runpath=yes
18423 freebsd3.[01]* | freebsdelf3.[01]*)
18424 shlibpath_overrides_runpath=yes
18425 hardcode_into_libs=yes
18427 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18428 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18429 shlibpath_overrides_runpath=no
18430 hardcode_into_libs=yes
18432 *) # from 4.6 on, and DragonFly
18433 shlibpath_overrides_runpath=yes
18434 hardcode_into_libs=yes
18443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18444 soname_spec='${libname}${release}${shared_ext}$major'
18445 shlibpath_var=LD_LIBRARY_PATH
18446 hardcode_into_libs=yes
18449 hpux9* | hpux10* | hpux11*)
18450 # Give a soname corresponding to the major version so that dld.sl refuses to
18451 # link against other versions.
18458 hardcode_into_libs=yes
18459 dynamic_linker="$host_os dld.so"
18460 shlibpath_var=LD_LIBRARY_PATH
18461 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18463 soname_spec='${libname}${release}${shared_ext}$major'
18464 if test "X$HPUX_IA64_MODE" = X32; then
18465 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18467 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18469 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18473 hardcode_into_libs=yes
18474 dynamic_linker="$host_os dld.sl"
18475 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18476 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18478 soname_spec='${libname}${release}${shared_ext}$major'
18479 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18480 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18484 dynamic_linker="$host_os dld.sl"
18485 shlibpath_var=SHLIB_PATH
18486 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18488 soname_spec='${libname}${release}${shared_ext}$major'
18491 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18492 postinstall_cmds='chmod 555 $lib'
18499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18500 soname_spec='${libname}${release}${shared_ext}$major'
18501 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18502 shlibpath_var=LD_LIBRARY_PATH
18503 shlibpath_overrides_runpath=no
18504 hardcode_into_libs=yes
18507 irix5* | irix6* | nonstopux*)
18509 nonstopux*) version_type=nonstopux ;;
18511 if test "$lt_cv_prog_gnu_ld" = yes; then
18519 soname_spec='${libname}${release}${shared_ext}$major'
18520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18522 irix5* | nonstopux*)
18523 libsuff= shlibsuff=
18526 case $LD in # libtool.m4 will add one of these switches to LD
18527 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18528 libsuff= shlibsuff= libmagic=32-bit;;
18529 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18530 libsuff=32 shlibsuff=N32 libmagic=N32;;
18531 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18532 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18533 *) libsuff= shlibsuff= libmagic=never-match;;
18537 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18538 shlibpath_overrides_runpath=no
18539 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18540 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18541 hardcode_into_libs=yes
18544 # No shared lib support for Linux oldld, aout, or coff.
18545 linux*oldld* | linux*aout* | linux*coff*)
18549 # This must be Linux ELF.
18550 linux* | k*bsd*-gnu)
18554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18555 soname_spec='${libname}${release}${shared_ext}$major'
18556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18557 shlibpath_var=LD_LIBRARY_PATH
18558 shlibpath_overrides_runpath=no
18559 # This implies no fast_install, which is unacceptable.
18560 # Some rework will be needed to allow for fast_install
18561 # before this can be enabled.
18562 hardcode_into_libs=yes
18564 # Append ld.so.conf contents to the search path
18565 if test -f /etc/ld.so.conf; then
18566 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18567 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18570 # We used to test for /lib/ld.so.1 and disable shared libraries on
18571 # powerpc, because MkLinux only supported shared libraries with the
18572 # GNU dynamic linker. Since this was broken with cross compilers,
18573 # most powerpc-linux boxes support dynamic linking these days and
18574 # people can always --disable-shared, the test was removed, and we
18575 # assume the GNU/Linux dynamic linker is in use.
18576 dynamic_linker='GNU/Linux ld.so'
18583 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18585 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18586 dynamic_linker='NetBSD (a.out) ld.so'
18588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18589 soname_spec='${libname}${release}${shared_ext}$major'
18590 dynamic_linker='NetBSD ld.elf_so'
18592 shlibpath_var=LD_LIBRARY_PATH
18593 shlibpath_overrides_runpath=yes
18594 hardcode_into_libs=yes
18599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18600 shlibpath_var=LD_LIBRARY_PATH
18601 shlibpath_overrides_runpath=yes
18608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18609 soname_spec='${libname}${release}${shared_ext}$major'
18610 shlibpath_var=LD_LIBRARY_PATH
18611 shlibpath_overrides_runpath=yes
18616 sys_lib_dlsearch_path_spec="/usr/lib"
18618 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18620 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18621 *) need_version=no ;;
18623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18625 shlibpath_var=LD_LIBRARY_PATH
18626 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18628 openbsd2.[89] | openbsd2.[89].*)
18629 shlibpath_overrides_runpath=no
18632 shlibpath_overrides_runpath=yes
18636 shlibpath_overrides_runpath=yes
18641 libname_spec='$name'
18644 library_names_spec='$libname${shared_ext} $libname.a'
18645 dynamic_linker='OS/2 ld.exe'
18646 shlibpath_var=LIBPATH
18649 osf3* | osf4* | osf5*)
18653 soname_spec='${libname}${release}${shared_ext}$major'
18654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18655 shlibpath_var=LD_LIBRARY_PATH
18656 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18657 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18669 soname_spec='${libname}${release}${shared_ext}$major'
18670 shlibpath_var=LD_LIBRARY_PATH
18671 shlibpath_overrides_runpath=yes
18672 hardcode_into_libs=yes
18673 # ldd complains unless libraries are executable
18674 postinstall_cmds='chmod +x $lib'
18679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18680 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18681 shlibpath_var=LD_LIBRARY_PATH
18682 shlibpath_overrides_runpath=yes
18683 if test "$with_gnu_ld" = yes; then
18691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18692 soname_spec='${libname}${release}${shared_ext}$major'
18693 shlibpath_var=LD_LIBRARY_PATH
18694 case $host_vendor in
18696 shlibpath_overrides_runpath=no
18698 export_dynamic_flag_spec='${wl}-Blargedynsym'
18699 runpath_var=LD_RUN_PATH
18707 shlibpath_overrides_runpath=no
18708 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18714 if test -d /usr/nec ;then
18716 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18717 soname_spec='$libname${shared_ext}.$major'
18718 shlibpath_var=LD_LIBRARY_PATH
18722 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18723 version_type=freebsd-elf
18726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18727 soname_spec='${libname}${release}${shared_ext}$major'
18728 shlibpath_var=LD_LIBRARY_PATH
18729 hardcode_into_libs=yes
18730 if test "$with_gnu_ld" = yes; then
18731 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18732 shlibpath_overrides_runpath=no
18734 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18735 shlibpath_overrides_runpath=yes
18738 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18742 sys_lib_dlsearch_path_spec='/usr/lib'
18747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18748 soname_spec='${libname}${release}${shared_ext}$major'
18749 shlibpath_var=LD_LIBRARY_PATH
18756 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18757 echo "${ECHO_T}$dynamic_linker" >&6; }
18758 test "$dynamic_linker" = no && can_build_shared=no
18760 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18761 if test "$GCC" = yes; then
18762 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18765 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18766 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18767 hardcode_action_GCJ=
18768 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18769 test -n "$runpath_var_GCJ" || \
18770 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18772 # We can hardcode non-existant directories.
18773 if test "$hardcode_direct_GCJ" != no &&
18774 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18775 # have to relink, otherwise we might link with an installed library
18776 # when we should be linking with a yet-to-be-installed one
18777 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18778 test "$hardcode_minus_L_GCJ" != no; then
18779 # Linking always hardcodes the temporary library directory.
18780 hardcode_action_GCJ=relink
18782 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18783 hardcode_action_GCJ=immediate
18786 # We cannot hardcode anything, or else we can only hardcode existing
18788 hardcode_action_GCJ=unsupported
18790 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18791 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18793 if test "$hardcode_action_GCJ" = relink; then
18794 # Fast installation is not supported
18795 enable_fast_install=no
18796 elif test "$shlibpath_overrides_runpath" = yes ||
18797 test "$enable_shared" = no; then
18798 # Fast installation is not necessary
18799 enable_fast_install=needless
18803 # The else clause should only fire when bootstrapping the
18804 # libtool distribution, otherwise you forgot to ship ltmain.sh
18805 # with your package, and you will get complaints that there are
18806 # no rules to generate ltmain.sh.
18807 if test -f "$ltmain"; then
18808 # See if we are running on zsh, and set the options which allow our commands through
18809 # without removal of \ escapes.
18810 if test -n "${ZSH_VERSION+set}" ; then
18811 setopt NO_GLOB_SUBST
18813 # Now quote all the things that may contain metacharacters while being
18814 # careful not to overquote the AC_SUBSTed values. We take copies of the
18815 # variables and quote the copies for generation of the libtool script.
18816 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18818 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18819 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18820 deplibs_check_method reload_flag reload_cmds need_locks \
18821 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18822 lt_cv_sys_global_symbol_to_c_name_address \
18823 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18824 old_postinstall_cmds old_postuninstall_cmds \
18828 lt_prog_compiler_wl_GCJ \
18829 lt_prog_compiler_pic_GCJ \
18830 lt_prog_compiler_static_GCJ \
18831 lt_prog_compiler_no_builtin_flag_GCJ \
18832 export_dynamic_flag_spec_GCJ \
18833 thread_safe_flag_spec_GCJ \
18834 whole_archive_flag_spec_GCJ \
18835 enable_shared_with_static_runtimes_GCJ \
18836 old_archive_cmds_GCJ \
18837 old_archive_from_new_cmds_GCJ \
18838 predep_objects_GCJ \
18839 postdep_objects_GCJ \
18842 compiler_lib_search_path_GCJ \
18844 archive_expsym_cmds_GCJ \
18845 postinstall_cmds_GCJ \
18846 postuninstall_cmds_GCJ \
18847 old_archive_from_expsyms_cmds_GCJ \
18848 allow_undefined_flag_GCJ \
18849 no_undefined_flag_GCJ \
18850 export_symbols_cmds_GCJ \
18851 hardcode_libdir_flag_spec_GCJ \
18852 hardcode_libdir_flag_spec_ld_GCJ \
18853 hardcode_libdir_separator_GCJ \
18854 hardcode_automatic_GCJ \
18856 module_expsym_cmds_GCJ \
18857 lt_cv_prog_compiler_c_o_GCJ \
18858 fix_srcfile_path_GCJ \
18859 exclude_expsyms_GCJ \
18860 include_expsyms_GCJ; do
18863 old_archive_cmds_GCJ | \
18864 old_archive_from_new_cmds_GCJ | \
18865 archive_cmds_GCJ | \
18866 archive_expsym_cmds_GCJ | \
18867 module_cmds_GCJ | \
18868 module_expsym_cmds_GCJ | \
18869 old_archive_from_expsyms_cmds_GCJ | \
18870 export_symbols_cmds_GCJ | \
18871 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18872 postinstall_cmds | postuninstall_cmds | \
18873 old_postinstall_cmds | old_postuninstall_cmds | \
18874 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18875 # Double-quote double-evaled strings.
18876 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18879 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18885 *'\$0 --fallback-echo"')
18886 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18892 cat <<__EOF__ >> "$cfgfile"
18893 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18895 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18897 # Shell to use when invoking shell scripts.
18900 # Whether or not to build shared libraries.
18901 build_libtool_libs=$enable_shared
18903 # Whether or not to build static libraries.
18904 build_old_libs=$enable_static
18906 # Whether or not to add -lc for building shared libraries.
18907 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18909 # Whether or not to disallow shared libs when runtime libs are static
18910 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18912 # Whether or not to optimize for fast installation.
18913 fast_install=$enable_fast_install
18916 host_alias=$host_alias
18920 # The build system.
18921 build_alias=$build_alias
18925 # An echo program that does not interpret backslashes.
18930 AR_FLAGS=$lt_AR_FLAGS
18935 # LTCC compiler flags.
18936 LTCFLAGS=$lt_LTCFLAGS
18938 # A language-specific compiler.
18939 CC=$lt_compiler_GCJ
18941 # Is the compiler the GNU C compiler?
18947 # The linker used to build libraries.
18950 # Whether we need hard or soft links.
18953 # A BSD-compatible nm program.
18956 # A symbol stripping program
18959 # Used to examine libraries when file_magic_cmd begins "file"
18960 MAGIC_CMD=$MAGIC_CMD
18962 # Used on cygwin: DLL creation program.
18965 # Used on cygwin: object dumper.
18968 # Used on cygwin: assembler.
18971 # The name of the directory that contains temporary libtool files.
18974 # How to create reloadable object files.
18975 reload_flag=$lt_reload_flag
18976 reload_cmds=$lt_reload_cmds
18978 # How to pass a linker flag through the compiler.
18979 wl=$lt_lt_prog_compiler_wl_GCJ
18981 # Object file suffix (normally "o").
18982 objext="$ac_objext"
18984 # Old archive suffix (normally "a").
18987 # Shared library suffix (normally ".so").
18988 shrext_cmds='$shrext_cmds'
18990 # Executable file suffix (normally "").
18993 # Additional compiler flags for building library objects.
18994 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18997 # What is the maximum length of a command?
18998 max_cmd_len=$lt_cv_sys_max_cmd_len
19000 # Does compiler simultaneously support -c and -o options?
19001 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19003 # Must we lock files when doing compilation?
19004 need_locks=$lt_need_locks
19006 # Do we need the lib prefix for modules?
19007 need_lib_prefix=$need_lib_prefix
19009 # Do we need a version for libraries?
19010 need_version=$need_version
19012 # Whether dlopen is supported.
19013 dlopen_support=$enable_dlopen
19015 # Whether dlopen of programs is supported.
19016 dlopen_self=$enable_dlopen_self
19018 # Whether dlopen of statically linked programs is supported.
19019 dlopen_self_static=$enable_dlopen_self_static
19021 # Compiler flag to prevent dynamic linking.
19022 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19024 # Compiler flag to turn off builtin functions.
19025 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19027 # Compiler flag to allow reflexive dlopens.
19028 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19030 # Compiler flag to generate shared objects directly from archives.
19031 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19033 # Compiler flag to generate thread-safe objects.
19034 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19036 # Library versioning type.
19037 version_type=$version_type
19039 # Format of library name prefix.
19040 libname_spec=$lt_libname_spec
19042 # List of archive names. First name is the real one, the rest are links.
19043 # The last name is the one that the linker finds with -lNAME.
19044 library_names_spec=$lt_library_names_spec
19046 # The coded name of the library, if different from the real name.
19047 soname_spec=$lt_soname_spec
19049 # Commands used to build and install an old-style archive.
19051 old_archive_cmds=$lt_old_archive_cmds_GCJ
19052 old_postinstall_cmds=$lt_old_postinstall_cmds
19053 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19055 # Create an old-style archive from a shared archive.
19056 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19058 # Create a temporary old-style archive to link instead of a shared archive.
19059 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19061 # Commands used to build and install a shared archive.
19062 archive_cmds=$lt_archive_cmds_GCJ
19063 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19064 postinstall_cmds=$lt_postinstall_cmds
19065 postuninstall_cmds=$lt_postuninstall_cmds
19067 # Commands used to build a loadable module (assumed same as above if empty)
19068 module_cmds=$lt_module_cmds_GCJ
19069 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19071 # Commands to strip libraries.
19072 old_striplib=$lt_old_striplib
19073 striplib=$lt_striplib
19075 # Dependencies to place before the objects being linked to create a
19077 predep_objects=$lt_predep_objects_GCJ
19079 # Dependencies to place after the objects being linked to create a
19081 postdep_objects=$lt_postdep_objects_GCJ
19083 # Dependencies to place before the objects being linked to create a
19085 predeps=$lt_predeps_GCJ
19087 # Dependencies to place after the objects being linked to create a
19089 postdeps=$lt_postdeps_GCJ
19091 # The library search path used internally by the compiler when linking
19092 # a shared library.
19093 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19095 # Method to check whether dependent libraries are shared objects.
19096 deplibs_check_method=$lt_deplibs_check_method
19098 # Command to use when deplibs_check_method == file_magic.
19099 file_magic_cmd=$lt_file_magic_cmd
19101 # Flag that allows shared libraries with undefined symbols to be built.
19102 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19104 # Flag that forces no undefined symbols.
19105 no_undefined_flag=$lt_no_undefined_flag_GCJ
19107 # Commands used to finish a libtool library installation in a directory.
19108 finish_cmds=$lt_finish_cmds
19110 # Same as above, but a single script fragment to be evaled but not shown.
19111 finish_eval=$lt_finish_eval
19113 # Take the output of nm and produce a listing of raw symbols and C names.
19114 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19116 # Transform the output of nm in a proper C declaration
19117 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19119 # Transform the output of nm in a C name address pair
19120 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19122 # This is the shared library runtime path variable.
19123 runpath_var=$runpath_var
19125 # This is the shared library path variable.
19126 shlibpath_var=$shlibpath_var
19128 # Is shlibpath searched before the hard-coded library search path?
19129 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19131 # How to hardcode a shared library path into an executable.
19132 hardcode_action=$hardcode_action_GCJ
19134 # Whether we should hardcode library paths into libraries.
19135 hardcode_into_libs=$hardcode_into_libs
19137 # Flag to hardcode \$libdir into a binary during linking.
19138 # This must work even if \$libdir does not exist.
19139 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19141 # If ld is used when linking, flag to hardcode \$libdir into
19142 # a binary during linking. This must work even if \$libdir does
19144 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19146 # Whether we need a single -rpath flag with a separated argument.
19147 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19149 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19150 # resulting binary.
19151 hardcode_direct=$hardcode_direct_GCJ
19153 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19154 # resulting binary.
19155 hardcode_minus_L=$hardcode_minus_L_GCJ
19157 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19158 # the resulting binary.
19159 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19161 # Set to yes if building a shared library automatically hardcodes DIR into the library
19162 # and all subsequent libraries and executables linked against it.
19163 hardcode_automatic=$hardcode_automatic_GCJ
19165 # Variables whose values should be saved in libtool wrapper scripts and
19166 # restored at relink time.
19167 variables_saved_for_relink="$variables_saved_for_relink"
19169 # Whether libtool must link a program against all its dependency libraries.
19170 link_all_deplibs=$link_all_deplibs_GCJ
19172 # Compile-time system search path for libraries
19173 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19175 # Run-time system search path for libraries
19176 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19178 # Fix the shell variable \$srcfile for the compiler.
19179 fix_srcfile_path=$lt_fix_srcfile_path
19181 # Set to yes if exported symbols are required.
19182 always_export_symbols=$always_export_symbols_GCJ
19184 # The commands to list exported symbols.
19185 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19187 # The commands to extract the exported symbol list from a shared archive.
19188 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19190 # Symbols that should not be listed in the preloaded symbols.
19191 exclude_expsyms=$lt_exclude_expsyms_GCJ
19193 # Symbols that must always be exported.
19194 include_expsyms=$lt_include_expsyms_GCJ
19196 # ### END LIBTOOL TAG CONFIG: $tagname
19202 # If there is no Makefile yet, we rely on a make rule to execute
19203 # `config.status --recheck' to rerun these tests and create the
19204 # libtool script then.
19205 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19206 if test -f "$ltmain_in"; then
19207 test -f Makefile && make "$ltmain"
19213 ac_cpp='$CPP $CPPFLAGS'
19214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19228 # Source file extension for RC test sources.
19231 # Object file extension for compiled RC test sources.
19235 # Code to be used in simple compile tests
19236 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19238 # Code to be used in simple link tests
19239 lt_simple_link_test_code="$lt_simple_compile_test_code"
19241 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19243 # If no C compiler was specified, use CC.
19246 # If no C compiler flags were specified, use CFLAGS.
19247 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19249 # Allow CC to be a program name with arguments.
19253 # save warnings/boilerplate of simple test code
19254 ac_outfile=conftest.$ac_objext
19255 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19256 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19257 _lt_compiler_boilerplate=`cat conftest.err`
19260 ac_outfile=conftest.$ac_objext
19261 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19262 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19263 _lt_linker_boilerplate=`cat conftest.err`
19267 # Allow CC to be a program name with arguments.
19272 for cc_temp in $compiler""; do
19274 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19275 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19280 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19282 lt_cv_prog_compiler_c_o_RC=yes
19284 # The else clause should only fire when bootstrapping the
19285 # libtool distribution, otherwise you forgot to ship ltmain.sh
19286 # with your package, and you will get complaints that there are
19287 # no rules to generate ltmain.sh.
19288 if test -f "$ltmain"; then
19289 # See if we are running on zsh, and set the options which allow our commands through
19290 # without removal of \ escapes.
19291 if test -n "${ZSH_VERSION+set}" ; then
19292 setopt NO_GLOB_SUBST
19294 # Now quote all the things that may contain metacharacters while being
19295 # careful not to overquote the AC_SUBSTed values. We take copies of the
19296 # variables and quote the copies for generation of the libtool script.
19297 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19299 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19300 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19301 deplibs_check_method reload_flag reload_cmds need_locks \
19302 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19303 lt_cv_sys_global_symbol_to_c_name_address \
19304 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19305 old_postinstall_cmds old_postuninstall_cmds \
19309 lt_prog_compiler_wl_RC \
19310 lt_prog_compiler_pic_RC \
19311 lt_prog_compiler_static_RC \
19312 lt_prog_compiler_no_builtin_flag_RC \
19313 export_dynamic_flag_spec_RC \
19314 thread_safe_flag_spec_RC \
19315 whole_archive_flag_spec_RC \
19316 enable_shared_with_static_runtimes_RC \
19317 old_archive_cmds_RC \
19318 old_archive_from_new_cmds_RC \
19319 predep_objects_RC \
19320 postdep_objects_RC \
19323 compiler_lib_search_path_RC \
19325 archive_expsym_cmds_RC \
19326 postinstall_cmds_RC \
19327 postuninstall_cmds_RC \
19328 old_archive_from_expsyms_cmds_RC \
19329 allow_undefined_flag_RC \
19330 no_undefined_flag_RC \
19331 export_symbols_cmds_RC \
19332 hardcode_libdir_flag_spec_RC \
19333 hardcode_libdir_flag_spec_ld_RC \
19334 hardcode_libdir_separator_RC \
19335 hardcode_automatic_RC \
19337 module_expsym_cmds_RC \
19338 lt_cv_prog_compiler_c_o_RC \
19339 fix_srcfile_path_RC \
19340 exclude_expsyms_RC \
19341 include_expsyms_RC; do
19344 old_archive_cmds_RC | \
19345 old_archive_from_new_cmds_RC | \
19346 archive_cmds_RC | \
19347 archive_expsym_cmds_RC | \
19349 module_expsym_cmds_RC | \
19350 old_archive_from_expsyms_cmds_RC | \
19351 export_symbols_cmds_RC | \
19352 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19353 postinstall_cmds | postuninstall_cmds | \
19354 old_postinstall_cmds | old_postuninstall_cmds | \
19355 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19356 # Double-quote double-evaled strings.
19357 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19360 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19366 *'\$0 --fallback-echo"')
19367 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19373 cat <<__EOF__ >> "$cfgfile"
19374 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19376 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19378 # Shell to use when invoking shell scripts.
19381 # Whether or not to build shared libraries.
19382 build_libtool_libs=$enable_shared
19384 # Whether or not to build static libraries.
19385 build_old_libs=$enable_static
19387 # Whether or not to add -lc for building shared libraries.
19388 build_libtool_need_lc=$archive_cmds_need_lc_RC
19390 # Whether or not to disallow shared libs when runtime libs are static
19391 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19393 # Whether or not to optimize for fast installation.
19394 fast_install=$enable_fast_install
19397 host_alias=$host_alias
19401 # The build system.
19402 build_alias=$build_alias
19406 # An echo program that does not interpret backslashes.
19411 AR_FLAGS=$lt_AR_FLAGS
19416 # LTCC compiler flags.
19417 LTCFLAGS=$lt_LTCFLAGS
19419 # A language-specific compiler.
19422 # Is the compiler the GNU C compiler?
19428 # The linker used to build libraries.
19431 # Whether we need hard or soft links.
19434 # A BSD-compatible nm program.
19437 # A symbol stripping program
19440 # Used to examine libraries when file_magic_cmd begins "file"
19441 MAGIC_CMD=$MAGIC_CMD
19443 # Used on cygwin: DLL creation program.
19446 # Used on cygwin: object dumper.
19449 # Used on cygwin: assembler.
19452 # The name of the directory that contains temporary libtool files.
19455 # How to create reloadable object files.
19456 reload_flag=$lt_reload_flag
19457 reload_cmds=$lt_reload_cmds
19459 # How to pass a linker flag through the compiler.
19460 wl=$lt_lt_prog_compiler_wl_RC
19462 # Object file suffix (normally "o").
19463 objext="$ac_objext"
19465 # Old archive suffix (normally "a").
19468 # Shared library suffix (normally ".so").
19469 shrext_cmds='$shrext_cmds'
19471 # Executable file suffix (normally "").
19474 # Additional compiler flags for building library objects.
19475 pic_flag=$lt_lt_prog_compiler_pic_RC
19478 # What is the maximum length of a command?
19479 max_cmd_len=$lt_cv_sys_max_cmd_len
19481 # Does compiler simultaneously support -c and -o options?
19482 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19484 # Must we lock files when doing compilation?
19485 need_locks=$lt_need_locks
19487 # Do we need the lib prefix for modules?
19488 need_lib_prefix=$need_lib_prefix
19490 # Do we need a version for libraries?
19491 need_version=$need_version
19493 # Whether dlopen is supported.
19494 dlopen_support=$enable_dlopen
19496 # Whether dlopen of programs is supported.
19497 dlopen_self=$enable_dlopen_self
19499 # Whether dlopen of statically linked programs is supported.
19500 dlopen_self_static=$enable_dlopen_self_static
19502 # Compiler flag to prevent dynamic linking.
19503 link_static_flag=$lt_lt_prog_compiler_static_RC
19505 # Compiler flag to turn off builtin functions.
19506 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19508 # Compiler flag to allow reflexive dlopens.
19509 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19511 # Compiler flag to generate shared objects directly from archives.
19512 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19514 # Compiler flag to generate thread-safe objects.
19515 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19517 # Library versioning type.
19518 version_type=$version_type
19520 # Format of library name prefix.
19521 libname_spec=$lt_libname_spec
19523 # List of archive names. First name is the real one, the rest are links.
19524 # The last name is the one that the linker finds with -lNAME.
19525 library_names_spec=$lt_library_names_spec
19527 # The coded name of the library, if different from the real name.
19528 soname_spec=$lt_soname_spec
19530 # Commands used to build and install an old-style archive.
19532 old_archive_cmds=$lt_old_archive_cmds_RC
19533 old_postinstall_cmds=$lt_old_postinstall_cmds
19534 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19536 # Create an old-style archive from a shared archive.
19537 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19539 # Create a temporary old-style archive to link instead of a shared archive.
19540 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19542 # Commands used to build and install a shared archive.
19543 archive_cmds=$lt_archive_cmds_RC
19544 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19545 postinstall_cmds=$lt_postinstall_cmds
19546 postuninstall_cmds=$lt_postuninstall_cmds
19548 # Commands used to build a loadable module (assumed same as above if empty)
19549 module_cmds=$lt_module_cmds_RC
19550 module_expsym_cmds=$lt_module_expsym_cmds_RC
19552 # Commands to strip libraries.
19553 old_striplib=$lt_old_striplib
19554 striplib=$lt_striplib
19556 # Dependencies to place before the objects being linked to create a
19558 predep_objects=$lt_predep_objects_RC
19560 # Dependencies to place after the objects being linked to create a
19562 postdep_objects=$lt_postdep_objects_RC
19564 # Dependencies to place before the objects being linked to create a
19566 predeps=$lt_predeps_RC
19568 # Dependencies to place after the objects being linked to create a
19570 postdeps=$lt_postdeps_RC
19572 # The library search path used internally by the compiler when linking
19573 # a shared library.
19574 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19576 # Method to check whether dependent libraries are shared objects.
19577 deplibs_check_method=$lt_deplibs_check_method
19579 # Command to use when deplibs_check_method == file_magic.
19580 file_magic_cmd=$lt_file_magic_cmd
19582 # Flag that allows shared libraries with undefined symbols to be built.
19583 allow_undefined_flag=$lt_allow_undefined_flag_RC
19585 # Flag that forces no undefined symbols.
19586 no_undefined_flag=$lt_no_undefined_flag_RC
19588 # Commands used to finish a libtool library installation in a directory.
19589 finish_cmds=$lt_finish_cmds
19591 # Same as above, but a single script fragment to be evaled but not shown.
19592 finish_eval=$lt_finish_eval
19594 # Take the output of nm and produce a listing of raw symbols and C names.
19595 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19597 # Transform the output of nm in a proper C declaration
19598 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19600 # Transform the output of nm in a C name address pair
19601 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19603 # This is the shared library runtime path variable.
19604 runpath_var=$runpath_var
19606 # This is the shared library path variable.
19607 shlibpath_var=$shlibpath_var
19609 # Is shlibpath searched before the hard-coded library search path?
19610 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19612 # How to hardcode a shared library path into an executable.
19613 hardcode_action=$hardcode_action_RC
19615 # Whether we should hardcode library paths into libraries.
19616 hardcode_into_libs=$hardcode_into_libs
19618 # Flag to hardcode \$libdir into a binary during linking.
19619 # This must work even if \$libdir does not exist.
19620 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19622 # If ld is used when linking, flag to hardcode \$libdir into
19623 # a binary during linking. This must work even if \$libdir does
19625 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19627 # Whether we need a single -rpath flag with a separated argument.
19628 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19630 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19631 # resulting binary.
19632 hardcode_direct=$hardcode_direct_RC
19634 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19635 # resulting binary.
19636 hardcode_minus_L=$hardcode_minus_L_RC
19638 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19639 # the resulting binary.
19640 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19642 # Set to yes if building a shared library automatically hardcodes DIR into the library
19643 # and all subsequent libraries and executables linked against it.
19644 hardcode_automatic=$hardcode_automatic_RC
19646 # Variables whose values should be saved in libtool wrapper scripts and
19647 # restored at relink time.
19648 variables_saved_for_relink="$variables_saved_for_relink"
19650 # Whether libtool must link a program against all its dependency libraries.
19651 link_all_deplibs=$link_all_deplibs_RC
19653 # Compile-time system search path for libraries
19654 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19656 # Run-time system search path for libraries
19657 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19659 # Fix the shell variable \$srcfile for the compiler.
19660 fix_srcfile_path=$lt_fix_srcfile_path
19662 # Set to yes if exported symbols are required.
19663 always_export_symbols=$always_export_symbols_RC
19665 # The commands to list exported symbols.
19666 export_symbols_cmds=$lt_export_symbols_cmds_RC
19668 # The commands to extract the exported symbol list from a shared archive.
19669 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19671 # Symbols that should not be listed in the preloaded symbols.
19672 exclude_expsyms=$lt_exclude_expsyms_RC
19674 # Symbols that must always be exported.
19675 include_expsyms=$lt_include_expsyms_RC
19677 # ### END LIBTOOL TAG CONFIG: $tagname
19683 # If there is no Makefile yet, we rely on a make rule to execute
19684 # `config.status --recheck' to rerun these tests and create the
19685 # libtool script then.
19686 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19687 if test -f "$ltmain_in"; then
19688 test -f Makefile && make "$ltmain"
19694 ac_cpp='$CPP $CPPFLAGS'
19695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19704 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19705 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19706 { (exit 1); exit 1; }; }
19710 # Append the new tag name to the list of available tags.
19711 if test -n "$tagname" ; then
19712 available_tags="$available_tags $tagname"
19718 # Now substitute the updated list of available tags.
19719 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19720 mv "${ofile}T" "$ofile"
19724 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19725 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19726 { (exit 1); exit 1; }; }
19732 # This can be used to rebuild libtool when needed
19733 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19735 # Always use our own libtool.
19736 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19738 # Prevent multiple expansion
19767 { echo "$as_me:$LINENO: result: " >&5
19768 echo "${ECHO_T}" >&6; }
19769 { echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
19770 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6; }
19773 ac_cpp='$CPP $CPPFLAGS'
19774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19777 if test -n "$ac_tool_prefix"; then
19778 for ac_prog in xlC gcc cc
19780 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19781 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19784 if test "${ac_cv_prog_CC+set}" = set; then
19785 echo $ECHO_N "(cached) $ECHO_C" >&6
19787 if test -n "$CC"; then
19788 ac_cv_prog_CC="$CC" # Let the user override the test.
19790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19791 for as_dir in $PATH
19794 test -z "$as_dir" && as_dir=.
19795 for ac_exec_ext in '' $ac_executable_extensions; do
19796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19797 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19808 if test -n "$CC"; then
19809 { echo "$as_me:$LINENO: result: $CC" >&5
19810 echo "${ECHO_T}$CC" >&6; }
19812 { echo "$as_me:$LINENO: result: no" >&5
19813 echo "${ECHO_T}no" >&6; }
19817 test -n "$CC" && break
19820 if test -z "$CC"; then
19822 for ac_prog in xlC gcc cc
19824 # Extract the first word of "$ac_prog", so it can be a program name with args.
19825 set dummy $ac_prog; ac_word=$2
19826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19828 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19829 echo $ECHO_N "(cached) $ECHO_C" >&6
19831 if test -n "$ac_ct_CC"; then
19832 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19835 for as_dir in $PATH
19838 test -z "$as_dir" && as_dir=.
19839 for ac_exec_ext in '' $ac_executable_extensions; do
19840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19841 ac_cv_prog_ac_ct_CC="$ac_prog"
19842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19851 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19852 if test -n "$ac_ct_CC"; then
19853 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19854 echo "${ECHO_T}$ac_ct_CC" >&6; }
19856 { echo "$as_me:$LINENO: result: no" >&5
19857 echo "${ECHO_T}no" >&6; }
19861 test -n "$ac_ct_CC" && break
19864 if test "x$ac_ct_CC" = x; then
19867 case $cross_compiling:$ac_tool_warned in
19869 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19870 whose name does not start with the host triplet. If you think this
19871 configuration is useful to you, please write to autoconf@gnu.org." >&5
19872 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19873 whose name does not start with the host triplet. If you think this
19874 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19875 ac_tool_warned=yes ;;
19882 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19883 See \`config.log' for more details." >&5
19884 echo "$as_me: error: no acceptable C compiler found in \$PATH
19885 See \`config.log' for more details." >&2;}
19886 { (exit 1); exit 1; }; }
19888 # Provide some information about the compiler.
19889 echo "$as_me:$LINENO: checking for C compiler version" >&5
19890 ac_compiler=`set X $ac_compile; echo $2`
19891 { (ac_try="$ac_compiler --version >&5"
19892 case "(($ac_try" in
19893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19894 *) ac_try_echo=$ac_try;;
19896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19897 (eval "$ac_compiler --version >&5") 2>&5
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); }
19901 { (ac_try="$ac_compiler -v >&5"
19902 case "(($ac_try" in
19903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19904 *) ac_try_echo=$ac_try;;
19906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19907 (eval "$ac_compiler -v >&5") 2>&5
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); }
19911 { (ac_try="$ac_compiler -V >&5"
19912 case "(($ac_try" in
19913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19914 *) ac_try_echo=$ac_try;;
19916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19917 (eval "$ac_compiler -V >&5") 2>&5
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); }
19922 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19923 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19924 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19925 echo $ECHO_N "(cached) $ECHO_C" >&6
19927 cat >conftest.$ac_ext <<_ACEOF
19930 cat confdefs.h >>conftest.$ac_ext
19931 cat >>conftest.$ac_ext <<_ACEOF
19932 /* end confdefs.h. */
19945 rm -f conftest.$ac_objext
19946 if { (ac_try="$ac_compile"
19947 case "(($ac_try" in
19948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19949 *) ac_try_echo=$ac_try;;
19951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19952 (eval "$ac_compile") 2>conftest.er1
19954 grep -v '^ *+' conftest.er1 >conftest.err
19956 cat conftest.err >&5
19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); } && {
19959 test -z "$ac_c_werror_flag" ||
19960 test ! -s conftest.err
19961 } && test -s conftest.$ac_objext; then
19962 ac_compiler_gnu=yes
19964 echo "$as_me: failed program was:" >&5
19965 sed 's/^/| /' conftest.$ac_ext >&5
19970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19971 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19974 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19975 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19976 GCC=`test $ac_compiler_gnu = yes && echo yes`
19977 ac_test_CFLAGS=${CFLAGS+set}
19978 ac_save_CFLAGS=$CFLAGS
19979 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19980 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19981 if test "${ac_cv_prog_cc_g+set}" = set; then
19982 echo $ECHO_N "(cached) $ECHO_C" >&6
19984 ac_save_c_werror_flag=$ac_c_werror_flag
19985 ac_c_werror_flag=yes
19988 cat >conftest.$ac_ext <<_ACEOF
19991 cat confdefs.h >>conftest.$ac_ext
19992 cat >>conftest.$ac_ext <<_ACEOF
19993 /* end confdefs.h. */
20003 rm -f conftest.$ac_objext
20004 if { (ac_try="$ac_compile"
20005 case "(($ac_try" in
20006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20007 *) ac_try_echo=$ac_try;;
20009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20010 (eval "$ac_compile") 2>conftest.er1
20012 grep -v '^ *+' conftest.er1 >conftest.err
20014 cat conftest.err >&5
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); } && {
20017 test -z "$ac_c_werror_flag" ||
20018 test ! -s conftest.err
20019 } && test -s conftest.$ac_objext; then
20020 ac_cv_prog_cc_g=yes
20022 echo "$as_me: failed program was:" >&5
20023 sed 's/^/| /' conftest.$ac_ext >&5
20026 cat >conftest.$ac_ext <<_ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h. */
20041 rm -f conftest.$ac_objext
20042 if { (ac_try="$ac_compile"
20043 case "(($ac_try" in
20044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20045 *) ac_try_echo=$ac_try;;
20047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20048 (eval "$ac_compile") 2>conftest.er1
20050 grep -v '^ *+' conftest.er1 >conftest.err
20052 cat conftest.err >&5
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); } && {
20055 test -z "$ac_c_werror_flag" ||
20056 test ! -s conftest.err
20057 } && test -s conftest.$ac_objext; then
20060 echo "$as_me: failed program was:" >&5
20061 sed 's/^/| /' conftest.$ac_ext >&5
20063 ac_c_werror_flag=$ac_save_c_werror_flag
20065 cat >conftest.$ac_ext <<_ACEOF
20068 cat confdefs.h >>conftest.$ac_ext
20069 cat >>conftest.$ac_ext <<_ACEOF
20070 /* end confdefs.h. */
20080 rm -f conftest.$ac_objext
20081 if { (ac_try="$ac_compile"
20082 case "(($ac_try" in
20083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20084 *) ac_try_echo=$ac_try;;
20086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20087 (eval "$ac_compile") 2>conftest.er1
20089 grep -v '^ *+' conftest.er1 >conftest.err
20091 cat conftest.err >&5
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); } && {
20094 test -z "$ac_c_werror_flag" ||
20095 test ! -s conftest.err
20096 } && test -s conftest.$ac_objext; then
20097 ac_cv_prog_cc_g=yes
20099 echo "$as_me: failed program was:" >&5
20100 sed 's/^/| /' conftest.$ac_ext >&5
20105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20112 ac_c_werror_flag=$ac_save_c_werror_flag
20114 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20115 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20116 if test "$ac_test_CFLAGS" = set; then
20117 CFLAGS=$ac_save_CFLAGS
20118 elif test $ac_cv_prog_cc_g = yes; then
20119 if test "$GCC" = yes; then
20125 if test "$GCC" = yes; then
20131 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20132 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20133 if test "${ac_cv_prog_cc_c89+set}" = set; then
20134 echo $ECHO_N "(cached) $ECHO_C" >&6
20136 ac_cv_prog_cc_c89=no
20138 cat >conftest.$ac_ext <<_ACEOF
20141 cat confdefs.h >>conftest.$ac_ext
20142 cat >>conftest.$ac_ext <<_ACEOF
20143 /* end confdefs.h. */
20144 #include <stdarg.h>
20146 #include <sys/types.h>
20147 #include <sys/stat.h>
20148 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20149 struct buf { int x; };
20150 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20151 static char *e (p, i)
20157 static char *f (char * (*g) (char **, int), char **p, ...)
20162 s = g (p, va_arg (v,int));
20167 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20168 function prototypes and stuff, but not '\xHH' hex character constants.
20169 These don't provoke an error unfortunately, instead are silently treated
20170 as 'x'. The following induces an error, until -std is added to get
20171 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20172 array size at least. It's necessary to write '\x00'==0 to get something
20173 that's true only with -std. */
20174 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20176 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20177 inside strings and character constants. */
20179 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20181 int test (int i, double x);
20182 struct s1 {int (*f) (int a);};
20183 struct s2 {int (*f) (double a);};
20184 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20190 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20195 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20196 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20198 CC="$ac_save_CC $ac_arg"
20199 rm -f conftest.$ac_objext
20200 if { (ac_try="$ac_compile"
20201 case "(($ac_try" in
20202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20203 *) ac_try_echo=$ac_try;;
20205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20206 (eval "$ac_compile") 2>conftest.er1
20208 grep -v '^ *+' conftest.er1 >conftest.err
20210 cat conftest.err >&5
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); } && {
20213 test -z "$ac_c_werror_flag" ||
20214 test ! -s conftest.err
20215 } && test -s conftest.$ac_objext; then
20216 ac_cv_prog_cc_c89=$ac_arg
20218 echo "$as_me: failed program was:" >&5
20219 sed 's/^/| /' conftest.$ac_ext >&5
20224 rm -f core conftest.err conftest.$ac_objext
20225 test "x$ac_cv_prog_cc_c89" != "xno" && break
20227 rm -f conftest.$ac_ext
20232 case "x$ac_cv_prog_cc_c89" in
20234 { echo "$as_me:$LINENO: result: none needed" >&5
20235 echo "${ECHO_T}none needed" >&6; } ;;
20237 { echo "$as_me:$LINENO: result: unsupported" >&5
20238 echo "${ECHO_T}unsupported" >&6; } ;;
20240 CC="$CC $ac_cv_prog_cc_c89"
20241 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20242 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20247 ac_cpp='$CPP $CPPFLAGS'
20248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20252 depcc="$CC" am_compiler_list=
20254 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20255 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20256 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20257 echo $ECHO_N "(cached) $ECHO_C" >&6
20259 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20260 # We make a subdir and do the tests there. Otherwise we can end up
20261 # making bogus files that we don't know about and never remove. For
20262 # instance it was reported that on HP-UX the gcc test will end up
20263 # making a dummy file named `D' -- because `-MD' means `put the output
20266 # Copy depcomp to subdir because otherwise we won't find it if we're
20267 # using a relative directory.
20268 cp "$am_depcomp" conftest.dir
20270 # We will build objects and dependencies in a subdirectory because
20271 # it helps to detect inapplicable dependency modes. For instance
20272 # both Tru64's cc and ICC support -MD to output dependencies as a
20273 # side effect of compilation, but ICC will put the dependencies in
20274 # the current directory while Tru64 will put them in the object
20278 am_cv_CC_dependencies_compiler_type=none
20279 if test "$am_compiler_list" = ""; then
20280 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20282 for depmode in $am_compiler_list; do
20283 # Setup a source with many dependencies, because some compilers
20284 # like to wrap large dependency lists on column 80 (with \), and
20285 # we should not choose a depcomp mode which is confused by this.
20287 # We need to recreate these files for each test, as the compiler may
20288 # overwrite some of them when testing with obscure command lines.
20289 # This happens at least with the AIX C compiler.
20291 for i in 1 2 3 4 5 6; do
20292 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20293 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20294 # Solaris 8's {/usr,}/bin/sh.
20295 touch sub/conftst$i.h
20297 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20301 # after this tag, mechanisms are not by side-effect, so they'll
20302 # only be used when explicitly requested
20303 if test "x$enable_dependency_tracking" = xyes; then
20311 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20312 # mode. It turns out that the SunPro C++ compiler does not properly
20313 # handle `-M -o', and we need to detect this.
20314 if depmode=$depmode \
20315 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20316 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20317 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20318 >/dev/null 2>conftest.err &&
20319 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20320 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20321 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20322 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20323 # icc doesn't choke on unknown options, it will just issue warnings
20324 # or remarks (even with -Werror). So we grep stderr for any message
20325 # that says an option was ignored or not supported.
20326 # When given -MP, icc 7.0 and 7.1 complain thusly:
20327 # icc: Command line warning: ignoring option '-M'; no argument required
20328 # The diagnosis changed in icc 8.0:
20329 # icc: Command line remark: option '-MP' not supported
20330 if (grep 'ignoring option' conftest.err ||
20331 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20332 am_cv_CC_dependencies_compiler_type=$depmode
20339 rm -rf conftest.dir
20341 am_cv_CC_dependencies_compiler_type=none
20345 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20346 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20347 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20350 test "x$enable_dependency_tracking" != xno \
20351 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20352 am__fastdepCC_TRUE=
20353 am__fastdepCC_FALSE='#'
20355 am__fastdepCC_TRUE='#'
20356 am__fastdepCC_FALSE=
20360 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20361 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
20364 echo timestamp > conftest.file
20365 # Do `set' in a subshell so we don't clobber the current shell's
20366 # arguments. Must try -L first in case configure is actually a
20367 # symlink; some systems play weird games with the mod time of symlinks
20368 # (eg FreeBSD returns the mod time of the symlink's containing
20371 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
20372 if test "$*" = "X"; then
20374 set X `ls -t $srcdir/configure conftest.file`
20376 rm -f conftest.file
20377 if test "$*" != "X $srcdir/configure conftest.file" \
20378 && test "$*" != "X conftest.file $srcdir/configure"; then
20380 # If neither matched, then we have a broken ls. This can happen
20381 # if, for instance, CONFIG_SHELL is bash and it inherits a
20382 # broken ls alias from the environment. This has actually
20383 # happened. Such a system could not be considered "sane".
20384 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
20385 alias in your environment" >&5
20386 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
20387 alias in your environment" >&2;}
20388 { (exit 1); exit 1; }; }
20391 test "$2" = conftest.file
20397 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20398 Check your system clock" >&5
20399 echo "$as_me: error: newly created file is older than distributed files!
20400 Check your system clock" >&2;}
20401 { (exit 1); exit 1; }; }
20403 { echo "$as_me:$LINENO: result: yes" >&5
20404 echo "${ECHO_T}yes" >&6; }
20405 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20406 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20407 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20408 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20409 echo $ECHO_N "(cached) $ECHO_C" >&6
20411 cat >conftest.make <<\_ACEOF
20414 @echo '@@@%%%=$(MAKE)=@@@%%%'
20416 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20417 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20418 *@@@%%%=?*=@@@%%%*)
20419 eval ac_cv_prog_make_${ac_make}_set=yes;;
20421 eval ac_cv_prog_make_${ac_make}_set=no;;
20423 rm -f conftest.make
20425 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20426 { echo "$as_me:$LINENO: result: yes" >&5
20427 echo "${ECHO_T}yes" >&6; }
20430 { echo "$as_me:$LINENO: result: no" >&5
20431 echo "${ECHO_T}no" >&6; }
20432 SET_MAKE="MAKE=${MAKE-make}"
20436 { echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
20437 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6; }
20438 if test "$cross_compiling" = yes; then
20439 { echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
20440 echo "${ECHO_T}assuming the worse in cross-compilation" >&6; }
20442 cat >conftest.$ac_ext <<_ACEOF
20445 cat confdefs.h >>conftest.$ac_ext
20446 cat >>conftest.$ac_ext <<_ACEOF
20447 /* end confdefs.h. */
20457 rm -f conftest$ac_exeext
20458 if { (ac_try="$ac_link"
20459 case "(($ac_try" in
20460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461 *) ac_try_echo=$ac_try;;
20463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20464 (eval "$ac_link") 2>&5
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20468 { (case "(($ac_try" in
20469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20470 *) ac_try_echo=$ac_try;;
20472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20473 (eval "$ac_try") 2>&5
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); }; }; then
20478 cat >>confdefs.h <<\_ACEOF
20479 #define PRINTF_NULL_WORKING 1
20482 { echo "$as_me:$LINENO: result: yes" >&5
20483 echo "${ECHO_T}yes" >&6; }
20485 echo "$as_me: program exited with status $ac_status" >&5
20486 echo "$as_me: failed program was:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20489 ( exit $ac_status )
20490 { echo "$as_me:$LINENO: result: no" >&5
20491 echo "${ECHO_T}no" >&6; }
20493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20499 { echo "$as_me:$LINENO: checking for va_copy() function" >&5
20500 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6; }
20501 if test "${ac_cv_va_copy+set}" = set; then
20502 echo $ECHO_N "(cached) $ECHO_C" >&6
20509 if test ".$ac_cv_va_copy" = .; then
20510 if test "$cross_compiling" = yes; then
20511 ac_cv_va_copy="C99"
20513 cat >conftest.$ac_ext <<_ACEOF
20516 cat confdefs.h >>conftest.$ac_ext
20517 cat >>conftest.$ac_ext <<_ACEOF
20518 /* end confdefs.h. */
20520 #include <stdlib.h>
20521 #include <stdarg.h>
20522 #include <string.h>
20523 #define DO_VA_COPY(d, s) va_copy((d), (s))
20524 void test(char *str, ...)
20529 DO_VA_COPY(ap2, ap);
20530 for (i = 1; i <= 9; i++) {
20531 int k = (int)va_arg(ap, int);
20535 DO_VA_COPY(ap, ap2);
20536 for (i = 1; i <= 9; i++) {
20537 int k = (int)va_arg(ap, int);
20543 int main(int argc, char *argv[])
20545 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20550 rm -f conftest$ac_exeext
20551 if { (ac_try="$ac_link"
20552 case "(($ac_try" in
20553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20554 *) ac_try_echo=$ac_try;;
20556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20557 (eval "$ac_link") 2>&5
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20561 { (case "(($ac_try" in
20562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563 *) ac_try_echo=$ac_try;;
20565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566 (eval "$ac_try") 2>&5
20568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); }; }; then
20570 ac_cv_va_copy="C99"
20572 echo "$as_me: program exited with status $ac_status" >&5
20573 echo "$as_me: failed program was:" >&5
20574 sed 's/^/| /' conftest.$ac_ext >&5
20577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20586 if test ".$ac_cv_va_copy" = .; then
20587 if test "$cross_compiling" = yes; then
20588 ac_cv_va_copy="GCM"
20590 cat >conftest.$ac_ext <<_ACEOF
20593 cat confdefs.h >>conftest.$ac_ext
20594 cat >>conftest.$ac_ext <<_ACEOF
20595 /* end confdefs.h. */
20597 #include <stdlib.h>
20598 #include <stdarg.h>
20599 #include <string.h>
20600 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
20601 void test(char *str, ...)
20606 DO_VA_COPY(ap2, ap);
20607 for (i = 1; i <= 9; i++) {
20608 int k = (int)va_arg(ap, int);
20612 DO_VA_COPY(ap, ap2);
20613 for (i = 1; i <= 9; i++) {
20614 int k = (int)va_arg(ap, int);
20620 int main(int argc, char *argv[])
20622 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20627 rm -f conftest$ac_exeext
20628 if { (ac_try="$ac_link"
20629 case "(($ac_try" in
20630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20631 *) ac_try_echo=$ac_try;;
20633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20634 (eval "$ac_link") 2>&5
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20638 { (case "(($ac_try" in
20639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20640 *) ac_try_echo=$ac_try;;
20642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20643 (eval "$ac_try") 2>&5
20645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646 (exit $ac_status); }; }; then
20647 ac_cv_va_copy="GCM"
20649 echo "$as_me: program exited with status $ac_status" >&5
20650 echo "$as_me: failed program was:" >&5
20651 sed 's/^/| /' conftest.$ac_ext >&5
20654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20663 if test ".$ac_cv_va_copy" = .; then
20664 if test "$cross_compiling" = yes; then
20665 ac_cv_va_copy="GCH"
20667 cat >conftest.$ac_ext <<_ACEOF
20670 cat confdefs.h >>conftest.$ac_ext
20671 cat >>conftest.$ac_ext <<_ACEOF
20672 /* end confdefs.h. */
20674 #include <stdlib.h>
20675 #include <stdarg.h>
20676 #include <string.h>
20677 #define DO_VA_COPY(d, s) __va_copy((d), (s))
20678 void test(char *str, ...)
20683 DO_VA_COPY(ap2, ap);
20684 for (i = 1; i <= 9; i++) {
20685 int k = (int)va_arg(ap, int);
20689 DO_VA_COPY(ap, ap2);
20690 for (i = 1; i <= 9; i++) {
20691 int k = (int)va_arg(ap, int);
20697 int main(int argc, char *argv[])
20699 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20704 rm -f conftest$ac_exeext
20705 if { (ac_try="$ac_link"
20706 case "(($ac_try" in
20707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20708 *) ac_try_echo=$ac_try;;
20710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20711 (eval "$ac_link") 2>&5
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20715 { (case "(($ac_try" in
20716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20717 *) ac_try_echo=$ac_try;;
20719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20720 (eval "$ac_try") 2>&5
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); }; }; then
20724 ac_cv_va_copy="GCH"
20726 echo "$as_me: program exited with status $ac_status" >&5
20727 echo "$as_me: failed program was:" >&5
20728 sed 's/^/| /' conftest.$ac_ext >&5
20731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20740 if test ".$ac_cv_va_copy" = .; then
20741 if test "$cross_compiling" = yes; then
20742 ac_cv_va_copy="GCB"
20744 cat >conftest.$ac_ext <<_ACEOF
20747 cat confdefs.h >>conftest.$ac_ext
20748 cat >>conftest.$ac_ext <<_ACEOF
20749 /* end confdefs.h. */
20751 #include <stdlib.h>
20752 #include <stdarg.h>
20753 #include <string.h>
20754 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
20755 void test(char *str, ...)
20760 DO_VA_COPY(ap2, ap);
20761 for (i = 1; i <= 9; i++) {
20762 int k = (int)va_arg(ap, int);
20766 DO_VA_COPY(ap, ap2);
20767 for (i = 1; i <= 9; i++) {
20768 int k = (int)va_arg(ap, int);
20774 int main(int argc, char *argv[])
20776 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20781 rm -f conftest$ac_exeext
20782 if { (ac_try="$ac_link"
20783 case "(($ac_try" in
20784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20785 *) ac_try_echo=$ac_try;;
20787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20788 (eval "$ac_link") 2>&5
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20792 { (case "(($ac_try" in
20793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20794 *) ac_try_echo=$ac_try;;
20796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20797 (eval "$ac_try") 2>&5
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); }; }; then
20801 ac_cv_va_copy="GCB"
20803 echo "$as_me: program exited with status $ac_status" >&5
20804 echo "$as_me: failed program was:" >&5
20805 sed 's/^/| /' conftest.$ac_ext >&5
20808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20817 if test ".$ac_cv_va_copy" = .; then
20818 if test "$cross_compiling" = yes; then
20819 ac_cv_va_copy="ASS"
20821 cat >conftest.$ac_ext <<_ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h. */
20828 #include <stdlib.h>
20829 #include <stdarg.h>
20830 #include <string.h>
20831 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
20832 void test(char *str, ...)
20837 DO_VA_COPY(ap2, ap);
20838 for (i = 1; i <= 9; i++) {
20839 int k = (int)va_arg(ap, int);
20843 DO_VA_COPY(ap, ap2);
20844 for (i = 1; i <= 9; i++) {
20845 int k = (int)va_arg(ap, int);
20851 int main(int argc, char *argv[])
20853 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20858 rm -f conftest$ac_exeext
20859 if { (ac_try="$ac_link"
20860 case "(($ac_try" in
20861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20862 *) ac_try_echo=$ac_try;;
20864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20865 (eval "$ac_link") 2>&5
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20869 { (case "(($ac_try" in
20870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20871 *) ac_try_echo=$ac_try;;
20873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20874 (eval "$ac_try") 2>&5
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); }; }; then
20878 ac_cv_va_copy="ASS"
20880 echo "$as_me: program exited with status $ac_status" >&5
20881 echo "$as_me: failed program was:" >&5
20882 sed 's/^/| /' conftest.$ac_ext >&5
20885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20894 if test ".$ac_cv_va_copy" = .; then
20895 if test "$cross_compiling" = yes; then
20896 ac_cv_va_copy="ASP"
20898 cat >conftest.$ac_ext <<_ACEOF
20901 cat confdefs.h >>conftest.$ac_ext
20902 cat >>conftest.$ac_ext <<_ACEOF
20903 /* end confdefs.h. */
20905 #include <stdlib.h>
20906 #include <stdarg.h>
20907 #include <string.h>
20908 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
20909 void test(char *str, ...)
20914 DO_VA_COPY(ap2, ap);
20915 for (i = 1; i <= 9; i++) {
20916 int k = (int)va_arg(ap, int);
20920 DO_VA_COPY(ap, ap2);
20921 for (i = 1; i <= 9; i++) {
20922 int k = (int)va_arg(ap, int);
20928 int main(int argc, char *argv[])
20930 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20935 rm -f conftest$ac_exeext
20936 if { (ac_try="$ac_link"
20937 case "(($ac_try" in
20938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20939 *) ac_try_echo=$ac_try;;
20941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20942 (eval "$ac_link") 2>&5
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20946 { (case "(($ac_try" in
20947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20948 *) ac_try_echo=$ac_try;;
20950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20951 (eval "$ac_try") 2>&5
20953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954 (exit $ac_status); }; }; then
20955 ac_cv_va_copy="ASP"
20957 echo "$as_me: program exited with status $ac_status" >&5
20958 echo "$as_me: failed program was:" >&5
20959 sed 's/^/| /' conftest.$ac_ext >&5
20962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20971 if test ".$ac_cv_va_copy" = .; then
20972 if test "$cross_compiling" = yes; then
20973 ac_cv_va_copy="CPS"
20975 cat >conftest.$ac_ext <<_ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>conftest.$ac_ext <<_ACEOF
20980 /* end confdefs.h. */
20982 #include <stdlib.h>
20983 #include <stdarg.h>
20984 #include <string.h>
20985 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
20986 void test(char *str, ...)
20991 DO_VA_COPY(ap2, ap);
20992 for (i = 1; i <= 9; i++) {
20993 int k = (int)va_arg(ap, int);
20997 DO_VA_COPY(ap, ap2);
20998 for (i = 1; i <= 9; i++) {
20999 int k = (int)va_arg(ap, int);
21005 int main(int argc, char *argv[])
21007 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
21012 rm -f conftest$ac_exeext
21013 if { (ac_try="$ac_link"
21014 case "(($ac_try" in
21015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21016 *) ac_try_echo=$ac_try;;
21018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21019 (eval "$ac_link") 2>&5
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21023 { (case "(($ac_try" in
21024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21025 *) ac_try_echo=$ac_try;;
21027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21028 (eval "$ac_try") 2>&5
21030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031 (exit $ac_status); }; }; then
21032 ac_cv_va_copy="CPS"
21034 echo "$as_me: program exited with status $ac_status" >&5
21035 echo "$as_me: failed program was:" >&5
21036 sed 's/^/| /' conftest.$ac_ext >&5
21039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21048 if test ".$ac_cv_va_copy" = .; then
21049 if test "$cross_compiling" = yes; then
21050 ac_cv_va_copy="CPP"
21052 cat >conftest.$ac_ext <<_ACEOF
21055 cat confdefs.h >>conftest.$ac_ext
21056 cat >>conftest.$ac_ext <<_ACEOF
21057 /* end confdefs.h. */
21059 #include <stdlib.h>
21060 #include <stdarg.h>
21061 #include <string.h>
21062 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
21063 void test(char *str, ...)
21068 DO_VA_COPY(ap2, ap);
21069 for (i = 1; i <= 9; i++) {
21070 int k = (int)va_arg(ap, int);
21074 DO_VA_COPY(ap, ap2);
21075 for (i = 1; i <= 9; i++) {
21076 int k = (int)va_arg(ap, int);
21082 int main(int argc, char *argv[])
21084 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
21089 rm -f conftest$ac_exeext
21090 if { (ac_try="$ac_link"
21091 case "(($ac_try" in
21092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21093 *) ac_try_echo=$ac_try;;
21095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21096 (eval "$ac_link") 2>&5
21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21100 { (case "(($ac_try" in
21101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21102 *) ac_try_echo=$ac_try;;
21104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21105 (eval "$ac_try") 2>&5
21107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108 (exit $ac_status); }; }; then
21109 ac_cv_va_copy="CPP"
21111 echo "$as_me: program exited with status $ac_status" >&5
21112 echo "$as_me: failed program was:" >&5
21113 sed 's/^/| /' conftest.$ac_ext >&5
21116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21122 if test ".$ac_cv_va_copy" = .; then
21123 { { echo "$as_me:$LINENO: error: no working implementation found" >&5
21124 echo "$as_me: error: no working implementation found" >&2;}
21125 { (exit 1); exit 1; }; }
21130 if test ".$ac_cv_va_copy" = ".C99"; then
21132 cat >>confdefs.h <<\_ACEOF
21133 #define HAVE_VA_COPY 1
21138 cat >>confdefs.h <<_ACEOF
21139 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
21144 if test ".$ac_cv_va_copy" = ".C99"; then
21145 { echo "$as_me:$LINENO: result: yes" >&5
21146 echo "${ECHO_T}yes" >&6; }
21148 { echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
21149 echo "${ECHO_T}no (using fallback implementation)" >&6; }
21153 # Checks for header files.
21154 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21155 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21156 if test "${ac_cv_header_stdc+set}" = set; then
21157 echo $ECHO_N "(cached) $ECHO_C" >&6
21159 cat >conftest.$ac_ext <<_ACEOF
21162 cat confdefs.h >>conftest.$ac_ext
21163 cat >>conftest.$ac_ext <<_ACEOF
21164 /* end confdefs.h. */
21165 #include <stdlib.h>
21166 #include <stdarg.h>
21167 #include <string.h>
21178 rm -f conftest.$ac_objext
21179 if { (ac_try="$ac_compile"
21180 case "(($ac_try" in
21181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21182 *) ac_try_echo=$ac_try;;
21184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21185 (eval "$ac_compile") 2>conftest.er1
21187 grep -v '^ *+' conftest.er1 >conftest.err
21189 cat conftest.err >&5
21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); } && {
21192 test -z "$ac_c_werror_flag" ||
21193 test ! -s conftest.err
21194 } && test -s conftest.$ac_objext; then
21195 ac_cv_header_stdc=yes
21197 echo "$as_me: failed program was:" >&5
21198 sed 's/^/| /' conftest.$ac_ext >&5
21200 ac_cv_header_stdc=no
21203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21205 if test $ac_cv_header_stdc = yes; then
21206 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21207 cat >conftest.$ac_ext <<_ACEOF
21210 cat confdefs.h >>conftest.$ac_ext
21211 cat >>conftest.$ac_ext <<_ACEOF
21212 /* end confdefs.h. */
21213 #include <string.h>
21216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21217 $EGREP "memchr" >/dev/null 2>&1; then
21220 ac_cv_header_stdc=no
21226 if test $ac_cv_header_stdc = yes; then
21227 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21228 cat >conftest.$ac_ext <<_ACEOF
21231 cat confdefs.h >>conftest.$ac_ext
21232 cat >>conftest.$ac_ext <<_ACEOF
21233 /* end confdefs.h. */
21234 #include <stdlib.h>
21237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21238 $EGREP "free" >/dev/null 2>&1; then
21241 ac_cv_header_stdc=no
21247 if test $ac_cv_header_stdc = yes; then
21248 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21249 if test "$cross_compiling" = yes; then
21252 cat >conftest.$ac_ext <<_ACEOF
21255 cat confdefs.h >>conftest.$ac_ext
21256 cat >>conftest.$ac_ext <<_ACEOF
21257 /* end confdefs.h. */
21259 #include <stdlib.h>
21260 #if ((' ' & 0x0FF) == 0x020)
21261 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21262 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21264 # define ISLOWER(c) \
21265 (('a' <= (c) && (c) <= 'i') \
21266 || ('j' <= (c) && (c) <= 'r') \
21267 || ('s' <= (c) && (c) <= 'z'))
21268 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21271 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21276 for (i = 0; i < 256; i++)
21277 if (XOR (islower (i), ISLOWER (i))
21278 || toupper (i) != TOUPPER (i))
21283 rm -f conftest$ac_exeext
21284 if { (ac_try="$ac_link"
21285 case "(($ac_try" in
21286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21287 *) ac_try_echo=$ac_try;;
21289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21290 (eval "$ac_link") 2>&5
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21294 { (case "(($ac_try" in
21295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21296 *) ac_try_echo=$ac_try;;
21298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21299 (eval "$ac_try") 2>&5
21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); }; }; then
21305 echo "$as_me: program exited with status $ac_status" >&5
21306 echo "$as_me: failed program was:" >&5
21307 sed 's/^/| /' conftest.$ac_ext >&5
21309 ( exit $ac_status )
21310 ac_cv_header_stdc=no
21312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21318 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21319 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21320 if test $ac_cv_header_stdc = yes; then
21322 cat >>confdefs.h <<\_ACEOF
21323 #define STDC_HEADERS 1
21328 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21329 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21330 if test "${ac_cv_header_time+set}" = set; then
21331 echo $ECHO_N "(cached) $ECHO_C" >&6
21333 cat >conftest.$ac_ext <<_ACEOF
21336 cat confdefs.h >>conftest.$ac_ext
21337 cat >>conftest.$ac_ext <<_ACEOF
21338 /* end confdefs.h. */
21339 #include <sys/types.h>
21340 #include <sys/time.h>
21346 if ((struct tm *) 0)
21352 rm -f conftest.$ac_objext
21353 if { (ac_try="$ac_compile"
21354 case "(($ac_try" in
21355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21356 *) ac_try_echo=$ac_try;;
21358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21359 (eval "$ac_compile") 2>conftest.er1
21361 grep -v '^ *+' conftest.er1 >conftest.err
21363 cat conftest.err >&5
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); } && {
21366 test -z "$ac_c_werror_flag" ||
21367 test ! -s conftest.err
21368 } && test -s conftest.$ac_objext; then
21369 ac_cv_header_time=yes
21371 echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.$ac_ext >&5
21374 ac_cv_header_time=no
21377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21379 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21380 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21381 if test $ac_cv_header_time = yes; then
21383 cat >>confdefs.h <<\_ACEOF
21384 #define TIME_WITH_SYS_TIME 1
21399 for ac_header in sys/socket.h \
21401 windows.h winsock.h winsock2.h \
21407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21409 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21412 echo $ECHO_N "(cached) $ECHO_C" >&6
21414 ac_res=`eval echo '${'$as_ac_Header'}'`
21415 { echo "$as_me:$LINENO: result: $ac_res" >&5
21416 echo "${ECHO_T}$ac_res" >&6; }
21418 # Is the header compilable?
21419 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21421 cat >conftest.$ac_ext <<_ACEOF
21424 cat confdefs.h >>conftest.$ac_ext
21425 cat >>conftest.$ac_ext <<_ACEOF
21426 /* end confdefs.h. */
21427 $ac_includes_default
21428 #include <$ac_header>
21430 rm -f conftest.$ac_objext
21431 if { (ac_try="$ac_compile"
21432 case "(($ac_try" in
21433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21434 *) ac_try_echo=$ac_try;;
21436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21437 (eval "$ac_compile") 2>conftest.er1
21439 grep -v '^ *+' conftest.er1 >conftest.err
21441 cat conftest.err >&5
21442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443 (exit $ac_status); } && {
21444 test -z "$ac_c_werror_flag" ||
21445 test ! -s conftest.err
21446 } && test -s conftest.$ac_objext; then
21447 ac_header_compiler=yes
21449 echo "$as_me: failed program was:" >&5
21450 sed 's/^/| /' conftest.$ac_ext >&5
21452 ac_header_compiler=no
21455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21456 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21457 echo "${ECHO_T}$ac_header_compiler" >&6; }
21459 # Is the header present?
21460 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21462 cat >conftest.$ac_ext <<_ACEOF
21465 cat confdefs.h >>conftest.$ac_ext
21466 cat >>conftest.$ac_ext <<_ACEOF
21467 /* end confdefs.h. */
21468 #include <$ac_header>
21470 if { (ac_try="$ac_cpp conftest.$ac_ext"
21471 case "(($ac_try" in
21472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21473 *) ac_try_echo=$ac_try;;
21475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21478 grep -v '^ *+' conftest.er1 >conftest.err
21480 cat conftest.err >&5
21481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482 (exit $ac_status); } >/dev/null && {
21483 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21484 test ! -s conftest.err
21486 ac_header_preproc=yes
21488 echo "$as_me: failed program was:" >&5
21489 sed 's/^/| /' conftest.$ac_ext >&5
21491 ac_header_preproc=no
21494 rm -f conftest.err conftest.$ac_ext
21495 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21496 echo "${ECHO_T}$ac_header_preproc" >&6; }
21498 # So? What about this header?
21499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21501 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21502 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21504 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21505 ac_header_preproc=yes
21508 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21509 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21510 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21511 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21512 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21513 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21514 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21515 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21518 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21519 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21521 ## -------------------------------------------------- ##
21522 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
21523 ## -------------------------------------------------- ##
21525 ) | sed "s/^/$as_me: WARNING: /" >&2
21528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21531 echo $ECHO_N "(cached) $ECHO_C" >&6
21533 eval "$as_ac_Header=\$ac_header_preproc"
21535 ac_res=`eval echo '${'$as_ac_Header'}'`
21536 { echo "$as_me:$LINENO: result: $ac_res" >&5
21537 echo "${ECHO_T}$ac_res" >&6; }
21540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21541 cat >>confdefs.h <<_ACEOF
21542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21557 for ac_func in gettimeofday usleep \
21565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21566 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21568 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21569 echo $ECHO_N "(cached) $ECHO_C" >&6
21571 cat >conftest.$ac_ext <<_ACEOF
21574 cat confdefs.h >>conftest.$ac_ext
21575 cat >>conftest.$ac_ext <<_ACEOF
21576 /* end confdefs.h. */
21577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21579 #define $ac_func innocuous_$ac_func
21581 /* System header to define __stub macros and hopefully few prototypes,
21582 which can conflict with char $ac_func (); below.
21583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21584 <limits.h> exists even on freestanding compilers. */
21587 # include <limits.h>
21589 # include <assert.h>
21594 /* Override any GCC internal prototype to avoid an error.
21595 Use char because int might match the return type of a GCC
21596 builtin and then its argument prototype would still apply. */
21601 /* The GNU C library defines this for functions which it implements
21602 to always fail with ENOSYS. Some functions are actually named
21603 something starting with __ and the normal name is an alias. */
21604 #if defined __stub_$ac_func || defined __stub___$ac_func
21611 return $ac_func ();
21616 rm -f conftest.$ac_objext conftest$ac_exeext
21617 if { (ac_try="$ac_link"
21618 case "(($ac_try" in
21619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21620 *) ac_try_echo=$ac_try;;
21622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21623 (eval "$ac_link") 2>conftest.er1
21625 grep -v '^ *+' conftest.er1 >conftest.err
21627 cat conftest.err >&5
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); } && {
21630 test -z "$ac_c_werror_flag" ||
21631 test ! -s conftest.err
21632 } && test -s conftest$ac_exeext &&
21633 $as_test_x conftest$ac_exeext; then
21634 eval "$as_ac_var=yes"
21636 echo "$as_me: failed program was:" >&5
21637 sed 's/^/| /' conftest.$ac_ext >&5
21639 eval "$as_ac_var=no"
21642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21643 conftest$ac_exeext conftest.$ac_ext
21645 ac_res=`eval echo '${'$as_ac_var'}'`
21646 { echo "$as_me:$LINENO: result: $ac_res" >&5
21647 echo "${ECHO_T}$ac_res" >&6; }
21648 if test `eval echo '${'$as_ac_var'}'` = yes; then
21649 cat >>confdefs.h <<_ACEOF
21650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21657 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
21660 for ac_func in snprintf vsnprintf
21662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21663 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21665 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21666 echo $ECHO_N "(cached) $ECHO_C" >&6
21668 cat >conftest.$ac_ext <<_ACEOF
21671 cat confdefs.h >>conftest.$ac_ext
21672 cat >>conftest.$ac_ext <<_ACEOF
21673 /* end confdefs.h. */
21674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21676 #define $ac_func innocuous_$ac_func
21678 /* System header to define __stub macros and hopefully few prototypes,
21679 which can conflict with char $ac_func (); below.
21680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21681 <limits.h> exists even on freestanding compilers. */
21684 # include <limits.h>
21686 # include <assert.h>
21691 /* Override any GCC internal prototype to avoid an error.
21692 Use char because int might match the return type of a GCC
21693 builtin and then its argument prototype would still apply. */
21698 /* The GNU C library defines this for functions which it implements
21699 to always fail with ENOSYS. Some functions are actually named
21700 something starting with __ and the normal name is an alias. */
21701 #if defined __stub_$ac_func || defined __stub___$ac_func
21708 return $ac_func ();
21713 rm -f conftest.$ac_objext conftest$ac_exeext
21714 if { (ac_try="$ac_link"
21715 case "(($ac_try" in
21716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21717 *) ac_try_echo=$ac_try;;
21719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21720 (eval "$ac_link") 2>conftest.er1
21722 grep -v '^ *+' conftest.er1 >conftest.err
21724 cat conftest.err >&5
21725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726 (exit $ac_status); } && {
21727 test -z "$ac_c_werror_flag" ||
21728 test ! -s conftest.err
21729 } && test -s conftest$ac_exeext &&
21730 $as_test_x conftest$ac_exeext; then
21731 eval "$as_ac_var=yes"
21733 echo "$as_me: failed program was:" >&5
21734 sed 's/^/| /' conftest.$ac_ext >&5
21736 eval "$as_ac_var=no"
21739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21740 conftest$ac_exeext conftest.$ac_ext
21742 ac_res=`eval echo '${'$as_ac_var'}'`
21743 { echo "$as_me:$LINENO: result: $ac_res" >&5
21744 echo "${ECHO_T}$ac_res" >&6; }
21745 if test `eval echo '${'$as_ac_var'}'` = yes; then
21746 cat >>confdefs.h <<_ACEOF
21747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21753 { echo "$as_me:$LINENO: checking for working snprintf" >&5
21754 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
21755 if test "${ac_cv_have_working_snprintf+set}" = set; then
21756 echo $ECHO_N "(cached) $ECHO_C" >&6
21758 if test "$cross_compiling" = yes; then
21759 ac_cv_have_working_snprintf=cross
21761 cat >conftest.$ac_ext <<_ACEOF
21764 cat confdefs.h >>conftest.$ac_ext
21765 cat >>conftest.$ac_ext <<_ACEOF
21766 /* end confdefs.h. */
21771 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21772 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21774 i = snprintf (bufs, 2, "%s", "111");
21775 if (strcmp (bufs, "1")) exit (1);
21776 if (i != 3) exit (1);
21777 i = snprintf (bufd, 2, "%d", 111);
21778 if (strcmp (bufd, "1")) exit (1);
21779 if (i != 3) exit (1);
21783 rm -f conftest$ac_exeext
21784 if { (ac_try="$ac_link"
21785 case "(($ac_try" in
21786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21787 *) ac_try_echo=$ac_try;;
21789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21790 (eval "$ac_link") 2>&5
21792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21794 { (case "(($ac_try" in
21795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21796 *) ac_try_echo=$ac_try;;
21798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21799 (eval "$ac_try") 2>&5
21801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802 (exit $ac_status); }; }; then
21803 ac_cv_have_working_snprintf=yes
21805 echo "$as_me: program exited with status $ac_status" >&5
21806 echo "$as_me: failed program was:" >&5
21807 sed 's/^/| /' conftest.$ac_ext >&5
21809 ( exit $ac_status )
21810 ac_cv_have_working_snprintf=no
21812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21818 { echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
21819 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; }
21820 { echo "$as_me:$LINENO: checking for working vsnprintf" >&5
21821 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
21822 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
21823 echo $ECHO_N "(cached) $ECHO_C" >&6
21825 if test "$cross_compiling" = yes; then
21826 ac_cv_have_working_vsnprintf=cross
21828 cat >conftest.$ac_ext <<_ACEOF
21831 cat confdefs.h >>conftest.$ac_ext
21832 cat >>conftest.$ac_ext <<_ACEOF
21833 /* end confdefs.h. */
21835 #include <stdarg.h>
21837 int my_vsnprintf (char *buf, const char *tmpl, ...)
21841 va_start (args, tmpl);
21842 i = vsnprintf (buf, 2, tmpl, args);
21849 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21850 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21852 i = my_vsnprintf (bufs, "%s", "111");
21853 if (strcmp (bufs, "1")) exit (1);
21854 if (i != 3) exit (1);
21855 i = my_vsnprintf (bufd, "%d", 111);
21856 if (strcmp (bufd, "1")) exit (1);
21857 if (i != 3) exit (1);
21861 rm -f conftest$ac_exeext
21862 if { (ac_try="$ac_link"
21863 case "(($ac_try" in
21864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21865 *) ac_try_echo=$ac_try;;
21867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21868 (eval "$ac_link") 2>&5
21870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21872 { (case "(($ac_try" in
21873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21874 *) ac_try_echo=$ac_try;;
21876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21877 (eval "$ac_try") 2>&5
21879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 (exit $ac_status); }; }; then
21881 ac_cv_have_working_vsnprintf=yes
21883 echo "$as_me: program exited with status $ac_status" >&5
21884 echo "$as_me: failed program was:" >&5
21885 sed 's/^/| /' conftest.$ac_ext >&5
21887 ( exit $ac_status )
21888 ac_cv_have_working_vsnprintf=no
21890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21896 { echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
21897 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; }
21898 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
21899 case " $LIBOBJS " in
21900 *" snprintf.$ac_objext "* ) ;;
21901 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21905 { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
21906 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
21908 cat >>confdefs.h <<\_ACEOF
21909 #define PREFER_PORTABLE_SNPRINTF 1
21913 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
21914 { echo "$as_me:$LINENO: checking for asprintf" >&5
21915 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6; }
21916 if test "${ac_cv_func_asprintf+set}" = set; then
21917 echo $ECHO_N "(cached) $ECHO_C" >&6
21919 cat >conftest.$ac_ext <<_ACEOF
21922 cat confdefs.h >>conftest.$ac_ext
21923 cat >>conftest.$ac_ext <<_ACEOF
21924 /* end confdefs.h. */
21925 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
21926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21927 #define asprintf innocuous_asprintf
21929 /* System header to define __stub macros and hopefully few prototypes,
21930 which can conflict with char asprintf (); below.
21931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21932 <limits.h> exists even on freestanding compilers. */
21935 # include <limits.h>
21937 # include <assert.h>
21942 /* Override any GCC internal prototype to avoid an error.
21943 Use char because int might match the return type of a GCC
21944 builtin and then its argument prototype would still apply. */
21949 /* The GNU C library defines this for functions which it implements
21950 to always fail with ENOSYS. Some functions are actually named
21951 something starting with __ and the normal name is an alias. */
21952 #if defined __stub_asprintf || defined __stub___asprintf
21959 return asprintf ();
21964 rm -f conftest.$ac_objext conftest$ac_exeext
21965 if { (ac_try="$ac_link"
21966 case "(($ac_try" in
21967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21968 *) ac_try_echo=$ac_try;;
21970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21971 (eval "$ac_link") 2>conftest.er1
21973 grep -v '^ *+' conftest.er1 >conftest.err
21975 cat conftest.err >&5
21976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977 (exit $ac_status); } && {
21978 test -z "$ac_c_werror_flag" ||
21979 test ! -s conftest.err
21980 } && test -s conftest$ac_exeext &&
21981 $as_test_x conftest$ac_exeext; then
21982 ac_cv_func_asprintf=yes
21984 echo "$as_me: failed program was:" >&5
21985 sed 's/^/| /' conftest.$ac_ext >&5
21987 ac_cv_func_asprintf=no
21990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21991 conftest$ac_exeext conftest.$ac_ext
21993 { echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
21994 echo "${ECHO_T}$ac_cv_func_asprintf" >&6; }
21995 if test $ac_cv_func_asprintf = yes; then
21999 cat >>confdefs.h <<\_ACEOF
22000 #define NEED_ASPRINTF 1
22005 { echo "$as_me:$LINENO: checking for vasprintf" >&5
22006 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6; }
22007 if test "${ac_cv_func_vasprintf+set}" = set; then
22008 echo $ECHO_N "(cached) $ECHO_C" >&6
22010 cat >conftest.$ac_ext <<_ACEOF
22013 cat confdefs.h >>conftest.$ac_ext
22014 cat >>conftest.$ac_ext <<_ACEOF
22015 /* end confdefs.h. */
22016 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
22017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22018 #define vasprintf innocuous_vasprintf
22020 /* System header to define __stub macros and hopefully few prototypes,
22021 which can conflict with char vasprintf (); below.
22022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22023 <limits.h> exists even on freestanding compilers. */
22026 # include <limits.h>
22028 # include <assert.h>
22033 /* Override any GCC internal prototype to avoid an error.
22034 Use char because int might match the return type of a GCC
22035 builtin and then its argument prototype would still apply. */
22040 /* The GNU C library defines this for functions which it implements
22041 to always fail with ENOSYS. Some functions are actually named
22042 something starting with __ and the normal name is an alias. */
22043 #if defined __stub_vasprintf || defined __stub___vasprintf
22050 return vasprintf ();
22055 rm -f conftest.$ac_objext conftest$ac_exeext
22056 if { (ac_try="$ac_link"
22057 case "(($ac_try" in
22058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22059 *) ac_try_echo=$ac_try;;
22061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22062 (eval "$ac_link") 2>conftest.er1
22064 grep -v '^ *+' conftest.er1 >conftest.err
22066 cat conftest.err >&5
22067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068 (exit $ac_status); } && {
22069 test -z "$ac_c_werror_flag" ||
22070 test ! -s conftest.err
22071 } && test -s conftest$ac_exeext &&
22072 $as_test_x conftest$ac_exeext; then
22073 ac_cv_func_vasprintf=yes
22075 echo "$as_me: failed program was:" >&5
22076 sed 's/^/| /' conftest.$ac_ext >&5
22078 ac_cv_func_vasprintf=no
22081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22082 conftest$ac_exeext conftest.$ac_ext
22084 { echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
22085 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6; }
22086 if test $ac_cv_func_vasprintf = yes; then
22090 cat >>confdefs.h <<\_ACEOF
22091 #define NEED_VASPRINTF 1
22097 # Checks for typedefs, structures, and compiler characteristics.
22098 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22099 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22100 if test "${ac_cv_c_const+set}" = set; then
22101 echo $ECHO_N "(cached) $ECHO_C" >&6
22103 cat >conftest.$ac_ext <<_ACEOF
22106 cat confdefs.h >>conftest.$ac_ext
22107 cat >>conftest.$ac_ext <<_ACEOF
22108 /* end confdefs.h. */
22113 /* FIXME: Include the comments suggested by Paul. */
22114 #ifndef __cplusplus
22115 /* Ultrix mips cc rejects this. */
22116 typedef int charset[2];
22118 /* SunOS 4.1.1 cc rejects this. */
22119 char const *const *pcpcc;
22121 /* NEC SVR4.0.2 mips cc rejects this. */
22122 struct point {int x, y;};
22123 static struct point const zero = {0,0};
22124 /* AIX XL C 1.02.0.0 rejects this.
22125 It does not let you subtract one const X* pointer from another in
22126 an arm of an if-expression whose if-part is not a constant
22128 const char *g = "string";
22129 pcpcc = &g + (g ? g-g : 0);
22130 /* HPUX 7.0 cc rejects these. */
22132 ppc = (char**) pcpcc;
22133 pcpcc = (char const *const *) ppc;
22134 { /* SCO 3.2v4 cc rejects this. */
22136 char const *s = 0 ? (char *) 0 : (char const *) 0;
22141 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22142 int x[] = {25, 17};
22143 const int *foo = &x[0];
22146 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22147 typedef const int *iptr;
22151 { /* AIX XL C 1.02.0.0 rejects this saying
22152 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22153 struct s { int j; const int *ap[3]; };
22154 struct s *b; b->j = 5;
22156 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22157 const int foo = 10;
22158 if (!foo) return 0;
22160 return !cs[0] && !zero.x;
22167 rm -f conftest.$ac_objext
22168 if { (ac_try="$ac_compile"
22169 case "(($ac_try" in
22170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22171 *) ac_try_echo=$ac_try;;
22173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22174 (eval "$ac_compile") 2>conftest.er1
22176 grep -v '^ *+' conftest.er1 >conftest.err
22178 cat conftest.err >&5
22179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); } && {
22181 test -z "$ac_c_werror_flag" ||
22182 test ! -s conftest.err
22183 } && test -s conftest.$ac_objext; then
22186 echo "$as_me: failed program was:" >&5
22187 sed 's/^/| /' conftest.$ac_ext >&5
22192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22194 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22195 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22196 if test $ac_cv_c_const = no; then
22198 cat >>confdefs.h <<\_ACEOF
22204 { echo "$as_me:$LINENO: checking for inline" >&5
22205 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
22206 if test "${ac_cv_c_inline+set}" = set; then
22207 echo $ECHO_N "(cached) $ECHO_C" >&6
22210 for ac_kw in inline __inline__ __inline; do
22211 cat >conftest.$ac_ext <<_ACEOF
22214 cat confdefs.h >>conftest.$ac_ext
22215 cat >>conftest.$ac_ext <<_ACEOF
22216 /* end confdefs.h. */
22217 #ifndef __cplusplus
22219 static $ac_kw foo_t static_foo () {return 0; }
22220 $ac_kw foo_t foo () {return 0; }
22224 rm -f conftest.$ac_objext
22225 if { (ac_try="$ac_compile"
22226 case "(($ac_try" in
22227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22228 *) ac_try_echo=$ac_try;;
22230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22231 (eval "$ac_compile") 2>conftest.er1
22233 grep -v '^ *+' conftest.er1 >conftest.err
22235 cat conftest.err >&5
22236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237 (exit $ac_status); } && {
22238 test -z "$ac_c_werror_flag" ||
22239 test ! -s conftest.err
22240 } && test -s conftest.$ac_objext; then
22241 ac_cv_c_inline=$ac_kw
22243 echo "$as_me: failed program was:" >&5
22244 sed 's/^/| /' conftest.$ac_ext >&5
22249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22250 test "$ac_cv_c_inline" != no && break
22254 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22255 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
22258 case $ac_cv_c_inline in
22261 case $ac_cv_c_inline in
22263 *) ac_val=$ac_cv_c_inline;;
22265 cat >>confdefs.h <<_ACEOF
22266 #ifndef __cplusplus
22267 #define inline $ac_val
22273 { echo "$as_me:$LINENO: checking for size_t" >&5
22274 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22275 if test "${ac_cv_type_size_t+set}" = set; then
22276 echo $ECHO_N "(cached) $ECHO_C" >&6
22278 cat >conftest.$ac_ext <<_ACEOF
22281 cat confdefs.h >>conftest.$ac_ext
22282 cat >>conftest.$ac_ext <<_ACEOF
22283 /* end confdefs.h. */
22284 $ac_includes_default
22285 typedef size_t ac__type_new_;
22289 if ((ac__type_new_ *) 0)
22291 if (sizeof (ac__type_new_))
22297 rm -f conftest.$ac_objext
22298 if { (ac_try="$ac_compile"
22299 case "(($ac_try" in
22300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22301 *) ac_try_echo=$ac_try;;
22303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22304 (eval "$ac_compile") 2>conftest.er1
22306 grep -v '^ *+' conftest.er1 >conftest.err
22308 cat conftest.err >&5
22309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); } && {
22311 test -z "$ac_c_werror_flag" ||
22312 test ! -s conftest.err
22313 } && test -s conftest.$ac_objext; then
22314 ac_cv_type_size_t=yes
22316 echo "$as_me: failed program was:" >&5
22317 sed 's/^/| /' conftest.$ac_ext >&5
22319 ac_cv_type_size_t=no
22322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22324 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22325 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22326 if test $ac_cv_type_size_t = yes; then
22330 cat >>confdefs.h <<_ACEOF
22331 #define size_t unsigned int
22337 ###################################
22338 ## SimGrid and GRAS specific checks
22342 { echo "$as_me:$LINENO: result: " >&5
22343 echo "${ECHO_T}" >&6; }
22344 { echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
22345 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6; }
22347 # Check architecture signature begin
22349 # Check for the architecture
22350 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22351 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22352 if test "${ac_cv_c_bigendian+set}" = set; then
22353 echo $ECHO_N "(cached) $ECHO_C" >&6
22355 # See if sys/param.h defines the BYTE_ORDER macro.
22356 cat >conftest.$ac_ext <<_ACEOF
22359 cat confdefs.h >>conftest.$ac_ext
22360 cat >>conftest.$ac_ext <<_ACEOF
22361 /* end confdefs.h. */
22362 #include <sys/types.h>
22363 #include <sys/param.h>
22368 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22369 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22370 bogus endian macros
22377 rm -f conftest.$ac_objext
22378 if { (ac_try="$ac_compile"
22379 case "(($ac_try" in
22380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22381 *) ac_try_echo=$ac_try;;
22383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22384 (eval "$ac_compile") 2>conftest.er1
22386 grep -v '^ *+' conftest.er1 >conftest.err
22388 cat conftest.err >&5
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); } && {
22391 test -z "$ac_c_werror_flag" ||
22392 test ! -s conftest.err
22393 } && test -s conftest.$ac_objext; then
22394 # It does; now see whether it defined to BIG_ENDIAN or not.
22395 cat >conftest.$ac_ext <<_ACEOF
22398 cat confdefs.h >>conftest.$ac_ext
22399 cat >>conftest.$ac_ext <<_ACEOF
22400 /* end confdefs.h. */
22401 #include <sys/types.h>
22402 #include <sys/param.h>
22407 #if BYTE_ORDER != BIG_ENDIAN
22415 rm -f conftest.$ac_objext
22416 if { (ac_try="$ac_compile"
22417 case "(($ac_try" in
22418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22419 *) ac_try_echo=$ac_try;;
22421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22422 (eval "$ac_compile") 2>conftest.er1
22424 grep -v '^ *+' conftest.er1 >conftest.err
22426 cat conftest.err >&5
22427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428 (exit $ac_status); } && {
22429 test -z "$ac_c_werror_flag" ||
22430 test ! -s conftest.err
22431 } && test -s conftest.$ac_objext; then
22432 ac_cv_c_bigendian=yes
22434 echo "$as_me: failed program was:" >&5
22435 sed 's/^/| /' conftest.$ac_ext >&5
22437 ac_cv_c_bigendian=no
22440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22442 echo "$as_me: failed program was:" >&5
22443 sed 's/^/| /' conftest.$ac_ext >&5
22445 # It does not; compile a test program.
22446 if test "$cross_compiling" = yes; then
22447 # try to guess the endianness by grepping values into an object file
22448 ac_cv_c_bigendian=unknown
22449 cat >conftest.$ac_ext <<_ACEOF
22452 cat confdefs.h >>conftest.$ac_ext
22453 cat >>conftest.$ac_ext <<_ACEOF
22454 /* end confdefs.h. */
22455 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22456 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22457 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22458 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22459 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22460 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22464 _ascii (); _ebcdic ();
22469 rm -f conftest.$ac_objext
22470 if { (ac_try="$ac_compile"
22471 case "(($ac_try" in
22472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22473 *) ac_try_echo=$ac_try;;
22475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22476 (eval "$ac_compile") 2>conftest.er1
22478 grep -v '^ *+' conftest.er1 >conftest.err
22480 cat conftest.err >&5
22481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482 (exit $ac_status); } && {
22483 test -z "$ac_c_werror_flag" ||
22484 test ! -s conftest.err
22485 } && test -s conftest.$ac_objext; then
22486 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22487 ac_cv_c_bigendian=yes
22489 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22490 if test "$ac_cv_c_bigendian" = unknown; then
22491 ac_cv_c_bigendian=no
22493 # finding both strings is unlikely to happen, but who knows?
22494 ac_cv_c_bigendian=unknown
22498 echo "$as_me: failed program was:" >&5
22499 sed 's/^/| /' conftest.$ac_ext >&5
22504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22506 cat >conftest.$ac_ext <<_ACEOF
22509 cat confdefs.h >>conftest.$ac_ext
22510 cat >>conftest.$ac_ext <<_ACEOF
22511 /* end confdefs.h. */
22512 $ac_includes_default
22517 /* Are we little or big endian? From Harbison&Steele. */
22521 char c[sizeof (long int)];
22524 return u.c[sizeof (long int) - 1] == 1;
22530 rm -f conftest$ac_exeext
22531 if { (ac_try="$ac_link"
22532 case "(($ac_try" in
22533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22534 *) ac_try_echo=$ac_try;;
22536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22537 (eval "$ac_link") 2>&5
22539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22541 { (case "(($ac_try" in
22542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22543 *) ac_try_echo=$ac_try;;
22545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22546 (eval "$ac_try") 2>&5
22548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549 (exit $ac_status); }; }; then
22550 ac_cv_c_bigendian=no
22552 echo "$as_me: program exited with status $ac_status" >&5
22553 echo "$as_me: failed program was:" >&5
22554 sed 's/^/| /' conftest.$ac_ext >&5
22556 ( exit $ac_status )
22557 ac_cv_c_bigendian=yes
22559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22567 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22568 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22569 case $ac_cv_c_bigendian in
22575 { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
22576 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
22577 { (exit 1); exit 1; }; } ;;
22581 cat >>confdefs.h <<_ACEOF
22582 #define GRAS_BIGENDIAN $endian
22586 { echo "$as_me:$LINENO: checking size of char" >&5
22587 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22588 if test "${ac_cv_sizeof_char+set}" = set; then
22589 echo $ECHO_N "(cached) $ECHO_C" >&6
22591 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22592 cat >conftest.$ac_ext <<_ACEOF
22595 cat confdefs.h >>conftest.$ac_ext
22596 cat >>conftest.$ac_ext <<_ACEOF
22597 /* end confdefs.h. */
22598 #include "confdefs.h"
22599 #include <sys/types.h>
22605 switch (0) case 0: case (sizeof (char) == $ac_size):;
22610 rm -f conftest.$ac_objext
22611 if { (ac_try="$ac_compile"
22612 case "(($ac_try" in
22613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22614 *) ac_try_echo=$ac_try;;
22616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22617 (eval "$ac_compile") 2>conftest.er1
22619 grep -v '^ *+' conftest.er1 >conftest.err
22621 cat conftest.err >&5
22622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623 (exit $ac_status); } && {
22624 test -z "$ac_c_werror_flag" ||
22625 test ! -s conftest.err
22626 } && test -s conftest.$ac_objext; then
22627 ac_cv_sizeof_char=$ac_size
22629 echo "$as_me: failed program was:" >&5
22630 sed 's/^/| /' conftest.$ac_ext >&5
22635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22636 if test x$ac_cv_sizeof_char != x ; then break; fi
22642 unspecif=$ac_cv_sizeof_char
22643 if test x$unspecif = x ; then
22644 { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
22645 echo "$as_me: error: cannot determine a size for char" >&2;}
22646 { (exit 1); exit 1; }; }
22649 if test "${ac_cv_sizeof_signed_char+set}" = set; then
22650 echo $ECHO_N "(cached) $ECHO_C" >&6
22652 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22653 cat >conftest.$ac_ext <<_ACEOF
22656 cat confdefs.h >>conftest.$ac_ext
22657 cat >>conftest.$ac_ext <<_ACEOF
22658 /* end confdefs.h. */
22659 #include "confdefs.h"
22660 #include <sys/types.h>
22666 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
22671 rm -f conftest.$ac_objext
22672 if { (ac_try="$ac_compile"
22673 case "(($ac_try" in
22674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22675 *) ac_try_echo=$ac_try;;
22677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22678 (eval "$ac_compile") 2>conftest.er1
22680 grep -v '^ *+' conftest.er1 >conftest.err
22682 cat conftest.err >&5
22683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684 (exit $ac_status); } && {
22685 test -z "$ac_c_werror_flag" ||
22686 test ! -s conftest.err
22687 } && test -s conftest.$ac_objext; then
22688 ac_cv_sizeof_signed_char=$ac_size
22690 echo "$as_me: failed program was:" >&5
22691 sed 's/^/| /' conftest.$ac_ext >&5
22696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22697 if test x$ac_cv_sizeof_signed_char != x ; then break; fi
22703 signed=$ac_cv_sizeof_signed_char
22704 if test x$signed = x ; then
22705 { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
22706 echo "$as_me: error: cannot determine a size for signed char" >&2;}
22707 { (exit 1); exit 1; }; }
22709 if test x$unspecif != x$signed ; then
22710 { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
22711 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
22712 { (exit 1); exit 1; }; }
22715 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
22716 echo $ECHO_N "(cached) $ECHO_C" >&6
22718 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22719 cat >conftest.$ac_ext <<_ACEOF
22722 cat confdefs.h >>conftest.$ac_ext
22723 cat >>conftest.$ac_ext <<_ACEOF
22724 /* end confdefs.h. */
22725 #include "confdefs.h"
22726 #include <sys/types.h>
22732 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
22737 rm -f conftest.$ac_objext
22738 if { (ac_try="$ac_compile"
22739 case "(($ac_try" in
22740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22741 *) ac_try_echo=$ac_try;;
22743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22744 (eval "$ac_compile") 2>conftest.er1
22746 grep -v '^ *+' conftest.er1 >conftest.err
22748 cat conftest.err >&5
22749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); } && {
22751 test -z "$ac_c_werror_flag" ||
22752 test ! -s conftest.err
22753 } && test -s conftest.$ac_objext; then
22754 ac_cv_sizeof_unsigned_char=$ac_size
22756 echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22763 if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
22769 unsigned=$ac_cv_sizeof_unsigned_char
22770 if test x$unsigned = x ; then
22771 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
22772 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
22773 { (exit 1); exit 1; }; }
22775 if test x$unsigned != x$signed ; then
22776 { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
22777 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
22778 { (exit 1); exit 1; }; }
22781 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
22782 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
22783 { echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
22784 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6; }
22786 if test "${ac_cv_struct_boundary_char+set}" = set; then
22787 echo $ECHO_N "(cached) $ECHO_C" >&6
22789 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22790 cat >conftest.$ac_ext <<_ACEOF
22793 cat confdefs.h >>conftest.$ac_ext
22794 cat >>conftest.$ac_ext <<_ACEOF
22795 /* end confdefs.h. */
22796 #include "confdefs.h"
22797 #include <sys/types.h>
22798 struct s { char c; char i; };
22803 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
22808 rm -f conftest.$ac_objext
22809 if { (ac_try="$ac_compile"
22810 case "(($ac_try" in
22811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22812 *) ac_try_echo=$ac_try;;
22814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22815 (eval "$ac_compile") 2>conftest.er1
22817 grep -v '^ *+' conftest.er1 >conftest.err
22819 cat conftest.err >&5
22820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821 (exit $ac_status); } && {
22822 test -z "$ac_c_werror_flag" ||
22823 test ! -s conftest.err
22824 } && test -s conftest.$ac_objext; then
22825 ac_cv_struct_boundary_char=$ac_size
22827 echo "$as_me: failed program was:" >&5
22828 sed 's/^/| /' conftest.$ac_ext >&5
22833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22834 if test x$ac_cv_struct_boundary_char != x ; then break; fi
22839 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
22840 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6; }
22841 if test x$ac_cv_struct_boundary_char = x ; then
22842 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
22843 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
22844 { (exit 1); exit 1; }; }
22847 { echo "$as_me:$LINENO: checking size of short int" >&5
22848 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
22849 if test "${ac_cv_sizeof_short_int+set}" = set; then
22850 echo $ECHO_N "(cached) $ECHO_C" >&6
22852 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22853 cat >conftest.$ac_ext <<_ACEOF
22856 cat confdefs.h >>conftest.$ac_ext
22857 cat >>conftest.$ac_ext <<_ACEOF
22858 /* end confdefs.h. */
22859 #include "confdefs.h"
22860 #include <sys/types.h>
22866 switch (0) case 0: case (sizeof (short int) == $ac_size):;
22871 rm -f conftest.$ac_objext
22872 if { (ac_try="$ac_compile"
22873 case "(($ac_try" in
22874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22875 *) ac_try_echo=$ac_try;;
22877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22878 (eval "$ac_compile") 2>conftest.er1
22880 grep -v '^ *+' conftest.er1 >conftest.err
22882 cat conftest.err >&5
22883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884 (exit $ac_status); } && {
22885 test -z "$ac_c_werror_flag" ||
22886 test ! -s conftest.err
22887 } && test -s conftest.$ac_objext; then
22888 ac_cv_sizeof_short_int=$ac_size
22890 echo "$as_me: failed program was:" >&5
22891 sed 's/^/| /' conftest.$ac_ext >&5
22896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22897 if test x$ac_cv_sizeof_short_int != x ; then break; fi
22903 unspecif=$ac_cv_sizeof_short_int
22904 if test x$unspecif = x ; then
22905 { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
22906 echo "$as_me: error: cannot determine a size for short int" >&2;}
22907 { (exit 1); exit 1; }; }
22910 if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
22911 echo $ECHO_N "(cached) $ECHO_C" >&6
22913 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22914 cat >conftest.$ac_ext <<_ACEOF
22917 cat confdefs.h >>conftest.$ac_ext
22918 cat >>conftest.$ac_ext <<_ACEOF
22919 /* end confdefs.h. */
22920 #include "confdefs.h"
22921 #include <sys/types.h>
22927 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
22932 rm -f conftest.$ac_objext
22933 if { (ac_try="$ac_compile"
22934 case "(($ac_try" in
22935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22936 *) ac_try_echo=$ac_try;;
22938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22939 (eval "$ac_compile") 2>conftest.er1
22941 grep -v '^ *+' conftest.er1 >conftest.err
22943 cat conftest.err >&5
22944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22945 (exit $ac_status); } && {
22946 test -z "$ac_c_werror_flag" ||
22947 test ! -s conftest.err
22948 } && test -s conftest.$ac_objext; then
22949 ac_cv_sizeof_signed_short_int=$ac_size
22951 echo "$as_me: failed program was:" >&5
22952 sed 's/^/| /' conftest.$ac_ext >&5
22957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22958 if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
22964 signed=$ac_cv_sizeof_signed_short_int
22965 if test x$signed = x ; then
22966 { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
22967 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
22968 { (exit 1); exit 1; }; }
22970 if test x$unspecif != x$signed ; then
22971 { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
22972 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
22973 { (exit 1); exit 1; }; }
22976 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
22977 echo $ECHO_N "(cached) $ECHO_C" >&6
22979 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22980 cat >conftest.$ac_ext <<_ACEOF
22983 cat confdefs.h >>conftest.$ac_ext
22984 cat >>conftest.$ac_ext <<_ACEOF
22985 /* end confdefs.h. */
22986 #include "confdefs.h"
22987 #include <sys/types.h>
22993 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
22998 rm -f conftest.$ac_objext
22999 if { (ac_try="$ac_compile"
23000 case "(($ac_try" in
23001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23002 *) ac_try_echo=$ac_try;;
23004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23005 (eval "$ac_compile") 2>conftest.er1
23007 grep -v '^ *+' conftest.er1 >conftest.err
23009 cat conftest.err >&5
23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); } && {
23012 test -z "$ac_c_werror_flag" ||
23013 test ! -s conftest.err
23014 } && test -s conftest.$ac_objext; then
23015 ac_cv_sizeof_unsigned_short_int=$ac_size
23017 echo "$as_me: failed program was:" >&5
23018 sed 's/^/| /' conftest.$ac_ext >&5
23023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23024 if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
23030 unsigned=$ac_cv_sizeof_unsigned_short_int
23031 if test x$unsigned = x ; then
23032 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
23033 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
23034 { (exit 1); exit 1; }; }
23036 if test x$unsigned != x$signed ; then
23037 { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
23038 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
23039 { (exit 1); exit 1; }; }
23042 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
23043 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
23044 { echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
23045 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6; }
23047 if test "${ac_cv_struct_boundary_short_int+set}" = set; then
23048 echo $ECHO_N "(cached) $ECHO_C" >&6
23050 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23051 cat >conftest.$ac_ext <<_ACEOF
23054 cat confdefs.h >>conftest.$ac_ext
23055 cat >>conftest.$ac_ext <<_ACEOF
23056 /* end confdefs.h. */
23057 #include "confdefs.h"
23058 #include <sys/types.h>
23059 struct s { char c; short int i; };
23064 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
23069 rm -f conftest.$ac_objext
23070 if { (ac_try="$ac_compile"
23071 case "(($ac_try" in
23072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23073 *) ac_try_echo=$ac_try;;
23075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23076 (eval "$ac_compile") 2>conftest.er1
23078 grep -v '^ *+' conftest.er1 >conftest.err
23080 cat conftest.err >&5
23081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082 (exit $ac_status); } && {
23083 test -z "$ac_c_werror_flag" ||
23084 test ! -s conftest.err
23085 } && test -s conftest.$ac_objext; then
23086 ac_cv_struct_boundary_short_int=$ac_size
23088 echo "$as_me: failed program was:" >&5
23089 sed 's/^/| /' conftest.$ac_ext >&5
23094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23095 if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
23100 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
23101 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6; }
23102 if test x$ac_cv_struct_boundary_short_int = x ; then
23103 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
23104 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
23105 { (exit 1); exit 1; }; }
23108 { echo "$as_me:$LINENO: checking size of int" >&5
23109 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
23110 if test "${ac_cv_sizeof_int+set}" = set; then
23111 echo $ECHO_N "(cached) $ECHO_C" >&6
23113 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23114 cat >conftest.$ac_ext <<_ACEOF
23117 cat confdefs.h >>conftest.$ac_ext
23118 cat >>conftest.$ac_ext <<_ACEOF
23119 /* end confdefs.h. */
23120 #include "confdefs.h"
23121 #include <sys/types.h>
23127 switch (0) case 0: case (sizeof (int) == $ac_size):;
23132 rm -f conftest.$ac_objext
23133 if { (ac_try="$ac_compile"
23134 case "(($ac_try" in
23135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23136 *) ac_try_echo=$ac_try;;
23138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23139 (eval "$ac_compile") 2>conftest.er1
23141 grep -v '^ *+' conftest.er1 >conftest.err
23143 cat conftest.err >&5
23144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145 (exit $ac_status); } && {
23146 test -z "$ac_c_werror_flag" ||
23147 test ! -s conftest.err
23148 } && test -s conftest.$ac_objext; then
23149 ac_cv_sizeof_int=$ac_size
23151 echo "$as_me: failed program was:" >&5
23152 sed 's/^/| /' conftest.$ac_ext >&5
23157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23158 if test x$ac_cv_sizeof_int != x ; then break; fi
23164 unspecif=$ac_cv_sizeof_int
23165 if test x$unspecif = x ; then
23166 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
23167 echo "$as_me: error: cannot determine a size for int" >&2;}
23168 { (exit 1); exit 1; }; }
23171 if test "${ac_cv_sizeof_signed_int+set}" = set; then
23172 echo $ECHO_N "(cached) $ECHO_C" >&6
23174 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23175 cat >conftest.$ac_ext <<_ACEOF
23178 cat confdefs.h >>conftest.$ac_ext
23179 cat >>conftest.$ac_ext <<_ACEOF
23180 /* end confdefs.h. */
23181 #include "confdefs.h"
23182 #include <sys/types.h>
23188 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
23193 rm -f conftest.$ac_objext
23194 if { (ac_try="$ac_compile"
23195 case "(($ac_try" in
23196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23197 *) ac_try_echo=$ac_try;;
23199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23200 (eval "$ac_compile") 2>conftest.er1
23202 grep -v '^ *+' conftest.er1 >conftest.err
23204 cat conftest.err >&5
23205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206 (exit $ac_status); } && {
23207 test -z "$ac_c_werror_flag" ||
23208 test ! -s conftest.err
23209 } && test -s conftest.$ac_objext; then
23210 ac_cv_sizeof_signed_int=$ac_size
23212 echo "$as_me: failed program was:" >&5
23213 sed 's/^/| /' conftest.$ac_ext >&5
23218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23219 if test x$ac_cv_sizeof_signed_int != x ; then break; fi
23225 signed=$ac_cv_sizeof_signed_int
23226 if test x$signed = x ; then
23227 { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
23228 echo "$as_me: error: cannot determine a size for signed int" >&2;}
23229 { (exit 1); exit 1; }; }
23231 if test x$unspecif != x$signed ; then
23232 { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
23233 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
23234 { (exit 1); exit 1; }; }
23237 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
23238 echo $ECHO_N "(cached) $ECHO_C" >&6
23240 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23241 cat >conftest.$ac_ext <<_ACEOF
23244 cat confdefs.h >>conftest.$ac_ext
23245 cat >>conftest.$ac_ext <<_ACEOF
23246 /* end confdefs.h. */
23247 #include "confdefs.h"
23248 #include <sys/types.h>
23254 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
23259 rm -f conftest.$ac_objext
23260 if { (ac_try="$ac_compile"
23261 case "(($ac_try" in
23262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23263 *) ac_try_echo=$ac_try;;
23265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23266 (eval "$ac_compile") 2>conftest.er1
23268 grep -v '^ *+' conftest.er1 >conftest.err
23270 cat conftest.err >&5
23271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272 (exit $ac_status); } && {
23273 test -z "$ac_c_werror_flag" ||
23274 test ! -s conftest.err
23275 } && test -s conftest.$ac_objext; then
23276 ac_cv_sizeof_unsigned_int=$ac_size
23278 echo "$as_me: failed program was:" >&5
23279 sed 's/^/| /' conftest.$ac_ext >&5
23284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23285 if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
23291 unsigned=$ac_cv_sizeof_unsigned_int
23292 if test x$unsigned = x ; then
23293 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
23294 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
23295 { (exit 1); exit 1; }; }
23297 if test x$unsigned != x$signed ; then
23298 { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
23299 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
23300 { (exit 1); exit 1; }; }
23303 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
23304 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
23305 { echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
23306 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6; }
23308 if test "${ac_cv_struct_boundary_int+set}" = set; then
23309 echo $ECHO_N "(cached) $ECHO_C" >&6
23311 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23312 cat >conftest.$ac_ext <<_ACEOF
23315 cat confdefs.h >>conftest.$ac_ext
23316 cat >>conftest.$ac_ext <<_ACEOF
23317 /* end confdefs.h. */
23318 #include "confdefs.h"
23319 #include <sys/types.h>
23320 struct s { char c; int i; };
23325 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
23330 rm -f conftest.$ac_objext
23331 if { (ac_try="$ac_compile"
23332 case "(($ac_try" in
23333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23334 *) ac_try_echo=$ac_try;;
23336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23337 (eval "$ac_compile") 2>conftest.er1
23339 grep -v '^ *+' conftest.er1 >conftest.err
23341 cat conftest.err >&5
23342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343 (exit $ac_status); } && {
23344 test -z "$ac_c_werror_flag" ||
23345 test ! -s conftest.err
23346 } && test -s conftest.$ac_objext; then
23347 ac_cv_struct_boundary_int=$ac_size
23349 echo "$as_me: failed program was:" >&5
23350 sed 's/^/| /' conftest.$ac_ext >&5
23355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23356 if test x$ac_cv_struct_boundary_int != x ; then break; fi
23361 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
23362 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6; }
23363 if test x$ac_cv_struct_boundary_int = x ; then
23364 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
23365 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
23366 { (exit 1); exit 1; }; }
23369 { echo "$as_me:$LINENO: checking size of long int" >&5
23370 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
23371 if test "${ac_cv_sizeof_long_int+set}" = set; then
23372 echo $ECHO_N "(cached) $ECHO_C" >&6
23374 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23375 cat >conftest.$ac_ext <<_ACEOF
23378 cat confdefs.h >>conftest.$ac_ext
23379 cat >>conftest.$ac_ext <<_ACEOF
23380 /* end confdefs.h. */
23381 #include "confdefs.h"
23382 #include <sys/types.h>
23388 switch (0) case 0: case (sizeof (long int) == $ac_size):;
23393 rm -f conftest.$ac_objext
23394 if { (ac_try="$ac_compile"
23395 case "(($ac_try" in
23396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23397 *) ac_try_echo=$ac_try;;
23399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23400 (eval "$ac_compile") 2>conftest.er1
23402 grep -v '^ *+' conftest.er1 >conftest.err
23404 cat conftest.err >&5
23405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406 (exit $ac_status); } && {
23407 test -z "$ac_c_werror_flag" ||
23408 test ! -s conftest.err
23409 } && test -s conftest.$ac_objext; then
23410 ac_cv_sizeof_long_int=$ac_size
23412 echo "$as_me: failed program was:" >&5
23413 sed 's/^/| /' conftest.$ac_ext >&5
23418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23419 if test x$ac_cv_sizeof_long_int != x ; then break; fi
23425 unspecif=$ac_cv_sizeof_long_int
23426 if test x$unspecif = x ; then
23427 { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
23428 echo "$as_me: error: cannot determine a size for long int" >&2;}
23429 { (exit 1); exit 1; }; }
23432 if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
23433 echo $ECHO_N "(cached) $ECHO_C" >&6
23435 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23436 cat >conftest.$ac_ext <<_ACEOF
23439 cat confdefs.h >>conftest.$ac_ext
23440 cat >>conftest.$ac_ext <<_ACEOF
23441 /* end confdefs.h. */
23442 #include "confdefs.h"
23443 #include <sys/types.h>
23449 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
23454 rm -f conftest.$ac_objext
23455 if { (ac_try="$ac_compile"
23456 case "(($ac_try" in
23457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23458 *) ac_try_echo=$ac_try;;
23460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23461 (eval "$ac_compile") 2>conftest.er1
23463 grep -v '^ *+' conftest.er1 >conftest.err
23465 cat conftest.err >&5
23466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467 (exit $ac_status); } && {
23468 test -z "$ac_c_werror_flag" ||
23469 test ! -s conftest.err
23470 } && test -s conftest.$ac_objext; then
23471 ac_cv_sizeof_signed_long_int=$ac_size
23473 echo "$as_me: failed program was:" >&5
23474 sed 's/^/| /' conftest.$ac_ext >&5
23479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23480 if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
23486 signed=$ac_cv_sizeof_signed_long_int
23487 if test x$signed = x ; then
23488 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
23489 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
23490 { (exit 1); exit 1; }; }
23492 if test x$unspecif != x$signed ; then
23493 { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
23494 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
23495 { (exit 1); exit 1; }; }
23498 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
23499 echo $ECHO_N "(cached) $ECHO_C" >&6
23501 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23502 cat >conftest.$ac_ext <<_ACEOF
23505 cat confdefs.h >>conftest.$ac_ext
23506 cat >>conftest.$ac_ext <<_ACEOF
23507 /* end confdefs.h. */
23508 #include "confdefs.h"
23509 #include <sys/types.h>
23515 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
23520 rm -f conftest.$ac_objext
23521 if { (ac_try="$ac_compile"
23522 case "(($ac_try" in
23523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23524 *) ac_try_echo=$ac_try;;
23526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23527 (eval "$ac_compile") 2>conftest.er1
23529 grep -v '^ *+' conftest.er1 >conftest.err
23531 cat conftest.err >&5
23532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533 (exit $ac_status); } && {
23534 test -z "$ac_c_werror_flag" ||
23535 test ! -s conftest.err
23536 } && test -s conftest.$ac_objext; then
23537 ac_cv_sizeof_unsigned_long_int=$ac_size
23539 echo "$as_me: failed program was:" >&5
23540 sed 's/^/| /' conftest.$ac_ext >&5
23545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23546 if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
23552 unsigned=$ac_cv_sizeof_unsigned_long_int
23553 if test x$unsigned = x ; then
23554 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
23555 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
23556 { (exit 1); exit 1; }; }
23558 if test x$unsigned != x$signed ; then
23559 { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
23560 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
23561 { (exit 1); exit 1; }; }
23564 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
23565 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
23566 { echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
23567 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6; }
23569 if test "${ac_cv_struct_boundary_long_int+set}" = set; then
23570 echo $ECHO_N "(cached) $ECHO_C" >&6
23572 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23573 cat >conftest.$ac_ext <<_ACEOF
23576 cat confdefs.h >>conftest.$ac_ext
23577 cat >>conftest.$ac_ext <<_ACEOF
23578 /* end confdefs.h. */
23579 #include "confdefs.h"
23580 #include <sys/types.h>
23581 struct s { char c; long int i; };
23586 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
23591 rm -f conftest.$ac_objext
23592 if { (ac_try="$ac_compile"
23593 case "(($ac_try" in
23594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23595 *) ac_try_echo=$ac_try;;
23597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23598 (eval "$ac_compile") 2>conftest.er1
23600 grep -v '^ *+' conftest.er1 >conftest.err
23602 cat conftest.err >&5
23603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604 (exit $ac_status); } && {
23605 test -z "$ac_c_werror_flag" ||
23606 test ! -s conftest.err
23607 } && test -s conftest.$ac_objext; then
23608 ac_cv_struct_boundary_long_int=$ac_size
23610 echo "$as_me: failed program was:" >&5
23611 sed 's/^/| /' conftest.$ac_ext >&5
23616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23617 if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
23622 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
23623 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6; }
23624 if test x$ac_cv_struct_boundary_long_int = x ; then
23625 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
23626 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
23627 { (exit 1); exit 1; }; }
23630 { echo "$as_me:$LINENO: checking size of long long int" >&5
23631 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
23632 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
23633 echo $ECHO_N "(cached) $ECHO_C" >&6
23635 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23636 cat >conftest.$ac_ext <<_ACEOF
23639 cat confdefs.h >>conftest.$ac_ext
23640 cat >>conftest.$ac_ext <<_ACEOF
23641 /* end confdefs.h. */
23642 #include "confdefs.h"
23643 #include <sys/types.h>
23649 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
23654 rm -f conftest.$ac_objext
23655 if { (ac_try="$ac_compile"
23656 case "(($ac_try" in
23657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23658 *) ac_try_echo=$ac_try;;
23660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23661 (eval "$ac_compile") 2>conftest.er1
23663 grep -v '^ *+' conftest.er1 >conftest.err
23665 cat conftest.err >&5
23666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23667 (exit $ac_status); } && {
23668 test -z "$ac_c_werror_flag" ||
23669 test ! -s conftest.err
23670 } && test -s conftest.$ac_objext; then
23671 ac_cv_sizeof_long_long_int=$ac_size
23673 echo "$as_me: failed program was:" >&5
23674 sed 's/^/| /' conftest.$ac_ext >&5
23679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23680 if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
23686 unspecif=$ac_cv_sizeof_long_long_int
23687 if test x$unspecif = x ; then
23688 { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
23689 echo "$as_me: error: cannot determine a size for long long int" >&2;}
23690 { (exit 1); exit 1; }; }
23693 if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
23694 echo $ECHO_N "(cached) $ECHO_C" >&6
23696 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23697 cat >conftest.$ac_ext <<_ACEOF
23700 cat confdefs.h >>conftest.$ac_ext
23701 cat >>conftest.$ac_ext <<_ACEOF
23702 /* end confdefs.h. */
23703 #include "confdefs.h"
23704 #include <sys/types.h>
23710 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
23715 rm -f conftest.$ac_objext
23716 if { (ac_try="$ac_compile"
23717 case "(($ac_try" in
23718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23719 *) ac_try_echo=$ac_try;;
23721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23722 (eval "$ac_compile") 2>conftest.er1
23724 grep -v '^ *+' conftest.er1 >conftest.err
23726 cat conftest.err >&5
23727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23728 (exit $ac_status); } && {
23729 test -z "$ac_c_werror_flag" ||
23730 test ! -s conftest.err
23731 } && test -s conftest.$ac_objext; then
23732 ac_cv_sizeof_signed_long_long_int=$ac_size
23734 echo "$as_me: failed program was:" >&5
23735 sed 's/^/| /' conftest.$ac_ext >&5
23740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23741 if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
23747 signed=$ac_cv_sizeof_signed_long_long_int
23748 if test x$signed = x ; then
23749 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
23750 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
23751 { (exit 1); exit 1; }; }
23753 if test x$unspecif != x$signed ; then
23754 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
23755 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
23756 { (exit 1); exit 1; }; }
23759 if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
23760 echo $ECHO_N "(cached) $ECHO_C" >&6
23762 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23763 cat >conftest.$ac_ext <<_ACEOF
23766 cat confdefs.h >>conftest.$ac_ext
23767 cat >>conftest.$ac_ext <<_ACEOF
23768 /* end confdefs.h. */
23769 #include "confdefs.h"
23770 #include <sys/types.h>
23776 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
23781 rm -f conftest.$ac_objext
23782 if { (ac_try="$ac_compile"
23783 case "(($ac_try" in
23784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23785 *) ac_try_echo=$ac_try;;
23787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23788 (eval "$ac_compile") 2>conftest.er1
23790 grep -v '^ *+' conftest.er1 >conftest.err
23792 cat conftest.err >&5
23793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794 (exit $ac_status); } && {
23795 test -z "$ac_c_werror_flag" ||
23796 test ! -s conftest.err
23797 } && test -s conftest.$ac_objext; then
23798 ac_cv_sizeof_unsigned_long_long_int=$ac_size
23800 echo "$as_me: failed program was:" >&5
23801 sed 's/^/| /' conftest.$ac_ext >&5
23806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23807 if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
23813 unsigned=$ac_cv_sizeof_unsigned_long_long_int
23814 if test x$unsigned = x ; then
23815 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
23816 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
23817 { (exit 1); exit 1; }; }
23819 if test x$unsigned != x$signed ; then
23820 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
23821 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
23822 { (exit 1); exit 1; }; }
23825 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
23826 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6; }
23827 { echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
23828 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6; }
23830 if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
23831 echo $ECHO_N "(cached) $ECHO_C" >&6
23833 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23834 cat >conftest.$ac_ext <<_ACEOF
23837 cat confdefs.h >>conftest.$ac_ext
23838 cat >>conftest.$ac_ext <<_ACEOF
23839 /* end confdefs.h. */
23840 #include "confdefs.h"
23841 #include <sys/types.h>
23842 struct s { char c; long long int i; };
23847 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
23852 rm -f conftest.$ac_objext
23853 if { (ac_try="$ac_compile"
23854 case "(($ac_try" in
23855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23856 *) ac_try_echo=$ac_try;;
23858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23859 (eval "$ac_compile") 2>conftest.er1
23861 grep -v '^ *+' conftest.er1 >conftest.err
23863 cat conftest.err >&5
23864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23865 (exit $ac_status); } && {
23866 test -z "$ac_c_werror_flag" ||
23867 test ! -s conftest.err
23868 } && test -s conftest.$ac_objext; then
23869 ac_cv_struct_boundary_long_long_int=$ac_size
23871 echo "$as_me: failed program was:" >&5
23872 sed 's/^/| /' conftest.$ac_ext >&5
23877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23878 if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
23883 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
23884 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6; }
23885 if test x$ac_cv_struct_boundary_long_long_int = x ; then
23886 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
23887 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
23888 { (exit 1); exit 1; }; }
23892 { echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
23893 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6; }
23895 if test "${ac_cv_struct_boundary_float+set}" = set; then
23896 echo $ECHO_N "(cached) $ECHO_C" >&6
23898 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23899 cat >conftest.$ac_ext <<_ACEOF
23902 cat confdefs.h >>conftest.$ac_ext
23903 cat >>conftest.$ac_ext <<_ACEOF
23904 /* end confdefs.h. */
23905 #include "confdefs.h"
23906 #include <sys/types.h>
23907 struct s { char c; float i; };
23912 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
23917 rm -f conftest.$ac_objext
23918 if { (ac_try="$ac_compile"
23919 case "(($ac_try" in
23920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23921 *) ac_try_echo=$ac_try;;
23923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23924 (eval "$ac_compile") 2>conftest.er1
23926 grep -v '^ *+' conftest.er1 >conftest.err
23928 cat conftest.err >&5
23929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930 (exit $ac_status); } && {
23931 test -z "$ac_c_werror_flag" ||
23932 test ! -s conftest.err
23933 } && test -s conftest.$ac_objext; then
23934 ac_cv_struct_boundary_float=$ac_size
23936 echo "$as_me: failed program was:" >&5
23937 sed 's/^/| /' conftest.$ac_ext >&5
23942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23943 if test x$ac_cv_struct_boundary_float != x ; then break; fi
23948 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
23949 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6; }
23950 if test x$ac_cv_struct_boundary_float = x ; then
23951 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
23952 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
23953 { (exit 1); exit 1; }; }
23955 { echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
23956 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6; }
23958 if test "${ac_cv_struct_boundary_double+set}" = set; then
23959 echo $ECHO_N "(cached) $ECHO_C" >&6
23961 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23962 cat >conftest.$ac_ext <<_ACEOF
23965 cat confdefs.h >>conftest.$ac_ext
23966 cat >>conftest.$ac_ext <<_ACEOF
23967 /* end confdefs.h. */
23968 #include "confdefs.h"
23969 #include <sys/types.h>
23970 struct s { char c; double i; };
23975 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
23980 rm -f conftest.$ac_objext
23981 if { (ac_try="$ac_compile"
23982 case "(($ac_try" in
23983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23984 *) ac_try_echo=$ac_try;;
23986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23987 (eval "$ac_compile") 2>conftest.er1
23989 grep -v '^ *+' conftest.er1 >conftest.err
23991 cat conftest.err >&5
23992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23993 (exit $ac_status); } && {
23994 test -z "$ac_c_werror_flag" ||
23995 test ! -s conftest.err
23996 } && test -s conftest.$ac_objext; then
23997 ac_cv_struct_boundary_double=$ac_size
23999 echo "$as_me: failed program was:" >&5
24000 sed 's/^/| /' conftest.$ac_ext >&5
24005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24006 if test x$ac_cv_struct_boundary_double != x ; then break; fi
24011 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
24012 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6; }
24013 if test x$ac_cv_struct_boundary_double = x ; then
24014 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
24015 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
24016 { (exit 1); exit 1; }; }
24020 { echo "$as_me:$LINENO: checking size of void *" >&5
24021 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
24022 if test "${ac_cv_sizeof_void_p+set}" = set; then
24023 echo $ECHO_N "(cached) $ECHO_C" >&6
24025 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
24026 cat >conftest.$ac_ext <<_ACEOF
24029 cat confdefs.h >>conftest.$ac_ext
24030 cat >>conftest.$ac_ext <<_ACEOF
24031 /* end confdefs.h. */
24032 #include "confdefs.h"
24033 #include <sys/types.h>
24039 switch (0) case 0: case (sizeof (void *) == $ac_size):;
24044 rm -f conftest.$ac_objext
24045 if { (ac_try="$ac_compile"
24046 case "(($ac_try" in
24047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24048 *) ac_try_echo=$ac_try;;
24050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24051 (eval "$ac_compile") 2>conftest.er1
24053 grep -v '^ *+' conftest.er1 >conftest.err
24055 cat conftest.err >&5
24056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24057 (exit $ac_status); } && {
24058 test -z "$ac_c_werror_flag" ||
24059 test ! -s conftest.err
24060 } && test -s conftest.$ac_objext; then
24061 ac_cv_sizeof_void_p=$ac_size
24063 echo "$as_me: failed program was:" >&5
24064 sed 's/^/| /' conftest.$ac_ext >&5
24069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24070 if test x$ac_cv_sizeof_void_p != x ; then break; fi
24076 if test x$ac_cv_sizeof_void_p = x ; then
24077 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
24078 echo "$as_me: error: cannot determine a size for void *" >&2;}
24079 { (exit 1); exit 1; }; }
24081 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24082 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
24083 { echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
24084 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6; }
24086 if test "${ac_cv_struct_boundary_void_p+set}" = set; then
24087 echo $ECHO_N "(cached) $ECHO_C" >&6
24089 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
24090 cat >conftest.$ac_ext <<_ACEOF
24093 cat confdefs.h >>conftest.$ac_ext
24094 cat >>conftest.$ac_ext <<_ACEOF
24095 /* end confdefs.h. */
24096 #include "confdefs.h"
24097 #include <sys/types.h>
24098 struct s { char c; void * i; };
24103 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
24108 rm -f conftest.$ac_objext
24109 if { (ac_try="$ac_compile"
24110 case "(($ac_try" in
24111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24112 *) ac_try_echo=$ac_try;;
24114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24115 (eval "$ac_compile") 2>conftest.er1
24117 grep -v '^ *+' conftest.er1 >conftest.err
24119 cat conftest.err >&5
24120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24121 (exit $ac_status); } && {
24122 test -z "$ac_c_werror_flag" ||
24123 test ! -s conftest.err
24124 } && test -s conftest.$ac_objext; then
24125 ac_cv_struct_boundary_void_p=$ac_size
24127 echo "$as_me: failed program was:" >&5
24128 sed 's/^/| /' conftest.$ac_ext >&5
24133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24134 if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
24139 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
24140 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6; }
24141 if test x$ac_cv_struct_boundary_void_p = x ; then
24142 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
24143 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
24144 { (exit 1); exit 1; }; }
24147 { echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
24148 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6; }
24149 if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
24150 echo $ECHO_N "(cached) $ECHO_C" >&6
24152 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
24153 cat >conftest.$ac_ext <<_ACEOF
24156 cat confdefs.h >>conftest.$ac_ext
24157 cat >>conftest.$ac_ext <<_ACEOF
24158 /* end confdefs.h. */
24159 #include "confdefs.h"
24160 #include <sys/types.h>
24166 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
24171 rm -f conftest.$ac_objext
24172 if { (ac_try="$ac_compile"
24173 case "(($ac_try" in
24174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24175 *) ac_try_echo=$ac_try;;
24177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24178 (eval "$ac_compile") 2>conftest.er1
24180 grep -v '^ *+' conftest.er1 >conftest.err
24182 cat conftest.err >&5
24183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184 (exit $ac_status); } && {
24185 test -z "$ac_c_werror_flag" ||
24186 test ! -s conftest.err
24187 } && test -s conftest.$ac_objext; then
24188 ac_cv_sizeof_void_LpR_LvoidR=$ac_size
24190 echo "$as_me: failed program was:" >&5
24191 sed 's/^/| /' conftest.$ac_ext >&5
24196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24197 if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
24203 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
24204 { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
24205 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
24206 { (exit 1); exit 1; }; }
24208 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
24209 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6; }
24213 { echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
24214 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6; }
24215 if test x$endian = x1 ; then
24221 trace="$trace_endian"
24223 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
24225 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
24226 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
24227 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
24228 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
24230 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
24231 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
24233 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
24235 # sizeof float/double are not tested since IEEE 754 is assumed.
24236 # Check README.IEEE for rational.
24238 # The numbers after the _ in the arch name are the maximal packing boundary.
24239 # big32_2 means that all data are aligned on a 2 bytes boundary. (ARM)
24240 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
24242 l_C:1/1:_I:2/1:4/1:4/1:8/1:_P:4/1:4/1:_D:4/1:8/1:) gras_arch=0; gras_size=32; gras_arch_name=little32_1;;
24243 l_C:1/1:_I:2/2:4/2:4/2:8/2:_P:4/2:4/2:_D:4/2:8/2:) gras_arch=1; gras_size=32; gras_arch_name=little32_2;;
24244 l_C:1/1:_I:2/2:4/4:4/4:8/4:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=2; gras_size=32; gras_arch_name=little32_4;;
24245 l_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/8:) gras_arch=3; gras_size=32; gras_arch_name=little32_8;;
24247 l_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/8:) gras_arch=4; gras_size=64; gras_arch_name=little64;;
24249 B_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/8:) gras_arch=5; gras_size=32; gras_arch_name=big32;;
24250 B_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=6; gras_size=32; gras_arch_name=big32_8_4;;
24251 B_C:1/1:_I:2/2:4/4:4/4:8/4:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=7; gras_size=32; gras_arch_name=big32_4;;
24252 B_C:1/1:_I:2/2:4/2:4/2:8/2:_P:4/2:4/2:_D:4/2:8/2:) gras_arch=8; gras_size=32; gras_arch_name=big32_2;;
24254 B_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/8:) gras_arch=9; gras_size=64; gras_arch_name=big64;;
24255 B_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/4:) gras_arch=10;gras_size=64; gras_arch_name=big64_8_4;;
24257 if test x$gras_arch = xunknown ; then
24258 { echo "$as_me:$LINENO: result: damnit ($trace)" >&5
24259 echo "${ECHO_T}damnit ($trace)" >&6; }
24260 { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
24261 Please report this architecture trace ($trace) and what it corresponds to." >&5
24262 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
24263 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
24264 { (exit 1); exit 1; }; }
24266 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
24268 cat >>confdefs.h <<_ACEOF
24269 #define GRAS_THISARCH $gras_arch
24272 { echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
24273 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6; }
24275 if test "$gras_size" = 32; then
24276 GRAS_ARCH_32_BITS_TRUE=
24277 GRAS_ARCH_32_BITS_FALSE='#'
24279 GRAS_ARCH_32_BITS_TRUE='#'
24280 GRAS_ARCH_32_BITS_FALSE=
24284 { echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
24285 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6; }
24287 for s in $ac_cv_sizeof_char \
24288 $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
24289 $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
24292 if test $ac_cv_sizeof_max -lt $s ; then
24293 ac_cv_sizeof_max=$s
24296 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
24297 echo "${ECHO_T}$ac_cv_sizeof_max" >&6; }
24299 cat >>confdefs.h <<_ACEOF
24300 #define SIZEOF_MAX $ac_cv_sizeof_max
24305 # Check architecture signature end
24306 { echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
24307 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6; }
24308 cat >conftest.$ac_ext <<_ACEOF
24311 cat confdefs.h >>conftest.$ac_ext
24312 cat >>conftest.$ac_ext <<_ACEOF
24313 /* end confdefs.h. */
24314 #include "confdefs.h"
24315 #include <sys/types.h>
24316 #include <stddef.h> /* offsetof() */
24317 struct s {char c; double d;};
24324 case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
24330 rm -f conftest.$ac_objext
24331 if { (ac_try="$ac_compile"
24332 case "(($ac_try" in
24333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24334 *) ac_try_echo=$ac_try;;
24336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24337 (eval "$ac_compile") 2>conftest.er1
24339 grep -v '^ *+' conftest.er1 >conftest.err
24341 cat conftest.err >&5
24342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24343 (exit $ac_status); } && {
24344 test -z "$ac_c_werror_flag" ||
24345 test ! -s conftest.err
24346 } && test -s conftest.$ac_objext; then
24347 gras_struct_packed=yes
24349 echo "$as_me: failed program was:" >&5
24350 sed 's/^/| /' conftest.$ac_ext >&5
24352 gras_struct_packed=no
24355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24357 { echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
24358 echo "${ECHO_T}$gras_struct_packed" >&6; }
24359 if test x$gras_struct_packed = "xyes" ; then
24360 { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
24361 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
24362 { (exit 1); exit 1; }; }
24365 { echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
24366 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6; }
24367 cat >conftest.$ac_ext <<_ACEOF
24370 cat confdefs.h >>conftest.$ac_ext
24371 cat >>conftest.$ac_ext <<_ACEOF
24372 /* end confdefs.h. */
24373 #include "confdefs.h"
24374 #include <sys/types.h>
24375 #include <stddef.h> /* offsetof() */
24376 struct s {double d; int i; char c;};
24383 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24389 rm -f conftest.$ac_objext
24390 if { (ac_try="$ac_compile"
24391 case "(($ac_try" in
24392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24393 *) ac_try_echo=$ac_try;;
24395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24396 (eval "$ac_compile") 2>conftest.er1
24398 grep -v '^ *+' conftest.er1 >conftest.err
24400 cat conftest.err >&5
24401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24402 (exit $ac_status); } && {
24403 test -z "$ac_c_werror_flag" ||
24404 test ! -s conftest.err
24405 } && test -s conftest.$ac_objext; then
24406 gras_struct_compact=yes
24408 echo "$as_me: failed program was:" >&5
24409 sed 's/^/| /' conftest.$ac_ext >&5
24411 gras_struct_compact=no
24414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24416 { echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
24417 echo "${ECHO_T}$gras_struct_compact" >&6; }
24419 if test x$gras_struct_compact != xyes ; then
24420 { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
24421 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
24422 { (exit 1); exit 1; }; }
24425 cat >>confdefs.h <<_ACEOF
24426 #define GRAS_STRUCT_COMPACT 1
24429 { echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
24430 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6; }
24432 cat >conftest.$ac_ext <<_ACEOF
24435 cat confdefs.h >>conftest.$ac_ext
24436 cat >>conftest.$ac_ext <<_ACEOF
24437 /* end confdefs.h. */
24438 #include "confdefs.h"
24439 #include <sys/types.h>
24440 #include <stddef.h> /* offsetof() */
24441 struct s { double d; int i; char c[6]; };
24448 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24454 rm -f conftest.$ac_objext
24455 if { (ac_try="$ac_compile"
24456 case "(($ac_try" in
24457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24458 *) ac_try_echo=$ac_try;;
24460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24461 (eval "$ac_compile") 2>conftest.er1
24463 grep -v '^ *+' conftest.er1 >conftest.err
24465 cat conftest.err >&5
24466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467 (exit $ac_status); } && {
24468 test -z "$ac_c_werror_flag" ||
24469 test ! -s conftest.err
24470 } && test -s conftest.$ac_objext; then
24471 gras_array_straddle_struct=yes
24473 echo "$as_me: failed program was:" >&5
24474 sed 's/^/| /' conftest.$ac_ext >&5
24476 gras_array_straddle_struct=no
24479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24481 { echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
24482 echo "${ECHO_T}$gras_array_straddle_struct" >&6; }
24484 if test x$gras_array_straddle_struct = xyes ; then
24486 cat >>confdefs.h <<_ACEOF
24487 #define GRAS_ARRAY_STRADDLE_STRUCT 1
24491 { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
24492 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
24493 { (exit 1); exit 1; }; }
24500 { echo "$as_me:$LINENO: result: " >&5
24501 echo "${ECHO_T}" >&6; }
24502 { echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
24503 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6; }
24508 { echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
24509 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6; }
24510 if test "${ac_cv_check_mcsc+set}" = set; then
24511 echo $ECHO_N "(cached) $ECHO_C" >&6
24514 if test "$cross_compiling" = yes; then
24515 ac_cv_check_mcsc=no
24518 cat >conftest.$ac_ext <<_ACEOF
24521 cat confdefs.h >>conftest.$ac_ext
24522 cat >>conftest.$ac_ext <<_ACEOF
24523 /* end confdefs.h. */
24527 #include <stdlib.h>
24528 #include <ucontext.h>
24530 ucontext_t uc_child;
24531 ucontext_t uc_main;
24533 void child(void *arg)
24535 if (arg != (void *)12345)
24537 if (swapcontext(&uc_child, &uc_main) != 0)
24541 int main(int argc, char *argv[])
24546 /* the default is that it fails */
24547 if ((fp = fopen("conftestval", "w")) == NULL)
24549 fprintf(fp, "no\n");
24552 /* configure a child user-space context */
24553 if ((stack = malloc(64*1024)) == NULL)
24555 if (getcontext(&uc_child) != 0)
24557 uc_child.uc_link = NULL;
24558 uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
24559 uc_child.uc_stack.ss_size = 32*1024;
24560 uc_child.uc_stack.ss_flags = 0;
24561 makecontext(&uc_child, child, 2, (void *)12345);
24563 /* switch into the user context */
24564 if (swapcontext(&uc_main, &uc_child) != 0)
24567 /* Fine, child came home */
24568 if ((fp = fopen("conftestval", "w")) == NULL)
24570 fprintf(fp, "yes\n");
24573 /* die successfully */
24578 rm -f conftest$ac_exeext
24579 if { (ac_try="$ac_link"
24580 case "(($ac_try" in
24581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24582 *) ac_try_echo=$ac_try;;
24584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24585 (eval "$ac_link") 2>&5
24587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24589 { (case "(($ac_try" in
24590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24591 *) ac_try_echo=$ac_try;;
24593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24594 (eval "$ac_try") 2>&5
24596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24597 (exit $ac_status); }; }; then
24598 ac_cv_check_mcsc=`cat conftestval`
24600 echo "$as_me: program exited with status $ac_status" >&5
24601 echo "$as_me: failed program was:" >&5
24602 sed 's/^/| /' conftest.$ac_ext >&5
24604 ( exit $ac_status )
24605 ac_cv_check_mcsc=no
24607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24612 { echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
24613 echo "${ECHO_T}$ac_cv_check_mcsc" >&6; }
24614 if test ".$ac_cv_check_mcsc" = .yes; then
24622 for ac_header in pthread.h
24624 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24626 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24629 echo $ECHO_N "(cached) $ECHO_C" >&6
24631 ac_res=`eval echo '${'$as_ac_Header'}'`
24632 { echo "$as_me:$LINENO: result: $ac_res" >&5
24633 echo "${ECHO_T}$ac_res" >&6; }
24635 # Is the header compilable?
24636 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24637 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24638 cat >conftest.$ac_ext <<_ACEOF
24641 cat confdefs.h >>conftest.$ac_ext
24642 cat >>conftest.$ac_ext <<_ACEOF
24643 /* end confdefs.h. */
24644 $ac_includes_default
24645 #include <$ac_header>
24647 rm -f conftest.$ac_objext
24648 if { (ac_try="$ac_compile"
24649 case "(($ac_try" in
24650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24651 *) ac_try_echo=$ac_try;;
24653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24654 (eval "$ac_compile") 2>conftest.er1
24656 grep -v '^ *+' conftest.er1 >conftest.err
24658 cat conftest.err >&5
24659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24660 (exit $ac_status); } && {
24661 test -z "$ac_c_werror_flag" ||
24662 test ! -s conftest.err
24663 } && test -s conftest.$ac_objext; then
24664 ac_header_compiler=yes
24666 echo "$as_me: failed program was:" >&5
24667 sed 's/^/| /' conftest.$ac_ext >&5
24669 ac_header_compiler=no
24672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24673 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24674 echo "${ECHO_T}$ac_header_compiler" >&6; }
24676 # Is the header present?
24677 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24678 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24679 cat >conftest.$ac_ext <<_ACEOF
24682 cat confdefs.h >>conftest.$ac_ext
24683 cat >>conftest.$ac_ext <<_ACEOF
24684 /* end confdefs.h. */
24685 #include <$ac_header>
24687 if { (ac_try="$ac_cpp conftest.$ac_ext"
24688 case "(($ac_try" in
24689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24690 *) ac_try_echo=$ac_try;;
24692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24695 grep -v '^ *+' conftest.er1 >conftest.err
24697 cat conftest.err >&5
24698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24699 (exit $ac_status); } >/dev/null && {
24700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24701 test ! -s conftest.err
24703 ac_header_preproc=yes
24705 echo "$as_me: failed program was:" >&5
24706 sed 's/^/| /' conftest.$ac_ext >&5
24708 ac_header_preproc=no
24711 rm -f conftest.err conftest.$ac_ext
24712 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24713 echo "${ECHO_T}$ac_header_preproc" >&6; }
24715 # So? What about this header?
24716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24718 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24721 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24722 ac_header_preproc=yes
24725 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24726 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24727 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24728 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24729 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24730 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24731 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24732 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24735 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24736 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24738 ## -------------------------------------------------- ##
24739 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24740 ## -------------------------------------------------- ##
24742 ) | sed "s/^/$as_me: WARNING: /" >&2
24745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24748 echo $ECHO_N "(cached) $ECHO_C" >&6
24750 eval "$as_ac_Header=\$ac_header_preproc"
24752 ac_res=`eval echo '${'$as_ac_Header'}'`
24753 { echo "$as_me:$LINENO: result: $ac_res" >&5
24754 echo "${ECHO_T}$ac_res" >&6; }
24757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24758 cat >>confdefs.h <<_ACEOF
24759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24766 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24767 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24768 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24769 echo $ECHO_N "(cached) $ECHO_C" >&6
24771 ac_check_lib_save_LIBS=$LIBS
24772 LIBS="-lpthread $LIBS"
24773 cat >conftest.$ac_ext <<_ACEOF
24776 cat confdefs.h >>conftest.$ac_ext
24777 cat >>conftest.$ac_ext <<_ACEOF
24778 /* end confdefs.h. */
24780 /* Override any GCC internal prototype to avoid an error.
24781 Use char because int might match the return type of a GCC
24782 builtin and then its argument prototype would still apply. */
24786 char pthread_create ();
24790 return pthread_create ();
24795 rm -f conftest.$ac_objext conftest$ac_exeext
24796 if { (ac_try="$ac_link"
24797 case "(($ac_try" in
24798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24799 *) ac_try_echo=$ac_try;;
24801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24802 (eval "$ac_link") 2>conftest.er1
24804 grep -v '^ *+' conftest.er1 >conftest.err
24806 cat conftest.err >&5
24807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808 (exit $ac_status); } && {
24809 test -z "$ac_c_werror_flag" ||
24810 test ! -s conftest.err
24811 } && test -s conftest$ac_exeext &&
24812 $as_test_x conftest$ac_exeext; then
24813 ac_cv_lib_pthread_pthread_create=yes
24815 echo "$as_me: failed program was:" >&5
24816 sed 's/^/| /' conftest.$ac_ext >&5
24818 ac_cv_lib_pthread_pthread_create=no
24821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24822 conftest$ac_exeext conftest.$ac_ext
24823 LIBS=$ac_check_lib_save_LIBS
24825 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24826 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24827 if test $ac_cv_lib_pthread_pthread_create = yes; then
24835 if test ".$mcsc" = .yes; then
24837 elif test ".$pthread" = .yes; then
24840 ac_header=windows.h
24841 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24843 windows_context=yes
24845 { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
24846 echo "$as_me: error: no appropriate backend found" >&2;}
24847 { (exit 1); exit 1; }; }
24852 { echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
24853 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6; }
24856 # Check whether --with-pthread was given.
24857 if test "${with_pthread+set}" = set; then
24858 withval=$with_pthread; with_context=pthread
24862 # Check whether --with-pthread was given.
24863 if test "${with_pthread+set}" = set; then
24864 withval=$with_pthread; with_context=pthread
24869 # Check whether --with-context was given.
24870 if test "${with_context+set}" = set; then
24871 withval=$with_context;
24877 if test "x$with_context$mcsc" = "xucontextno" ; then
24878 { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
24879 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
24880 { (exit 77); exit 77; }; }
24883 case $with_context in
24888 auto) with_context=ucontext;;
24889 *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
24890 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
24891 { (exit 1); exit 1; }; } ;;
24894 if test "x$with_context" = "xucontext" ; then
24895 if test ".$mcsc" = .yes; then
24896 { echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
24897 echo "${ECHO_T}found working ucontext. Great!" >&6; }
24899 cat >>confdefs.h <<\_ACEOF
24900 #define CONTEXT_UCONTEXT 1
24904 if test ".$windows_context" = .yes ; then
24905 { echo "$as_me:$LINENO: result: use windows context portability layer." >&5
24906 echo "${ECHO_T}use windows context portability layer." >&6; }
24907 with_context=windows
24909 { echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
24910 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6; }
24911 with_context=pthread
24916 if test "x$with_context" = "xpthreads"; then
24917 with_context=pthread
24919 if test "x$with_context" = "xpthread"; then
24921 for ac_header in pthread.h
24923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24928 echo $ECHO_N "(cached) $ECHO_C" >&6
24930 ac_res=`eval echo '${'$as_ac_Header'}'`
24931 { echo "$as_me:$LINENO: result: $ac_res" >&5
24932 echo "${ECHO_T}$ac_res" >&6; }
24934 # Is the header compilable?
24935 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24937 cat >conftest.$ac_ext <<_ACEOF
24940 cat confdefs.h >>conftest.$ac_ext
24941 cat >>conftest.$ac_ext <<_ACEOF
24942 /* end confdefs.h. */
24943 $ac_includes_default
24944 #include <$ac_header>
24946 rm -f conftest.$ac_objext
24947 if { (ac_try="$ac_compile"
24948 case "(($ac_try" in
24949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24950 *) ac_try_echo=$ac_try;;
24952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24953 (eval "$ac_compile") 2>conftest.er1
24955 grep -v '^ *+' conftest.er1 >conftest.err
24957 cat conftest.err >&5
24958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24959 (exit $ac_status); } && {
24960 test -z "$ac_c_werror_flag" ||
24961 test ! -s conftest.err
24962 } && test -s conftest.$ac_objext; then
24963 ac_header_compiler=yes
24965 echo "$as_me: failed program was:" >&5
24966 sed 's/^/| /' conftest.$ac_ext >&5
24968 ac_header_compiler=no
24971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24973 echo "${ECHO_T}$ac_header_compiler" >&6; }
24975 # Is the header present?
24976 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24978 cat >conftest.$ac_ext <<_ACEOF
24981 cat confdefs.h >>conftest.$ac_ext
24982 cat >>conftest.$ac_ext <<_ACEOF
24983 /* end confdefs.h. */
24984 #include <$ac_header>
24986 if { (ac_try="$ac_cpp conftest.$ac_ext"
24987 case "(($ac_try" in
24988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24989 *) ac_try_echo=$ac_try;;
24991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24994 grep -v '^ *+' conftest.er1 >conftest.err
24996 cat conftest.err >&5
24997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24998 (exit $ac_status); } >/dev/null && {
24999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25000 test ! -s conftest.err
25002 ac_header_preproc=yes
25004 echo "$as_me: failed program was:" >&5
25005 sed 's/^/| /' conftest.$ac_ext >&5
25007 ac_header_preproc=no
25010 rm -f conftest.err conftest.$ac_ext
25011 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25012 echo "${ECHO_T}$ac_header_preproc" >&6; }
25014 # So? What about this header?
25015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25017 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25020 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25021 ac_header_preproc=yes
25024 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25026 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25027 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25028 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25029 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25030 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25031 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25034 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25035 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25037 ## -------------------------------------------------- ##
25038 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
25039 ## -------------------------------------------------- ##
25041 ) | sed "s/^/$as_me: WARNING: /" >&2
25044 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25047 echo $ECHO_N "(cached) $ECHO_C" >&6
25049 eval "$as_ac_Header=\$ac_header_preproc"
25051 ac_res=`eval echo '${'$as_ac_Header'}'`
25052 { echo "$as_me:$LINENO: result: $ac_res" >&5
25053 echo "${ECHO_T}$ac_res" >&6; }
25056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25057 cat >>confdefs.h <<_ACEOF
25058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25066 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
25067 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
25068 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
25069 echo $ECHO_N "(cached) $ECHO_C" >&6
25071 ac_check_lib_save_LIBS=$LIBS
25072 LIBS="-lpthread $LIBS"
25073 cat >conftest.$ac_ext <<_ACEOF
25076 cat confdefs.h >>conftest.$ac_ext
25077 cat >>conftest.$ac_ext <<_ACEOF
25078 /* end confdefs.h. */
25080 /* Override any GCC internal prototype to avoid an error.
25081 Use char because int might match the return type of a GCC
25082 builtin and then its argument prototype would still apply. */
25086 char pthread_create ();
25090 return pthread_create ();
25095 rm -f conftest.$ac_objext conftest$ac_exeext
25096 if { (ac_try="$ac_link"
25097 case "(($ac_try" in
25098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25099 *) ac_try_echo=$ac_try;;
25101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25102 (eval "$ac_link") 2>conftest.er1
25104 grep -v '^ *+' conftest.er1 >conftest.err
25106 cat conftest.err >&5
25107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108 (exit $ac_status); } && {
25109 test -z "$ac_c_werror_flag" ||
25110 test ! -s conftest.err
25111 } && test -s conftest$ac_exeext &&
25112 $as_test_x conftest$ac_exeext; then
25113 ac_cv_lib_pthread_pthread_create=yes
25115 echo "$as_me: failed program was:" >&5
25116 sed 's/^/| /' conftest.$ac_ext >&5
25118 ac_cv_lib_pthread_pthread_create=no
25121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25122 conftest$ac_exeext conftest.$ac_ext
25123 LIBS=$ac_check_lib_save_LIBS
25125 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
25126 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
25127 if test $ac_cv_lib_pthread_pthread_create = yes; then
25128 cat >>confdefs.h <<_ACEOF
25129 #define HAVE_LIBPTHREAD 1
25132 LIBS="-lpthread $LIBS"
25135 { { echo "$as_me:$LINENO: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&5
25136 echo "$as_me: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&2;}
25137 { (exit 1); exit 1; }; }
25141 cat >>confdefs.h <<\_ACEOF
25142 #define CONTEXT_THREADS 1
25145 { echo "$as_me:$LINENO: result: You have pthreads and requested for them. Fine." >&5
25146 echo "${ECHO_T}You have pthreads and requested for them. Fine." >&6; }
25148 if test "x$with_context" != xucontext; then
25149 CONTEXT_THREADS_TRUE=
25150 CONTEXT_THREADS_FALSE='#'
25152 CONTEXT_THREADS_TRUE='#'
25153 CONTEXT_THREADS_FALSE=
25158 if test "x$with_context" = "xucontext" ; then
25159 { echo "$as_me:$LINENO: checking for direction of stack growth" >&5
25160 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6; }
25161 if test "${ac_cv_check_stackgrowth+set}" = set; then
25162 echo $ECHO_N "(cached) $ECHO_C" >&6
25166 if test "$cross_compiling" = yes; then
25167 ac_cv_check_stackgrowth=down
25170 cat >conftest.$ac_ext <<_ACEOF
25173 cat confdefs.h >>conftest.$ac_ext
25174 cat >>conftest.$ac_ext <<_ACEOF
25175 /* end confdefs.h. */
25178 #include <stdlib.h>
25179 static int iterate = 10;
25180 static int growsdown(int *x)
25190 int main(int argc, char *argv[])
25194 if ((f = fopen("conftestval", "w")) == NULL)
25196 fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
25203 rm -f conftest$ac_exeext
25204 if { (ac_try="$ac_link"
25205 case "(($ac_try" in
25206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25207 *) ac_try_echo=$ac_try;;
25209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25210 (eval "$ac_link") 2>&5
25212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25214 { (case "(($ac_try" in
25215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25216 *) ac_try_echo=$ac_try;;
25218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25219 (eval "$ac_try") 2>&5
25221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222 (exit $ac_status); }; }; then
25223 ac_cv_check_stackgrowth=`cat conftestval`
25225 echo "$as_me: program exited with status $ac_status" >&5
25226 echo "$as_me: failed program was:" >&5
25227 sed 's/^/| /' conftest.$ac_ext >&5
25229 ( exit $ac_status )
25230 ac_cv_check_stackgrowth=down
25232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25237 { echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
25238 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6; }
25239 if test ".$ac_cv_check_stackgrowth" = ".down"; then
25245 cat >>confdefs.h <<_ACEOF
25246 #define PTH_STACKGROWTH $val
25250 if test ".$ac_cv_check_stackgrowth" = ".down"; then
25251 PTH_STACK_GROWTH="down"
25253 PTH_STACK_GROWTH="up"
25261 for ac_func in makecontext
25263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25264 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25266 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25267 echo $ECHO_N "(cached) $ECHO_C" >&6
25269 cat >conftest.$ac_ext <<_ACEOF
25272 cat confdefs.h >>conftest.$ac_ext
25273 cat >>conftest.$ac_ext <<_ACEOF
25274 /* end confdefs.h. */
25275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25277 #define $ac_func innocuous_$ac_func
25279 /* System header to define __stub macros and hopefully few prototypes,
25280 which can conflict with char $ac_func (); below.
25281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25282 <limits.h> exists even on freestanding compilers. */
25285 # include <limits.h>
25287 # include <assert.h>
25292 /* Override any GCC internal prototype to avoid an error.
25293 Use char because int might match the return type of a GCC
25294 builtin and then its argument prototype would still apply. */
25299 /* The GNU C library defines this for functions which it implements
25300 to always fail with ENOSYS. Some functions are actually named
25301 something starting with __ and the normal name is an alias. */
25302 #if defined __stub_$ac_func || defined __stub___$ac_func
25309 return $ac_func ();
25314 rm -f conftest.$ac_objext conftest$ac_exeext
25315 if { (ac_try="$ac_link"
25316 case "(($ac_try" in
25317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25318 *) ac_try_echo=$ac_try;;
25320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25321 (eval "$ac_link") 2>conftest.er1
25323 grep -v '^ *+' conftest.er1 >conftest.err
25325 cat conftest.err >&5
25326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327 (exit $ac_status); } && {
25328 test -z "$ac_c_werror_flag" ||
25329 test ! -s conftest.err
25330 } && test -s conftest$ac_exeext &&
25331 $as_test_x conftest$ac_exeext; then
25332 eval "$as_ac_var=yes"
25334 echo "$as_me: failed program was:" >&5
25335 sed 's/^/| /' conftest.$ac_ext >&5
25337 eval "$as_ac_var=no"
25340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25341 conftest$ac_exeext conftest.$ac_ext
25343 ac_res=`eval echo '${'$as_ac_var'}'`
25344 { echo "$as_me:$LINENO: result: $ac_res" >&5
25345 echo "${ECHO_T}$ac_res" >&6; }
25346 if test `eval echo '${'$as_ac_var'}'` = yes; then
25347 cat >>confdefs.h <<_ACEOF
25348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25355 { echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
25356 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6; }
25357 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
25358 echo $ECHO_N "(cached) $ECHO_C" >&6
25361 if test ".$ac_cv_func_makecontext" = .no; then
25362 ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
25365 CFLAGS="$CFLAGS -DTEST_makecontext"
25367 if test "$cross_compiling" = yes; then
25369 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25372 cat >conftest.$ac_ext <<_ACEOF
25375 cat confdefs.h >>conftest.$ac_ext
25376 cat >>conftest.$ac_ext <<_ACEOF
25377 /* end confdefs.h. */
25380 #include <stdlib.h>
25381 #include <string.h>
25382 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25383 #include <sys/types.h>
25384 #include <signal.h>
25385 #include <unistd.h>
25387 #if defined(TEST_makecontext)
25388 #include <ucontext.h>
25397 static volatile char *handler_addr = (char *)0xDEAD;
25398 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25399 static volatile int handler_done = 0;
25400 void handler(int sig)
25402 char garbage[1024];
25405 for (i = 0; i < 1024; i++)
25407 handler_addr = (char *)&dummy;
25412 #if defined(TEST_makecontext)
25413 static ucontext_t uc_handler;
25414 static ucontext_t uc_main;
25417 char garbage[1024];
25420 for (i = 0; i < 1024; i++)
25422 handler_addr = (char *)&dummy;
25423 swapcontext(&uc_handler, &uc_main);
25427 int main(int argc, char *argv[])
25436 skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
25439 for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
25441 skaddr = skbuf+sizeof(union alltypes);
25442 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25444 struct sigaction sa;
25445 #if defined(TEST_sigstack)
25446 struct sigstack ss;
25447 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
25450 struct sigaltstack ss;
25452 #if defined(TEST_sigstack)
25453 ss.ss_sp = (void *)(skaddr + sksize);
25455 if (sigstack(&ss, NULL) < 0)
25457 #elif defined(TEST_sigaltstack)
25458 ss.ss_sp = (void *)(skaddr + sksize);
25459 ss.ss_size = sksize;
25461 if (sigaltstack(&ss, NULL) < 0)
25464 memset((void *)&sa, 0, sizeof(struct sigaction));
25465 sa.sa_handler = handler;
25466 sa.sa_flags = SA_ONSTACK;
25467 sigemptyset(&sa.sa_mask);
25468 sigaction(SIGUSR1, &sa, NULL);
25469 kill(getpid(), SIGUSR1);
25470 while (!handler_done)
25474 #if defined(TEST_makecontext)
25476 if (getcontext(&uc_handler) != 0)
25478 uc_handler.uc_link = NULL;
25479 uc_handler.uc_stack.ss_sp = (void *)(skaddr + sksize);
25480 uc_handler.uc_stack.ss_size = sksize;
25481 uc_handler.uc_stack.ss_flags = 0;
25482 makecontext(&uc_handler, handler, 1);
25483 swapcontext(&uc_main, &uc_handler);
25486 if (handler_addr == (char *)0xDEAD)
25488 if (handler_addr < skaddr+sksize) {
25489 /* stack was placed into lower area */
25490 if (*(skaddr+sksize) != 'A')
25491 sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
25492 sizeof(union alltypes), sizeof(union alltypes));
25494 strcpy(result, "(skaddr)+(sksize),(sksize)");
25497 /* stack was placed into higher area */
25498 if (*(skaddr+sksize*2) != 'A')
25499 sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
25501 strcpy(result, "(skaddr),(sksize)");
25503 if ((f = fopen("conftestval", "w")) == NULL)
25505 fprintf(f, "%s\n", result);
25511 rm -f conftest$ac_exeext
25512 if { (ac_try="$ac_link"
25513 case "(($ac_try" in
25514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25515 *) ac_try_echo=$ac_try;;
25517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25518 (eval "$ac_link") 2>&5
25520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25522 { (case "(($ac_try" in
25523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25524 *) ac_try_echo=$ac_try;;
25526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25527 (eval "$ac_try") 2>&5
25529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530 (exit $ac_status); }; }; then
25532 ac_cv_stacksetup_makecontext=`cat conftestval`
25533 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
25536 echo "$as_me: program exited with status $ac_status" >&5
25537 echo "$as_me: failed program was:" >&5
25538 sed 's/^/| /' conftest.$ac_ext >&5
25540 ( exit $ac_status )
25542 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25553 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
25554 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
25555 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
25556 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
25557 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
25558 { echo "$as_me:$LINENO: result: $type" >&5
25559 echo "${ECHO_T}$type" >&6; }
25560 if test ".$verbose" = .yes; then
25561 { echo "$as_me:$LINENO: result: $pth_skaddr_makecontext" >&5
25562 echo "${ECHO_T} $pth_skaddr_makecontext" >&6; }
25565 if test ".$verbose" = .yes; then
25566 { echo "$as_me:$LINENO: result: $pth_sksize_makecontext" >&5
25567 echo "${ECHO_T} $pth_sksize_makecontext" >&6; }
25573 #########################################
25574 ## Check for libraries extra-dependencies
25578 { echo "$as_me:$LINENO: result: " >&5
25579 echo "${ECHO_T}" >&6; }
25580 { echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
25581 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6; }
25588 if test xpthread=xyes ; then
25589 # if the pthreads are usable
25590 if test "x$with_context" = "xpthread" ; then
25591 # if we use them to implement the xbt_context
25592 SIMGRID_DEP="-lpthread"
25594 # we need them in any case for the gras lib (which is multithreaded), but on windows (of course)
25595 if test "x$with_context" != "xwindows" ; then
25596 GRAS_DEP="-lpthread"
25600 #########################################
25601 ## Build optional modules (gtnets)
25605 # Check whether --with-gtnets was given.
25606 if test "${with_gtnets+set}" = set; then
25607 withval=$with_gtnets; gtnets_path="$withval"
25612 if test "x$gtnets_path" = "xno" ; then
25613 { echo "$as_me:$LINENO: result: Eventually you will come to GTNetS." >&5
25614 echo "${ECHO_T}Eventually you will come to GTNetS." >&6; }
25616 { echo "$as_me:$LINENO: result: ***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. *****" >&5
25617 echo "${ECHO_T}***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. *****" >&6; }
25618 { echo "$as_me:$LINENO: checking for gtnets" >&5
25619 echo $ECHO_N "checking for gtnets... $ECHO_C" >&6; }
25621 ac_cpp='$CXXCPP $CPPFLAGS'
25622 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25623 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25624 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25626 GTNETS_LDFLAGS="-lgtnets -L$gtnets_path/lib"
25627 GTNETS_CPPFLAGS="-I$gtnets_path/include -I$gtnets_path/include/gtnets"
25628 LDFLAGS_SAV=$LDFLAGS
25629 CPPFLAGS_SAV=$CPPFLAGS
25630 CPPFLAGS+=$GTNETS_CPPFLAGS
25631 LDFLAGS+=$GTNETS_LDFLAGS
25632 cat >conftest.$ac_ext <<_ACEOF
25635 cat confdefs.h >>conftest.$ac_ext
25636 cat >>conftest.$ac_ext <<_ACEOF
25637 /* end confdefs.h. */
25638 #include <simulator.h>
25643 Simulator s; s.RunUntilNextCompletion();
25648 rm -f conftest.$ac_objext conftest$ac_exeext
25649 if { (ac_try="$ac_link"
25650 case "(($ac_try" in
25651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25652 *) ac_try_echo=$ac_try;;
25654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25655 (eval "$ac_link") 2>conftest.er1
25657 grep -v '^ *+' conftest.er1 >conftest.err
25659 cat conftest.err >&5
25660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25661 (exit $ac_status); } && {
25662 test -z "$ac_cxx_werror_flag" ||
25663 test ! -s conftest.err
25664 } && test -s conftest$ac_exeext &&
25665 $as_test_x conftest$ac_exeext; then
25668 echo "$as_me: failed program was:" >&5
25669 sed 's/^/| /' conftest.$ac_ext >&5
25674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25675 conftest$ac_exeext conftest.$ac_ext
25676 CPPFLAGS=$CPPFLAGS_SAV
25677 LDFLAGS=$LDFLAGS_SAV
25679 ac_cpp='$CPP $CPPFLAGS'
25680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25685 if test "x$gtnets" = xyes ; then
25686 AM_CPPFLAGS="$AM_CPPFLAGS $GTNETS_CPPFLAGS"
25687 SIMGRID_DEP="$SIMGRID_DEP $GTNETS_LDFLAGS"
25688 { echo "$as_me:$LINENO: result: Found working gtnets library." >&5
25689 echo "${ECHO_T}Found working gtnets library." >&6; }
25691 cat >>confdefs.h <<\_ACEOF
25692 #define HAVE_GTNETS 1
25696 { echo "$as_me:$LINENO: result: Could not find any working gtnets library or not patched version" >&5
25697 echo "${ECHO_T}Could not find any working gtnets library or not patched version" >&6; }
25700 if test "x$gtnets" != xno; then
25702 HAVE_GTNETS_FALSE='#'
25704 HAVE_GTNETS_TRUE='#'
25709 #########################################
25710 ## Build optional modules (csdp)
25714 # Check whether --with-csdp was given.
25715 if test "${with_csdp+set}" = set; then
25716 withval=$with_csdp; csdp_path="$withval"
25721 if test "x$csdp_path" = "xno" ; then
25722 { echo "$as_me:$LINENO: result: Eventually you will come to csdp." >&5
25723 echo "${ECHO_T}Eventually you will come to csdp." >&6; }
25725 { echo "$as_me:$LINENO: result: ***** You have decided to use csdp. Let's check whether it works or not *****" >&5
25726 echo "${ECHO_T}***** You have decided to use csdp. Let's check whether it works or not *****" >&6; }
25727 { echo "$as_me:$LINENO: checking for csdp" >&5
25728 echo $ECHO_N "checking for csdp... $ECHO_C" >&6; }
25729 CSDP_LDFLAGS="-L$csdp_path/lib -lsdp -llapack -lblas -lm"
25730 CSDP_CPPFLAGS="-I$csdp_path/include -I$csdp_path/include/csdp"
25732 { echo "$as_me:$LINENO: checking for easy_sdp in -lsdp" >&5
25733 echo $ECHO_N "checking for easy_sdp in -lsdp... $ECHO_C" >&6; }
25734 if test "${ac_cv_lib_sdp_easy_sdp+set}" = set; then
25735 echo $ECHO_N "(cached) $ECHO_C" >&6
25737 ac_check_lib_save_LIBS=$LIBS
25738 LIBS="-lsdp $CSDP_LDFLAGS $LIBS"
25739 cat >conftest.$ac_ext <<_ACEOF
25742 cat confdefs.h >>conftest.$ac_ext
25743 cat >>conftest.$ac_ext <<_ACEOF
25744 /* end confdefs.h. */
25746 /* Override any GCC internal prototype to avoid an error.
25747 Use char because int might match the return type of a GCC
25748 builtin and then its argument prototype would still apply. */
25756 return easy_sdp ();
25761 rm -f conftest.$ac_objext conftest$ac_exeext
25762 if { (ac_try="$ac_link"
25763 case "(($ac_try" in
25764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25765 *) ac_try_echo=$ac_try;;
25767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25768 (eval "$ac_link") 2>conftest.er1
25770 grep -v '^ *+' conftest.er1 >conftest.err
25772 cat conftest.err >&5
25773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25774 (exit $ac_status); } && {
25775 test -z "$ac_c_werror_flag" ||
25776 test ! -s conftest.err
25777 } && test -s conftest$ac_exeext &&
25778 $as_test_x conftest$ac_exeext; then
25779 ac_cv_lib_sdp_easy_sdp=yes
25781 echo "$as_me: failed program was:" >&5
25782 sed 's/^/| /' conftest.$ac_ext >&5
25784 ac_cv_lib_sdp_easy_sdp=no
25787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25788 conftest$ac_exeext conftest.$ac_ext
25789 LIBS=$ac_check_lib_save_LIBS
25791 { echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_easy_sdp" >&5
25792 echo "${ECHO_T}$ac_cv_lib_sdp_easy_sdp" >&6; }
25793 if test $ac_cv_lib_sdp_easy_sdp = yes; then
25800 CPPFLAGS_SAV=$CPPFLAGS
25801 CPPFLAGS+=$CSDP_CPPFLAGS
25802 if test "${ac_cv_header_declarations_h+set}" = set; then
25803 { echo "$as_me:$LINENO: checking for declarations.h" >&5
25804 echo $ECHO_N "checking for declarations.h... $ECHO_C" >&6; }
25805 if test "${ac_cv_header_declarations_h+set}" = set; then
25806 echo $ECHO_N "(cached) $ECHO_C" >&6
25808 { echo "$as_me:$LINENO: result: $ac_cv_header_declarations_h" >&5
25809 echo "${ECHO_T}$ac_cv_header_declarations_h" >&6; }
25811 # Is the header compilable?
25812 { echo "$as_me:$LINENO: checking declarations.h usability" >&5
25813 echo $ECHO_N "checking declarations.h usability... $ECHO_C" >&6; }
25814 cat >conftest.$ac_ext <<_ACEOF
25817 cat confdefs.h >>conftest.$ac_ext
25818 cat >>conftest.$ac_ext <<_ACEOF
25819 /* end confdefs.h. */
25820 $ac_includes_default
25821 #include <declarations.h>
25823 rm -f conftest.$ac_objext
25824 if { (ac_try="$ac_compile"
25825 case "(($ac_try" in
25826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25827 *) ac_try_echo=$ac_try;;
25829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25830 (eval "$ac_compile") 2>conftest.er1
25832 grep -v '^ *+' conftest.er1 >conftest.err
25834 cat conftest.err >&5
25835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25836 (exit $ac_status); } && {
25837 test -z "$ac_c_werror_flag" ||
25838 test ! -s conftest.err
25839 } && test -s conftest.$ac_objext; then
25840 ac_header_compiler=yes
25842 echo "$as_me: failed program was:" >&5
25843 sed 's/^/| /' conftest.$ac_ext >&5
25845 ac_header_compiler=no
25848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25849 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25850 echo "${ECHO_T}$ac_header_compiler" >&6; }
25852 # Is the header present?
25853 { echo "$as_me:$LINENO: checking declarations.h presence" >&5
25854 echo $ECHO_N "checking declarations.h presence... $ECHO_C" >&6; }
25855 cat >conftest.$ac_ext <<_ACEOF
25858 cat confdefs.h >>conftest.$ac_ext
25859 cat >>conftest.$ac_ext <<_ACEOF
25860 /* end confdefs.h. */
25861 #include <declarations.h>
25863 if { (ac_try="$ac_cpp conftest.$ac_ext"
25864 case "(($ac_try" in
25865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25866 *) ac_try_echo=$ac_try;;
25868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25871 grep -v '^ *+' conftest.er1 >conftest.err
25873 cat conftest.err >&5
25874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875 (exit $ac_status); } >/dev/null && {
25876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25877 test ! -s conftest.err
25879 ac_header_preproc=yes
25881 echo "$as_me: failed program was:" >&5
25882 sed 's/^/| /' conftest.$ac_ext >&5
25884 ac_header_preproc=no
25887 rm -f conftest.err conftest.$ac_ext
25888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25889 echo "${ECHO_T}$ac_header_preproc" >&6; }
25891 # So? What about this header?
25892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25894 { echo "$as_me:$LINENO: WARNING: declarations.h: accepted by the compiler, rejected by the preprocessor!" >&5
25895 echo "$as_me: WARNING: declarations.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25896 { echo "$as_me:$LINENO: WARNING: declarations.h: proceeding with the compiler's result" >&5
25897 echo "$as_me: WARNING: declarations.h: proceeding with the compiler's result" >&2;}
25898 ac_header_preproc=yes
25901 { echo "$as_me:$LINENO: WARNING: declarations.h: present but cannot be compiled" >&5
25902 echo "$as_me: WARNING: declarations.h: present but cannot be compiled" >&2;}
25903 { echo "$as_me:$LINENO: WARNING: declarations.h: check for missing prerequisite headers?" >&5
25904 echo "$as_me: WARNING: declarations.h: check for missing prerequisite headers?" >&2;}
25905 { echo "$as_me:$LINENO: WARNING: declarations.h: see the Autoconf documentation" >&5
25906 echo "$as_me: WARNING: declarations.h: see the Autoconf documentation" >&2;}
25907 { echo "$as_me:$LINENO: WARNING: declarations.h: section \"Present But Cannot Be Compiled\"" >&5
25908 echo "$as_me: WARNING: declarations.h: section \"Present But Cannot Be Compiled\"" >&2;}
25909 { echo "$as_me:$LINENO: WARNING: declarations.h: proceeding with the preprocessor's result" >&5
25910 echo "$as_me: WARNING: declarations.h: proceeding with the preprocessor's result" >&2;}
25911 { echo "$as_me:$LINENO: WARNING: declarations.h: in the future, the compiler will take precedence" >&5
25912 echo "$as_me: WARNING: declarations.h: in the future, the compiler will take precedence" >&2;}
25914 ## -------------------------------------------------- ##
25915 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
25916 ## -------------------------------------------------- ##
25918 ) | sed "s/^/$as_me: WARNING: /" >&2
25921 { echo "$as_me:$LINENO: checking for declarations.h" >&5
25922 echo $ECHO_N "checking for declarations.h... $ECHO_C" >&6; }
25923 if test "${ac_cv_header_declarations_h+set}" = set; then
25924 echo $ECHO_N "(cached) $ECHO_C" >&6
25926 ac_cv_header_declarations_h=$ac_header_preproc
25928 { echo "$as_me:$LINENO: result: $ac_cv_header_declarations_h" >&5
25929 echo "${ECHO_T}$ac_cv_header_declarations_h" >&6; }
25932 if test $ac_cv_header_declarations_h = yes; then
25939 CPPFLAGS=$CPPFLAGS_SAV
25943 if test "x$csdp_lib = xyes" -a "x$csdp_header = xyes" ; then
25948 if test "x$csdp" = xyes; then
25949 AM_CPPFLAGS="$AM_CPPFLAGS $CSDP_CPPFLAGS"
25950 SIMGRID_DEP="$SIMGRID_DEP $CSDP_LDFLAGS"
25951 { echo "$as_me:$LINENO: result: Found working sdp library." >&5
25952 echo "${ECHO_T}Found working sdp library." >&6; }
25954 cat >>confdefs.h <<\_ACEOF
25959 { echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
25960 echo "${ECHO_T}Could not find any working sdp library." >&6; }
25963 if test x$csdp != xno; then
25975 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25976 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
25977 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25978 echo $ECHO_N "(cached) $ECHO_C" >&6
25980 ac_check_lib_save_LIBS=$LIBS
25982 cat >conftest.$ac_ext <<_ACEOF
25985 cat confdefs.h >>conftest.$ac_ext
25986 cat >>conftest.$ac_ext <<_ACEOF
25987 /* end confdefs.h. */
25989 /* Override any GCC internal prototype to avoid an error.
25990 Use char because int might match the return type of a GCC
25991 builtin and then its argument prototype would still apply. */
25995 char gethostbyname ();
25999 return gethostbyname ();
26004 rm -f conftest.$ac_objext conftest$ac_exeext
26005 if { (ac_try="$ac_link"
26006 case "(($ac_try" in
26007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26008 *) ac_try_echo=$ac_try;;
26010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26011 (eval "$ac_link") 2>conftest.er1
26013 grep -v '^ *+' conftest.er1 >conftest.err
26015 cat conftest.err >&5
26016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26017 (exit $ac_status); } && {
26018 test -z "$ac_c_werror_flag" ||
26019 test ! -s conftest.err
26020 } && test -s conftest$ac_exeext &&
26021 $as_test_x conftest$ac_exeext; then
26022 ac_cv_lib_nsl_gethostbyname=yes
26024 echo "$as_me: failed program was:" >&5
26025 sed 's/^/| /' conftest.$ac_ext >&5
26027 ac_cv_lib_nsl_gethostbyname=no
26030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26031 conftest$ac_exeext conftest.$ac_ext
26032 LIBS=$ac_check_lib_save_LIBS
26034 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26035 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
26036 if test $ac_cv_lib_nsl_gethostbyname = yes; then
26037 GRAS_DEP="$GRAS_DEP -lnsl"
26040 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
26041 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
26042 if test "${ac_cv_lib_socket_connect+set}" = set; then
26043 echo $ECHO_N "(cached) $ECHO_C" >&6
26045 ac_check_lib_save_LIBS=$LIBS
26046 LIBS="-lsocket $LIBS"
26047 cat >conftest.$ac_ext <<_ACEOF
26050 cat confdefs.h >>conftest.$ac_ext
26051 cat >>conftest.$ac_ext <<_ACEOF
26052 /* end confdefs.h. */
26054 /* Override any GCC internal prototype to avoid an error.
26055 Use char because int might match the return type of a GCC
26056 builtin and then its argument prototype would still apply. */
26069 rm -f conftest.$ac_objext conftest$ac_exeext
26070 if { (ac_try="$ac_link"
26071 case "(($ac_try" in
26072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26073 *) ac_try_echo=$ac_try;;
26075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26076 (eval "$ac_link") 2>conftest.er1
26078 grep -v '^ *+' conftest.er1 >conftest.err
26080 cat conftest.err >&5
26081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26082 (exit $ac_status); } && {
26083 test -z "$ac_c_werror_flag" ||
26084 test ! -s conftest.err
26085 } && test -s conftest$ac_exeext &&
26086 $as_test_x conftest$ac_exeext; then
26087 ac_cv_lib_socket_connect=yes
26089 echo "$as_me: failed program was:" >&5
26090 sed 's/^/| /' conftest.$ac_ext >&5
26092 ac_cv_lib_socket_connect=no
26095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26096 conftest$ac_exeext conftest.$ac_ext
26097 LIBS=$ac_check_lib_save_LIBS
26099 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
26100 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
26101 if test $ac_cv_lib_socket_connect = yes; then
26102 GRAS_DEP="$GRAS_DEP -lsocket"
26106 { echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
26107 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6; }
26109 *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32";
26110 AM_CPPFLAGS="$AM_CPPFLAGS -DDLL_EXPORT"
26111 cat >>confdefs.h <<\_ACEOF
26112 #define CONTEXT_THREADS 1
26117 if test "x$GRAS_DEP" = x; then
26118 { echo "$as_me:$LINENO: result: none" >&5
26119 echo "${ECHO_T}none" >&6; }
26121 { echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
26122 echo "${ECHO_T}$GRAS_DEP" >&6; }
26126 ##############################################
26127 ## Enhance maintainer mode and SUBST variables
26128 ## (must be placed after any compilation tests since our overprotective flags
26129 ## let some tests fail)
26131 # Check whether we are doing a regular build or a GRAMINE (minimal) one
26132 # Next line is modified by sed when building gramine source tree
26134 if test x$gramine_mode = xyes
26136 USE_MAINTAINER_MODE=no
26138 if test x$gramine_mode != xno; then
26140 GRAMINE_MODE_FALSE='#'
26142 GRAMINE_MODE_TRUE='#'
26143 GRAMINE_MODE_FALSE=
26148 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
26149 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
26150 # Check whether --enable-maintainer-mode was given.
26151 if test "${enable_maintainer_mode+set}" = set; then
26152 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
26154 USE_MAINTAINER_MODE=no
26157 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
26158 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
26159 if test $USE_MAINTAINER_MODE = yes; then
26160 MAINTAINER_MODE_TRUE=
26161 MAINTAINER_MODE_FALSE='#'
26163 MAINTAINER_MODE_TRUE='#'
26164 MAINTAINER_MODE_FALSE=
26167 MAINT=$MAINTAINER_MODE_TRUE
26170 if test x$USE_MAINTAINER_MODE = xyes
26172 # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
26173 enable_compile_warnings=yes
26176 # Check whether --enable-compile-warnings was given.
26177 if test "${enable_compile_warnings+set}" = set; then
26178 enableval=$enable_compile_warnings; enable_compile_warnings=$enableval
26180 enable_compile_warnings=no
26184 # Check whether --enable-compile-optimizations was given.
26185 if test "${enable_compile_optimizations+set}" = set; then
26186 enableval=$enable_compile_optimizations; enable_compile_optimizations=$enableval
26188 enable_compile_optimizations=auto
26192 if test "x$cflags_set" != "xyes" ; then
26193 # if user didn't specify CFLAGS explicitely
26195 # AC PROG CC tests whether -g is accepted.
26196 # Cool, but it also tries to set -O2. I don't want it with gcc
26197 saveCFLAGS="$CFLAGS"
26199 case " $saveCFLAGS " in
26200 *-g*) CFLAGS="-g" ;;
26202 case " $saveCFLAGS " in
26203 *-O2*) test "x$CC" = xgcc || CFLAGS="$CFLAGS -O2" ;;
26206 # damn AC PROG CC, why did you set -O??
26210 if test "x$enable_compile_warnings" = "xyes" ; then
26211 { echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
26212 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6; }
26214 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
26215 case " $CFLAGS " in
26217 *) warnCFLAGS="-Wall -Wunused" ;;
26220 ## -W is not all that useful. And it cannot be controlled
26221 ## with individual -Wno-xxx flags, unlike -Wall
26223 ##Â -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
26224 ## -Wshadow chokes on try{ try{} } constructs
26225 if test "x$enable_compile_warnings" = "xyes"; then
26226 warnCFLAGS=`echo $warnCFLAGS -Wmissing-prototypes -Wmissing-declarations \
26227 -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
26228 -Wno-unused-function \
26231 # -Wno-unused-variable -Wno-unused-label
26234 { echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
26235 echo "${ECHO_T}$warnCFLAGS" >&6; }
26236 # placed before since gcc remembers the last one on conflict
26237 CFLAGS="$warnCFLAGS $CFLAGS"
26240 if test "x$enable_compile_optimizations" = "xyes" ||
26241 test "x$enable_compile_optimizations" = "xauto" ; then
26242 { echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
26243 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6; }
26245 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
26246 case " $CFLAGS " in
26248 *) optCFLAGS="$optCFLAGS -O3" ;;
26250 optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
26252 GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
26253 GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
26254 if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" == "x3" ; then
26255 # avoid gcc bug #12828, which apeared in 3.x branch and is fixed in 3.4.0
26256 # but the check would be too complicated to get 3.4.
26257 # Instead, rule out any 3.x compiler.
26259 # Note that the flag didn't exist before gcc 3.0
26260 optCFLAGS="$optCFLAGS -fno-loop-optimize"
26263 { echo "$as_me:$LINENO: result: $optCFLAGS" >&5
26264 echo "${ECHO_T}$optCFLAGS" >&6; }
26265 # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
26266 if test "x$cflags_set" != "xyes" ; then
26267 CFLAGS="$optCFLAGS $CFLAGS"
26271 if test x$lt_cv_prog_gnu_ld = xyes ; then
26272 LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
26292 { echo "$as_me:$LINENO: result: " >&5
26293 echo "${ECHO_T}" >&6; }
26294 { echo "$as_me:$LINENO: result: ${T_MD}Check for Java bindings...${T_ME}" >&5
26295 echo "${ECHO_T}${T_MD}Check for Java bindings...${T_ME}" >&6; }
26298 # Check whether --enable-java was given.
26299 if test "${enable_java+set}" = set; then
26300 enableval=$enable_java; want_java=$enableval
26305 if test "x$want_java" != "xyes" ; then
26306 { echo "$as_me:$LINENO: checking whether to compile java bindings" >&5
26307 echo $ECHO_N "checking whether to compile java bindings... $ECHO_C" >&6; }
26308 { echo "$as_me:$LINENO: result: disabled by user" >&5
26309 echo "${ECHO_T}disabled by user" >&6; }
26310 use_java="disabled by user"
26312 # Extract the first word of "javac", so it can be a program name with args.
26313 set dummy javac; ac_word=$2
26314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26316 if test "${ac_cv_path_JAVAC+set}" = set; then
26317 echo $ECHO_N "(cached) $ECHO_C" >&6
26321 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
26324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26325 for as_dir in $PATH
26328 test -z "$as_dir" && as_dir=.
26329 for ac_exec_ext in '' $ac_executable_extensions; do
26330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26331 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
26332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26339 test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="`which javac`"
26343 JAVAC=$ac_cv_path_JAVAC
26344 if test -n "$JAVAC"; then
26345 { echo "$as_me:$LINENO: result: $JAVAC" >&5
26346 echo "${ECHO_T}$JAVAC" >&6; }
26348 { echo "$as_me:$LINENO: result: no" >&5
26349 echo "${ECHO_T}no" >&6; }
26353 # Extract the first word of "java ", so it can be a program name with args.
26354 set dummy java ; ac_word=$2
26355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26357 if test "${ac_cv_path_JAVA+set}" = set; then
26358 echo $ECHO_N "(cached) $ECHO_C" >&6
26362 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
26365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26366 for as_dir in $PATH
26369 test -z "$as_dir" && as_dir=.
26370 for ac_exec_ext in '' $ac_executable_extensions; do
26371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26372 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
26373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26380 test -z "$ac_cv_path_JAVA" && ac_cv_path_JAVA="`which java`"
26384 JAVA=$ac_cv_path_JAVA
26385 if test -n "$JAVA"; then
26386 { echo "$as_me:$LINENO: result: $JAVA" >&5
26387 echo "${ECHO_T}$JAVA" >&6; }
26389 { echo "$as_me:$LINENO: result: no" >&5
26390 echo "${ECHO_T}no" >&6; }
26394 # Extract the first word of "jar ", so it can be a program name with args.
26395 set dummy jar ; ac_word=$2
26396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26398 if test "${ac_cv_path_JAR+set}" = set; then
26399 echo $ECHO_N "(cached) $ECHO_C" >&6
26403 ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
26406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26407 for as_dir in $PATH
26410 test -z "$as_dir" && as_dir=.
26411 for ac_exec_ext in '' $ac_executable_extensions; do
26412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26413 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
26414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26421 test -z "$ac_cv_path_JAR" && ac_cv_path_JAR="`which jar`"
26425 JAR=$ac_cv_path_JAR
26426 if test -n "$JAR"; then
26427 { echo "$as_me:$LINENO: result: $JAR" >&5
26428 echo "${ECHO_T}$JAR" >&6; }
26430 { echo "$as_me:$LINENO: result: no" >&5
26431 echo "${ECHO_T}no" >&6; }
26436 for ac_header in jni.h
26438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26443 echo $ECHO_N "(cached) $ECHO_C" >&6
26445 ac_res=`eval echo '${'$as_ac_Header'}'`
26446 { echo "$as_me:$LINENO: result: $ac_res" >&5
26447 echo "${ECHO_T}$ac_res" >&6; }
26449 # Is the header compilable?
26450 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26452 cat >conftest.$ac_ext <<_ACEOF
26455 cat confdefs.h >>conftest.$ac_ext
26456 cat >>conftest.$ac_ext <<_ACEOF
26457 /* end confdefs.h. */
26458 $ac_includes_default
26459 #include <$ac_header>
26461 rm -f conftest.$ac_objext
26462 if { (ac_try="$ac_compile"
26463 case "(($ac_try" in
26464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26465 *) ac_try_echo=$ac_try;;
26467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26468 (eval "$ac_compile") 2>conftest.er1
26470 grep -v '^ *+' conftest.er1 >conftest.err
26472 cat conftest.err >&5
26473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26474 (exit $ac_status); } && {
26475 test -z "$ac_c_werror_flag" ||
26476 test ! -s conftest.err
26477 } && test -s conftest.$ac_objext; then
26478 ac_header_compiler=yes
26480 echo "$as_me: failed program was:" >&5
26481 sed 's/^/| /' conftest.$ac_ext >&5
26483 ac_header_compiler=no
26486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26487 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26488 echo "${ECHO_T}$ac_header_compiler" >&6; }
26490 # Is the header present?
26491 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26493 cat >conftest.$ac_ext <<_ACEOF
26496 cat confdefs.h >>conftest.$ac_ext
26497 cat >>conftest.$ac_ext <<_ACEOF
26498 /* end confdefs.h. */
26499 #include <$ac_header>
26501 if { (ac_try="$ac_cpp conftest.$ac_ext"
26502 case "(($ac_try" in
26503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26504 *) ac_try_echo=$ac_try;;
26506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26509 grep -v '^ *+' conftest.er1 >conftest.err
26511 cat conftest.err >&5
26512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26513 (exit $ac_status); } >/dev/null && {
26514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26515 test ! -s conftest.err
26517 ac_header_preproc=yes
26519 echo "$as_me: failed program was:" >&5
26520 sed 's/^/| /' conftest.$ac_ext >&5
26522 ac_header_preproc=no
26525 rm -f conftest.err conftest.$ac_ext
26526 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26527 echo "${ECHO_T}$ac_header_preproc" >&6; }
26529 # So? What about this header?
26530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26535 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26536 ac_header_preproc=yes
26539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26543 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26544 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26545 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26546 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26549 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26550 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26552 ## -------------------------------------------------- ##
26553 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
26554 ## -------------------------------------------------- ##
26556 ) | sed "s/^/$as_me: WARNING: /" >&2
26559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26562 echo $ECHO_N "(cached) $ECHO_C" >&6
26564 eval "$as_ac_Header=\$ac_header_preproc"
26566 ac_res=`eval echo '${'$as_ac_Header'}'`
26567 { echo "$as_me:$LINENO: result: $ac_res" >&5
26568 echo "${ECHO_T}$ac_res" >&6; }
26571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26572 cat >>confdefs.h <<_ACEOF
26573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26580 { echo "$as_me:$LINENO: checking whether to compile java bindings" >&5
26581 echo $ECHO_N "checking whether to compile java bindings... $ECHO_C" >&6; }
26582 if test -n "$JAVAC" \
26583 && test -n "$JAVA" \
26584 && test -n "$JAR" \
26585 && test "x$ac_cv_header_jni_h" = "xyes" ; then
26591 { echo "$as_me:$LINENO: result: $use_java" >&5
26592 echo "${ECHO_T}$use_java" >&6; }
26594 if test "x$use_java" = "xyes"; then
26596 HAVE_JAVA_FALSE='#'
26603 #####################
26604 ## Check for programs
26608 { echo "$as_me:$LINENO: result: " >&5
26609 echo "${ECHO_T}" >&6; }
26610 { echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
26611 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6; }
26613 # Extract the first word of "bash", so it can be a program name with args.
26614 set dummy bash; ac_word=$2
26615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26617 if test "${ac_cv_prog_BASH+set}" = set; then
26618 echo $ECHO_N "(cached) $ECHO_C" >&6
26620 if test -n "$BASH"; then
26621 ac_cv_prog_BASH="$BASH" # Let the user override the test.
26623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26624 for as_dir in $PATH
26627 test -z "$as_dir" && as_dir=.
26628 for ac_exec_ext in '' $ac_executable_extensions; do
26629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26630 ac_cv_prog_BASH="`which bash`"
26631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26638 test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
26641 BASH=$ac_cv_prog_BASH
26642 if test -n "$BASH"; then
26643 { echo "$as_me:$LINENO: result: $BASH" >&5
26644 echo "${ECHO_T}$BASH" >&6; }
26646 { echo "$as_me:$LINENO: result: no" >&5
26647 echo "${ECHO_T}no" >&6; }
26651 WARNING="This file is generated, do not edit"
26655 # Can we rebuild the parsers?
26656 # We really want flex and refuse other lex. So, the parser is portable and
26657 # does not induce extra lib dependency
26658 for ac_prog in flex lex
26660 # Extract the first word of "$ac_prog", so it can be a program name with args.
26661 set dummy $ac_prog; ac_word=$2
26662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26664 if test "${ac_cv_prog_LEX+set}" = set; then
26665 echo $ECHO_N "(cached) $ECHO_C" >&6
26667 if test -n "$LEX"; then
26668 ac_cv_prog_LEX="$LEX" # Let the user override the test.
26670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26671 for as_dir in $PATH
26674 test -z "$as_dir" && as_dir=.
26675 for ac_exec_ext in '' $ac_executable_extensions; do
26676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26677 ac_cv_prog_LEX="$ac_prog"
26678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26687 LEX=$ac_cv_prog_LEX
26688 if test -n "$LEX"; then
26689 { echo "$as_me:$LINENO: result: $LEX" >&5
26690 echo "${ECHO_T}$LEX" >&6; }
26692 { echo "$as_me:$LINENO: result: no" >&5
26693 echo "${ECHO_T}no" >&6; }
26697 test -n "$LEX" && break
26699 test -n "$LEX" || LEX=":"
26701 if test "x$LEX" != "x:"; then
26702 cat >conftest.l <<_ACEOF
26708 e { yyless (input () != 0); }
26709 f { unput (yytext[0]); }
26710 . { BEGIN INITIAL; }
26712 #ifdef YYTEXT_POINTER
26713 extern char *yytext;
26718 return ! yylex () + ! yywrap ();
26721 { (ac_try="$LEX conftest.l"
26722 case "(($ac_try" in
26723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26724 *) ac_try_echo=$ac_try;;
26726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26727 (eval "$LEX conftest.l") 2>&5
26729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26730 (exit $ac_status); }
26731 { echo "$as_me:$LINENO: checking lex output file root" >&5
26732 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
26733 if test "${ac_cv_prog_lex_root+set}" = set; then
26734 echo $ECHO_N "(cached) $ECHO_C" >&6
26737 if test -f lex.yy.c; then
26738 ac_cv_prog_lex_root=lex.yy
26739 elif test -f lexyy.c; then
26740 ac_cv_prog_lex_root=lexyy
26742 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
26743 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
26744 { (exit 1); exit 1; }; }
26747 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
26748 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
26749 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
26751 if test -z "${LEXLIB+set}"; then
26752 { echo "$as_me:$LINENO: checking lex library" >&5
26753 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
26754 if test "${ac_cv_lib_lex+set}" = set; then
26755 echo $ECHO_N "(cached) $ECHO_C" >&6
26759 ac_cv_lib_lex='none needed'
26760 for ac_lib in '' -lfl -ll; do
26761 LIBS="$ac_lib $ac_save_LIBS"
26762 cat >conftest.$ac_ext <<_ACEOF
26763 `cat $LEX_OUTPUT_ROOT.c`
26765 rm -f conftest.$ac_objext conftest$ac_exeext
26766 if { (ac_try="$ac_link"
26767 case "(($ac_try" in
26768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26769 *) ac_try_echo=$ac_try;;
26771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26772 (eval "$ac_link") 2>conftest.er1
26774 grep -v '^ *+' conftest.er1 >conftest.err
26776 cat conftest.err >&5
26777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26778 (exit $ac_status); } && {
26779 test -z "$ac_c_werror_flag" ||
26780 test ! -s conftest.err
26781 } && test -s conftest$ac_exeext &&
26782 $as_test_x conftest$ac_exeext; then
26783 ac_cv_lib_lex=$ac_lib
26785 echo "$as_me: failed program was:" >&5
26786 sed 's/^/| /' conftest.$ac_ext >&5
26791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26792 conftest$ac_exeext conftest.$ac_ext
26793 test "$ac_cv_lib_lex" != 'none needed' && break
26798 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
26799 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
26800 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
26804 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
26805 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
26806 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
26807 echo $ECHO_N "(cached) $ECHO_C" >&6
26809 # POSIX says lex can declare yytext either as a pointer or an array; the
26810 # default is implementation-dependent. Figure out which it is, since
26811 # not all implementations provide the %pointer and %array declarations.
26812 ac_cv_prog_lex_yytext_pointer=no
26814 LIBS="$LEXLIB $ac_save_LIBS"
26815 cat >conftest.$ac_ext <<_ACEOF
26816 #define YYTEXT_POINTER 1
26817 `cat $LEX_OUTPUT_ROOT.c`
26819 rm -f conftest.$ac_objext conftest$ac_exeext
26820 if { (ac_try="$ac_link"
26821 case "(($ac_try" in
26822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26823 *) ac_try_echo=$ac_try;;
26825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26826 (eval "$ac_link") 2>conftest.er1
26828 grep -v '^ *+' conftest.er1 >conftest.err
26830 cat conftest.err >&5
26831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26832 (exit $ac_status); } && {
26833 test -z "$ac_c_werror_flag" ||
26834 test ! -s conftest.err
26835 } && test -s conftest$ac_exeext &&
26836 $as_test_x conftest$ac_exeext; then
26837 ac_cv_prog_lex_yytext_pointer=yes
26839 echo "$as_me: failed program was:" >&5
26840 sed 's/^/| /' conftest.$ac_ext >&5
26845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26846 conftest$ac_exeext conftest.$ac_ext
26850 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
26851 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
26852 if test $ac_cv_prog_lex_yytext_pointer = yes; then
26854 cat >>confdefs.h <<\_ACEOF
26855 #define YYTEXT_POINTER 1
26859 rm -f conftest.l $LEX_OUTPUT_ROOT.c
26863 if test "$LEX" != flex; then
26864 { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
26865 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
26866 LEX=${am_missing_run}flex
26870 if test "x2.5.30" != "x" ; then
26871 FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
26873 FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
26874 FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
26875 FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
26877 WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
26878 WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
26879 WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
26881 if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
26882 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED" ||
26883 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
26885 { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
26886 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
26887 LEX=${am_missing_run}flex
26891 { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
26892 echo "$as_me: Flex found. Parsers will get updated" >&6;}
26898 # Can we rebuild the xml-lexers from the XML specification?
26899 # if not, simply touch the flex source files (which are distributed in
26900 # tarballs even if generated by flexml) and hope for the best.
26901 # Extract the first word of "flexml", so it can be a program name with args.
26902 set dummy flexml; ac_word=$2
26903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26905 if test "${ac_cv_prog_FLEXML+set}" = set; then
26906 echo $ECHO_N "(cached) $ECHO_C" >&6
26908 if test -n "$FLEXML"; then
26909 ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
26911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26912 for as_dir in $PATH
26915 test -z "$as_dir" && as_dir=.
26916 for ac_exec_ext in '' $ac_executable_extensions; do
26917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26918 ac_cv_prog_FLEXML="`which flexml`"
26919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26926 test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
26929 FLEXML=$ac_cv_prog_FLEXML
26930 if test -n "$FLEXML"; then
26931 { echo "$as_me:$LINENO: result: $FLEXML" >&5
26932 echo "${ECHO_T}$FLEXML" >&6; }
26934 { echo "$as_me:$LINENO: result: no" >&5
26935 echo "${ECHO_T}no" >&6; }
26939 if test x$FLEXML != xNOTFOUND; then
26941 HAVE_FLEXML_FALSE='#'
26943 HAVE_FLEXML_TRUE='#'
26948 if test x$USE_MAINTAINER_MODE = xyes
26950 # Check for doxygen when in maintainer mode since dist* targets fail
26952 # Extract the first word of "doxygen", so it can be a program name with args.
26953 set dummy doxygen; ac_word=$2
26954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26956 if test "${ac_cv_path_DOXYGEN+set}" = set; then
26957 echo $ECHO_N "(cached) $ECHO_C" >&6
26961 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
26964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26965 for as_dir in $PATH
26968 test -z "$as_dir" && as_dir=.
26969 for ac_exec_ext in '' $ac_executable_extensions; do
26970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26971 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
26972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26979 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
26983 DOXYGEN=$ac_cv_path_DOXYGEN
26984 if test -n "$DOXYGEN"; then
26985 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
26986 echo "${ECHO_T}$DOXYGEN" >&6; }
26988 { echo "$as_me:$LINENO: result: no" >&5
26989 echo "${ECHO_T}no" >&6; }
26993 if test x$DOXYGEN = x ; then
26994 { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
26995 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
26996 { (exit 1); exit 1; }; }
27000 # Can we extract really usable backtraces? (also need the popen function)
27001 # Extract the first word of "addr2line", so it can be a program name with args.
27002 set dummy addr2line; ac_word=$2
27003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27005 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
27006 echo $ECHO_N "(cached) $ECHO_C" >&6
27010 ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
27013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27014 for as_dir in $PATH
27017 test -z "$as_dir" && as_dir=.
27018 for ac_exec_ext in '' $ac_executable_extensions; do
27019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27020 ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
27021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27031 ADDR2LINE=$ac_cv_path_ADDR2LINE
27032 if test -n "$ADDR2LINE"; then
27033 { echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
27034 echo "${ECHO_T}$ADDR2LINE" >&6; }
27036 { echo "$as_me:$LINENO: result: no" >&5
27037 echo "${ECHO_T}no" >&6; }
27041 if test x$ADDR2LINE != x ; then
27043 cat >>confdefs.h <<_ACEOF
27044 #define ADDR2LINE "$ADDR2LINE"
27050 # Can we make status line about the compilation result?
27051 # Extract the first word of "md5sum", so it can be a program name with args.
27052 set dummy md5sum; ac_word=$2
27053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27055 if test "${ac_cv_prog_MD5SUM+set}" = set; then
27056 echo $ECHO_N "(cached) $ECHO_C" >&6
27058 if test -n "$MD5SUM"; then
27059 ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
27061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27062 for as_dir in $PATH
27065 test -z "$as_dir" && as_dir=.
27066 for ac_exec_ext in '' $ac_executable_extensions; do
27067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27068 ac_cv_prog_MD5SUM="`which md5sum`"
27069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27078 MD5SUM=$ac_cv_prog_MD5SUM
27079 if test -n "$MD5SUM"; then
27080 { echo "$as_me:$LINENO: result: $MD5SUM" >&5
27081 echo "${ECHO_T}$MD5SUM" >&6; }
27083 { echo "$as_me:$LINENO: result: no" >&5
27084 echo "${ECHO_T}no" >&6; }
27088 if test x$MD5SUM != xno ; then
27089 build_version=`find -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
27090 xargs cat| $MD5SUM | sed 's/ .*$//'`
27092 build_version="no_md5sum_binary"
27094 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
27097 ###################
27098 ## Makes the output
27103 # examples/gras/chord/Makefile examples/gras/chord/test_sg examples/gras/chord/test_rl
27104 # src/amok/Makefile
27107 { echo "$as_me:$LINENO: result: " >&5
27108 echo "${ECHO_T}" >&6; }
27109 { echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
27110 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6; }
27113 # Core of the libraries
27115 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
27118 # Tools being embeeded in gramine (stub generator)
27119 ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile tools/tesh/Makefile"
27123 # GRAMINE_CUT_BEGIN
27125 # Tools NOT being embeeded in gramine
27126 ac_config_files="$ac_config_files tools/graspe-slave"
27131 ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage"
27135 ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
27140 # examples/gras/p2p/Makefile
27141 # examples/gras/p2p/chord/Makefile
27142 # examples/gras/p2p/can/Makefile
27144 if test "x$use_java" = "xyes" ; then
27145 ac_config_files="$ac_config_files examples/java/Makefile examples/java/basic/Makefile examples/java/comm_time/Makefile examples/java/suspend/Makefile examples/java/ping_pong/Makefile"
27149 ac_config_files="$ac_config_files examples/Makefile examples/msg/Makefile examples/simdag/Makefile examples/simdag/test_simdag examples/gras/Makefile examples/gras/ping/Makefile examples/gras/rpc/Makefile examples/gras/spawn/Makefile examples/gras/synchro/Makefile examples/gras/timer/Makefile examples/gras/chrono/Makefile examples/gras/mutual_exclusion/simple_token/Makefile examples/gras/mmrpc/Makefile examples/gras/pmm/Makefile examples/gras/all2all/Makefile examples/amok/Makefile examples/amok/bandwidth/Makefile examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl examples/amok/saturate/Makefile examples/amok/saturate/test_sg examples/amok/saturate/test_rl"
27155 cat >confcache <<\_ACEOF
27156 # This file is a shell script that caches the results of configure
27157 # tests run on this system so they can be shared between configure
27158 # scripts and configure runs, see configure's option --config-cache.
27159 # It is not useful on other systems. If it contains results you don't
27160 # want to keep, you may remove or edit it.
27162 # config.status only pays attention to the cache file if you give it
27163 # the --recheck option to rerun configure.
27165 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27166 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27167 # following values.
27171 # The following way of writing the cache mishandles newlines in values,
27172 # but we know of no workaround that is simple, portable, and efficient.
27173 # So, we kill variables containing newlines.
27174 # Ultrix sh set writes to stderr and can't be redirected directly,
27175 # and sets the high bit in the cache file unless we assign to the vars.
27177 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27178 eval ac_val=\$$ac_var
27182 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27183 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27186 _ | IFS | as_nl) ;; #(
27187 *) $as_unset $ac_var ;;
27193 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27194 *${as_nl}ac_space=\ *)
27195 # `set' does not quote correctly, so add quotes (double-quote
27196 # substitution turns \\\\ into \\, and sed turns \\ into \).
27199 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27202 # `set' quotes correctly as required by POSIX, so do not add quotes.
27203 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27212 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27214 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27216 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27217 if test -w "$cache_file"; then
27218 test "x$cache_file" != "x/dev/null" &&
27219 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27220 echo "$as_me: updating cache $cache_file" >&6;}
27221 cat confcache >$cache_file
27223 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27224 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27229 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27230 # Let make expand exec_prefix.
27231 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27233 DEFS=-DHAVE_CONFIG_H
27237 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27238 # 1. Remove the extension, and $U if already installed.
27239 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27240 ac_i=`echo "$ac_i" | sed "$ac_script"`
27241 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27242 # will be set to the directory where LIBOBJS objects are built.
27243 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27244 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27246 LIBOBJS=$ac_libobjs
27248 LTLIBOBJS=$ac_ltlibobjs
27251 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27252 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27253 Usually this means the macro was only invoked conditionally." >&5
27254 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27255 Usually this means the macro was only invoked conditionally." >&2;}
27256 { (exit 1); exit 1; }; }
27258 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
27259 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
27260 Usually this means the macro was only invoked conditionally." >&5
27261 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
27262 Usually this means the macro was only invoked conditionally." >&2;}
27263 { (exit 1); exit 1; }; }
27265 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27266 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27267 Usually this means the macro was only invoked conditionally." >&5
27268 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27269 Usually this means the macro was only invoked conditionally." >&2;}
27270 { (exit 1); exit 1; }; }
27272 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27273 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27274 Usually this means the macro was only invoked conditionally." >&5
27275 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27276 Usually this means the macro was only invoked conditionally." >&2;}
27277 { (exit 1); exit 1; }; }
27279 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27280 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27281 Usually this means the macro was only invoked conditionally." >&5
27282 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27283 Usually this means the macro was only invoked conditionally." >&2;}
27284 { (exit 1); exit 1; }; }
27286 if test -z "${GRAS_ARCH_32_BITS_TRUE}" && test -z "${GRAS_ARCH_32_BITS_FALSE}"; then
27287 { { echo "$as_me:$LINENO: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
27288 Usually this means the macro was only invoked conditionally." >&5
27289 echo "$as_me: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
27290 Usually this means the macro was only invoked conditionally." >&2;}
27291 { (exit 1); exit 1; }; }
27293 if test -z "${CONTEXT_THREADS_TRUE}" && test -z "${CONTEXT_THREADS_FALSE}"; then
27294 { { echo "$as_me:$LINENO: error: conditional \"CONTEXT_THREADS\" was never defined.
27295 Usually this means the macro was only invoked conditionally." >&5
27296 echo "$as_me: error: conditional \"CONTEXT_THREADS\" was never defined.
27297 Usually this means the macro was only invoked conditionally." >&2;}
27298 { (exit 1); exit 1; }; }
27300 if test -z "${HAVE_GTNETS_TRUE}" && test -z "${HAVE_GTNETS_FALSE}"; then
27301 { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTNETS\" was never defined.
27302 Usually this means the macro was only invoked conditionally." >&5
27303 echo "$as_me: error: conditional \"HAVE_GTNETS\" was never defined.
27304 Usually this means the macro was only invoked conditionally." >&2;}
27305 { (exit 1); exit 1; }; }
27307 if test -z "${HAVE_SDP_TRUE}" && test -z "${HAVE_SDP_FALSE}"; then
27308 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDP\" was never defined.
27309 Usually this means the macro was only invoked conditionally." >&5
27310 echo "$as_me: error: conditional \"HAVE_SDP\" was never defined.
27311 Usually this means the macro was only invoked conditionally." >&2;}
27312 { (exit 1); exit 1; }; }
27314 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
27315 { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
27316 Usually this means the macro was only invoked conditionally." >&5
27317 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
27318 Usually this means the macro was only invoked conditionally." >&2;}
27319 { (exit 1); exit 1; }; }
27321 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27322 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27323 Usually this means the macro was only invoked conditionally." >&5
27324 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27325 Usually this means the macro was only invoked conditionally." >&2;}
27326 { (exit 1); exit 1; }; }
27328 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
27329 { { echo "$as_me:$LINENO: error: conditional \"HAVE_JAVA\" was never defined.
27330 Usually this means the macro was only invoked conditionally." >&5
27331 echo "$as_me: error: conditional \"HAVE_JAVA\" was never defined.
27332 Usually this means the macro was only invoked conditionally." >&2;}
27333 { (exit 1); exit 1; }; }
27335 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
27336 { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
27337 Usually this means the macro was only invoked conditionally." >&5
27338 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
27339 Usually this means the macro was only invoked conditionally." >&2;}
27340 { (exit 1); exit 1; }; }
27343 : ${CONFIG_STATUS=./config.status}
27344 ac_clean_files_save=$ac_clean_files
27345 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27346 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27347 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27348 cat >$CONFIG_STATUS <<_ACEOF
27350 # Generated by $as_me.
27351 # Run this file to recreate the current configuration.
27352 # Compiler output produced by configure, useful for debugging
27353 # configure, is in config.log if it exists.
27356 ac_cs_recheck=false
27358 SHELL=\${CONFIG_SHELL-$SHELL}
27361 cat >>$CONFIG_STATUS <<\_ACEOF
27362 ## --------------------- ##
27363 ## M4sh Initialization. ##
27364 ## --------------------- ##
27366 # Be more Bourne compatible
27367 DUALCASE=1; export DUALCASE # for MKS sh
27368 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27371 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27372 # is contrary to our usage. Disable this feature.
27373 alias -g '${1+"$@"}'='"$@"'
27374 setopt NO_GLOB_SUBST
27376 case `(set -o) 2>/dev/null` in
27377 *posix*) set -o posix ;;
27386 # Avoid depending upon Character Ranges.
27387 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27388 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27389 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27390 as_cr_digits='0123456789'
27391 as_cr_alnum=$as_cr_Letters$as_cr_digits
27393 # The user is always right.
27394 if test "${PATH_SEPARATOR+set}" != set; then
27395 echo "#! /bin/sh" >conf$$.sh
27396 echo "exit 0" >>conf$$.sh
27398 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27406 # Support unset when possible.
27407 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27415 # We need space, tab and new line, in precisely that order. Quoting is
27416 # there to prevent editors from complaining about space-tab.
27417 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27418 # splitting by setting IFS to empty value.)
27423 # Find who we are. Look in the path if we contain no directory separator.
27425 *[\\/]* ) as_myself=$0 ;;
27426 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27427 for as_dir in $PATH
27430 test -z "$as_dir" && as_dir=.
27431 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27437 # We did not find ourselves, most probably we were run as `sh COMMAND'
27438 # in which case we are not to be found in the path.
27439 if test "x$as_myself" = x; then
27442 if test ! -f "$as_myself"; then
27443 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27444 { (exit 1); exit 1; }
27447 # Work around bugs in pre-3.0 UWIN ksh.
27448 for as_var in ENV MAIL MAILPATH
27449 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27457 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27458 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27459 LC_TELEPHONE LC_TIME
27461 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27462 eval $as_var=C; export $as_var
27464 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27468 # Required to use basename.
27469 if expr a : '\(a\)' >/dev/null 2>&1 &&
27470 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27476 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27477 as_basename=basename
27483 # Name of the executable.
27484 as_me=`$as_basename -- "$0" ||
27485 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27486 X"$0" : 'X\(//\)$' \| \
27487 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27489 sed '/^.*\/\([^/][^/]*\)\/*$/{
27508 as_lineno_1=$LINENO
27509 as_lineno_2=$LINENO
27510 test "x$as_lineno_1" != "x$as_lineno_2" &&
27511 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27513 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27514 # uniformly replaced by the line number. The first 'sed' inserts a
27515 # line-number line after each line using $LINENO; the second 'sed'
27516 # does the real work. The second script uses 'N' to pair each
27517 # line-number line with the line containing $LINENO, and appends
27518 # trailing '-' during substitution so that $LINENO is not a special
27519 # case at line end.
27520 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27521 # scripts with optimization help from Paolo Bonzini. Blame Lee
27522 # E. McMahon (1931-1989) for sed's syntax. :-)
27534 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27537 ' >$as_me.lineno &&
27538 chmod +x "$as_me.lineno" ||
27539 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27540 { (exit 1); exit 1; }; }
27542 # Don't try to exec as it changes $[0], causing all sort of problems
27543 # (the dirname of $[0] is not the place where we might find the
27544 # original and so on. Autoconf is especially sensitive to this).
27545 . "./$as_me.lineno"
27546 # Exit status is that of the last command.
27551 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27557 ECHO_C= ECHO_N= ECHO_T=
27558 case `echo -n x` in
27560 case `echo 'x\c'` in
27561 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27568 if expr a : '\(a\)' >/dev/null 2>&1 &&
27569 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27575 rm -f conf$$ conf$$.exe conf$$.file
27576 if test -d conf$$.dir; then
27577 rm -f conf$$.dir/conf$$.file
27583 if ln -s conf$$.file conf$$ 2>/dev/null; then
27585 # ... but there are two gotchas:
27586 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27587 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27588 # In both cases, we have to default to `cp -p'.
27589 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27591 elif ln conf$$.file conf$$ 2>/dev/null; then
27596 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27597 rmdir conf$$.dir 2>/dev/null
27599 if mkdir -p . 2>/dev/null; then
27602 test -d ./-p && rmdir ./-p
27606 if test -x / >/dev/null 2>&1; then
27607 as_test_x='test -x'
27609 if ls -dL / >/dev/null 2>&1; then
27616 if test -d "$1"; then
27622 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27623 ???[sx]*):;;*)false;;esac;fi
27627 as_executable_p=$as_test_x
27629 # Sed expression to map a string onto a valid CPP name.
27630 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27632 # Sed expression to map a string onto a valid variable name.
27633 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27638 # Save the log message, to keep $[0] and so on meaningful, and to
27639 # report actual input values of CONFIG_FILES etc. instead of their
27640 # values after options handling.
27642 This file was extended by simgrid $as_me 3.3-cvs, which was
27643 generated by GNU Autoconf 2.61. Invocation command line was
27645 CONFIG_FILES = $CONFIG_FILES
27646 CONFIG_HEADERS = $CONFIG_HEADERS
27647 CONFIG_LINKS = $CONFIG_LINKS
27648 CONFIG_COMMANDS = $CONFIG_COMMANDS
27651 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27656 cat >>$CONFIG_STATUS <<_ACEOF
27657 # Files that config.status was made for.
27658 config_files="$ac_config_files"
27659 config_headers="$ac_config_headers"
27660 config_commands="$ac_config_commands"
27664 cat >>$CONFIG_STATUS <<\_ACEOF
27666 \`$as_me' instantiates files from templates according to the
27667 current configuration.
27669 Usage: $0 [OPTIONS] [FILE]...
27671 -h, --help print this help, then exit
27672 -V, --version print version number and configuration settings, then exit
27673 -q, --quiet do not print progress messages
27674 -d, --debug don't remove temporary files
27675 --recheck update $as_me by reconfiguring in the same conditions
27676 --file=FILE[:TEMPLATE]
27677 instantiate the configuration file FILE
27678 --header=FILE[:TEMPLATE]
27679 instantiate the configuration header FILE
27681 Configuration files:
27684 Configuration headers:
27687 Configuration commands:
27690 Report bugs to <bug-autoconf@gnu.org>."
27693 cat >>$CONFIG_STATUS <<_ACEOF
27695 simgrid config.status 3.3-cvs
27696 configured by $0, generated by GNU Autoconf 2.61,
27697 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27699 Copyright (C) 2006 Free Software Foundation, Inc.
27700 This config.status script is free software; the Free Software Foundation
27701 gives unlimited permission to copy, distribute and modify it."
27709 cat >>$CONFIG_STATUS <<\_ACEOF
27710 # If no file are specified by the user, then we need to provide default
27711 # value. By we need to know if files were specified by the user.
27717 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27718 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27729 # Handling of the options.
27730 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27732 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27733 echo "$ac_cs_version"; exit ;;
27734 --debug | --debu | --deb | --de | --d | -d )
27736 --file | --fil | --fi | --f )
27738 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27739 ac_need_defaults=false;;
27740 --header | --heade | --head | --hea )
27742 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27743 ac_need_defaults=false;;
27745 # Conflict between --help and --header
27746 { echo "$as_me: error: ambiguous option: $1
27747 Try \`$0 --help' for more information." >&2
27748 { (exit 1); exit 1; }; };;
27749 --help | --hel | -h )
27750 echo "$ac_cs_usage"; exit ;;
27751 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27752 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27755 # This is an error.
27756 -*) { echo "$as_me: error: unrecognized option: $1
27757 Try \`$0 --help' for more information." >&2
27758 { (exit 1); exit 1; }; } ;;
27760 *) ac_config_targets="$ac_config_targets $1"
27761 ac_need_defaults=false ;;
27767 ac_configure_extra_args=
27769 if $ac_cs_silent; then
27771 ac_configure_extra_args="$ac_configure_extra_args --silent"
27775 cat >>$CONFIG_STATUS <<_ACEOF
27776 if \$ac_cs_recheck; then
27777 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27778 CONFIG_SHELL=$SHELL
27779 export CONFIG_SHELL
27780 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27784 cat >>$CONFIG_STATUS <<\_ACEOF
27788 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27789 ## Running $as_me. ##
27795 cat >>$CONFIG_STATUS <<_ACEOF
27799 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27803 cat >>$CONFIG_STATUS <<\_ACEOF
27805 # Handling of arguments.
27806 for ac_config_target in $ac_config_targets
27808 case $ac_config_target in
27809 "src/gras_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
27810 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27811 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27812 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
27813 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27814 "src/ucontext_stack.h") CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
27815 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
27816 "tools/gras/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
27817 "tools/tesh/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tesh/Makefile" ;;
27818 "tools/graspe-slave") CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
27819 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
27820 "testsuite/run_tests") CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
27821 "testsuite/gras/trp_tcp_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_tcp_usage" ;;
27822 "testsuite/gras/trp_file_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_file_usage" ;;
27823 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27824 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
27825 "examples/java/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/Makefile" ;;
27826 "examples/java/basic/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/basic/Makefile" ;;
27827 "examples/java/comm_time/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/comm_time/Makefile" ;;
27828 "examples/java/suspend/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/suspend/Makefile" ;;
27829 "examples/java/ping_pong/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/ping_pong/Makefile" ;;
27830 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
27831 "examples/msg/Makefile") CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
27832 "examples/simdag/Makefile") CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
27833 "examples/simdag/test_simdag") CONFIG_FILES="$CONFIG_FILES examples/simdag/test_simdag" ;;
27834 "examples/gras/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
27835 "examples/gras/ping/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
27836 "examples/gras/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
27837 "examples/gras/spawn/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/spawn/Makefile" ;;
27838 "examples/gras/synchro/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/synchro/Makefile" ;;
27839 "examples/gras/timer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
27840 "examples/gras/chrono/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
27841 "examples/gras/mutual_exclusion/simple_token/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
27842 "examples/gras/mmrpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
27843 "examples/gras/pmm/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
27844 "examples/gras/all2all/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
27845 "examples/amok/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
27846 "examples/amok/bandwidth/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/Makefile" ;;
27847 "examples/amok/bandwidth/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_sg" ;;
27848 "examples/amok/bandwidth/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_rl" ;;
27849 "examples/amok/saturate/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/Makefile" ;;
27850 "examples/amok/saturate/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_sg" ;;
27851 "examples/amok/saturate/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_rl" ;;
27853 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27854 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27855 { (exit 1); exit 1; }; };;
27860 # If the user did not use the arguments to specify the items to instantiate,
27861 # then the envvar interface is used. Set only those that are not.
27862 # We use the long form for the default assignment because of an extremely
27863 # bizarre bug on SunOS 4.1.3.
27864 if $ac_need_defaults; then
27865 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27866 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27867 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27870 # Have a temporary directory for convenience. Make it in the build tree
27871 # simply because there is no reason against having it here, and in addition,
27872 # creating and moving files from /tmp can sometimes cause problems.
27873 # Hook for its removal unless debugging.
27874 # Note that there is a small window in which the directory will not be cleaned:
27875 # after its creation but before its name has been assigned to `$tmp'.
27879 trap 'exit_status=$?
27880 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27882 trap '{ (exit 1); exit 1; }' 1 2 13 15
27884 # Create a (secure) tmp directory for tmp files.
27887 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27888 test -n "$tmp" && test -d "$tmp"
27891 tmp=./conf$$-$RANDOM
27892 (umask 077 && mkdir "$tmp")
27895 echo "$me: cannot create a temporary directory in ." >&2
27896 { (exit 1); exit 1; }
27900 # Set up the sed scripts for CONFIG_FILES section.
27903 # No need to generate the scripts if there are no CONFIG_FILES.
27904 # This happens for instance when ./config.status config.h
27905 if test -n "$CONFIG_FILES"; then
27912 for ac_last_try in false false false false false :; do
27913 cat >conf$$subs.sed <<_ACEOF
27914 SHELL!$SHELL$ac_delim
27915 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27916 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27917 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27918 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27919 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27920 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27921 exec_prefix!$exec_prefix$ac_delim
27922 prefix!$prefix$ac_delim
27923 program_transform_name!$program_transform_name$ac_delim
27924 bindir!$bindir$ac_delim
27925 sbindir!$sbindir$ac_delim
27926 libexecdir!$libexecdir$ac_delim
27927 datarootdir!$datarootdir$ac_delim
27928 datadir!$datadir$ac_delim
27929 sysconfdir!$sysconfdir$ac_delim
27930 sharedstatedir!$sharedstatedir$ac_delim
27931 localstatedir!$localstatedir$ac_delim
27932 includedir!$includedir$ac_delim
27933 oldincludedir!$oldincludedir$ac_delim
27934 docdir!$docdir$ac_delim
27935 infodir!$infodir$ac_delim
27936 htmldir!$htmldir$ac_delim
27937 dvidir!$dvidir$ac_delim
27938 pdfdir!$pdfdir$ac_delim
27939 psdir!$psdir$ac_delim
27940 libdir!$libdir$ac_delim
27941 localedir!$localedir$ac_delim
27942 mandir!$mandir$ac_delim
27943 DEFS!$DEFS$ac_delim
27944 ECHO_C!$ECHO_C$ac_delim
27945 ECHO_N!$ECHO_N$ac_delim
27946 ECHO_T!$ECHO_T$ac_delim
27947 LIBS!$LIBS$ac_delim
27948 build_alias!$build_alias$ac_delim
27949 host_alias!$host_alias$ac_delim
27950 target_alias!$target_alias$ac_delim
27951 build!$build$ac_delim
27952 build_cpu!$build_cpu$ac_delim
27953 build_vendor!$build_vendor$ac_delim
27954 build_os!$build_os$ac_delim
27955 host!$host$ac_delim
27956 host_cpu!$host_cpu$ac_delim
27957 host_vendor!$host_vendor$ac_delim
27958 host_os!$host_os$ac_delim
27959 target!$target$ac_delim
27960 target_cpu!$target_cpu$ac_delim
27961 target_vendor!$target_vendor$ac_delim
27962 target_os!$target_os$ac_delim
27964 GCJFLAGS!$GCJFLAGS$ac_delim
27965 am__leading_dot!$am__leading_dot$ac_delim
27966 DEPDIR!$DEPDIR$ac_delim
27967 am__include!$am__include$ac_delim
27968 am__quote!$am__quote$ac_delim
27969 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27970 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27971 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27972 GCJDEPMODE!$GCJDEPMODE$ac_delim
27973 am__fastdepGCJ_TRUE!$am__fastdepGCJ_TRUE$ac_delim
27974 am__fastdepGCJ_FALSE!$am__fastdepGCJ_FALSE$ac_delim
27975 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27976 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27977 INSTALL_DATA!$INSTALL_DATA$ac_delim
27978 am__isrc!$am__isrc$ac_delim
27979 CYGPATH_W!$CYGPATH_W$ac_delim
27980 PACKAGE!$PACKAGE$ac_delim
27981 VERSION!$VERSION$ac_delim
27982 ACLOCAL!$ACLOCAL$ac_delim
27983 AUTOCONF!$AUTOCONF$ac_delim
27984 AUTOMAKE!$AUTOMAKE$ac_delim
27985 AUTOHEADER!$AUTOHEADER$ac_delim
27986 MAKEINFO!$MAKEINFO$ac_delim
27987 install_sh!$install_sh$ac_delim
27988 STRIP!$STRIP$ac_delim
27989 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27990 mkdir_p!$mkdir_p$ac_delim
27992 SET_MAKE!$SET_MAKE$ac_delim
27993 AMTAR!$AMTAR$ac_delim
27994 am__tar!$am__tar$ac_delim
27995 am__untar!$am__untar$ac_delim
27997 CFLAGS!$CFLAGS$ac_delim
27998 LDFLAGS!$LDFLAGS$ac_delim
27999 CPPFLAGS!$CPPFLAGS$ac_delim
28000 ac_ct_CC!$ac_ct_CC$ac_delim
28001 EXEEXT!$EXEEXT$ac_delim
28002 OBJEXT!$OBJEXT$ac_delim
28003 CCDEPMODE!$CCDEPMODE$ac_delim
28004 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
28005 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
28007 GREP!$GREP$ac_delim
28008 EGREP!$EGREP$ac_delim
28009 LN_S!$LN_S$ac_delim
28010 ECHO!$ECHO$ac_delim
28013 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28015 elif $ac_last_try; then
28016 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28017 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28018 { (exit 1); exit 1; }; }
28020 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28024 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28025 if test -n "$ac_eof"; then
28026 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28027 ac_eof=`expr $ac_eof + 1`
28030 cat >>$CONFIG_STATUS <<_ACEOF
28031 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
28032 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28035 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28036 s/^/s,@/; s/!/@,|#_!!_#|/
28039 s/'"$ac_delim"'$/,g/; t
28041 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28042 ' >>$CONFIG_STATUS <conf$$subs.sed
28043 rm -f conf$$subs.sed
28044 cat >>$CONFIG_STATUS <<_ACEOF
28050 for ac_last_try in false false false false false :; do
28051 cat >conf$$subs.sed <<_ACEOF
28053 RANLIB!$RANLIB$ac_delim
28054 DLLTOOL!$DLLTOOL$ac_delim
28056 OBJDUMP!$OBJDUMP$ac_delim
28059 CXXFLAGS!$CXXFLAGS$ac_delim
28060 ac_ct_CXX!$ac_ct_CXX$ac_delim
28061 CXXDEPMODE!$CXXDEPMODE$ac_delim
28062 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
28063 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
28064 CXXCPP!$CXXCPP$ac_delim
28065 LIBTOOL!$LIBTOOL$ac_delim
28066 LIBOBJS!$LIBOBJS$ac_delim
28067 GRAS_ARCH_32_BITS_TRUE!$GRAS_ARCH_32_BITS_TRUE$ac_delim
28068 GRAS_ARCH_32_BITS_FALSE!$GRAS_ARCH_32_BITS_FALSE$ac_delim
28069 CONTEXT_THREADS_TRUE!$CONTEXT_THREADS_TRUE$ac_delim
28070 CONTEXT_THREADS_FALSE!$CONTEXT_THREADS_FALSE$ac_delim
28071 PTH_STACK_GROWTH!$PTH_STACK_GROWTH$ac_delim
28072 pth_skaddr_makecontext!$pth_skaddr_makecontext$ac_delim
28073 pth_sksize_makecontext!$pth_sksize_makecontext$ac_delim
28074 HAVE_GTNETS_TRUE!$HAVE_GTNETS_TRUE$ac_delim
28075 HAVE_GTNETS_FALSE!$HAVE_GTNETS_FALSE$ac_delim
28076 HAVE_SDP_TRUE!$HAVE_SDP_TRUE$ac_delim
28077 HAVE_SDP_FALSE!$HAVE_SDP_FALSE$ac_delim
28078 SIMGRID_DEP!$SIMGRID_DEP$ac_delim
28079 SMPI_DEP!$SMPI_DEP$ac_delim
28080 GRAS_DEP!$GRAS_DEP$ac_delim
28081 GRAMINE_MODE_TRUE!$GRAMINE_MODE_TRUE$ac_delim
28082 GRAMINE_MODE_FALSE!$GRAMINE_MODE_FALSE$ac_delim
28083 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
28084 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
28085 MAINT!$MAINT$ac_delim
28086 LD_DYNAMIC_FLAGS!$LD_DYNAMIC_FLAGS$ac_delim
28087 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
28088 abs_builddir!$abs_builddir$ac_delim
28089 abs_srcdir!$abs_srcdir$ac_delim
28090 abs_top_builddir!$abs_top_builddir$ac_delim
28091 abs_top_srcdir!$abs_top_srcdir$ac_delim
28092 JAVAC!$JAVAC$ac_delim
28093 JAVA!$JAVA$ac_delim
28095 HAVE_JAVA_TRUE!$HAVE_JAVA_TRUE$ac_delim
28096 HAVE_JAVA_FALSE!$HAVE_JAVA_FALSE$ac_delim
28097 BASH!$BASH$ac_delim
28098 WARNING!$WARNING$ac_delim
28100 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
28101 LEXLIB!$LEXLIB$ac_delim
28102 FLEXML!$FLEXML$ac_delim
28103 HAVE_FLEXML_TRUE!$HAVE_FLEXML_TRUE$ac_delim
28104 HAVE_FLEXML_FALSE!$HAVE_FLEXML_FALSE$ac_delim
28105 DOXYGEN!$DOXYGEN$ac_delim
28106 ADDR2LINE!$ADDR2LINE$ac_delim
28107 ac_configure_args!$ac_configure_args$ac_delim
28108 MD5SUM!$MD5SUM$ac_delim
28109 build_id!$build_id$ac_delim
28110 LTLIBOBJS!$LTLIBOBJS$ac_delim
28113 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 59; then
28115 elif $ac_last_try; then
28116 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28117 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28118 { (exit 1); exit 1; }; }
28120 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28124 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28125 if test -n "$ac_eof"; then
28126 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28127 ac_eof=`expr $ac_eof + 1`
28130 cat >>$CONFIG_STATUS <<_ACEOF
28131 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28132 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28135 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28136 s/^/s,@/; s/!/@,|#_!!_#|/
28139 s/'"$ac_delim"'$/,g/; t
28141 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28142 ' >>$CONFIG_STATUS <conf$$subs.sed
28143 rm -f conf$$subs.sed
28144 cat >>$CONFIG_STATUS <<_ACEOF
28151 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28152 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28153 # trailing colons and then remove the whole line if VPATH becomes empty
28154 # (actually we leave an empty line to preserve line numbers).
28155 if test "x$srcdir" = x.; then
28156 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28157 s/:*\$(srcdir):*/:/
28158 s/:*\${srcdir}:*/:/
28160 s/^\([^=]*=[ ]*\):*/\1/
28166 cat >>$CONFIG_STATUS <<\_ACEOF
28167 fi # test -n "$CONFIG_FILES"
28170 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
28173 :[FHLC]) ac_mode=$ac_tag; continue;;
28175 case $ac_mode$ac_tag in
28177 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
28178 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
28179 { (exit 1); exit 1; }; };;
28180 :[FH]-) ac_tag=-:-;;
28181 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28198 -) ac_f="$tmp/stdin";;
28199 *) # Look for the file first in the build tree, then in the source tree
28200 # (if the path is not absolute). The absolute path cannot be DOS-style,
28201 # because $ac_f cannot contain `:'.
28205 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28207 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28208 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28209 { (exit 1); exit 1; }; };;
28211 ac_file_inputs="$ac_file_inputs $ac_f"
28214 # Let's still pretend it is `configure' which instantiates (i.e., don't
28215 # use $as_me), people would be surprised to read:
28216 # /* config.h. Generated by config.status. */
28217 configure_input="Generated from "`IFS=:
28218 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28219 if test x"$ac_file" != x-; then
28220 configure_input="$ac_file. $configure_input"
28221 { echo "$as_me:$LINENO: creating $ac_file" >&5
28222 echo "$as_me: creating $ac_file" >&6;}
28226 *:-:* | *:-) cat >"$tmp/stdin";;
28231 ac_dir=`$as_dirname -- "$ac_file" ||
28232 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28233 X"$ac_file" : 'X\(//\)[^/]' \| \
28234 X"$ac_file" : 'X\(//\)$' \| \
28235 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28241 /^X\(\/\/\)[^/].*/{
28256 -*) as_dir=./$as_dir;;
28258 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28262 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28263 *) as_qdir=$as_dir;;
28265 as_dirs="'$as_qdir' $as_dirs"
28266 as_dir=`$as_dirname -- "$as_dir" ||
28267 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28268 X"$as_dir" : 'X\(//\)[^/]' \| \
28269 X"$as_dir" : 'X\(//\)$' \| \
28270 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28276 /^X\(\/\/\)[^/].*/{
28289 test -d "$as_dir" && break
28291 test -z "$as_dirs" || eval "mkdir $as_dirs"
28292 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28293 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28294 { (exit 1); exit 1; }; }; }
28298 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28300 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28301 # A ".." for each directory in $ac_dir_suffix.
28302 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28303 case $ac_top_builddir_sub in
28304 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28305 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28308 ac_abs_top_builddir=$ac_pwd
28309 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28310 # for backward compatibility:
28311 ac_top_builddir=$ac_top_build_prefix
28314 .) # We are building in place.
28316 ac_top_srcdir=$ac_top_builddir_sub
28317 ac_abs_top_srcdir=$ac_pwd ;;
28318 [\\/]* | ?:[\\/]* ) # Absolute name.
28319 ac_srcdir=$srcdir$ac_dir_suffix;
28320 ac_top_srcdir=$srcdir
28321 ac_abs_top_srcdir=$srcdir ;;
28322 *) # Relative name.
28323 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28324 ac_top_srcdir=$ac_top_build_prefix$srcdir
28325 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28327 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28337 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28338 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28340 ac_MKDIR_P=$MKDIR_P
28342 [\\/$]* | ?:[\\/]* ) ;;
28343 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28347 cat >>$CONFIG_STATUS <<\_ACEOF
28348 # If the template does not know about datarootdir, expand it.
28349 # FIXME: This hack should be removed a few years after 2.60.
28350 ac_datarootdir_hack=; ac_datarootdir_seen=
28352 case `sed -n '/datarootdir/ {
28361 ' $ac_file_inputs` in
28362 *datarootdir*) ac_datarootdir_seen=yes;;
28363 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28364 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28365 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28367 cat >>$CONFIG_STATUS <<_ACEOF
28368 ac_datarootdir_hack='
28369 s&@datadir@&$datadir&g
28370 s&@docdir@&$docdir&g
28371 s&@infodir@&$infodir&g
28372 s&@localedir@&$localedir&g
28373 s&@mandir@&$mandir&g
28374 s&\\\${datarootdir}&$datarootdir&g' ;;
28378 # Neutralize VPATH when `$srcdir' = `.'.
28379 # Shell code in configure.ac might set extrasub.
28380 # FIXME: do we really want to maintain this feature?
28381 cat >>$CONFIG_STATUS <<_ACEOF
28385 cat >>$CONFIG_STATUS <<\_ACEOF
28387 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28388 s&@configure_input@&$configure_input&;t t
28389 s&@top_builddir@&$ac_top_builddir_sub&;t t
28390 s&@srcdir@&$ac_srcdir&;t t
28391 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28392 s&@top_srcdir@&$ac_top_srcdir&;t t
28393 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28394 s&@builddir@&$ac_builddir&;t t
28395 s&@abs_builddir@&$ac_abs_builddir&;t t
28396 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28397 s&@INSTALL@&$ac_INSTALL&;t t
28398 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28399 $ac_datarootdir_hack
28400 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
28402 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28403 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28404 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28405 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28406 which seems to be undefined. Please make sure it is defined." >&5
28407 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28408 which seems to be undefined. Please make sure it is defined." >&2;}
28412 -) cat "$tmp/out"; rm -f "$tmp/out";;
28413 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28422 # Transform confdefs.h into a sed script `conftest.defines', that
28423 # substitutes the proper values into config.h.in to produce config.h.
28424 rm -f conftest.defines conftest.tail
28425 # First, append a space to every undef/define line, to ease matching.
28426 echo 's/$/ /' >conftest.defines
28427 # Then, protect against being on the right side of a sed subst, or in
28428 # an unquoted here document, in config.status. If some macros were
28429 # called several times there might be several #defines for the same
28430 # symbol, which is useless. But do not sort them, since the last
28431 # AC_DEFINE must be honored.
28432 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28433 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28434 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28435 # PARAMS is the parameter list in the macro definition--in most cases, it's
28436 # just an empty string.
28437 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
28438 ac_dB='\\)[ (].*,\\1define\\2'
28446 s/^[ ]*#[ ]*define[ ][ ]*//
28451 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28452 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28453 ' >>conftest.defines
28455 # Remove the space that was appended to ease matching.
28456 # Then replace #undef with comments. This is necessary, for
28457 # example, in the case of _POSIX_SOURCE, which is predefined and required
28458 # on some systems where configure will not decide to define it.
28459 # (The regexp can be short, since the line contains either #define or #undef.)
28461 s,^[ #]*u.*,/* & */,' >>conftest.defines
28463 # Break up conftest.defines:
28464 ac_max_sed_lines=50
28466 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28467 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28468 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28470 ac_in='$ac_file_inputs'
28471 ac_out='"$tmp/out1"'
28472 ac_nxt='"$tmp/out2"'
28476 # Write a here document:
28477 cat >>$CONFIG_STATUS <<_ACEOF
28478 # First, check the format of the line:
28479 cat >"\$tmp/defines.sed" <<\\CEOF
28480 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
28481 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
28485 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28487 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28488 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28489 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28490 grep . conftest.tail >/dev/null || break
28491 rm -f conftest.defines
28492 mv conftest.tail conftest.defines
28494 rm -f conftest.defines conftest.tail
28496 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28497 cat >>$CONFIG_STATUS <<\_ACEOF
28498 if test x"$ac_file" != x-; then
28499 echo "/* $configure_input */" >"$tmp/config.h"
28500 cat "$ac_result" >>"$tmp/config.h"
28501 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28502 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28503 echo "$as_me: $ac_file is unchanged" >&6;}
28506 mv "$tmp/config.h" $ac_file
28509 echo "/* $configure_input */"
28513 # Compute $ac_file's index in $config_headers.
28515 for _am_header in $config_headers :; do
28516 case $_am_header in
28517 $ac_file | $ac_file:* )
28520 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28523 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
28524 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28525 X$ac_file : 'X\(//\)[^/]' \| \
28526 X$ac_file : 'X\(//\)$' \| \
28527 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
28529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28533 /^X\(\/\/\)[^/].*/{
28545 s/.*/./; q'`/stamp-h$_am_stamp_count
28548 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
28549 echo "$as_me: executing $ac_file commands" >&6;}
28554 case $ac_file$ac_mode in
28555 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28556 # Strip MF so we end up with the name of the file.
28557 mf=`echo "$mf" | sed -e 's/:.*$//'`
28558 # Check whether this is an Automake generated Makefile or not.
28559 # We used to match only the files named `Makefile.in', but
28560 # some people rename them; so instead we look at the file content.
28561 # Grep'ing the first line is not enough: some people post-process
28562 # each Makefile.in and add a new line on top of each file to say so.
28563 # Grep'ing the whole file is not good either: AIX grep has a line
28564 # limit of 2048, but all sed's we know have understand at least 4000.
28565 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
28566 dirpart=`$as_dirname -- "$mf" ||
28567 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28568 X"$mf" : 'X\(//\)[^/]' \| \
28569 X"$mf" : 'X\(//\)$' \| \
28570 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28576 /^X\(\/\/\)[^/].*/{
28592 # Extract the definition of DEPDIR, am__include, and am__quote
28593 # from the Makefile without running `make'.
28594 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28595 test -z "$DEPDIR" && continue
28596 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28597 test -z "am__include" && continue
28598 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28599 # When using ansi2knr, U may be empty or an underscore; expand it
28600 U=`sed -n 's/^U = //p' < "$mf"`
28601 # Find all dependency output files, they are included files with
28602 # $(DEPDIR) in their names. We invoke sed twice because it is the
28603 # simplest approach to changing $(DEPDIR) to its actual value in the
28605 for file in `sed -n "
28606 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28607 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28608 # Make sure the directory exists.
28609 test -f "$dirpart/$file" && continue
28610 fdir=`$as_dirname -- "$file" ||
28611 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28612 X"$file" : 'X\(//\)[^/]' \| \
28613 X"$file" : 'X\(//\)$' \| \
28614 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28620 /^X\(\/\/\)[^/].*/{
28633 { as_dir=$dirpart/$fdir
28635 -*) as_dir=./$as_dir;;
28637 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28641 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28642 *) as_qdir=$as_dir;;
28644 as_dirs="'$as_qdir' $as_dirs"
28645 as_dir=`$as_dirname -- "$as_dir" ||
28646 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28647 X"$as_dir" : 'X\(//\)[^/]' \| \
28648 X"$as_dir" : 'X\(//\)$' \| \
28649 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28655 /^X\(\/\/\)[^/].*/{
28668 test -d "$as_dir" && break
28670 test -z "$as_dirs" || eval "mkdir $as_dirs"
28671 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28672 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28673 { (exit 1); exit 1; }; }; }
28674 # echo "creating $dirpart/$file"
28675 echo '# dummy' > "$dirpart/$file"
28679 "tools/graspe-slave":F)
28681 tools/graspe-slave tools/graspe-master \
28683 test -e $file && chmod +x $file; \
28686 "testsuite/Makefile":F)
28688 testsuite/run_tests \
28689 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28691 test -e $file && chmod +x $file; \
28694 "testsuite/run_tests":F)
28696 testsuite/run_tests \
28697 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28699 test -e $file && chmod +x $file; \
28702 "testsuite/gras/trp_tcp_usage":F)
28704 testsuite/run_tests \
28705 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28707 test -e $file && chmod +x $file; \
28710 "testsuite/gras/trp_file_usage":F)
28712 testsuite/run_tests \
28713 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28715 test -e $file && chmod +x $file; \
28718 "examples/Makefile":F)
28721 examples/simdag/test_simdag \
28722 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28723 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28725 test -e $file && chmod +x $file; \
28728 "examples/msg/Makefile":F)
28731 examples/simdag/test_simdag \
28732 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28733 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28735 test -e $file && chmod +x $file; \
28738 "examples/simdag/Makefile":F)
28741 examples/simdag/test_simdag \
28742 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28743 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28745 test -e $file && chmod +x $file; \
28748 "examples/simdag/test_simdag":F)
28751 examples/simdag/test_simdag \
28752 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28753 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28755 test -e $file && chmod +x $file; \
28758 "examples/gras/Makefile":F)
28761 examples/simdag/test_simdag \
28762 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28763 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28765 test -e $file && chmod +x $file; \
28768 "examples/gras/ping/Makefile":F)
28771 examples/simdag/test_simdag \
28772 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28773 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28775 test -e $file && chmod +x $file; \
28778 "examples/gras/rpc/Makefile":F)
28781 examples/simdag/test_simdag \
28782 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28783 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28785 test -e $file && chmod +x $file; \
28788 "examples/gras/spawn/Makefile":F)
28791 examples/simdag/test_simdag \
28792 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28793 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28795 test -e $file && chmod +x $file; \
28798 "examples/gras/synchro/Makefile":F)
28801 examples/simdag/test_simdag \
28802 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28803 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28805 test -e $file && chmod +x $file; \
28808 "examples/gras/timer/Makefile":F)
28811 examples/simdag/test_simdag \
28812 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28813 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28815 test -e $file && chmod +x $file; \
28818 "examples/gras/chrono/Makefile":F)
28821 examples/simdag/test_simdag \
28822 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28823 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28825 test -e $file && chmod +x $file; \
28828 "examples/gras/mutual_exclusion/simple_token/Makefile":F)
28831 examples/simdag/test_simdag \
28832 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28833 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28835 test -e $file && chmod +x $file; \
28838 "examples/gras/mmrpc/Makefile":F)
28841 examples/simdag/test_simdag \
28842 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28843 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28845 test -e $file && chmod +x $file; \
28848 "examples/gras/pmm/Makefile":F)
28851 examples/simdag/test_simdag \
28852 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28853 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28855 test -e $file && chmod +x $file; \
28858 "examples/gras/all2all/Makefile":F)
28861 examples/simdag/test_simdag \
28862 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28863 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28865 test -e $file && chmod +x $file; \
28868 "examples/amok/Makefile":F)
28871 examples/simdag/test_simdag \
28872 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28873 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28875 test -e $file && chmod +x $file; \
28878 "examples/amok/bandwidth/Makefile":F)
28881 examples/simdag/test_simdag \
28882 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28883 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28885 test -e $file && chmod +x $file; \
28888 "examples/amok/bandwidth/test_sg":F)
28891 examples/simdag/test_simdag \
28892 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28893 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28895 test -e $file && chmod +x $file; \
28898 "examples/amok/bandwidth/test_rl":F)
28901 examples/simdag/test_simdag \
28902 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28903 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28905 test -e $file && chmod +x $file; \
28908 "examples/amok/saturate/Makefile":F)
28911 examples/simdag/test_simdag \
28912 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28913 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28915 test -e $file && chmod +x $file; \
28918 "examples/amok/saturate/test_sg":F)
28921 examples/simdag/test_simdag \
28922 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28923 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28925 test -e $file && chmod +x $file; \
28928 "examples/amok/saturate/test_rl":F)
28931 examples/simdag/test_simdag \
28932 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28933 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28935 test -e $file && chmod +x $file; \
28943 { (exit 0); exit 0; }
28945 chmod +x $CONFIG_STATUS
28946 ac_clean_files=$ac_clean_files_save
28949 # configure is writing to config.log, and then calls config.status.
28950 # config.status does its own redirection, appending to config.log.
28951 # Unfortunately, on DOS this fails, as config.log is still kept open
28952 # by configure, so config.status won't be able to write to it; its
28953 # output is simply discarded. So we exec the FD to /dev/null,
28954 # effectively closing config.log, so it can be properly (re)opened and
28955 # appended to by config.status. When coming back to configure, we
28956 # need to make the FD available again.
28957 if test "$no_create" != yes; then
28959 ac_config_status_args=
28960 test "$silent" = yes &&
28961 ac_config_status_args="$ac_config_status_args --quiet"
28963 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28965 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28966 # would make configure fail if this is the last instruction.
28967 $ac_cs_success || { (exit 1); exit 1; }
28973 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
28975 Compiler: ${CC} (version: ${GCC_VERSION})
28978 CPPFlags: ${CPPFLAGS}
28979 LDFlags: ${LDFLAGS}
28981 Context backend: ${with_context}
28984 if test -e CVS && test x$USE_MAINTAINER_MODE != xyes ; then
28986 echo "WARNING: you seem to compile the CVS version without the maintainer mode."
28987 echo "WARNING: You won't be able to build archives that way (make dist is likely to fail). "
28988 echo "WARNING: If you want to enable the maintainer mode, juste specify it like this:"
28990 echo "WARNING: ./configure '--enable-maintainer-mode' $ac_configure_args"
28993 echo $build_id > stamp.configure