2 # From configure.ac Revision: 1.170 .
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
886 GRAS_ARCH_32_BITS_TRUE
887 GRAS_ARCH_32_BITS_FALSE
889 pth_skaddr_makecontext
890 pth_sksize_makecontext
903 MAINTAINER_MODE_FALSE
930 ac_precious_vars='build_alias
945 # Initialize some variables set by options.
947 ac_init_version=false
948 # The variables have the same names as the options, with
949 # dashes changed to underlines.
957 program_transform_name=s,x,x,
965 # Installation directory options.
966 # These are left unexpanded so users can "make install exec_prefix=/foo"
967 # and all the variables that are supposed to be based on exec_prefix
968 # by default will actually change.
969 # Use braces instead of parens because sh, perl, etc. also accept them.
970 # (The list follows the same order as the GNU Coding Standards.)
971 bindir='${exec_prefix}/bin'
972 sbindir='${exec_prefix}/sbin'
973 libexecdir='${exec_prefix}/libexec'
974 datarootdir='${prefix}/share'
975 datadir='${datarootdir}'
976 sysconfdir='${prefix}/etc'
977 sharedstatedir='${prefix}/com'
978 localstatedir='${prefix}/var'
979 includedir='${prefix}/include'
980 oldincludedir='/usr/include'
981 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
982 infodir='${datarootdir}/info'
987 libdir='${exec_prefix}/lib'
988 localedir='${datarootdir}/locale'
989 mandir='${datarootdir}/man'
995 # If the previous option needs an argument, assign it.
996 if test -n "$ac_prev"; then
997 eval $ac_prev=\$ac_option
1003 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1007 # Accept the important Cygnus configure options, so we can diagnose typos.
1009 case $ac_dashdash$ac_option in
1013 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1015 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1016 bindir=$ac_optarg ;;
1018 -build | --build | --buil | --bui | --bu)
1019 ac_prev=build_alias ;;
1020 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1021 build_alias=$ac_optarg ;;
1023 -cache-file | --cache-file | --cache-fil | --cache-fi \
1024 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1025 ac_prev=cache_file ;;
1026 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1027 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1028 cache_file=$ac_optarg ;;
1030 --config-cache | -C)
1031 cache_file=config.cache ;;
1033 -datadir | --datadir | --datadi | --datad)
1035 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1036 datadir=$ac_optarg ;;
1038 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1039 | --dataroo | --dataro | --datar)
1040 ac_prev=datarootdir ;;
1041 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1042 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1043 datarootdir=$ac_optarg ;;
1045 -disable-* | --disable-*)
1046 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1049 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1050 { (exit 1); exit 1; }; }
1051 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1052 eval enable_$ac_feature=no ;;
1054 -docdir | --docdir | --docdi | --doc | --do)
1056 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1057 docdir=$ac_optarg ;;
1059 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1062 dvidir=$ac_optarg ;;
1064 -enable-* | --enable-*)
1065 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1068 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1069 { (exit 1); exit 1; }; }
1070 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1071 eval enable_$ac_feature=\$ac_optarg ;;
1073 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1074 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1075 | --exec | --exe | --ex)
1076 ac_prev=exec_prefix ;;
1077 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1078 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1079 | --exec=* | --exe=* | --ex=*)
1080 exec_prefix=$ac_optarg ;;
1082 -gas | --gas | --ga | --g)
1083 # Obsolete; use --with-gas.
1086 -help | --help | --hel | --he | -h)
1087 ac_init_help=long ;;
1088 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1089 ac_init_help=recursive ;;
1090 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1091 ac_init_help=short ;;
1093 -host | --host | --hos | --ho)
1094 ac_prev=host_alias ;;
1095 -host=* | --host=* | --hos=* | --ho=*)
1096 host_alias=$ac_optarg ;;
1098 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1100 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1102 htmldir=$ac_optarg ;;
1104 -includedir | --includedir | --includedi | --included | --include \
1105 | --includ | --inclu | --incl | --inc)
1106 ac_prev=includedir ;;
1107 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1108 | --includ=* | --inclu=* | --incl=* | --inc=*)
1109 includedir=$ac_optarg ;;
1111 -infodir | --infodir | --infodi | --infod | --info | --inf)
1113 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1114 infodir=$ac_optarg ;;
1116 -libdir | --libdir | --libdi | --libd)
1118 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1119 libdir=$ac_optarg ;;
1121 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1122 | --libexe | --libex | --libe)
1123 ac_prev=libexecdir ;;
1124 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1125 | --libexe=* | --libex=* | --libe=*)
1126 libexecdir=$ac_optarg ;;
1128 -localedir | --localedir | --localedi | --localed | --locale)
1129 ac_prev=localedir ;;
1130 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1131 localedir=$ac_optarg ;;
1133 -localstatedir | --localstatedir | --localstatedi | --localstated \
1134 | --localstate | --localstat | --localsta | --localst | --locals)
1135 ac_prev=localstatedir ;;
1136 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1137 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1138 localstatedir=$ac_optarg ;;
1140 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1142 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1143 mandir=$ac_optarg ;;
1145 -nfp | --nfp | --nf)
1146 # Obsolete; use --without-fp.
1149 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1150 | --no-cr | --no-c | -n)
1153 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1154 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1157 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1158 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1159 | --oldin | --oldi | --old | --ol | --o)
1160 ac_prev=oldincludedir ;;
1161 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1162 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1163 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1164 oldincludedir=$ac_optarg ;;
1166 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1168 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1169 prefix=$ac_optarg ;;
1171 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1172 | --program-pre | --program-pr | --program-p)
1173 ac_prev=program_prefix ;;
1174 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1175 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1176 program_prefix=$ac_optarg ;;
1178 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1179 | --program-suf | --program-su | --program-s)
1180 ac_prev=program_suffix ;;
1181 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1182 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1183 program_suffix=$ac_optarg ;;
1185 -program-transform-name | --program-transform-name \
1186 | --program-transform-nam | --program-transform-na \
1187 | --program-transform-n | --program-transform- \
1188 | --program-transform | --program-transfor \
1189 | --program-transfo | --program-transf \
1190 | --program-trans | --program-tran \
1191 | --progr-tra | --program-tr | --program-t)
1192 ac_prev=program_transform_name ;;
1193 -program-transform-name=* | --program-transform-name=* \
1194 | --program-transform-nam=* | --program-transform-na=* \
1195 | --program-transform-n=* | --program-transform-=* \
1196 | --program-transform=* | --program-transfor=* \
1197 | --program-transfo=* | --program-transf=* \
1198 | --program-trans=* | --program-tran=* \
1199 | --progr-tra=* | --program-tr=* | --program-t=*)
1200 program_transform_name=$ac_optarg ;;
1202 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1204 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1205 pdfdir=$ac_optarg ;;
1207 -psdir | --psdir | --psdi | --psd | --ps)
1209 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1213 | -silent | --silent | --silen | --sile | --sil)
1216 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1218 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1220 sbindir=$ac_optarg ;;
1222 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1223 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1224 | --sharedst | --shareds | --shared | --share | --shar \
1226 ac_prev=sharedstatedir ;;
1227 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1228 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1229 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1231 sharedstatedir=$ac_optarg ;;
1233 -site | --site | --sit)
1235 -site=* | --site=* | --sit=*)
1238 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1240 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1241 srcdir=$ac_optarg ;;
1243 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1244 | --syscon | --sysco | --sysc | --sys | --sy)
1245 ac_prev=sysconfdir ;;
1246 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1247 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1248 sysconfdir=$ac_optarg ;;
1250 -target | --target | --targe | --targ | --tar | --ta | --t)
1251 ac_prev=target_alias ;;
1252 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1253 target_alias=$ac_optarg ;;
1255 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1258 -version | --version | --versio | --versi | --vers | -V)
1259 ac_init_version=: ;;
1262 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1263 # Reject names that are not valid shell variable names.
1264 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265 { echo "$as_me: error: invalid package name: $ac_package" >&2
1266 { (exit 1); exit 1; }; }
1267 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1268 eval with_$ac_package=\$ac_optarg ;;
1270 -without-* | --without-*)
1271 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274 { echo "$as_me: error: invalid package name: $ac_package" >&2
1275 { (exit 1); exit 1; }; }
1276 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1277 eval with_$ac_package=no ;;
1280 # Obsolete; use --with-x.
1283 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1284 | --x-incl | --x-inc | --x-in | --x-i)
1285 ac_prev=x_includes ;;
1286 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1287 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1288 x_includes=$ac_optarg ;;
1290 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1291 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1292 ac_prev=x_libraries ;;
1293 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1294 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1295 x_libraries=$ac_optarg ;;
1297 -*) { echo "$as_me: error: unrecognized option: $ac_option
1298 Try \`$0 --help' for more information." >&2
1299 { (exit 1); exit 1; }; }
1303 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1304 # Reject names that are not valid shell variable names.
1305 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1306 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1307 { (exit 1); exit 1; }; }
1308 eval $ac_envvar=\$ac_optarg
1309 export $ac_envvar ;;
1312 # FIXME: should be removed in autoconf 3.0.
1313 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1314 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1315 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1316 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1322 if test -n "$ac_prev"; then
1323 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1324 { echo "$as_me: error: missing argument to $ac_option" >&2
1325 { (exit 1); exit 1; }; }
1328 # Be sure to have absolute directory names.
1329 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1330 datadir sysconfdir sharedstatedir localstatedir includedir \
1331 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1332 libdir localedir mandir
1334 eval ac_val=\$$ac_var
1336 [\\/$]* | ?:[\\/]* ) continue;;
1337 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1339 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1340 { (exit 1); exit 1; }; }
1343 # There might be people who depend on the old broken behavior: `$host'
1344 # used to hold the argument of --host etc.
1345 # FIXME: To remove some day.
1348 target=$target_alias
1350 # FIXME: To remove some day.
1351 if test "x$host_alias" != x; then
1352 if test "x$build_alias" = x; then
1353 cross_compiling=maybe
1354 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1355 If a cross compiler is detected then cross compile mode will be used." >&2
1356 elif test "x$build_alias" != "x$host_alias"; then
1362 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1364 test "$silent" = yes && exec 6>/dev/null
1367 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1368 ac_ls_di=`ls -di .` &&
1369 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1370 { echo "$as_me: error: Working directory cannot be determined" >&2
1371 { (exit 1); exit 1; }; }
1372 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1373 { echo "$as_me: error: pwd does not report name of working directory" >&2
1374 { (exit 1); exit 1; }; }
1377 # Find the source files, if location was not specified.
1378 if test -z "$srcdir"; then
1379 ac_srcdir_defaulted=yes
1380 # Try the directory containing this script, then the parent directory.
1381 ac_confdir=`$as_dirname -- "$0" ||
1382 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1383 X"$0" : 'X\(//\)[^/]' \| \
1384 X"$0" : 'X\(//\)$' \| \
1385 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1409 ac_srcdir_defaulted=no
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1412 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1413 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1414 { (exit 1); exit 1; }; }
1416 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1418 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1419 { (exit 1); exit 1; }; }
1421 # When building in place, set srcdir=.
1422 if test "$ac_abs_confdir" = "$ac_pwd"; then
1425 # Remove unnecessary trailing slashes from srcdir.
1426 # Double slashes in file names in object file debugging info
1427 # mess up M-x gdb in Emacs.
1429 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1431 for ac_var in $ac_precious_vars; do
1432 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1433 eval ac_env_${ac_var}_value=\$${ac_var}
1434 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1435 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1439 # Report the --help message.
1441 if test "$ac_init_help" = "long"; then
1442 # Omit some internal or obsolete options to make the list less imposing.
1443 # This message is too long to be a string in the A/UX 3.1 sh.
1445 \`configure' configures simgrid 3.3-cvs to adapt to many kinds of systems.
1447 Usage: $0 [OPTION]... [VAR=VALUE]...
1449 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1450 VAR=VALUE. See below for descriptions of some of the useful variables.
1452 Defaults for the options are specified in brackets.
1455 -h, --help display this help and exit
1456 --help=short display options specific to this package
1457 --help=recursive display the short help of all the included packages
1458 -V, --version display version information and exit
1459 -q, --quiet, --silent do not print \`checking...' messages
1460 --cache-file=FILE cache test results in FILE [disabled]
1461 -C, --config-cache alias for \`--cache-file=config.cache'
1462 -n, --no-create do not create output files
1463 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1465 Installation directories:
1466 --prefix=PREFIX install architecture-independent files in PREFIX
1467 [$ac_default_prefix]
1468 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1471 By default, \`make install' will install all the files in
1472 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1473 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1474 for instance \`--prefix=\$HOME'.
1476 For better control, use the options below.
1478 Fine tuning of the installation directories:
1479 --bindir=DIR user executables [EPREFIX/bin]
1480 --sbindir=DIR system admin executables [EPREFIX/sbin]
1481 --libexecdir=DIR program executables [EPREFIX/libexec]
1482 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1483 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1484 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1485 --libdir=DIR object code libraries [EPREFIX/lib]
1486 --includedir=DIR C header files [PREFIX/include]
1487 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1488 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1489 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1490 --infodir=DIR info documentation [DATAROOTDIR/info]
1491 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1492 --mandir=DIR man documentation [DATAROOTDIR/man]
1493 --docdir=DIR documentation root [DATAROOTDIR/doc/simgrid]
1494 --htmldir=DIR html documentation [DOCDIR]
1495 --dvidir=DIR dvi documentation [DOCDIR]
1496 --pdfdir=DIR pdf documentation [DOCDIR]
1497 --psdir=DIR ps documentation [DOCDIR]
1503 --program-prefix=PREFIX prepend PREFIX to installed program names
1504 --program-suffix=SUFFIX append SUFFIX to installed program names
1505 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1508 --build=BUILD configure for building on BUILD [guessed]
1509 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1510 --target=TARGET configure for building compilers for TARGET [HOST]
1514 if test -n "$ac_init_help"; then
1515 case $ac_init_help in
1516 short | recursive ) echo "Configuration of simgrid 3.3-cvs:";;
1521 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1522 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1523 --disable-dependency-tracking speeds up one-time build
1524 --enable-dependency-tracking do not reject slow dependency extractors
1525 --enable-shared[=PKGS] build shared libraries [default=yes]
1526 --enable-static[=PKGS] build static libraries [default=yes]
1527 --enable-fast-install[=PKGS]
1528 optimize for fast installation [default=yes]
1529 --disable-libtool-lock avoid locking (might break parallel builds)
1530 --enable-maintainer-mode enable make rules and dependencies not useful
1531 (and sometimes confusing) to the casual installer
1532 --enable-compile-warnings
1533 use compiler warnings (default=no, unless in
1535 --disable-compile-optimizations
1536 use compiler optimizations (default=yes, unless if
1537 CFLAGS is explicitly set)
1538 --disable-java To not compile the Java bindings even if the tools
1542 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1543 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1544 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1545 --with-pic try to use only PIC/non-PIC objects [default=use
1547 --with-tags[=TAGS] include additional configurations [automatic]
1548 --with-pthread Use pthread instead of ucontext.
1549 --with-pthreads Use pthread instead of ucontext.
1550 --with-context=ucontext/pthread Use either (System V) swapcontext or pthread [default=auto].
1551 --with-gtnets Path to GTNetS installation (default to empty, ie
1554 Some influential environment variables:
1555 CC C compiler command
1556 CFLAGS C compiler flags
1557 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1558 nonstandard directory <lib dir>
1559 LIBS libraries to pass to the linker, e.g. -l<library>
1560 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1561 you have headers in a nonstandard directory <include dir>
1563 CXX C++ compiler command
1564 CXXFLAGS C++ compiler flags
1565 CXXCPP C++ preprocessor
1567 Use these variables to override the choices made by `configure' or to help
1568 it to find libraries and programs with nonstandard names/locations.
1570 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1575 if test "$ac_init_help" = "recursive"; then
1576 # If there are subdirs, report their specific --help.
1577 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1578 test -d "$ac_dir" || continue
1582 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1585 # A ".." for each directory in $ac_dir_suffix.
1586 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1587 case $ac_top_builddir_sub in
1588 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1592 ac_abs_top_builddir=$ac_pwd
1593 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1594 # for backward compatibility:
1595 ac_top_builddir=$ac_top_build_prefix
1598 .) # We are building in place.
1600 ac_top_srcdir=$ac_top_builddir_sub
1601 ac_abs_top_srcdir=$ac_pwd ;;
1602 [\\/]* | ?:[\\/]* ) # Absolute name.
1603 ac_srcdir=$srcdir$ac_dir_suffix;
1604 ac_top_srcdir=$srcdir
1605 ac_abs_top_srcdir=$srcdir ;;
1607 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1608 ac_top_srcdir=$ac_top_build_prefix$srcdir
1609 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613 cd "$ac_dir" || { ac_status=$?; continue; }
1614 # Check for guested configure.
1615 if test -f "$ac_srcdir/configure.gnu"; then
1617 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1618 elif test -f "$ac_srcdir/configure"; then
1620 $SHELL "$ac_srcdir/configure" --help=recursive
1622 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624 cd "$ac_pwd" || { ac_status=$?; break; }
1628 test -n "$ac_init_help" && exit $ac_status
1629 if $ac_init_version; then
1631 simgrid configure 3.3-cvs
1632 generated by GNU Autoconf 2.61
1634 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1635 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1636 This configure script is free software; the Free Software Foundation
1637 gives unlimited permission to copy, distribute and modify it.
1641 cat >config.log <<_ACEOF
1642 This file contains any messages produced by compilers while
1643 running configure, to aid debugging if configure makes a mistake.
1645 It was created by simgrid $as_me 3.3-cvs, which was
1646 generated by GNU Autoconf 2.61. Invocation command line was
1658 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1659 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1660 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1661 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1662 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1664 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1665 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1667 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1668 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1669 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1670 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1671 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1672 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1673 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1681 test -z "$as_dir" && as_dir=.
1682 echo "PATH: $as_dir"
1698 # Keep a trace of the command line.
1699 # Strip out --no-create and --no-recursion so they do not pile up.
1700 # Strip out --silent because we don't want to record it for future runs.
1701 # Also quote any args containing shell meta-characters.
1702 # Make two passes to allow for proper duplicate-argument suppression.
1706 ac_must_keep_next=false
1712 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1713 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1714 | -silent | --silent | --silen | --sile | --sil)
1717 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1720 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1722 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1723 if test $ac_must_keep_next = true; then
1724 ac_must_keep_next=false # Got value, back to normal.
1727 *=* | --config-cache | -C | -disable-* | --disable-* \
1728 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1729 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1730 | -with-* | --with-* | -without-* | --without-* | --x)
1731 case "$ac_configure_args0 " in
1732 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1735 -* ) ac_must_keep_next=true ;;
1738 ac_configure_args="$ac_configure_args '$ac_arg'"
1743 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1744 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1746 # When interrupted or exit'd, cleanup temporary files, and complete
1747 # config.log. We remove comments because anyway the quotes in there
1748 # would cause problems or look ugly.
1749 # WARNING: Use '\'' to represent an apostrophe within the trap.
1750 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1751 trap 'exit_status=$?
1752 # Save into config.log some information that might help in debugging.
1757 ## ---------------- ##
1758 ## Cache variables. ##
1759 ## ---------------- ##
1762 # The following way of writing the cache mishandles newlines in values,
1764 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1765 eval ac_val=\$$ac_var
1769 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1770 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1773 _ | IFS | as_nl) ;; #(
1774 *) $as_unset $ac_var ;;
1779 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1780 *${as_nl}ac_space=\ *)
1782 "s/'\''/'\''\\\\'\'''\''/g;
1783 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1786 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1794 ## ----------------- ##
1795 ## Output variables. ##
1796 ## ----------------- ##
1799 for ac_var in $ac_subst_vars
1801 eval ac_val=\$$ac_var
1803 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1805 echo "$ac_var='\''$ac_val'\''"
1809 if test -n "$ac_subst_files"; then
1811 ## ------------------- ##
1812 ## File substitutions. ##
1813 ## ------------------- ##
1816 for ac_var in $ac_subst_files
1818 eval ac_val=\$$ac_var
1820 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1822 echo "$ac_var='\''$ac_val'\''"
1827 if test -s confdefs.h; then
1837 test "$ac_signal" != 0 &&
1838 echo "$as_me: caught signal $ac_signal"
1839 echo "$as_me: exit $exit_status"
1841 rm -f core *.core core.conftest.* &&
1842 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1845 for ac_signal in 1 2 13 15; do
1846 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1850 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1851 rm -f -r conftest* confdefs.h
1853 # Predefined preprocessor variables.
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_NAME "$PACKAGE_NAME"
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1870 cat >>confdefs.h <<_ACEOF
1871 #define PACKAGE_STRING "$PACKAGE_STRING"
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1880 # Let the site file select an alternate cache file if it wants to.
1881 # Prefer explicitly selected file to automatically selected ones.
1882 if test -n "$CONFIG_SITE"; then
1883 set x "$CONFIG_SITE"
1884 elif test "x$prefix" != xNONE; then
1885 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1887 set x "$ac_default_prefix/share/config.site" \
1888 "$ac_default_prefix/etc/config.site"
1893 if test -r "$ac_site_file"; then
1894 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1895 echo "$as_me: loading site script $ac_site_file" >&6;}
1896 sed 's/^/| /' "$ac_site_file" >&5
1901 if test -r "$cache_file"; then
1902 # Some versions of bash will fail to source /dev/null (special
1903 # files actually), so we avoid doing that.
1904 if test -f "$cache_file"; then
1905 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1906 echo "$as_me: loading cache $cache_file" >&6;}
1908 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1909 *) . "./$cache_file";;
1913 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1914 echo "$as_me: creating cache $cache_file" >&6;}
1918 # Check that the precious variables saved in the cache have kept the same
1920 ac_cache_corrupted=false
1921 for ac_var in $ac_precious_vars; do
1922 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1923 eval ac_new_set=\$ac_env_${ac_var}_set
1924 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1925 eval ac_new_val=\$ac_env_${ac_var}_value
1926 case $ac_old_set,$ac_new_set in
1928 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1929 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1930 ac_cache_corrupted=: ;;
1932 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1933 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1934 ac_cache_corrupted=: ;;
1937 if test "x$ac_old_val" != "x$ac_new_val"; then
1938 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1939 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1940 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1941 echo "$as_me: former value: $ac_old_val" >&2;}
1942 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1943 echo "$as_me: current value: $ac_new_val" >&2;}
1944 ac_cache_corrupted=:
1947 # Pass precious variables to config.status.
1948 if test "$ac_new_set" = set; then
1950 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1951 *) ac_arg=$ac_var=$ac_new_val ;;
1953 case " $ac_configure_args " in
1954 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1955 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1959 if $ac_cache_corrupted; then
1960 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1961 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1962 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1963 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1964 { (exit 1); exit 1; }; }
1992 ac_cpp='$CPP $CPPFLAGS'
1993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1999 ac_config_headers="$ac_config_headers src/gras_config.h"
2001 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
2005 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2006 if test -f "$ac_dir/install-sh"; then
2008 ac_install_sh="$ac_aux_dir/install-sh -c"
2010 elif test -f "$ac_dir/install.sh"; then
2012 ac_install_sh="$ac_aux_dir/install.sh -c"
2014 elif test -f "$ac_dir/shtool"; then
2016 ac_install_sh="$ac_aux_dir/shtool install -c"
2020 if test -z "$ac_aux_dir"; then
2021 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2022 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2023 { (exit 1); exit 1; }; }
2026 # These three variables are undocumented and unsupported,
2027 # and are intended to be withdrawn in a future Autoconf release.
2028 # They can cause serious problems if a builder's source tree is in a directory
2029 # whose full name contains unusual characters.
2030 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2031 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2032 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2035 # Make sure we can run config.sub.
2036 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2037 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2038 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2039 { (exit 1); exit 1; }; }
2041 { echo "$as_me:$LINENO: checking build system type" >&5
2042 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2043 if test "${ac_cv_build+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2046 ac_build_alias=$build_alias
2047 test "x$ac_build_alias" = x &&
2048 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2049 test "x$ac_build_alias" = x &&
2050 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2051 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2052 { (exit 1); exit 1; }; }
2053 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2054 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2055 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2056 { (exit 1); exit 1; }; }
2059 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2060 echo "${ECHO_T}$ac_cv_build" >&6; }
2061 case $ac_cv_build in
2063 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2064 echo "$as_me: error: invalid value of canonical build" >&2;}
2065 { (exit 1); exit 1; }; };;
2068 ac_save_IFS=$IFS; IFS='-'
2074 # Remember, the first character of IFS is used to create $*,
2075 # except with old shells:
2078 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2081 { echo "$as_me:$LINENO: checking host system type" >&5
2082 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2083 if test "${ac_cv_host+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 if test "x$host_alias" = x; then
2087 ac_cv_host=$ac_cv_build
2089 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2090 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2091 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2092 { (exit 1); exit 1; }; }
2096 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2097 echo "${ECHO_T}$ac_cv_host" >&6; }
2100 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2101 echo "$as_me: error: invalid value of canonical host" >&2;}
2102 { (exit 1); exit 1; }; };;
2105 ac_save_IFS=$IFS; IFS='-'
2111 # Remember, the first character of IFS is used to create $*,
2112 # except with old shells:
2115 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2118 { echo "$as_me:$LINENO: checking target system type" >&5
2119 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2120 if test "${ac_cv_target+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 if test "x$target_alias" = x; then
2124 ac_cv_target=$ac_cv_host
2126 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2127 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2128 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2129 { (exit 1); exit 1; }; }
2133 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2134 echo "${ECHO_T}$ac_cv_target" >&6; }
2135 case $ac_cv_target in
2137 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2138 echo "$as_me: error: invalid value of canonical target" >&2;}
2139 { (exit 1); exit 1; }; };;
2141 target=$ac_cv_target
2142 ac_save_IFS=$IFS; IFS='-'
2148 # Remember, the first character of IFS is used to create $*,
2149 # except with old shells:
2152 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2155 # The aliases save the names the user supplied, while $host etc.
2156 # will get canonicalized.
2157 test -n "$target_alias" &&
2158 test "$program_prefix$program_suffix$program_transform_name" = \
2160 program_prefix=${target_alias}-
2162 ac_cpp='$CPP $CPPFLAGS'
2163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2167 rm -rf .tst 2>/dev/null
2168 mkdir .tst 2>/dev/null
2169 if test -d .tst; then
2174 rmdir .tst 2>/dev/null
2176 DEPDIR="${am__leading_dot}deps"
2178 ac_config_commands="$ac_config_commands depfiles"
2181 am_make=${MAKE-make}
2182 cat > confinc << 'END'
2187 # If we don't find an include directive, just comment out the code.
2188 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2189 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2193 # First try GNU make style include.
2194 echo "include confinc" > confmf
2195 # We grep out `Entering directory' and `Leaving directory'
2196 # messages which can occur if `w' ends up in MAKEFLAGS.
2197 # In particular we don't look at `^make:' because GNU make might
2198 # be invoked under some other name (usually "gmake"), in which
2199 # case it prints its new name instead of `make'.
2200 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2205 # Now try BSD make style include.
2206 if test "$am__include" = "#"; then
2207 echo '.include "confinc"' > confmf
2208 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2209 am__include=.include
2216 { echo "$as_me:$LINENO: result: $_am_result" >&5
2217 echo "${ECHO_T}$_am_result" >&6; }
2218 rm -f confinc confmf
2220 # Check whether --enable-dependency-tracking was given.
2221 if test "${enable_dependency_tracking+set}" = set; then
2222 enableval=$enable_dependency_tracking;
2225 if test "x$enable_dependency_tracking" != xno; then
2226 am_depcomp="$ac_aux_dir/depcomp"
2229 if test "x$enable_dependency_tracking" != xno; then
2239 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
2241 # Extract the first word of "$ac_prog", so it can be a program name with args.
2242 set dummy $ac_prog; ac_word=$2
2243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2245 if test "${ac_cv_prog_GCJ+set}" = set; then
2246 echo $ECHO_N "(cached) $ECHO_C" >&6
2248 if test -n "$GCJ"; then
2249 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255 test -z "$as_dir" && as_dir=.
2256 for ac_exec_ext in '' $ac_executable_extensions; do
2257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2258 ac_cv_prog_GCJ="$ac_prog"
2259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2269 if test -n "$GCJ"; then
2270 { echo "$as_me:$LINENO: result: $GCJ" >&5
2271 echo "${ECHO_T}$GCJ" >&6; }
2273 { echo "$as_me:$LINENO: result: no" >&5
2274 echo "${ECHO_T}no" >&6; }
2278 test -n "$GCJ" && break
2280 test -n "$GCJ" || GCJ="gcj"
2282 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
2283 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
2284 { (exit 1); exit 1; }; }
2285 if test "x${GCJFLAGS-unset}" = xunset; then
2290 depcc="$GCJ" am_compiler_list='gcc3 gcc'
2292 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2293 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2294 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2298 # We make a subdir and do the tests there. Otherwise we can end up
2299 # making bogus files that we don't know about and never remove. For
2300 # instance it was reported that on HP-UX the gcc test will end up
2301 # making a dummy file named `D' -- because `-MD' means `put the output
2304 # Copy depcomp to subdir because otherwise we won't find it if we're
2305 # using a relative directory.
2306 cp "$am_depcomp" conftest.dir
2308 # We will build objects and dependencies in a subdirectory because
2309 # it helps to detect inapplicable dependency modes. For instance
2310 # both Tru64's cc and ICC support -MD to output dependencies as a
2311 # side effect of compilation, but ICC will put the dependencies in
2312 # the current directory while Tru64 will put them in the object
2316 am_cv_GCJ_dependencies_compiler_type=none
2317 if test "$am_compiler_list" = ""; then
2318 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2320 for depmode in $am_compiler_list; do
2321 # Setup a source with many dependencies, because some compilers
2322 # like to wrap large dependency lists on column 80 (with \), and
2323 # we should not choose a depcomp mode which is confused by this.
2325 # We need to recreate these files for each test, as the compiler may
2326 # overwrite some of them when testing with obscure command lines.
2327 # This happens at least with the AIX C compiler.
2329 for i in 1 2 3 4 5 6; do
2330 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2331 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2332 # Solaris 8's {/usr,}/bin/sh.
2333 touch sub/conftst$i.h
2335 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2339 # after this tag, mechanisms are not by side-effect, so they'll
2340 # only be used when explicitly requested
2341 if test "x$enable_dependency_tracking" = xyes; then
2349 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2350 # mode. It turns out that the SunPro C++ compiler does not properly
2351 # handle `-M -o', and we need to detect this.
2352 if depmode=$depmode \
2353 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2354 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2355 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2356 >/dev/null 2>conftest.err &&
2357 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2358 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2359 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2360 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2361 # icc doesn't choke on unknown options, it will just issue warnings
2362 # or remarks (even with -Werror). So we grep stderr for any message
2363 # that says an option was ignored or not supported.
2364 # When given -MP, icc 7.0 and 7.1 complain thusly:
2365 # icc: Command line warning: ignoring option '-M'; no argument required
2366 # The diagnosis changed in icc 8.0:
2367 # icc: Command line remark: option '-MP' not supported
2368 if (grep 'ignoring option' conftest.err ||
2369 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2370 am_cv_GCJ_dependencies_compiler_type=$depmode
2379 am_cv_GCJ_dependencies_compiler_type=none
2383 { echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
2384 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6; }
2385 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
2388 test "x$enable_dependency_tracking" != xno \
2389 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
2390 am__fastdepGCJ_TRUE=
2391 am__fastdepGCJ_FALSE='#'
2393 am__fastdepGCJ_TRUE='#'
2394 am__fastdepGCJ_FALSE=
2400 am__api_version='1.10'
2402 # Find a good install program. We prefer a C program (faster),
2403 # so one script is as good as another. But avoid the broken or
2404 # incompatible versions:
2405 # SysV /etc/install, /usr/sbin/install
2406 # SunOS /usr/etc/install
2407 # IRIX /sbin/install
2409 # AmigaOS /C/install, which installs bootblocks on floppy discs
2410 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2411 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2412 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2413 # OS/2's system install, which has a completely different semantic
2414 # ./install, which can be erroneously created by make from ./install.sh.
2415 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2416 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2417 if test -z "$INSTALL"; then
2418 if test "${ac_cv_path_install+set}" = set; then
2419 echo $ECHO_N "(cached) $ECHO_C" >&6
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 test -z "$as_dir" && as_dir=.
2426 # Account for people who put trailing slashes in PATH elements.
2428 ./ | .// | /cC/* | \
2429 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2430 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2433 # OSF1 and SCO ODT 3.0 have their own names for install.
2434 # Don't use installbsd from OSF since it installs stuff as root
2436 for ac_prog in ginstall scoinst install; do
2437 for ac_exec_ext in '' $ac_executable_extensions; do
2438 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2439 if test $ac_prog = install &&
2440 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2441 # AIX install. It has an incompatible calling convention.
2443 elif test $ac_prog = install &&
2444 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2445 # program-specific install script used by HP pwplus--don't use.
2448 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2461 if test "${ac_cv_path_install+set}" = set; then
2462 INSTALL=$ac_cv_path_install
2464 # As a last resort, use the slow shell script. Don't cache a
2465 # value for INSTALL within a source directory, because that will
2466 # break other packages using the cache if that directory is
2467 # removed, or if the value is a relative name.
2468 INSTALL=$ac_install_sh
2471 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2472 echo "${ECHO_T}$INSTALL" >&6; }
2474 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2475 # It thinks the first close brace ends the variable substitution.
2476 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2478 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2480 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2482 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2483 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2486 echo timestamp > conftest.file
2487 # Do `set' in a subshell so we don't clobber the current shell's
2488 # arguments. Must try -L first in case configure is actually a
2489 # symlink; some systems play weird games with the mod time of symlinks
2490 # (eg FreeBSD returns the mod time of the symlink's containing
2493 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2494 if test "$*" = "X"; then
2496 set X `ls -t $srcdir/configure conftest.file`
2499 if test "$*" != "X $srcdir/configure conftest.file" \
2500 && test "$*" != "X conftest.file $srcdir/configure"; then
2502 # If neither matched, then we have a broken ls. This can happen
2503 # if, for instance, CONFIG_SHELL is bash and it inherits a
2504 # broken ls alias from the environment. This has actually
2505 # happened. Such a system could not be considered "sane".
2506 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2507 alias in your environment" >&5
2508 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2509 alias in your environment" >&2;}
2510 { (exit 1); exit 1; }; }
2513 test "$2" = conftest.file
2519 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2520 Check your system clock" >&5
2521 echo "$as_me: error: newly created file is older than distributed files!
2522 Check your system clock" >&2;}
2523 { (exit 1); exit 1; }; }
2525 { echo "$as_me:$LINENO: result: yes" >&5
2526 echo "${ECHO_T}yes" >&6; }
2527 test "$program_prefix" != NONE &&
2528 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2529 # Use a double $ so make ignores it.
2530 test "$program_suffix" != NONE &&
2531 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2532 # Double any \ or $. echo might interpret backslashes.
2533 # By default was `s,x,x', remove it if useless.
2534 cat <<\_ACEOF >conftest.sed
2535 s/[\\$]/&&/g;s/;s,x,x,$//
2537 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2540 # expand $ac_aux_dir to an absolute path
2541 am_aux_dir=`cd $ac_aux_dir && pwd`
2543 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2544 # Use eval to expand $SHELL
2545 if eval "$MISSING --run true"; then
2546 am_missing_run="$MISSING --run "
2549 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2550 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2553 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2554 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2555 if test -z "$MKDIR_P"; then
2556 if test "${ac_cv_path_mkdir+set}" = set; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2563 test -z "$as_dir" && as_dir=.
2564 for ac_prog in mkdir gmkdir; do
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2567 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2568 'mkdir (GNU coreutils) '* | \
2569 'mkdir (coreutils) '* | \
2570 'mkdir (fileutils) '4.1*)
2571 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2581 if test "${ac_cv_path_mkdir+set}" = set; then
2582 MKDIR_P="$ac_cv_path_mkdir -p"
2584 # As a last resort, use the slow shell script. Don't cache a
2585 # value for MKDIR_P within a source directory, because that will
2586 # break other packages using the cache if that directory is
2587 # removed, or if the value is a relative name.
2588 test -d ./--version && rmdir ./--version
2589 MKDIR_P="$ac_install_sh -d"
2592 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2593 echo "${ECHO_T}$MKDIR_P" >&6; }
2597 [\\/$]* | ?:[\\/]*) ;;
2598 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2601 for ac_prog in gawk mawk nawk awk
2603 # Extract the first word of "$ac_prog", so it can be a program name with args.
2604 set dummy $ac_prog; ac_word=$2
2605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2607 if test "${ac_cv_prog_AWK+set}" = set; then
2608 echo $ECHO_N "(cached) $ECHO_C" >&6
2610 if test -n "$AWK"; then
2611 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 test -z "$as_dir" && as_dir=.
2618 for ac_exec_ext in '' $ac_executable_extensions; do
2619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2620 ac_cv_prog_AWK="$ac_prog"
2621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2631 if test -n "$AWK"; then
2632 { echo "$as_me:$LINENO: result: $AWK" >&5
2633 echo "${ECHO_T}$AWK" >&6; }
2635 { echo "$as_me:$LINENO: result: no" >&5
2636 echo "${ECHO_T}no" >&6; }
2640 test -n "$AWK" && break
2643 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2644 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2645 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2646 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2647 echo $ECHO_N "(cached) $ECHO_C" >&6
2649 cat >conftest.make <<\_ACEOF
2652 @echo '@@@%%%=$(MAKE)=@@@%%%'
2654 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2655 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2657 eval ac_cv_prog_make_${ac_make}_set=yes;;
2659 eval ac_cv_prog_make_${ac_make}_set=no;;
2663 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2664 { echo "$as_me:$LINENO: result: yes" >&5
2665 echo "${ECHO_T}yes" >&6; }
2668 { echo "$as_me:$LINENO: result: no" >&5
2669 echo "${ECHO_T}no" >&6; }
2670 SET_MAKE="MAKE=${MAKE-make}"
2673 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2674 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2675 # is not polluted with repeated "-I."
2676 am__isrc=' -I$(srcdir)'
2677 # test to see if srcdir already configured
2678 if test -f $srcdir/config.status; then
2679 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2680 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2681 { (exit 1); exit 1; }; }
2685 # test whether we have cygpath
2686 if test -z "$CYGPATH_W"; then
2687 if (cygpath --version) >/dev/null 2>/dev/null; then
2688 CYGPATH_W='cygpath -w'
2695 # Define the identity of the package.
2700 cat >>confdefs.h <<_ACEOF
2701 #define PACKAGE "$PACKAGE"
2705 cat >>confdefs.h <<_ACEOF
2706 #define VERSION "$VERSION"
2709 # Some tools Automake needs.
2711 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2714 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2717 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2720 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2723 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2725 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2727 # Installed binaries are usually stripped using `strip' when the user
2728 # run `make install-strip'. However `strip' might not be the right
2729 # tool to use in cross-compilation environments, therefore Automake
2730 # will honor the `STRIP' environment variable to overrule this program.
2731 if test "$cross_compiling" != no; then
2732 if test -n "$ac_tool_prefix"; then
2733 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2734 set dummy ${ac_tool_prefix}strip; ac_word=$2
2735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2737 if test "${ac_cv_prog_STRIP+set}" = set; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
2740 if test -n "$STRIP"; then
2741 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 test -z "$as_dir" && as_dir=.
2748 for ac_exec_ext in '' $ac_executable_extensions; do
2749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2750 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2760 STRIP=$ac_cv_prog_STRIP
2761 if test -n "$STRIP"; then
2762 { echo "$as_me:$LINENO: result: $STRIP" >&5
2763 echo "${ECHO_T}$STRIP" >&6; }
2765 { echo "$as_me:$LINENO: result: no" >&5
2766 echo "${ECHO_T}no" >&6; }
2771 if test -z "$ac_cv_prog_STRIP"; then
2773 # Extract the first word of "strip", so it can be a program name with args.
2774 set dummy strip; ac_word=$2
2775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2777 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2780 if test -n "$ac_ct_STRIP"; then
2781 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2790 ac_cv_prog_ac_ct_STRIP="strip"
2791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2800 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2801 if test -n "$ac_ct_STRIP"; then
2802 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2803 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2805 { echo "$as_me:$LINENO: result: no" >&5
2806 echo "${ECHO_T}no" >&6; }
2809 if test "x$ac_ct_STRIP" = x; then
2812 case $cross_compiling:$ac_tool_warned in
2814 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2815 whose name does not start with the host triplet. If you think this
2816 configuration is useful to you, please write to autoconf@gnu.org." >&5
2817 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2818 whose name does not start with the host triplet. If you think this
2819 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2820 ac_tool_warned=yes ;;
2825 STRIP="$ac_cv_prog_STRIP"
2829 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2831 # We need awk for the "check" target. The system "awk" is bad on
2833 # Always define AMTAR for backward compatibility.
2835 AMTAR=${AMTAR-"${am_missing_run}tar"}
2837 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2844 ACLOCAL="$ACLOCAL -I acmacro"
2851 # Check whether --enable-shared was given.
2852 if test "${enable_shared+set}" = set; then
2853 enableval=$enable_shared; p=${PACKAGE-default}
2855 yes) enable_shared=yes ;;
2856 no) enable_shared=no ;;
2859 # Look at the argument we got. We use all the common list separators.
2860 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2861 for pkg in $enableval; do
2863 if test "X$pkg" = "X$p"; then
2875 # Check whether --enable-static was given.
2876 if test "${enable_static+set}" = set; then
2877 enableval=$enable_static; p=${PACKAGE-default}
2879 yes) enable_static=yes ;;
2880 no) enable_static=no ;;
2883 # Look at the argument we got. We use all the common list separators.
2884 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2885 for pkg in $enableval; do
2887 if test "X$pkg" = "X$p"; then
2899 # Check whether --enable-fast-install was given.
2900 if test "${enable_fast_install+set}" = set; then
2901 enableval=$enable_fast_install; p=${PACKAGE-default}
2903 yes) enable_fast_install=yes ;;
2904 no) enable_fast_install=no ;;
2906 enable_fast_install=no
2907 # Look at the argument we got. We use all the common list separators.
2908 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2909 for pkg in $enableval; do
2911 if test "X$pkg" = "X$p"; then
2912 enable_fast_install=yes
2919 enable_fast_install=yes
2924 ac_cpp='$CPP $CPPFLAGS'
2925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2928 if test -n "$ac_tool_prefix"; then
2929 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2930 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2933 if test "${ac_cv_prog_CC+set}" = set; then
2934 echo $ECHO_N "(cached) $ECHO_C" >&6
2936 if test -n "$CC"; then
2937 ac_cv_prog_CC="$CC" # Let the user override the test.
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2946 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 if test -n "$CC"; then
2958 { echo "$as_me:$LINENO: result: $CC" >&5
2959 echo "${ECHO_T}$CC" >&6; }
2961 { echo "$as_me:$LINENO: result: no" >&5
2962 echo "${ECHO_T}no" >&6; }
2967 if test -z "$ac_cv_prog_CC"; then
2969 # Extract the first word of "gcc", so it can be a program name with args.
2970 set dummy gcc; ac_word=$2
2971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2973 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2976 if test -n "$ac_ct_CC"; then
2977 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2986 ac_cv_prog_ac_ct_CC="gcc"
2987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2997 if test -n "$ac_ct_CC"; then
2998 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2999 echo "${ECHO_T}$ac_ct_CC" >&6; }
3001 { echo "$as_me:$LINENO: result: no" >&5
3002 echo "${ECHO_T}no" >&6; }
3005 if test "x$ac_ct_CC" = x; then
3008 case $cross_compiling:$ac_tool_warned in
3010 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3011 whose name does not start with the host triplet. If you think this
3012 configuration is useful to you, please write to autoconf@gnu.org." >&5
3013 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3014 whose name does not start with the host triplet. If you think this
3015 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3016 ac_tool_warned=yes ;;
3024 if test -z "$CC"; then
3025 if test -n "$ac_tool_prefix"; then
3026 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3027 set dummy ${ac_tool_prefix}cc; ac_word=$2
3028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3030 if test "${ac_cv_prog_CC+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3033 if test -n "$CC"; then
3034 ac_cv_prog_CC="$CC" # Let the user override the test.
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 test -z "$as_dir" && as_dir=.
3041 for ac_exec_ext in '' $ac_executable_extensions; do
3042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3043 ac_cv_prog_CC="${ac_tool_prefix}cc"
3044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 if test -n "$CC"; then
3055 { echo "$as_me:$LINENO: result: $CC" >&5
3056 echo "${ECHO_T}$CC" >&6; }
3058 { echo "$as_me:$LINENO: result: no" >&5
3059 echo "${ECHO_T}no" >&6; }
3065 if test -z "$CC"; then
3066 # Extract the first word of "cc", so it can be a program name with args.
3067 set dummy cc; ac_word=$2
3068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3070 if test "${ac_cv_prog_CC+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3073 if test -n "$CC"; then
3074 ac_cv_prog_CC="$CC" # Let the user override the test.
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 test -z "$as_dir" && as_dir=.
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3084 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3085 ac_prog_rejected=yes
3089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3096 if test $ac_prog_rejected = yes; then
3097 # We found a bogon in the path, so make sure we never use it.
3098 set dummy $ac_cv_prog_CC
3100 if test $# != 0; then
3101 # We chose a different compiler from the bogus one.
3102 # However, it has the same basename, so the bogon will be chosen
3103 # first if we set CC to just the basename; use the full file name.
3105 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3111 if test -n "$CC"; then
3112 { echo "$as_me:$LINENO: result: $CC" >&5
3113 echo "${ECHO_T}$CC" >&6; }
3115 { echo "$as_me:$LINENO: result: no" >&5
3116 echo "${ECHO_T}no" >&6; }
3121 if test -z "$CC"; then
3122 if test -n "$ac_tool_prefix"; then
3123 for ac_prog in cl.exe
3125 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3126 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3129 if test "${ac_cv_prog_CC+set}" = set; then
3130 echo $ECHO_N "(cached) $ECHO_C" >&6
3132 if test -n "$CC"; then
3133 ac_cv_prog_CC="$CC" # Let the user override the test.
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 test -z "$as_dir" && as_dir=.
3140 for ac_exec_ext in '' $ac_executable_extensions; do
3141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3142 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3153 if test -n "$CC"; then
3154 { echo "$as_me:$LINENO: result: $CC" >&5
3155 echo "${ECHO_T}$CC" >&6; }
3157 { echo "$as_me:$LINENO: result: no" >&5
3158 echo "${ECHO_T}no" >&6; }
3162 test -n "$CC" && break
3165 if test -z "$CC"; then
3167 for ac_prog in cl.exe
3169 # Extract the first word of "$ac_prog", so it can be a program name with args.
3170 set dummy $ac_prog; ac_word=$2
3171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3173 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3176 if test -n "$ac_ct_CC"; then
3177 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 test -z "$as_dir" && as_dir=.
3184 for ac_exec_ext in '' $ac_executable_extensions; do
3185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3186 ac_cv_prog_ac_ct_CC="$ac_prog"
3187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3196 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3197 if test -n "$ac_ct_CC"; then
3198 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3199 echo "${ECHO_T}$ac_ct_CC" >&6; }
3201 { echo "$as_me:$LINENO: result: no" >&5
3202 echo "${ECHO_T}no" >&6; }
3206 test -n "$ac_ct_CC" && break
3209 if test "x$ac_ct_CC" = x; then
3212 case $cross_compiling:$ac_tool_warned in
3214 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3215 whose name does not start with the host triplet. If you think this
3216 configuration is useful to you, please write to autoconf@gnu.org." >&5
3217 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3218 whose name does not start with the host triplet. If you think this
3219 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3220 ac_tool_warned=yes ;;
3229 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3230 See \`config.log' for more details." >&5
3231 echo "$as_me: error: no acceptable C compiler found in \$PATH
3232 See \`config.log' for more details." >&2;}
3233 { (exit 1); exit 1; }; }
3235 # Provide some information about the compiler.
3236 echo "$as_me:$LINENO: checking for C compiler version" >&5
3237 ac_compiler=`set X $ac_compile; echo $2`
3238 { (ac_try="$ac_compiler --version >&5"
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244 (eval "$ac_compiler --version >&5") 2>&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }
3248 { (ac_try="$ac_compiler -v >&5"
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254 (eval "$ac_compiler -v >&5") 2>&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }
3258 { (ac_try="$ac_compiler -V >&5"
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3264 (eval "$ac_compiler -V >&5") 2>&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }
3269 cat >conftest.$ac_ext <<_ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h. */
3284 ac_clean_files_save=$ac_clean_files
3285 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3286 # Try to create an executable without -o first, disregard a.out.
3287 # It will help us diagnose broken compilers, and finding out an intuition
3289 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3290 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3291 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3293 # List of possible output files, starting from the most likely.
3294 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3295 # only as a last resort. b.out is created by i960 compilers.
3296 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3298 # The IRIX 6 linker writes into existing files which may not be
3299 # executable, retaining their permissions. Remove them first so a
3300 # subsequent execution test works.
3302 for ac_file in $ac_files
3305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3306 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3311 if { (ac_try="$ac_link_default"
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317 (eval "$ac_link_default") 2>&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; then
3321 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3322 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3323 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3324 # so that the user can short-circuit this test for compilers unknown to
3326 for ac_file in $ac_files ''
3328 test -f "$ac_file" || continue
3330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3333 # We found the default executable, but exeext='' is most
3337 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3339 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3341 # We set ac_cv_exeext here because the later test for it is not
3342 # safe: cross compilers may not add the suffix if given an `-o'
3343 # argument, so we may need to know it at that point already.
3344 # Even if this section looks crufty: it has the advantage of
3351 test "$ac_cv_exeext" = no && ac_cv_exeext=
3357 { echo "$as_me:$LINENO: result: $ac_file" >&5
3358 echo "${ECHO_T}$ac_file" >&6; }
3359 if test -z "$ac_file"; then
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3363 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3364 See \`config.log' for more details." >&5
3365 echo "$as_me: error: C compiler cannot create executables
3366 See \`config.log' for more details." >&2;}
3367 { (exit 77); exit 77; }; }
3370 ac_exeext=$ac_cv_exeext
3372 # Check that the compiler produces executables we can run. If not, either
3373 # the compiler is broken, or we cross compile.
3374 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3375 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3376 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3377 # If not cross compiling, check that we can run a simple program.
3378 if test "$cross_compiling" != yes; then
3379 if { ac_try='./$ac_file'
3380 { (case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_try") 2>&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; }; then
3391 if test "$cross_compiling" = maybe; then
3394 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3395 If you meant to cross compile, use \`--host'.
3396 See \`config.log' for more details." >&5
3397 echo "$as_me: error: cannot run C compiled programs.
3398 If you meant to cross compile, use \`--host'.
3399 See \`config.log' for more details." >&2;}
3400 { (exit 1); exit 1; }; }
3404 { echo "$as_me:$LINENO: result: yes" >&5
3405 echo "${ECHO_T}yes" >&6; }
3407 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3408 ac_clean_files=$ac_clean_files_save
3409 # Check that the compiler produces executables we can run. If not, either
3410 # the compiler is broken, or we cross compile.
3411 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3412 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3413 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3414 echo "${ECHO_T}$cross_compiling" >&6; }
3416 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3417 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3418 if { (ac_try="$ac_link"
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3424 (eval "$ac_link") 2>&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); }; then
3428 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3429 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3430 # work properly (i.e., refer to `conftest.exe'), while it won't with
3432 for ac_file in conftest.exe conftest conftest.*; do
3433 test -f "$ac_file" || continue
3435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3436 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3442 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3443 See \`config.log' for more details." >&5
3444 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3445 See \`config.log' for more details." >&2;}
3446 { (exit 1); exit 1; }; }
3449 rm -f conftest$ac_cv_exeext
3450 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3451 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3453 rm -f conftest.$ac_ext
3454 EXEEXT=$ac_cv_exeext
3456 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3457 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3458 if test "${ac_cv_objext+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3461 cat >conftest.$ac_ext <<_ACEOF
3464 cat confdefs.h >>conftest.$ac_ext
3465 cat >>conftest.$ac_ext <<_ACEOF
3466 /* end confdefs.h. */
3476 rm -f conftest.o conftest.obj
3477 if { (ac_try="$ac_compile"
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483 (eval "$ac_compile") 2>&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); }; then
3487 for ac_file in conftest.o conftest.obj conftest.*; do
3488 test -f "$ac_file" || continue;
3490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3491 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3496 echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3499 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3500 See \`config.log' for more details." >&5
3501 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3502 See \`config.log' for more details." >&2;}
3503 { (exit 1); exit 1; }; }
3506 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3508 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3509 echo "${ECHO_T}$ac_cv_objext" >&6; }
3510 OBJEXT=$ac_cv_objext
3512 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3513 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3514 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3517 cat >conftest.$ac_ext <<_ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h. */
3535 rm -f conftest.$ac_objext
3536 if { (ac_try="$ac_compile"
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542 (eval "$ac_compile") 2>conftest.er1
3544 grep -v '^ *+' conftest.er1 >conftest.err
3546 cat conftest.err >&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); } && {
3549 test -z "$ac_c_werror_flag" ||
3550 test ! -s conftest.err
3551 } && test -s conftest.$ac_objext; then
3554 echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3561 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3564 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3565 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3566 GCC=`test $ac_compiler_gnu = yes && echo yes`
3567 ac_test_CFLAGS=${CFLAGS+set}
3568 ac_save_CFLAGS=$CFLAGS
3569 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3570 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3571 if test "${ac_cv_prog_cc_g+set}" = set; then
3572 echo $ECHO_N "(cached) $ECHO_C" >&6
3574 ac_save_c_werror_flag=$ac_c_werror_flag
3575 ac_c_werror_flag=yes
3578 cat >conftest.$ac_ext <<_ACEOF
3581 cat confdefs.h >>conftest.$ac_ext
3582 cat >>conftest.$ac_ext <<_ACEOF
3583 /* end confdefs.h. */
3593 rm -f conftest.$ac_objext
3594 if { (ac_try="$ac_compile"
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600 (eval "$ac_compile") 2>conftest.er1
3602 grep -v '^ *+' conftest.er1 >conftest.err
3604 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } && {
3607 test -z "$ac_c_werror_flag" ||
3608 test ! -s conftest.err
3609 } && test -s conftest.$ac_objext; then
3612 echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.$ac_ext >&5
3616 cat >conftest.$ac_ext <<_ACEOF
3619 cat confdefs.h >>conftest.$ac_ext
3620 cat >>conftest.$ac_ext <<_ACEOF
3621 /* end confdefs.h. */
3631 rm -f conftest.$ac_objext
3632 if { (ac_try="$ac_compile"
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3638 (eval "$ac_compile") 2>conftest.er1
3640 grep -v '^ *+' conftest.er1 >conftest.err
3642 cat conftest.err >&5
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); } && {
3645 test -z "$ac_c_werror_flag" ||
3646 test ! -s conftest.err
3647 } && test -s conftest.$ac_objext; then
3650 echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.$ac_ext >&5
3653 ac_c_werror_flag=$ac_save_c_werror_flag
3655 cat >conftest.$ac_ext <<_ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h. */
3670 rm -f conftest.$ac_objext
3671 if { (ac_try="$ac_compile"
3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674 *) ac_try_echo=$ac_try;;
3676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3677 (eval "$ac_compile") 2>conftest.er1
3679 grep -v '^ *+' conftest.er1 >conftest.err
3681 cat conftest.err >&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); } && {
3684 test -z "$ac_c_werror_flag" ||
3685 test ! -s conftest.err
3686 } && test -s conftest.$ac_objext; then
3689 echo "$as_me: failed program was:" >&5
3690 sed 's/^/| /' conftest.$ac_ext >&5
3695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3702 ac_c_werror_flag=$ac_save_c_werror_flag
3704 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3705 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3706 if test "$ac_test_CFLAGS" = set; then
3707 CFLAGS=$ac_save_CFLAGS
3708 elif test $ac_cv_prog_cc_g = yes; then
3709 if test "$GCC" = yes; then
3715 if test "$GCC" = yes; then
3721 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3722 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3723 if test "${ac_cv_prog_cc_c89+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 ac_cv_prog_cc_c89=no
3728 cat >conftest.$ac_ext <<_ACEOF
3731 cat confdefs.h >>conftest.$ac_ext
3732 cat >>conftest.$ac_ext <<_ACEOF
3733 /* end confdefs.h. */
3736 #include <sys/types.h>
3737 #include <sys/stat.h>
3738 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3739 struct buf { int x; };
3740 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3741 static char *e (p, i)
3747 static char *f (char * (*g) (char **, int), char **p, ...)
3752 s = g (p, va_arg (v,int));
3757 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3758 function prototypes and stuff, but not '\xHH' hex character constants.
3759 These don't provoke an error unfortunately, instead are silently treated
3760 as 'x'. The following induces an error, until -std is added to get
3761 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3762 array size at least. It's necessary to write '\x00'==0 to get something
3763 that's true only with -std. */
3764 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3766 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3767 inside strings and character constants. */
3769 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3771 int test (int i, double x);
3772 struct s1 {int (*f) (int a);};
3773 struct s2 {int (*f) (double a);};
3774 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3780 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3785 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3786 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3788 CC="$ac_save_CC $ac_arg"
3789 rm -f conftest.$ac_objext
3790 if { (ac_try="$ac_compile"
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796 (eval "$ac_compile") 2>conftest.er1
3798 grep -v '^ *+' conftest.er1 >conftest.err
3800 cat conftest.err >&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } && {
3803 test -z "$ac_c_werror_flag" ||
3804 test ! -s conftest.err
3805 } && test -s conftest.$ac_objext; then
3806 ac_cv_prog_cc_c89=$ac_arg
3808 echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3814 rm -f core conftest.err conftest.$ac_objext
3815 test "x$ac_cv_prog_cc_c89" != "xno" && break
3817 rm -f conftest.$ac_ext
3822 case "x$ac_cv_prog_cc_c89" in
3824 { echo "$as_me:$LINENO: result: none needed" >&5
3825 echo "${ECHO_T}none needed" >&6; } ;;
3827 { echo "$as_me:$LINENO: result: unsupported" >&5
3828 echo "${ECHO_T}unsupported" >&6; } ;;
3830 CC="$CC $ac_cv_prog_cc_c89"
3831 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3832 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3837 ac_cpp='$CPP $CPPFLAGS'
3838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3842 depcc="$CC" am_compiler_list=
3844 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3845 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3846 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3850 # We make a subdir and do the tests there. Otherwise we can end up
3851 # making bogus files that we don't know about and never remove. For
3852 # instance it was reported that on HP-UX the gcc test will end up
3853 # making a dummy file named `D' -- because `-MD' means `put the output
3856 # Copy depcomp to subdir because otherwise we won't find it if we're
3857 # using a relative directory.
3858 cp "$am_depcomp" conftest.dir
3860 # We will build objects and dependencies in a subdirectory because
3861 # it helps to detect inapplicable dependency modes. For instance
3862 # both Tru64's cc and ICC support -MD to output dependencies as a
3863 # side effect of compilation, but ICC will put the dependencies in
3864 # the current directory while Tru64 will put them in the object
3868 am_cv_CC_dependencies_compiler_type=none
3869 if test "$am_compiler_list" = ""; then
3870 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3872 for depmode in $am_compiler_list; do
3873 # Setup a source with many dependencies, because some compilers
3874 # like to wrap large dependency lists on column 80 (with \), and
3875 # we should not choose a depcomp mode which is confused by this.
3877 # We need to recreate these files for each test, as the compiler may
3878 # overwrite some of them when testing with obscure command lines.
3879 # This happens at least with the AIX C compiler.
3881 for i in 1 2 3 4 5 6; do
3882 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3883 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3884 # Solaris 8's {/usr,}/bin/sh.
3885 touch sub/conftst$i.h
3887 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3891 # after this tag, mechanisms are not by side-effect, so they'll
3892 # only be used when explicitly requested
3893 if test "x$enable_dependency_tracking" = xyes; then
3901 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3902 # mode. It turns out that the SunPro C++ compiler does not properly
3903 # handle `-M -o', and we need to detect this.
3904 if depmode=$depmode \
3905 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3906 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3907 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3908 >/dev/null 2>conftest.err &&
3909 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3910 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3911 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3912 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3913 # icc doesn't choke on unknown options, it will just issue warnings
3914 # or remarks (even with -Werror). So we grep stderr for any message
3915 # that says an option was ignored or not supported.
3916 # When given -MP, icc 7.0 and 7.1 complain thusly:
3917 # icc: Command line warning: ignoring option '-M'; no argument required
3918 # The diagnosis changed in icc 8.0:
3919 # icc: Command line remark: option '-MP' not supported
3920 if (grep 'ignoring option' conftest.err ||
3921 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3922 am_cv_CC_dependencies_compiler_type=$depmode
3931 am_cv_CC_dependencies_compiler_type=none
3935 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3936 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3937 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3940 test "x$enable_dependency_tracking" != xno \
3941 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3943 am__fastdepCC_FALSE='#'
3945 am__fastdepCC_TRUE='#'
3946 am__fastdepCC_FALSE=
3950 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3951 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3952 if test "${lt_cv_path_SED+set}" = set; then
3953 echo $ECHO_N "(cached) $ECHO_C" >&6
3955 # Loop through the user's path and test for sed and gsed.
3956 # Then use that list of sed's as ones to test for truncation.
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961 test -z "$as_dir" && as_dir=.
3962 for lt_ac_prog in sed gsed; do
3963 for ac_exec_ext in '' $ac_executable_extensions; do
3964 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3965 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3972 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3973 # along with /bin/sed that truncates output.
3974 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3975 test ! -f $lt_ac_sed && continue
3976 cat /dev/null > conftest.in
3978 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3979 # Check for GNU sed and select it if it is found.
3980 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3981 lt_cv_path_SED=$lt_ac_sed
3985 cat conftest.in conftest.in >conftest.tmp
3986 mv conftest.tmp conftest.in
3987 cp conftest.in conftest.nl
3989 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3990 cmp -s conftest.out conftest.nl || break
3991 # 10000 chars as input seems more than enough
3992 test $lt_ac_count -gt 10 && break
3993 lt_ac_count=`expr $lt_ac_count + 1`
3994 if test $lt_ac_count -gt $lt_ac_max; then
3995 lt_ac_max=$lt_ac_count
3996 lt_cv_path_SED=$lt_ac_sed
4004 { echo "$as_me:$LINENO: result: $SED" >&5
4005 echo "${ECHO_T}$SED" >&6; }
4007 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4008 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4009 if test "${ac_cv_path_GREP+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4012 # Extract the first word of "grep ggrep" to use in msg output
4013 if test -z "$GREP"; then
4014 set dummy grep ggrep; ac_prog_name=$2
4015 if test "${ac_cv_path_GREP+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 ac_path_GREP_found=false
4019 # Loop through the user's path and test for each of PROGNAME-LIST
4020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4024 test -z "$as_dir" && as_dir=.
4025 for ac_prog in grep ggrep; do
4026 for ac_exec_ext in '' $ac_executable_extensions; do
4027 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4028 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4029 # Check for GNU ac_path_GREP and select it if it is found.
4030 # Check for GNU $ac_path_GREP
4031 case `"$ac_path_GREP" --version 2>&1` in
4033 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4036 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4039 cat "conftest.in" "conftest.in" >"conftest.tmp"
4040 mv "conftest.tmp" "conftest.in"
4041 cp "conftest.in" "conftest.nl"
4042 echo 'GREP' >> "conftest.nl"
4043 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4044 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4045 ac_count=`expr $ac_count + 1`
4046 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4047 # Best one so far, save it but keep looking for a better one
4048 ac_cv_path_GREP="$ac_path_GREP"
4049 ac_path_GREP_max=$ac_count
4051 # 10*(2^10) chars as input seems more than enough
4052 test $ac_count -gt 10 && break
4054 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4058 $ac_path_GREP_found && break 3
4068 GREP="$ac_cv_path_GREP"
4069 if test -z "$GREP"; then
4070 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4071 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4072 { (exit 1); exit 1; }; }
4076 ac_cv_path_GREP=$GREP
4081 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4082 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4083 GREP="$ac_cv_path_GREP"
4086 { echo "$as_me:$LINENO: checking for egrep" >&5
4087 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4088 if test "${ac_cv_path_EGREP+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4092 then ac_cv_path_EGREP="$GREP -E"
4094 # Extract the first word of "egrep" to use in msg output
4095 if test -z "$EGREP"; then
4096 set dummy egrep; ac_prog_name=$2
4097 if test "${ac_cv_path_EGREP+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4100 ac_path_EGREP_found=false
4101 # Loop through the user's path and test for each of PROGNAME-LIST
4102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4106 test -z "$as_dir" && as_dir=.
4107 for ac_prog in egrep; do
4108 for ac_exec_ext in '' $ac_executable_extensions; do
4109 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4110 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4111 # Check for GNU ac_path_EGREP and select it if it is found.
4112 # Check for GNU $ac_path_EGREP
4113 case `"$ac_path_EGREP" --version 2>&1` in
4115 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4118 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4121 cat "conftest.in" "conftest.in" >"conftest.tmp"
4122 mv "conftest.tmp" "conftest.in"
4123 cp "conftest.in" "conftest.nl"
4124 echo 'EGREP' >> "conftest.nl"
4125 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4126 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4127 ac_count=`expr $ac_count + 1`
4128 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4129 # Best one so far, save it but keep looking for a better one
4130 ac_cv_path_EGREP="$ac_path_EGREP"
4131 ac_path_EGREP_max=$ac_count
4133 # 10*(2^10) chars as input seems more than enough
4134 test $ac_count -gt 10 && break
4136 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4140 $ac_path_EGREP_found && break 3
4150 EGREP="$ac_cv_path_EGREP"
4151 if test -z "$EGREP"; then
4152 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4153 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4154 { (exit 1); exit 1; }; }
4158 ac_cv_path_EGREP=$EGREP
4164 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4165 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4166 EGREP="$ac_cv_path_EGREP"
4170 # Check whether --with-gnu-ld was given.
4171 if test "${with_gnu_ld+set}" = set; then
4172 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4178 if test "$GCC" = yes; then
4179 # Check if gcc -print-prog-name=ld gives a path.
4180 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4181 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4184 # gcc leaves a trailing carriage return which upsets mingw
4185 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4187 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4190 # Accept absolute paths.
4192 re_direlt='/[^/][^/]*/\.\./'
4193 # Canonicalize the pathname of ld
4194 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4195 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4196 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4198 test -z "$LD" && LD="$ac_prog"
4201 # If it fails, then pretend we aren't using GCC.
4205 # If it is relative, then search for the first ld in PATH.
4209 elif test "$with_gnu_ld" = yes; then
4210 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4211 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4213 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4214 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4216 if test "${lt_cv_path_LD+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 if test -z "$LD"; then
4220 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4221 for ac_dir in $PATH; do
4223 test -z "$ac_dir" && ac_dir=.
4224 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4225 lt_cv_path_LD="$ac_dir/$ac_prog"
4226 # Check to see if the program is GNU ld. I'd rather use --version,
4227 # but apparently some variants of GNU ld only accept -v.
4228 # Break only if it was the GNU/non-GNU ld that we prefer.
4229 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4230 *GNU* | *'with BFD'*)
4231 test "$with_gnu_ld" != no && break
4234 test "$with_gnu_ld" != yes && break
4241 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4246 if test -n "$LD"; then
4247 { echo "$as_me:$LINENO: result: $LD" >&5
4248 echo "${ECHO_T}$LD" >&6; }
4250 { echo "$as_me:$LINENO: result: no" >&5
4251 echo "${ECHO_T}no" >&6; }
4253 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4254 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4255 { (exit 1); exit 1; }; }
4256 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4257 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4258 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4261 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4262 case `$LD -v 2>&1 </dev/null` in
4263 *GNU* | *'with BFD'*)
4264 lt_cv_prog_gnu_ld=yes
4267 lt_cv_prog_gnu_ld=no
4271 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4272 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4273 with_gnu_ld=$lt_cv_prog_gnu_ld
4276 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4277 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4278 if test "${lt_cv_ld_reload_flag+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4281 lt_cv_ld_reload_flag='-r'
4283 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4284 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4285 reload_flag=$lt_cv_ld_reload_flag
4286 case $reload_flag in
4288 *) reload_flag=" $reload_flag" ;;
4290 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4293 if test "$GCC" = yes; then
4294 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4296 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4301 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4302 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4303 if test "${lt_cv_path_NM+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4306 if test -n "$NM"; then
4307 # Let the user override the test.
4310 lt_nm_to_check="${ac_tool_prefix}nm"
4311 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4312 lt_nm_to_check="$lt_nm_to_check nm"
4314 for lt_tmp_nm in $lt_nm_to_check; do
4315 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4316 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4318 test -z "$ac_dir" && ac_dir=.
4319 tmp_nm="$ac_dir/$lt_tmp_nm"
4320 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4321 # Check to see if the nm accepts a BSD-compat flag.
4322 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4323 # nm: unknown option "B" ignored
4324 # Tru64's nm complains that /dev/null is an invalid object file
4325 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4326 */dev/null* | *'Invalid file or object type'*)
4327 lt_cv_path_NM="$tmp_nm -B"
4331 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4333 lt_cv_path_NM="$tmp_nm -p"
4337 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4338 continue # so that we can try to find one that supports BSD flags
4347 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4350 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4351 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4354 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4355 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4357 if test "$LN_S" = "ln -s"; then
4358 { echo "$as_me:$LINENO: result: yes" >&5
4359 echo "${ECHO_T}yes" >&6; }
4361 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4362 echo "${ECHO_T}no, using $LN_S" >&6; }
4365 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4366 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4367 if test "${lt_cv_deplibs_check_method+set}" = set; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4370 lt_cv_file_magic_cmd='$MAGIC_CMD'
4371 lt_cv_file_magic_test_file=
4372 lt_cv_deplibs_check_method='unknown'
4373 # Need to set the preceding variable on all platforms that support
4374 # interlibrary dependencies.
4375 # 'none' -- dependencies not supported.
4376 # `unknown' -- same as none, but documents that we really don't know.
4377 # 'pass_all' -- all dependencies passed with no checks.
4378 # 'test_compile' -- check by making test program.
4379 # 'file_magic [[regex]]' -- check by looking for files in library path
4380 # which responds to the $file_magic_cmd with a given extended regex.
4381 # If you have `file' or equivalent on your system and you're not sure
4382 # whether `pass_all' will *always* work, you probably want this one.
4386 lt_cv_deplibs_check_method=pass_all
4390 lt_cv_deplibs_check_method=pass_all
4394 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4395 lt_cv_file_magic_cmd='/usr/bin/file -L'
4396 lt_cv_file_magic_test_file=/shlib/libc.so
4400 # func_win32_libid is a shell function defined in ltmain.sh
4401 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4402 lt_cv_file_magic_cmd='func_win32_libid'
4406 # Base MSYS/MinGW do not provide the 'file' command needed by
4407 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4408 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4409 lt_cv_file_magic_cmd='$OBJDUMP -f'
4412 darwin* | rhapsody*)
4413 lt_cv_deplibs_check_method=pass_all
4416 freebsd* | dragonfly*)
4417 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4420 # Not sure whether the presence of OpenBSD here was a mistake.
4421 # Let's accept both of them until this is cleared up.
4422 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4423 lt_cv_file_magic_cmd=/usr/bin/file
4424 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4428 lt_cv_deplibs_check_method=pass_all
4433 lt_cv_deplibs_check_method=pass_all
4436 hpux10.20* | hpux11*)
4437 lt_cv_file_magic_cmd=/usr/bin/file
4440 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4441 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4444 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]'
4445 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4448 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4449 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4455 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4456 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4459 irix5* | irix6* | nonstopux*)
4461 *-32|*"-32 ") libmagic=32-bit;;
4462 *-n32|*"-n32 ") libmagic=N32;;
4463 *-64|*"-64 ") libmagic=64-bit;;
4464 *) libmagic=never-match;;
4466 lt_cv_deplibs_check_method=pass_all
4469 # This must be Linux ELF.
4470 linux* | k*bsd*-gnu)
4471 lt_cv_deplibs_check_method=pass_all
4474 netbsd* | netbsdelf*-gnu)
4475 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4476 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4478 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4483 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4484 lt_cv_file_magic_cmd=/usr/bin/file
4485 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4489 lt_cv_deplibs_check_method=unknown
4493 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4494 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4496 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4500 osf3* | osf4* | osf5*)
4501 lt_cv_deplibs_check_method=pass_all
4505 lt_cv_deplibs_check_method=pass_all
4509 case $host_vendor in
4511 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]'
4512 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4515 lt_cv_deplibs_check_method=pass_all
4518 lt_cv_file_magic_cmd='/bin/file'
4519 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4522 lt_cv_file_magic_cmd='/bin/file'
4523 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4524 lt_cv_file_magic_test_file=/lib/libc.so
4527 lt_cv_deplibs_check_method=pass_all
4530 lt_cv_deplibs_check_method=pass_all
4535 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4536 lt_cv_deplibs_check_method=pass_all
4541 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4542 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4543 file_magic_cmd=$lt_cv_file_magic_cmd
4544 deplibs_check_method=$lt_cv_deplibs_check_method
4545 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4550 # If no C compiler was specified, use CC.
4553 # If no C compiler flags were specified, use CFLAGS.
4554 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4556 # Allow CC to be a program name with arguments.
4560 # Check whether --enable-libtool-lock was given.
4561 if test "${enable_libtool_lock+set}" = set; then
4562 enableval=$enable_libtool_lock;
4565 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4567 # Some flags need to be propagated to the compiler or linker for good
4571 # Find out which ABI we are using.
4572 echo 'int i;' > conftest.$ac_ext
4573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4574 (eval $ac_compile) 2>&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; then
4578 case `/usr/bin/file conftest.$ac_objext` in
4590 # Find out which ABI we are using.
4591 echo '#line 4591 "configure"' > conftest.$ac_ext
4592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4593 (eval $ac_compile) 2>&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; then
4597 if test "$lt_cv_prog_gnu_ld" = yes; then
4598 case `/usr/bin/file conftest.$ac_objext` in
4600 LD="${LD-ld} -melf32bsmip"
4603 LD="${LD-ld} -melf32bmipn32"
4606 LD="${LD-ld} -melf64bmip"
4610 case `/usr/bin/file conftest.$ac_objext` in
4626 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4627 # Find out which ABI we are using.
4628 echo 'int i;' > conftest.$ac_ext
4629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4630 (eval $ac_compile) 2>&5
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); }; then
4634 case `/usr/bin/file conftest.o` in
4638 LD="${LD-ld} -m elf_i386"
4640 ppc64-*linux*|powerpc64-*linux*)
4641 LD="${LD-ld} -m elf32ppclinux"
4644 LD="${LD-ld} -m elf_s390"
4647 LD="${LD-ld} -m elf32_sparc"
4654 LD="${LD-ld} -m elf_x86_64"
4656 ppc*-*linux*|powerpc*-*linux*)
4657 LD="${LD-ld} -m elf64ppc"
4660 LD="${LD-ld} -m elf64_s390"
4663 LD="${LD-ld} -m elf64_sparc"
4673 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4674 SAVE_CFLAGS="$CFLAGS"
4675 CFLAGS="$CFLAGS -belf"
4676 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4677 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4678 if test "${lt_cv_cc_needs_belf+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4682 ac_cpp='$CPP $CPPFLAGS'
4683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4687 cat >conftest.$ac_ext <<_ACEOF
4690 cat confdefs.h >>conftest.$ac_ext
4691 cat >>conftest.$ac_ext <<_ACEOF
4692 /* end confdefs.h. */
4702 rm -f conftest.$ac_objext conftest$ac_exeext
4703 if { (ac_try="$ac_link"
4705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4706 *) ac_try_echo=$ac_try;;
4708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4709 (eval "$ac_link") 2>conftest.er1
4711 grep -v '^ *+' conftest.er1 >conftest.err
4713 cat conftest.err >&5
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); } && {
4716 test -z "$ac_c_werror_flag" ||
4717 test ! -s conftest.err
4718 } && test -s conftest$ac_exeext &&
4719 $as_test_x conftest$ac_exeext; then
4720 lt_cv_cc_needs_belf=yes
4722 echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.$ac_ext >&5
4725 lt_cv_cc_needs_belf=no
4728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4729 conftest$ac_exeext conftest.$ac_ext
4731 ac_cpp='$CPP $CPPFLAGS'
4732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4737 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4738 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4739 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4740 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4741 CFLAGS="$SAVE_CFLAGS"
4745 # Find out which ABI we are using.
4746 echo 'int i;' > conftest.$ac_ext
4747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4748 (eval $ac_compile) 2>&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; then
4752 case `/usr/bin/file conftest.o` in
4754 case $lt_cv_prog_gnu_ld in
4755 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4756 *) LD="${LD-ld} -64" ;;
4764 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4765 if test -n "$ac_tool_prefix"; then
4766 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4767 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4770 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
4773 if test -n "$DLLTOOL"; then
4774 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 test -z "$as_dir" && as_dir=.
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4783 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 DLLTOOL=$ac_cv_prog_DLLTOOL
4794 if test -n "$DLLTOOL"; then
4795 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4796 echo "${ECHO_T}$DLLTOOL" >&6; }
4798 { echo "$as_me:$LINENO: result: no" >&5
4799 echo "${ECHO_T}no" >&6; }
4804 if test -z "$ac_cv_prog_DLLTOOL"; then
4805 ac_ct_DLLTOOL=$DLLTOOL
4806 # Extract the first word of "dlltool", so it can be a program name with args.
4807 set dummy dlltool; ac_word=$2
4808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4810 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 if test -n "$ac_ct_DLLTOOL"; then
4814 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 test -z "$as_dir" && as_dir=.
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4823 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4834 if test -n "$ac_ct_DLLTOOL"; then
4835 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4836 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4838 { echo "$as_me:$LINENO: result: no" >&5
4839 echo "${ECHO_T}no" >&6; }
4842 if test "x$ac_ct_DLLTOOL" = x; then
4845 case $cross_compiling:$ac_tool_warned in
4847 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4848 whose name does not start with the host triplet. If you think this
4849 configuration is useful to you, please write to autoconf@gnu.org." >&5
4850 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4851 whose name does not start with the host triplet. If you think this
4852 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4853 ac_tool_warned=yes ;;
4855 DLLTOOL=$ac_ct_DLLTOOL
4858 DLLTOOL="$ac_cv_prog_DLLTOOL"
4861 if test -n "$ac_tool_prefix"; then
4862 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4863 set dummy ${ac_tool_prefix}as; ac_word=$2
4864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4866 if test "${ac_cv_prog_AS+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 if test -n "$AS"; then
4870 ac_cv_prog_AS="$AS" # Let the user override the test.
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879 ac_cv_prog_AS="${ac_tool_prefix}as"
4880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 if test -n "$AS"; then
4891 { echo "$as_me:$LINENO: result: $AS" >&5
4892 echo "${ECHO_T}$AS" >&6; }
4894 { echo "$as_me:$LINENO: result: no" >&5
4895 echo "${ECHO_T}no" >&6; }
4900 if test -z "$ac_cv_prog_AS"; then
4902 # Extract the first word of "as", so it can be a program name with args.
4903 set dummy as; ac_word=$2
4904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4906 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 if test -n "$ac_ct_AS"; then
4910 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 test -z "$as_dir" && as_dir=.
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4919 ac_cv_prog_ac_ct_AS="as"
4920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4930 if test -n "$ac_ct_AS"; then
4931 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4932 echo "${ECHO_T}$ac_ct_AS" >&6; }
4934 { echo "$as_me:$LINENO: result: no" >&5
4935 echo "${ECHO_T}no" >&6; }
4938 if test "x$ac_ct_AS" = x; then
4941 case $cross_compiling:$ac_tool_warned in
4943 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4944 whose name does not start with the host triplet. If you think this
4945 configuration is useful to you, please write to autoconf@gnu.org." >&5
4946 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4947 whose name does not start with the host triplet. If you think this
4948 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4949 ac_tool_warned=yes ;;
4957 if test -n "$ac_tool_prefix"; then
4958 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4959 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4962 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4965 if test -n "$OBJDUMP"; then
4966 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 test -z "$as_dir" && as_dir=.
4973 for ac_exec_ext in '' $ac_executable_extensions; do
4974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4975 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 OBJDUMP=$ac_cv_prog_OBJDUMP
4986 if test -n "$OBJDUMP"; then
4987 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4988 echo "${ECHO_T}$OBJDUMP" >&6; }
4990 { echo "$as_me:$LINENO: result: no" >&5
4991 echo "${ECHO_T}no" >&6; }
4996 if test -z "$ac_cv_prog_OBJDUMP"; then
4997 ac_ct_OBJDUMP=$OBJDUMP
4998 # Extract the first word of "objdump", so it can be a program name with args.
4999 set dummy objdump; ac_word=$2
5000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5002 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 if test -n "$ac_ct_OBJDUMP"; then
5006 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 test -z "$as_dir" && as_dir=.
5013 for ac_exec_ext in '' $ac_executable_extensions; do
5014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5015 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5025 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5026 if test -n "$ac_ct_OBJDUMP"; then
5027 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5028 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5030 { echo "$as_me:$LINENO: result: no" >&5
5031 echo "${ECHO_T}no" >&6; }
5034 if test "x$ac_ct_OBJDUMP" = x; then
5037 case $cross_compiling:$ac_tool_warned in
5039 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5040 whose name does not start with the host triplet. If you think this
5041 configuration is useful to you, please write to autoconf@gnu.org." >&5
5042 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5043 whose name does not start with the host triplet. If you think this
5044 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5045 ac_tool_warned=yes ;;
5047 OBJDUMP=$ac_ct_OBJDUMP
5050 OBJDUMP="$ac_cv_prog_OBJDUMP"
5057 need_locks="$enable_libtool_lock"
5061 ac_cpp='$CPP $CPPFLAGS'
5062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5065 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5066 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5067 # On Suns, sometimes $CPP names a directory.
5068 if test -n "$CPP" && test -d "$CPP"; then
5071 if test -z "$CPP"; then
5072 if test "${ac_cv_prog_CPP+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 # Double quotes because CPP needs to be expanded
5076 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5079 for ac_c_preproc_warn_flag in '' yes
5081 # Use a header file that comes with gcc, so configuring glibc
5082 # with a fresh cross-compiler works.
5083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5084 # <limits.h> exists even on freestanding compilers.
5085 # On the NeXT, cc -E runs the code through the compiler's parser,
5086 # not just through cpp. "Syntax error" is here to catch this case.
5087 cat >conftest.$ac_ext <<_ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h. */
5094 # include <limits.h>
5096 # include <assert.h>
5100 if { (ac_try="$ac_cpp conftest.$ac_ext"
5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103 *) ac_try_echo=$ac_try;;
5105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5108 grep -v '^ *+' conftest.er1 >conftest.err
5110 cat conftest.err >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } >/dev/null && {
5113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5114 test ! -s conftest.err
5118 echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5121 # Broken: fails on valid input.
5125 rm -f conftest.err conftest.$ac_ext
5127 # OK, works on sane cases. Now check whether nonexistent headers
5128 # can be detected and how.
5129 cat >conftest.$ac_ext <<_ACEOF
5132 cat confdefs.h >>conftest.$ac_ext
5133 cat >>conftest.$ac_ext <<_ACEOF
5134 /* end confdefs.h. */
5135 #include <ac_nonexistent.h>
5137 if { (ac_try="$ac_cpp conftest.$ac_ext"
5139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5140 *) ac_try_echo=$ac_try;;
5142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5145 grep -v '^ *+' conftest.er1 >conftest.err
5147 cat conftest.err >&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); } >/dev/null && {
5150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5151 test ! -s conftest.err
5153 # Broken: success on invalid input.
5156 echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5159 # Passes both tests.
5164 rm -f conftest.err conftest.$ac_ext
5167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5168 rm -f conftest.err conftest.$ac_ext
5169 if $ac_preproc_ok; then
5181 { echo "$as_me:$LINENO: result: $CPP" >&5
5182 echo "${ECHO_T}$CPP" >&6; }
5184 for ac_c_preproc_warn_flag in '' yes
5186 # Use a header file that comes with gcc, so configuring glibc
5187 # with a fresh cross-compiler works.
5188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5189 # <limits.h> exists even on freestanding compilers.
5190 # On the NeXT, cc -E runs the code through the compiler's parser,
5191 # not just through cpp. "Syntax error" is here to catch this case.
5192 cat >conftest.$ac_ext <<_ACEOF
5195 cat confdefs.h >>conftest.$ac_ext
5196 cat >>conftest.$ac_ext <<_ACEOF
5197 /* end confdefs.h. */
5199 # include <limits.h>
5201 # include <assert.h>
5205 if { (ac_try="$ac_cpp conftest.$ac_ext"
5207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5208 *) ac_try_echo=$ac_try;;
5210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5213 grep -v '^ *+' conftest.er1 >conftest.err
5215 cat conftest.err >&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); } >/dev/null && {
5218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5219 test ! -s conftest.err
5223 echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5226 # Broken: fails on valid input.
5230 rm -f conftest.err conftest.$ac_ext
5232 # OK, works on sane cases. Now check whether nonexistent headers
5233 # can be detected and how.
5234 cat >conftest.$ac_ext <<_ACEOF
5237 cat confdefs.h >>conftest.$ac_ext
5238 cat >>conftest.$ac_ext <<_ACEOF
5239 /* end confdefs.h. */
5240 #include <ac_nonexistent.h>
5242 if { (ac_try="$ac_cpp conftest.$ac_ext"
5244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5245 *) ac_try_echo=$ac_try;;
5247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5250 grep -v '^ *+' conftest.er1 >conftest.err
5252 cat conftest.err >&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); } >/dev/null && {
5255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5256 test ! -s conftest.err
5258 # Broken: success on invalid input.
5261 echo "$as_me: failed program was:" >&5
5262 sed 's/^/| /' conftest.$ac_ext >&5
5264 # Passes both tests.
5269 rm -f conftest.err conftest.$ac_ext
5272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5273 rm -f conftest.err conftest.$ac_ext
5274 if $ac_preproc_ok; then
5277 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5278 See \`config.log' for more details." >&5
5279 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5280 See \`config.log' for more details." >&2;}
5281 { (exit 1); exit 1; }; }
5285 ac_cpp='$CPP $CPPFLAGS'
5286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5291 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5292 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5293 if test "${ac_cv_header_stdc+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5296 cat >conftest.$ac_ext <<_ACEOF
5299 cat confdefs.h >>conftest.$ac_ext
5300 cat >>conftest.$ac_ext <<_ACEOF
5301 /* end confdefs.h. */
5315 rm -f conftest.$ac_objext
5316 if { (ac_try="$ac_compile"
5318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5319 *) ac_try_echo=$ac_try;;
5321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5322 (eval "$ac_compile") 2>conftest.er1
5324 grep -v '^ *+' conftest.er1 >conftest.err
5326 cat conftest.err >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); } && {
5329 test -z "$ac_c_werror_flag" ||
5330 test ! -s conftest.err
5331 } && test -s conftest.$ac_objext; then
5332 ac_cv_header_stdc=yes
5334 echo "$as_me: failed program was:" >&5
5335 sed 's/^/| /' conftest.$ac_ext >&5
5337 ac_cv_header_stdc=no
5340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5342 if test $ac_cv_header_stdc = yes; then
5343 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5344 cat >conftest.$ac_ext <<_ACEOF
5347 cat confdefs.h >>conftest.$ac_ext
5348 cat >>conftest.$ac_ext <<_ACEOF
5349 /* end confdefs.h. */
5353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5354 $EGREP "memchr" >/dev/null 2>&1; then
5357 ac_cv_header_stdc=no
5363 if test $ac_cv_header_stdc = yes; then
5364 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5365 cat >conftest.$ac_ext <<_ACEOF
5368 cat confdefs.h >>conftest.$ac_ext
5369 cat >>conftest.$ac_ext <<_ACEOF
5370 /* end confdefs.h. */
5374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5375 $EGREP "free" >/dev/null 2>&1; then
5378 ac_cv_header_stdc=no
5384 if test $ac_cv_header_stdc = yes; then
5385 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5386 if test "$cross_compiling" = yes; then
5389 cat >conftest.$ac_ext <<_ACEOF
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h. */
5397 #if ((' ' & 0x0FF) == 0x020)
5398 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5399 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5401 # define ISLOWER(c) \
5402 (('a' <= (c) && (c) <= 'i') \
5403 || ('j' <= (c) && (c) <= 'r') \
5404 || ('s' <= (c) && (c) <= 'z'))
5405 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5408 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5413 for (i = 0; i < 256; i++)
5414 if (XOR (islower (i), ISLOWER (i))
5415 || toupper (i) != TOUPPER (i))
5420 rm -f conftest$ac_exeext
5421 if { (ac_try="$ac_link"
5423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5424 *) ac_try_echo=$ac_try;;
5426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5427 (eval "$ac_link") 2>&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5431 { (case "(($ac_try" in
5432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5433 *) ac_try_echo=$ac_try;;
5435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5436 (eval "$ac_try") 2>&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }; }; then
5442 echo "$as_me: program exited with status $ac_status" >&5
5443 echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5447 ac_cv_header_stdc=no
5449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5455 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5456 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5457 if test $ac_cv_header_stdc = yes; then
5459 cat >>confdefs.h <<\_ACEOF
5460 #define STDC_HEADERS 1
5465 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5475 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5476 inttypes.h stdint.h unistd.h
5478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5484 cat >conftest.$ac_ext <<_ACEOF
5487 cat confdefs.h >>conftest.$ac_ext
5488 cat >>conftest.$ac_ext <<_ACEOF
5489 /* end confdefs.h. */
5490 $ac_includes_default
5492 #include <$ac_header>
5494 rm -f conftest.$ac_objext
5495 if { (ac_try="$ac_compile"
5497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498 *) ac_try_echo=$ac_try;;
5500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5501 (eval "$ac_compile") 2>conftest.er1
5503 grep -v '^ *+' conftest.er1 >conftest.err
5505 cat conftest.err >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } && {
5508 test -z "$ac_c_werror_flag" ||
5509 test ! -s conftest.err
5510 } && test -s conftest.$ac_objext; then
5511 eval "$as_ac_Header=yes"
5513 echo "$as_me: failed program was:" >&5
5514 sed 's/^/| /' conftest.$ac_ext >&5
5516 eval "$as_ac_Header=no"
5519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5521 ac_res=`eval echo '${'$as_ac_Header'}'`
5522 { echo "$as_me:$LINENO: result: $ac_res" >&5
5523 echo "${ECHO_T}$ac_res" >&6; }
5524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5525 cat >>confdefs.h <<_ACEOF
5526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5535 for ac_header in dlfcn.h
5537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5544 ac_res=`eval echo '${'$as_ac_Header'}'`
5545 { echo "$as_me:$LINENO: result: $ac_res" >&5
5546 echo "${ECHO_T}$ac_res" >&6; }
5548 # Is the header compilable?
5549 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5550 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5551 cat >conftest.$ac_ext <<_ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h. */
5557 $ac_includes_default
5558 #include <$ac_header>
5560 rm -f conftest.$ac_objext
5561 if { (ac_try="$ac_compile"
5563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5564 *) ac_try_echo=$ac_try;;
5566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5567 (eval "$ac_compile") 2>conftest.er1
5569 grep -v '^ *+' conftest.er1 >conftest.err
5571 cat conftest.err >&5
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } && {
5574 test -z "$ac_c_werror_flag" ||
5575 test ! -s conftest.err
5576 } && test -s conftest.$ac_objext; then
5577 ac_header_compiler=yes
5579 echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.$ac_ext >&5
5582 ac_header_compiler=no
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5587 echo "${ECHO_T}$ac_header_compiler" >&6; }
5589 # Is the header present?
5590 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5592 cat >conftest.$ac_ext <<_ACEOF
5595 cat confdefs.h >>conftest.$ac_ext
5596 cat >>conftest.$ac_ext <<_ACEOF
5597 /* end confdefs.h. */
5598 #include <$ac_header>
5600 if { (ac_try="$ac_cpp conftest.$ac_ext"
5602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603 *) ac_try_echo=$ac_try;;
5605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5608 grep -v '^ *+' conftest.er1 >conftest.err
5610 cat conftest.err >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); } >/dev/null && {
5613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5614 test ! -s conftest.err
5616 ac_header_preproc=yes
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5621 ac_header_preproc=no
5624 rm -f conftest.err conftest.$ac_ext
5625 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5626 echo "${ECHO_T}$ac_header_preproc" >&6; }
5628 # So? What about this header?
5629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5635 ac_header_preproc=yes
5638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5645 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5651 ## -------------------------------------------------- ##
5652 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
5653 ## -------------------------------------------------- ##
5655 ) | sed "s/^/$as_me: WARNING: /" >&2
5658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5661 echo $ECHO_N "(cached) $ECHO_C" >&6
5663 eval "$as_ac_Header=\$ac_header_preproc"
5665 ac_res=`eval echo '${'$as_ac_Header'}'`
5666 { echo "$as_me:$LINENO: result: $ac_res" >&5
5667 echo "${ECHO_T}$ac_res" >&6; }
5670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5671 cat >>confdefs.h <<_ACEOF
5672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5680 ac_cpp='$CXXCPP $CPPFLAGS'
5681 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5682 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5683 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5684 if test -z "$CXX"; then
5685 if test -n "$CCC"; then
5688 if test -n "$ac_tool_prefix"; then
5689 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5695 if test "${ac_cv_prog_CXX+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5698 if test -n "$CXX"; then
5699 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 test -z "$as_dir" && as_dir=.
5706 for ac_exec_ext in '' $ac_executable_extensions; do
5707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5708 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5719 if test -n "$CXX"; then
5720 { echo "$as_me:$LINENO: result: $CXX" >&5
5721 echo "${ECHO_T}$CXX" >&6; }
5723 { echo "$as_me:$LINENO: result: no" >&5
5724 echo "${ECHO_T}no" >&6; }
5728 test -n "$CXX" && break
5731 if test -z "$CXX"; then
5733 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5735 # Extract the first word of "$ac_prog", so it can be a program name with args.
5736 set dummy $ac_prog; ac_word=$2
5737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5739 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 if test -n "$ac_ct_CXX"; then
5743 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 test -z "$as_dir" && as_dir=.
5750 for ac_exec_ext in '' $ac_executable_extensions; do
5751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5752 ac_cv_prog_ac_ct_CXX="$ac_prog"
5753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5762 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5763 if test -n "$ac_ct_CXX"; then
5764 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5765 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5767 { echo "$as_me:$LINENO: result: no" >&5
5768 echo "${ECHO_T}no" >&6; }
5772 test -n "$ac_ct_CXX" && break
5775 if test "x$ac_ct_CXX" = x; then
5778 case $cross_compiling:$ac_tool_warned in
5780 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5781 whose name does not start with the host triplet. If you think this
5782 configuration is useful to you, please write to autoconf@gnu.org." >&5
5783 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5784 whose name does not start with the host triplet. If you think this
5785 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5786 ac_tool_warned=yes ;;
5794 # Provide some information about the compiler.
5795 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5796 ac_compiler=`set X $ac_compile; echo $2`
5797 { (ac_try="$ac_compiler --version >&5"
5799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5800 *) ac_try_echo=$ac_try;;
5802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5803 (eval "$ac_compiler --version >&5") 2>&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); }
5807 { (ac_try="$ac_compiler -v >&5"
5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 (eval "$ac_compiler -v >&5") 2>&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }
5817 { (ac_try="$ac_compiler -V >&5"
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823 (eval "$ac_compiler -V >&5") 2>&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }
5828 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5829 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5830 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
5833 cat >conftest.$ac_ext <<_ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5851 rm -f conftest.$ac_objext
5852 if { (ac_try="$ac_compile"
5854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855 *) ac_try_echo=$ac_try;;
5857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5858 (eval "$ac_compile") 2>conftest.er1
5860 grep -v '^ *+' conftest.er1 >conftest.err
5862 cat conftest.err >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } && {
5865 test -z "$ac_cxx_werror_flag" ||
5866 test ! -s conftest.err
5867 } && test -s conftest.$ac_objext; then
5870 echo "$as_me: failed program was:" >&5
5871 sed 's/^/| /' conftest.$ac_ext >&5
5876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5877 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5880 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5881 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5882 GXX=`test $ac_compiler_gnu = yes && echo yes`
5883 ac_test_CXXFLAGS=${CXXFLAGS+set}
5884 ac_save_CXXFLAGS=$CXXFLAGS
5885 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5886 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5887 if test "${ac_cv_prog_cxx_g+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5890 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5891 ac_cxx_werror_flag=yes
5894 cat >conftest.$ac_ext <<_ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5909 rm -f conftest.$ac_objext
5910 if { (ac_try="$ac_compile"
5912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5913 *) ac_try_echo=$ac_try;;
5915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5916 (eval "$ac_compile") 2>conftest.er1
5918 grep -v '^ *+' conftest.er1 >conftest.err
5920 cat conftest.err >&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); } && {
5923 test -z "$ac_cxx_werror_flag" ||
5924 test ! -s conftest.err
5925 } && test -s conftest.$ac_objext; then
5926 ac_cv_prog_cxx_g=yes
5928 echo "$as_me: failed program was:" >&5
5929 sed 's/^/| /' conftest.$ac_ext >&5
5932 cat >conftest.$ac_ext <<_ACEOF
5935 cat confdefs.h >>conftest.$ac_ext
5936 cat >>conftest.$ac_ext <<_ACEOF
5937 /* end confdefs.h. */
5947 rm -f conftest.$ac_objext
5948 if { (ac_try="$ac_compile"
5950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951 *) ac_try_echo=$ac_try;;
5953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954 (eval "$ac_compile") 2>conftest.er1
5956 grep -v '^ *+' conftest.er1 >conftest.err
5958 cat conftest.err >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); } && {
5961 test -z "$ac_cxx_werror_flag" ||
5962 test ! -s conftest.err
5963 } && test -s conftest.$ac_objext; then
5966 echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5969 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5971 cat >conftest.$ac_ext <<_ACEOF
5974 cat confdefs.h >>conftest.$ac_ext
5975 cat >>conftest.$ac_ext <<_ACEOF
5976 /* end confdefs.h. */
5986 rm -f conftest.$ac_objext
5987 if { (ac_try="$ac_compile"
5989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5990 *) ac_try_echo=$ac_try;;
5992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5993 (eval "$ac_compile") 2>conftest.er1
5995 grep -v '^ *+' conftest.er1 >conftest.err
5997 cat conftest.err >&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); } && {
6000 test -z "$ac_cxx_werror_flag" ||
6001 test ! -s conftest.err
6002 } && test -s conftest.$ac_objext; then
6003 ac_cv_prog_cxx_g=yes
6005 echo "$as_me: failed program was:" >&5
6006 sed 's/^/| /' conftest.$ac_ext >&5
6011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6020 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6021 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6022 if test "$ac_test_CXXFLAGS" = set; then
6023 CXXFLAGS=$ac_save_CXXFLAGS
6024 elif test $ac_cv_prog_cxx_g = yes; then
6025 if test "$GXX" = yes; then
6031 if test "$GXX" = yes; then
6038 ac_cpp='$CXXCPP $CPPFLAGS'
6039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6043 depcc="$CXX" am_compiler_list=
6045 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6046 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6047 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6051 # We make a subdir and do the tests there. Otherwise we can end up
6052 # making bogus files that we don't know about and never remove. For
6053 # instance it was reported that on HP-UX the gcc test will end up
6054 # making a dummy file named `D' -- because `-MD' means `put the output
6057 # Copy depcomp to subdir because otherwise we won't find it if we're
6058 # using a relative directory.
6059 cp "$am_depcomp" conftest.dir
6061 # We will build objects and dependencies in a subdirectory because
6062 # it helps to detect inapplicable dependency modes. For instance
6063 # both Tru64's cc and ICC support -MD to output dependencies as a
6064 # side effect of compilation, but ICC will put the dependencies in
6065 # the current directory while Tru64 will put them in the object
6069 am_cv_CXX_dependencies_compiler_type=none
6070 if test "$am_compiler_list" = ""; then
6071 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6073 for depmode in $am_compiler_list; do
6074 # Setup a source with many dependencies, because some compilers
6075 # like to wrap large dependency lists on column 80 (with \), and
6076 # we should not choose a depcomp mode which is confused by this.
6078 # We need to recreate these files for each test, as the compiler may
6079 # overwrite some of them when testing with obscure command lines.
6080 # This happens at least with the AIX C compiler.
6082 for i in 1 2 3 4 5 6; do
6083 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6084 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6085 # Solaris 8's {/usr,}/bin/sh.
6086 touch sub/conftst$i.h
6088 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6092 # after this tag, mechanisms are not by side-effect, so they'll
6093 # only be used when explicitly requested
6094 if test "x$enable_dependency_tracking" = xyes; then
6102 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6103 # mode. It turns out that the SunPro C++ compiler does not properly
6104 # handle `-M -o', and we need to detect this.
6105 if depmode=$depmode \
6106 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6107 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6108 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6109 >/dev/null 2>conftest.err &&
6110 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6111 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6112 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6113 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6114 # icc doesn't choke on unknown options, it will just issue warnings
6115 # or remarks (even with -Werror). So we grep stderr for any message
6116 # that says an option was ignored or not supported.
6117 # When given -MP, icc 7.0 and 7.1 complain thusly:
6118 # icc: Command line warning: ignoring option '-M'; no argument required
6119 # The diagnosis changed in icc 8.0:
6120 # icc: Command line remark: option '-MP' not supported
6121 if (grep 'ignoring option' conftest.err ||
6122 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6123 am_cv_CXX_dependencies_compiler_type=$depmode
6132 am_cv_CXX_dependencies_compiler_type=none
6136 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6137 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6138 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6141 test "x$enable_dependency_tracking" != xno \
6142 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6143 am__fastdepCXX_TRUE=
6144 am__fastdepCXX_FALSE='#'
6146 am__fastdepCXX_TRUE='#'
6147 am__fastdepCXX_FALSE=
6153 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6154 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6155 (test "X$CXX" != "Xg++"))) ; then
6157 ac_cpp='$CXXCPP $CPPFLAGS'
6158 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6159 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6160 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6161 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6162 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6163 if test -z "$CXXCPP"; then
6164 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 # Double quotes because CXXCPP needs to be expanded
6168 for CXXCPP in "$CXX -E" "/lib/cpp"
6171 for ac_cxx_preproc_warn_flag in '' yes
6173 # Use a header file that comes with gcc, so configuring glibc
6174 # with a fresh cross-compiler works.
6175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6176 # <limits.h> exists even on freestanding compilers.
6177 # On the NeXT, cc -E runs the code through the compiler's parser,
6178 # not just through cpp. "Syntax error" is here to catch this case.
6179 cat >conftest.$ac_ext <<_ACEOF
6182 cat confdefs.h >>conftest.$ac_ext
6183 cat >>conftest.$ac_ext <<_ACEOF
6184 /* end confdefs.h. */
6186 # include <limits.h>
6188 # include <assert.h>
6192 if { (ac_try="$ac_cpp conftest.$ac_ext"
6194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6195 *) ac_try_echo=$ac_try;;
6197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6200 grep -v '^ *+' conftest.er1 >conftest.err
6202 cat conftest.err >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); } >/dev/null && {
6205 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6206 test ! -s conftest.err
6210 echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.$ac_ext >&5
6213 # Broken: fails on valid input.
6217 rm -f conftest.err conftest.$ac_ext
6219 # OK, works on sane cases. Now check whether nonexistent headers
6220 # can be detected and how.
6221 cat >conftest.$ac_ext <<_ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h. */
6227 #include <ac_nonexistent.h>
6229 if { (ac_try="$ac_cpp conftest.$ac_ext"
6231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6232 *) ac_try_echo=$ac_try;;
6234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6237 grep -v '^ *+' conftest.er1 >conftest.err
6239 cat conftest.err >&5
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); } >/dev/null && {
6242 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6243 test ! -s conftest.err
6245 # Broken: success on invalid input.
6248 echo "$as_me: failed program was:" >&5
6249 sed 's/^/| /' conftest.$ac_ext >&5
6251 # Passes both tests.
6256 rm -f conftest.err conftest.$ac_ext
6259 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6260 rm -f conftest.err conftest.$ac_ext
6261 if $ac_preproc_ok; then
6266 ac_cv_prog_CXXCPP=$CXXCPP
6269 CXXCPP=$ac_cv_prog_CXXCPP
6271 ac_cv_prog_CXXCPP=$CXXCPP
6273 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6274 echo "${ECHO_T}$CXXCPP" >&6; }
6276 for ac_cxx_preproc_warn_flag in '' yes
6278 # Use a header file that comes with gcc, so configuring glibc
6279 # with a fresh cross-compiler works.
6280 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6281 # <limits.h> exists even on freestanding compilers.
6282 # On the NeXT, cc -E runs the code through the compiler's parser,
6283 # not just through cpp. "Syntax error" is here to catch this case.
6284 cat >conftest.$ac_ext <<_ACEOF
6287 cat confdefs.h >>conftest.$ac_ext
6288 cat >>conftest.$ac_ext <<_ACEOF
6289 /* end confdefs.h. */
6291 # include <limits.h>
6293 # include <assert.h>
6297 if { (ac_try="$ac_cpp conftest.$ac_ext"
6299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300 *) ac_try_echo=$ac_try;;
6302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6305 grep -v '^ *+' conftest.er1 >conftest.err
6307 cat conftest.err >&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); } >/dev/null && {
6310 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6311 test ! -s conftest.err
6315 echo "$as_me: failed program was:" >&5
6316 sed 's/^/| /' conftest.$ac_ext >&5
6318 # Broken: fails on valid input.
6322 rm -f conftest.err conftest.$ac_ext
6324 # OK, works on sane cases. Now check whether nonexistent headers
6325 # can be detected and how.
6326 cat >conftest.$ac_ext <<_ACEOF
6329 cat confdefs.h >>conftest.$ac_ext
6330 cat >>conftest.$ac_ext <<_ACEOF
6331 /* end confdefs.h. */
6332 #include <ac_nonexistent.h>
6334 if { (ac_try="$ac_cpp conftest.$ac_ext"
6336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6337 *) ac_try_echo=$ac_try;;
6339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6342 grep -v '^ *+' conftest.er1 >conftest.err
6344 cat conftest.err >&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); } >/dev/null && {
6347 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6348 test ! -s conftest.err
6350 # Broken: success on invalid input.
6353 echo "$as_me: failed program was:" >&5
6354 sed 's/^/| /' conftest.$ac_ext >&5
6356 # Passes both tests.
6361 rm -f conftest.err conftest.$ac_ext
6364 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6365 rm -f conftest.err conftest.$ac_ext
6366 if $ac_preproc_ok; then
6369 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6370 See \`config.log' for more details." >&5
6371 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6372 See \`config.log' for more details." >&2;}
6373 { (exit 1); exit 1; }; }
6377 ac_cpp='$CXXCPP $CPPFLAGS'
6378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6388 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6390 # find the maximum length of command line arguments
6391 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6392 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6393 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 # On DJGPP, this test can blow up pretty badly due to problems in libc
6402 # (any single argument exceeding 2000 bytes causes a buffer overrun
6403 # during glob expansion). Even if it were fixed, the result of this
6404 # check would be larger than it should be.
6405 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6409 # Under GNU Hurd, this test is not required because there is
6410 # no limit to the length of command line arguments.
6411 # Libtool will interpret -1 as no limit whatsoever
6412 lt_cv_sys_max_cmd_len=-1;
6416 # On Win9x/ME, this test blows up -- it succeeds, but takes
6417 # about 5 minutes as the teststring grows exponentially.
6418 # Worse, since 9x/ME are not pre-emptively multitasking,
6419 # you end up with a "frozen" computer, even though with patience
6420 # the test eventually succeeds (with a max line length of 256k).
6421 # Instead, let's just punt: use the minimum linelength reported by
6422 # all of the supported platforms: 8192 (on NT/2K/XP).
6423 lt_cv_sys_max_cmd_len=8192;
6427 # On AmigaOS with pdksh, this test takes hours, literally.
6428 # So we just punt and use a minimum line length of 8192.
6429 lt_cv_sys_max_cmd_len=8192;
6432 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6433 # This has been around since 386BSD, at least. Likely further.
6434 if test -x /sbin/sysctl; then
6435 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6436 elif test -x /usr/sbin/sysctl; then
6437 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6439 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6441 # And add a safety zone
6442 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6443 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6447 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6448 lt_cv_sys_max_cmd_len=196608
6452 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6453 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6454 # nice to cause kernel panics so lets avoid the loop below.
6455 # First set a reasonable default.
6456 lt_cv_sys_max_cmd_len=16384
6458 if test -x /sbin/sysconfig; then
6459 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6460 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6465 lt_cv_sys_max_cmd_len=102400
6467 sysv5* | sco5v6* | sysv4.2uw2*)
6468 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6469 if test -n "$kargmax"; then
6470 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6472 lt_cv_sys_max_cmd_len=32768
6476 # If test is not a shell built-in, we'll probably end up computing a
6477 # maximum length that is only half of the actual maximum length, but
6479 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6480 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6481 = "XX$teststring") >/dev/null 2>&1 &&
6482 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6483 lt_cv_sys_max_cmd_len=$new_result &&
6484 test $i != 17 # 1/2 MB should be enough
6487 teststring=$teststring$teststring
6490 # Add a significant safety factor because C++ compilers can tack on massive
6491 # amounts of additional arguments before passing them to the linker.
6492 # It appears as though 1/2 is a usable value.
6493 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6499 if test -n $lt_cv_sys_max_cmd_len ; then
6500 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6501 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6503 { echo "$as_me:$LINENO: result: none" >&5
6504 echo "${ECHO_T}none" >&6; }
6510 # Check for command to grab the raw symbol name followed by C symbol from nm.
6511 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6512 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6513 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6517 # These are sane defaults that work on at least a few old systems.
6518 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6520 # Character class describing NM global symbol codes.
6521 symcode='[BCDEGRST]'
6523 # Regexp to match symbols that can be accessed directly from C.
6524 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6526 # Transform an extracted symbol line into a proper C declaration
6527 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6529 # Transform an extracted symbol line into symbol name and symbol address
6530 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'"
6532 # Define system-specific variables.
6537 cygwin* | mingw* | pw32*)
6538 symcode='[ABCDGISTW]'
6540 hpux*) # Its linker distinguishes data from code symbols
6541 if test "$host_cpu" = ia64; then
6542 symcode='[ABCDEGRST]'
6544 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6545 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'"
6547 linux* | k*bsd*-gnu)
6548 if test "$host_cpu" = ia64; then
6549 symcode='[ABCDGIRSTW]'
6550 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6551 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'"
6555 symcode='[BCDEGRST]'
6558 symcode='[BCDEGQRST]'
6569 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6577 # Handle CRLF in mingw tool chain
6581 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6585 # If we're using GNU nm, then use its standard symbol codes.
6586 case `$NM -V 2>&1` in
6587 *GNU* | *'with BFD'*)
6588 symcode='[ABCDGIRSTW]' ;;
6591 # Try without a prefix undercore, then with it.
6592 for ac_symprfx in "" "_"; do
6594 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6595 symxfrm="\\1 $ac_symprfx\\2 \\2"
6597 # Write the raw and C identifiers.
6598 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6600 # Check to see that the pipe works correctly.
6604 cat > conftest.$ac_ext <<EOF
6609 void nm_test_func(){}
6613 int main(){nm_test_var='a';nm_test_func();return(0);}
6616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6617 (eval $ac_compile) 2>&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); }; then
6621 # Now try to grab the symbols.
6623 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6624 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } && test -s "$nlist"; then
6628 # Try sorting and uniquifying the output.
6629 if sort "$nlist" | uniq > "$nlist"T; then
6630 mv -f "$nlist"T "$nlist"
6635 # Make sure that we snagged all the symbols we need.
6636 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6637 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6638 cat <<EOF > conftest.$ac_ext
6644 # Now generate the symbol file.
6645 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6647 cat <<EOF >> conftest.$ac_ext
6648 #if defined (__STDC__) && __STDC__
6649 # define lt_ptr_t void *
6651 # define lt_ptr_t char *
6655 /* The mapping between symbol names and symbols. */
6660 lt_preloaded_symbols[] =
6663 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6664 cat <<\EOF >> conftest.$ac_ext
6672 # Now try linking the two files.
6673 mv conftest.$ac_objext conftstm.$ac_objext
6674 lt_save_LIBS="$LIBS"
6675 lt_save_CFLAGS="$CFLAGS"
6676 LIBS="conftstm.$ac_objext"
6677 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6679 (eval $ac_link) 2>&5
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6685 LIBS="$lt_save_LIBS"
6686 CFLAGS="$lt_save_CFLAGS"
6688 echo "cannot find nm_test_func in $nlist" >&5
6691 echo "cannot find nm_test_var in $nlist" >&5
6694 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6697 echo "$progname: failed program was:" >&5
6698 cat conftest.$ac_ext >&5
6700 rm -f conftest* conftst*
6702 # Do not use the global_symbol_pipe unless it works.
6703 if test "$pipe_works" = yes; then
6706 lt_cv_sys_global_symbol_pipe=
6712 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6713 lt_cv_sys_global_symbol_to_cdecl=
6715 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6716 { echo "$as_me:$LINENO: result: failed" >&5
6717 echo "${ECHO_T}failed" >&6; }
6719 { echo "$as_me:$LINENO: result: ok" >&5
6720 echo "${ECHO_T}ok" >&6; }
6723 { echo "$as_me:$LINENO: checking for objdir" >&5
6724 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6725 if test "${lt_cv_objdir+set}" = set; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6728 rm -f .libs 2>/dev/null
6729 mkdir .libs 2>/dev/null
6730 if test -d .libs; then
6733 # MS-DOS does not allow filenames that begin with a dot.
6736 rmdir .libs 2>/dev/null
6738 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6739 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6740 objdir=$lt_cv_objdir
6748 # AIX sometimes has problems with the GCC collect2 program. For some
6749 # reason, if we set the COLLECT_NAMES environment variable, the problems
6750 # vanish in a puff of smoke.
6751 if test "X${COLLECT_NAMES+set}" != Xset; then
6753 export COLLECT_NAMES
6758 # Sed substitution that helps us do robust quoting. It backslashifies
6759 # metacharacters that are still active within double-quoted strings.
6760 Xsed='sed -e 1s/^X//'
6761 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6763 # Same as above, but do not quote variable references.
6764 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6766 # Sed substitution to delay expansion of an escaped shell variable in a
6767 # double_quote_subst'ed string.
6768 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6770 # Sed substitution to avoid accidental globbing in evaled expressions
6771 no_glob_subst='s/\*/\\\*/g'
6777 default_ofile=libtool
6778 can_build_shared=yes
6780 # All known linkers require a `.a' archive for static linking (except MSVC,
6781 # which needs '.lib').
6783 ltmain="$ac_aux_dir/ltmain.sh"
6784 ofile="$default_ofile"
6785 with_gnu_ld="$lt_cv_prog_gnu_ld"
6787 if test -n "$ac_tool_prefix"; then
6788 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6789 set dummy ${ac_tool_prefix}ar; ac_word=$2
6790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6792 if test "${ac_cv_prog_AR+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6795 if test -n "$AR"; then
6796 ac_cv_prog_AR="$AR" # Let the user override the test.
6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 test -z "$as_dir" && as_dir=.
6803 for ac_exec_ext in '' $ac_executable_extensions; do
6804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6805 ac_cv_prog_AR="${ac_tool_prefix}ar"
6806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 if test -n "$AR"; then
6817 { echo "$as_me:$LINENO: result: $AR" >&5
6818 echo "${ECHO_T}$AR" >&6; }
6820 { echo "$as_me:$LINENO: result: no" >&5
6821 echo "${ECHO_T}no" >&6; }
6826 if test -z "$ac_cv_prog_AR"; then
6828 # Extract the first word of "ar", so it can be a program name with args.
6829 set dummy ar; ac_word=$2
6830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6832 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6833 echo $ECHO_N "(cached) $ECHO_C" >&6
6835 if test -n "$ac_ct_AR"; then
6836 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 test -z "$as_dir" && as_dir=.
6843 for ac_exec_ext in '' $ac_executable_extensions; do
6844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6845 ac_cv_prog_ac_ct_AR="ar"
6846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6855 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6856 if test -n "$ac_ct_AR"; then
6857 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6858 echo "${ECHO_T}$ac_ct_AR" >&6; }
6860 { echo "$as_me:$LINENO: result: no" >&5
6861 echo "${ECHO_T}no" >&6; }
6864 if test "x$ac_ct_AR" = x; then
6867 case $cross_compiling:$ac_tool_warned in
6869 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6870 whose name does not start with the host triplet. If you think this
6871 configuration is useful to you, please write to autoconf@gnu.org." >&5
6872 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6873 whose name does not start with the host triplet. If you think this
6874 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6875 ac_tool_warned=yes ;;
6883 if test -n "$ac_tool_prefix"; then
6884 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6885 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6888 if test "${ac_cv_prog_RANLIB+set}" = set; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6891 if test -n "$RANLIB"; then
6892 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6901 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6911 RANLIB=$ac_cv_prog_RANLIB
6912 if test -n "$RANLIB"; then
6913 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6914 echo "${ECHO_T}$RANLIB" >&6; }
6916 { echo "$as_me:$LINENO: result: no" >&5
6917 echo "${ECHO_T}no" >&6; }
6922 if test -z "$ac_cv_prog_RANLIB"; then
6923 ac_ct_RANLIB=$RANLIB
6924 # Extract the first word of "ranlib", so it can be a program name with args.
6925 set dummy ranlib; ac_word=$2
6926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6928 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 if test -n "$ac_ct_RANLIB"; then
6932 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6941 ac_cv_prog_ac_ct_RANLIB="ranlib"
6942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6952 if test -n "$ac_ct_RANLIB"; then
6953 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6954 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6956 { echo "$as_me:$LINENO: result: no" >&5
6957 echo "${ECHO_T}no" >&6; }
6960 if test "x$ac_ct_RANLIB" = x; then
6963 case $cross_compiling:$ac_tool_warned in
6965 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6966 whose name does not start with the host triplet. If you think this
6967 configuration is useful to you, please write to autoconf@gnu.org." >&5
6968 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6969 whose name does not start with the host triplet. If you think this
6970 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6971 ac_tool_warned=yes ;;
6973 RANLIB=$ac_ct_RANLIB
6976 RANLIB="$ac_cv_prog_RANLIB"
6979 if test -n "$ac_tool_prefix"; then
6980 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6981 set dummy ${ac_tool_prefix}strip; ac_word=$2
6982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6984 if test "${ac_cv_prog_STRIP+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 if test -n "$STRIP"; then
6988 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 test -z "$as_dir" && as_dir=.
6995 for ac_exec_ext in '' $ac_executable_extensions; do
6996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6997 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7007 STRIP=$ac_cv_prog_STRIP
7008 if test -n "$STRIP"; then
7009 { echo "$as_me:$LINENO: result: $STRIP" >&5
7010 echo "${ECHO_T}$STRIP" >&6; }
7012 { echo "$as_me:$LINENO: result: no" >&5
7013 echo "${ECHO_T}no" >&6; }
7018 if test -z "$ac_cv_prog_STRIP"; then
7020 # Extract the first word of "strip", so it can be a program name with args.
7021 set dummy strip; ac_word=$2
7022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7024 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7027 if test -n "$ac_ct_STRIP"; then
7028 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034 test -z "$as_dir" && as_dir=.
7035 for ac_exec_ext in '' $ac_executable_extensions; do
7036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7037 ac_cv_prog_ac_ct_STRIP="strip"
7038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7048 if test -n "$ac_ct_STRIP"; then
7049 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7050 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7052 { echo "$as_me:$LINENO: result: no" >&5
7053 echo "${ECHO_T}no" >&6; }
7056 if test "x$ac_ct_STRIP" = x; then
7059 case $cross_compiling:$ac_tool_warned in
7061 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7062 whose name does not start with the host triplet. If you think this
7063 configuration is useful to you, please write to autoconf@gnu.org." >&5
7064 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7065 whose name does not start with the host triplet. If you think this
7066 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7067 ac_tool_warned=yes ;;
7072 STRIP="$ac_cv_prog_STRIP"
7077 old_CFLAGS="$CFLAGS"
7079 # Set sane defaults for various variables
7080 test -z "$AR" && AR=ar
7081 test -z "$AR_FLAGS" && AR_FLAGS=cru
7082 test -z "$AS" && AS=as
7083 test -z "$CC" && CC=cc
7084 test -z "$LTCC" && LTCC=$CC
7085 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7086 test -z "$DLLTOOL" && DLLTOOL=dlltool
7087 test -z "$LD" && LD=ld
7088 test -z "$LN_S" && LN_S="ln -s"
7089 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7090 test -z "$NM" && NM=nm
7091 test -z "$SED" && SED=sed
7092 test -z "$OBJDUMP" && OBJDUMP=objdump
7093 test -z "$RANLIB" && RANLIB=:
7094 test -z "$STRIP" && STRIP=:
7095 test -z "$ac_objext" && ac_objext=o
7097 # Determine commands to create old-style static archives.
7098 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7099 old_postinstall_cmds='chmod 644 $oldlib'
7100 old_postuninstall_cmds=
7102 if test -n "$RANLIB"; then
7105 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7108 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7111 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7114 for cc_temp in $compiler""; do
7116 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7117 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7122 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7125 # Only perform the check for file, if the check method requires it
7126 case $deplibs_check_method in
7128 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7129 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7130 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7131 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7136 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7139 lt_save_MAGIC_CMD="$MAGIC_CMD"
7140 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7141 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7142 for ac_dir in $ac_dummy; do
7144 test -z "$ac_dir" && ac_dir=.
7145 if test -f $ac_dir/${ac_tool_prefix}file; then
7146 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7147 if test -n "$file_magic_test_file"; then
7148 case $deplibs_check_method in
7150 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7151 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7152 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7153 $EGREP "$file_magic_regex" > /dev/null; then
7158 *** Warning: the command libtool uses to detect shared libraries,
7159 *** $file_magic_cmd, produces output that libtool cannot recognize.
7160 *** The result is that libtool may fail to recognize shared libraries
7161 *** as such. This will affect the creation of libtool libraries that
7162 *** depend on shared libraries, but programs linked with such libtool
7163 *** libraries will work regardless of this problem. Nevertheless, you
7164 *** may want to report the problem to your system manager and/or to
7165 *** bug-libtool@gnu.org
7175 MAGIC_CMD="$lt_save_MAGIC_CMD"
7180 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7181 if test -n "$MAGIC_CMD"; then
7182 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7183 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7185 { echo "$as_me:$LINENO: result: no" >&5
7186 echo "${ECHO_T}no" >&6; }
7189 if test -z "$lt_cv_path_MAGIC_CMD"; then
7190 if test -n "$ac_tool_prefix"; then
7191 { echo "$as_me:$LINENO: checking for file" >&5
7192 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7193 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7198 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7201 lt_save_MAGIC_CMD="$MAGIC_CMD"
7202 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7203 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7204 for ac_dir in $ac_dummy; do
7206 test -z "$ac_dir" && ac_dir=.
7207 if test -f $ac_dir/file; then
7208 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7209 if test -n "$file_magic_test_file"; then
7210 case $deplibs_check_method in
7212 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7213 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7214 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7215 $EGREP "$file_magic_regex" > /dev/null; then
7220 *** Warning: the command libtool uses to detect shared libraries,
7221 *** $file_magic_cmd, produces output that libtool cannot recognize.
7222 *** The result is that libtool may fail to recognize shared libraries
7223 *** as such. This will affect the creation of libtool libraries that
7224 *** depend on shared libraries, but programs linked with such libtool
7225 *** libraries will work regardless of this problem. Nevertheless, you
7226 *** may want to report the problem to your system manager and/or to
7227 *** bug-libtool@gnu.org
7237 MAGIC_CMD="$lt_save_MAGIC_CMD"
7242 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7243 if test -n "$MAGIC_CMD"; then
7244 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7245 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7247 { echo "$as_me:$LINENO: result: no" >&5
7248 echo "${ECHO_T}no" >&6; }
7261 enable_win32_dll=yes
7263 # Check whether --enable-libtool-lock was given.
7264 if test "${enable_libtool_lock+set}" = set; then
7265 enableval=$enable_libtool_lock;
7268 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7271 # Check whether --with-pic was given.
7272 if test "${with_pic+set}" = set; then
7273 withval=$with_pic; pic_mode="$withval"
7278 test -z "$pic_mode" && pic_mode=default
7280 # Use C for the default configuration in the libtool script
7284 ac_cpp='$CPP $CPPFLAGS'
7285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7290 # Source file extension for C test sources.
7293 # Object file extension for compiled C test sources.
7297 # Code to be used in simple compile tests
7298 lt_simple_compile_test_code="int some_variable = 0;\n"
7300 # Code to be used in simple link tests
7301 lt_simple_link_test_code='int main(){return(0);}\n'
7304 # If no C compiler was specified, use CC.
7307 # If no C compiler flags were specified, use CFLAGS.
7308 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7310 # Allow CC to be a program name with arguments.
7314 # save warnings/boilerplate of simple test code
7315 ac_outfile=conftest.$ac_objext
7316 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7317 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7318 _lt_compiler_boilerplate=`cat conftest.err`
7321 ac_outfile=conftest.$ac_objext
7322 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7323 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7324 _lt_linker_boilerplate=`cat conftest.err`
7329 lt_prog_compiler_no_builtin_flag=
7331 if test "$GCC" = yes; then
7332 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7335 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7336 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7337 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 lt_cv_prog_compiler_rtti_exceptions=no
7341 ac_outfile=conftest.$ac_objext
7342 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7343 lt_compiler_flag="-fno-rtti -fno-exceptions"
7344 # Insert the option either (1) after the last *FLAGS variable, or
7345 # (2) before a word containing "conftest.", or (3) at the end.
7346 # Note that $ac_compile itself does not contain backslashes and begins
7347 # with a dollar sign (not a hyphen), so the echo should work correctly.
7348 # The option is referenced via a variable to avoid confusing sed.
7349 lt_compile=`echo "$ac_compile" | $SED \
7350 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7351 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7352 -e 's:$: $lt_compiler_flag:'`
7353 (eval echo "\"\$as_me:7353: $lt_compile\"" >&5)
7354 (eval "$lt_compile" 2>conftest.err)
7356 cat conftest.err >&5
7357 echo "$as_me:7357: \$? = $ac_status" >&5
7358 if (exit $ac_status) && test -s "$ac_outfile"; then
7359 # The compiler can only warn and ignore the option if not recognized
7360 # So say no if there are warnings other than the usual output.
7361 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7362 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7363 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7364 lt_cv_prog_compiler_rtti_exceptions=yes
7370 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7371 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7373 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7374 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7381 lt_prog_compiler_wl=
7382 lt_prog_compiler_pic=
7383 lt_prog_compiler_static=
7385 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7386 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7388 if test "$GCC" = yes; then
7389 lt_prog_compiler_wl='-Wl,'
7390 lt_prog_compiler_static='-static'
7394 # All AIX code is PIC.
7395 if test "$host_cpu" = ia64; then
7396 # AIX 5 now supports IA64 processor
7397 lt_prog_compiler_static='-Bstatic'
7402 # FIXME: we need at least 68020 code to build shared libraries, but
7403 # adding the `-m68020' flag to GCC prevents building anything better,
7405 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7408 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7409 # PIC is the default for these OSes.
7412 mingw* | pw32* | os2*)
7413 # This hack is so that the source file can tell whether it is being
7414 # built for inclusion in a dll (and should export symbols for example).
7415 lt_prog_compiler_pic='-DDLL_EXPORT'
7418 darwin* | rhapsody*)
7419 # PIC is the default on this platform
7420 # Common symbols not allowed in MH_DYLIB files
7421 lt_prog_compiler_pic='-fno-common'
7425 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7426 # Instead, we relocate shared libraries at runtime.
7430 # Just because we use GCC doesn't mean we suddenly get shared libraries
7431 # on systems that don't support them.
7432 lt_prog_compiler_can_build_shared=no
7437 if test -d /usr/nec; then
7438 lt_prog_compiler_pic=-Kconform_pic
7443 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7450 lt_prog_compiler_pic='-fPIC'
7456 lt_prog_compiler_pic='-fPIC'
7460 # PORTME Check for flag to pass linker flags through the system compiler.
7463 lt_prog_compiler_wl='-Wl,'
7464 if test "$host_cpu" = ia64; then
7465 # AIX 5 now supports IA64 processor
7466 lt_prog_compiler_static='-Bstatic'
7468 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7472 # PIC is the default on this platform
7473 # Common symbols not allowed in MH_DYLIB files
7474 case $cc_basename in
7476 lt_prog_compiler_pic='-qnocommon'
7477 lt_prog_compiler_wl='-Wl,'
7482 mingw* | pw32* | os2*)
7483 # This hack is so that the source file can tell whether it is being
7484 # built for inclusion in a dll (and should export symbols for example).
7485 lt_prog_compiler_pic='-DDLL_EXPORT'
7488 hpux9* | hpux10* | hpux11*)
7489 lt_prog_compiler_wl='-Wl,'
7490 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7497 lt_prog_compiler_pic='+Z'
7500 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7501 lt_prog_compiler_static='${wl}-a ${wl}archive'
7504 irix5* | irix6* | nonstopux*)
7505 lt_prog_compiler_wl='-Wl,'
7506 # PIC (with -KPIC) is the default.
7507 lt_prog_compiler_static='-non_shared'
7511 lt_prog_compiler_pic='-KPIC'
7512 lt_prog_compiler_static='-Bstatic'
7515 linux* | k*bsd*-gnu)
7516 case $cc_basename in
7518 lt_prog_compiler_wl='-Wl,'
7519 lt_prog_compiler_pic='-KPIC'
7520 lt_prog_compiler_static='-static'
7522 pgcc* | pgf77* | pgf90* | pgf95*)
7523 # Portland Group compilers (*not* the Pentium gcc compiler,
7524 # which looks to be a dead project)
7525 lt_prog_compiler_wl='-Wl,'
7526 lt_prog_compiler_pic='-fpic'
7527 lt_prog_compiler_static='-Bstatic'
7530 lt_prog_compiler_wl='-Wl,'
7531 # All Alpha code is PIC.
7532 lt_prog_compiler_static='-non_shared'
7537 osf3* | osf4* | osf5*)
7538 lt_prog_compiler_wl='-Wl,'
7539 # All OSF/1 code is PIC.
7540 lt_prog_compiler_static='-non_shared'
7544 lt_prog_compiler_pic='-KPIC'
7545 lt_prog_compiler_static='-Bstatic'
7546 case $cc_basename in
7548 lt_prog_compiler_wl='-Qoption ld ';;
7550 lt_prog_compiler_wl='-Wl,';;
7555 lt_prog_compiler_wl='-Qoption ld '
7556 lt_prog_compiler_pic='-PIC'
7557 lt_prog_compiler_static='-Bstatic'
7560 sysv4 | sysv4.2uw2* | sysv4.3*)
7561 lt_prog_compiler_wl='-Wl,'
7562 lt_prog_compiler_pic='-KPIC'
7563 lt_prog_compiler_static='-Bstatic'
7567 if test -d /usr/nec ;then
7568 lt_prog_compiler_pic='-Kconform_pic'
7569 lt_prog_compiler_static='-Bstatic'
7573 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7574 lt_prog_compiler_wl='-Wl,'
7575 lt_prog_compiler_pic='-KPIC'
7576 lt_prog_compiler_static='-Bstatic'
7580 lt_prog_compiler_wl='-Wl,'
7581 lt_prog_compiler_can_build_shared=no
7585 lt_prog_compiler_pic='-pic'
7586 lt_prog_compiler_static='-Bstatic'
7590 lt_prog_compiler_can_build_shared=no
7595 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7596 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7599 # Check to make sure the PIC flag actually works.
7601 if test -n "$lt_prog_compiler_pic"; then
7603 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7604 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7605 if test "${lt_prog_compiler_pic_works+set}" = set; then
7606 echo $ECHO_N "(cached) $ECHO_C" >&6
7608 lt_prog_compiler_pic_works=no
7609 ac_outfile=conftest.$ac_objext
7610 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7611 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7612 # Insert the option either (1) after the last *FLAGS variable, or
7613 # (2) before a word containing "conftest.", or (3) at the end.
7614 # Note that $ac_compile itself does not contain backslashes and begins
7615 # with a dollar sign (not a hyphen), so the echo should work correctly.
7616 # The option is referenced via a variable to avoid confusing sed.
7617 lt_compile=`echo "$ac_compile" | $SED \
7618 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7619 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7620 -e 's:$: $lt_compiler_flag:'`
7621 (eval echo "\"\$as_me:7621: $lt_compile\"" >&5)
7622 (eval "$lt_compile" 2>conftest.err)
7624 cat conftest.err >&5
7625 echo "$as_me:7625: \$? = $ac_status" >&5
7626 if (exit $ac_status) && test -s "$ac_outfile"; then
7627 # The compiler can only warn and ignore the option if not recognized
7628 # So say no if there are warnings other than the usual output.
7629 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7630 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7631 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7632 lt_prog_compiler_pic_works=yes
7638 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7639 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7641 if test x"$lt_prog_compiler_pic_works" = xyes; then
7642 case $lt_prog_compiler_pic in
7644 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7647 lt_prog_compiler_pic=
7648 lt_prog_compiler_can_build_shared=no
7653 # For platforms which do not support PIC, -DPIC is meaningless:
7655 lt_prog_compiler_pic=
7658 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7663 # Check to make sure the static flag actually works.
7665 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7666 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7667 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7668 if test "${lt_prog_compiler_static_works+set}" = set; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7671 lt_prog_compiler_static_works=no
7672 save_LDFLAGS="$LDFLAGS"
7673 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7674 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7675 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7676 # The linker can only warn and ignore the option if not recognized
7677 # So say no if there are warnings
7678 if test -s conftest.err; then
7679 # Append any errors to the config.log.
7680 cat conftest.err 1>&5
7681 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7682 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7683 if diff conftest.exp conftest.er2 >/dev/null; then
7684 lt_prog_compiler_static_works=yes
7687 lt_prog_compiler_static_works=yes
7691 LDFLAGS="$save_LDFLAGS"
7694 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7695 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7697 if test x"$lt_prog_compiler_static_works" = xyes; then
7700 lt_prog_compiler_static=
7704 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7705 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7706 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7709 lt_cv_prog_compiler_c_o=no
7710 $rm -r conftest 2>/dev/null
7714 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7716 lt_compiler_flag="-o out/conftest2.$ac_objext"
7717 # Insert the option either (1) after the last *FLAGS variable, or
7718 # (2) before a word containing "conftest.", or (3) at the end.
7719 # Note that $ac_compile itself does not contain backslashes and begins
7720 # with a dollar sign (not a hyphen), so the echo should work correctly.
7721 lt_compile=`echo "$ac_compile" | $SED \
7722 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7723 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7724 -e 's:$: $lt_compiler_flag:'`
7725 (eval echo "\"\$as_me:7725: $lt_compile\"" >&5)
7726 (eval "$lt_compile" 2>out/conftest.err)
7728 cat out/conftest.err >&5
7729 echo "$as_me:7729: \$? = $ac_status" >&5
7730 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7732 # The compiler can only warn and ignore the option if not recognized
7733 # So say no if there are warnings
7734 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7735 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7736 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7737 lt_cv_prog_compiler_c_o=yes
7742 # SGI C++ compiler will create directory out/ii_files/ for
7743 # template instantiation
7744 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7745 $rm out/* && rmdir out
7751 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7752 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7755 hard_links="nottested"
7756 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7757 # do not overwrite the value of need_locks provided by the user
7758 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7759 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7762 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7764 ln conftest.a conftest.b 2>&5 || hard_links=no
7765 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7766 { echo "$as_me:$LINENO: result: $hard_links" >&5
7767 echo "${ECHO_T}$hard_links" >&6; }
7768 if test "$hard_links" = no; then
7769 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7770 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7777 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7778 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7781 allow_undefined_flag=
7782 enable_shared_with_static_runtimes=no
7784 archive_expsym_cmds=
7785 old_archive_From_new_cmds=
7786 old_archive_from_expsyms_cmds=
7787 export_dynamic_flag_spec=
7788 whole_archive_flag_spec=
7789 thread_safe_flag_spec=
7790 hardcode_libdir_flag_spec=
7791 hardcode_libdir_flag_spec_ld=
7792 hardcode_libdir_separator=
7795 hardcode_shlibpath_var=unsupported
7796 link_all_deplibs=unknown
7797 hardcode_automatic=no
7800 always_export_symbols=no
7801 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7802 # include_expsyms should be a list of space-separated symbols to be *always*
7803 # included in the symbol list
7805 # exclude_expsyms can be an extended regexp of symbols to exclude
7806 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7807 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7808 # as well as any symbol that contains `d'.
7809 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7810 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7811 # platforms (ab)use it in PIC code, but their linkers get confused if
7812 # the symbol is explicitly referenced. Since portable code cannot
7813 # rely on this symbol name, it's probably fine to never include it in
7814 # preloaded symbol tables.
7815 extract_expsyms_cmds=
7816 # Just being paranoid about ensuring that cc_basename is set.
7817 for cc_temp in $compiler""; do
7819 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7820 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7825 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7828 cygwin* | mingw* | pw32*)
7829 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7830 # When not using gcc, we currently assume that we are using
7831 # Microsoft Visual C++.
7832 if test "$GCC" != yes; then
7837 # we just hope/assume this is gcc and not c89 (= MSVC++)
7846 if test "$with_gnu_ld" = yes; then
7847 # If archive_cmds runs LD, not CC, wlarc should be empty
7850 # Set some defaults for GNU ld with shared library support. These
7851 # are reset later if shared libraries are not supported. Putting them
7852 # here allows them to be overridden if necessary.
7853 runpath_var=LD_RUN_PATH
7854 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7855 export_dynamic_flag_spec='${wl}--export-dynamic'
7856 # ancient GNU ld didn't support --whole-archive et. al.
7857 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7858 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7860 whole_archive_flag_spec=
7862 supports_anon_versioning=no
7863 case `$LD -v 2>/dev/null` in
7864 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7865 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7866 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7867 *\ 2.11.*) ;; # other 2.11 versions
7868 *) supports_anon_versioning=yes ;;
7871 # See if GNU ld supports shared libraries.
7873 aix3* | aix4* | aix5*)
7874 # On AIX/PPC, the GNU linker is very broken
7875 if test "$host_cpu" != ia64; then
7879 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7880 *** to be unable to reliably create shared libraries on AIX.
7881 *** Therefore, libtool is disabling shared libraries support. If you
7882 *** really care for shared libraries, you may want to modify your PATH
7883 *** so that a non-GNU linker is found, and then restart.
7890 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)'
7891 hardcode_libdir_flag_spec='-L$libdir'
7892 hardcode_minus_L=yes
7894 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7895 # that the semantics of dynamic libraries on AmigaOS, at least up
7896 # to version 4, is to share data among multiple programs linked
7897 # with the same dynamic library. Since this doesn't match the
7898 # behavior of shared libraries on other platforms, we can't use
7904 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7905 allow_undefined_flag=unsupported
7906 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7907 # support --undefined. This deserves some investigation. FIXME
7908 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7914 cygwin* | mingw* | pw32*)
7915 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7916 # as there is no search path for DLLs.
7917 hardcode_libdir_flag_spec='-L$libdir'
7918 allow_undefined_flag=unsupported
7919 always_export_symbols=no
7920 enable_shared_with_static_runtimes=yes
7921 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7923 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7924 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7925 # If the export-symbols file already is a .def file (1st line
7926 # is EXPORTS), use it as is; otherwise, prepend...
7927 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7928 cp $export_symbols $output_objdir/$soname.def;
7930 echo EXPORTS > $output_objdir/$soname.def;
7931 cat $export_symbols >> $output_objdir/$soname.def;
7933 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7941 hardcode_shlibpath_var=no
7942 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7943 export_dynamic_flag_spec='${wl}-E'
7944 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7945 # Instead, shared libraries are loaded at an image base (0x10000000 by
7946 # default) and relocated if they conflict, which is a slow very memory
7947 # consuming and fragmenting process. To avoid this, we pick a random,
7948 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7949 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7950 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7951 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'
7954 linux* | k*bsd*-gnu)
7955 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7957 case $cc_basename,$host_cpu in
7958 pgcc*) # Portland Group C compiler
7959 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'
7960 tmp_addflag=' $pic_flag'
7962 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7963 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'
7964 tmp_addflag=' $pic_flag -Mnomain' ;;
7965 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7966 tmp_addflag=' -i_dynamic' ;;
7967 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7968 tmp_addflag=' -i_dynamic -nofor_main' ;;
7969 ifc* | ifort*) # Intel Fortran compiler
7970 tmp_addflag=' -nofor_main' ;;
7972 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7974 if test $supports_anon_versioning = yes; then
7975 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7976 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7977 $echo "local: *; };" >> $output_objdir/$libname.ver~
7978 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7986 netbsd* | netbsdelf*-gnu)
7987 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7988 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7991 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7992 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7997 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8001 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8002 *** create shared libraries on Solaris systems. Therefore, libtool
8003 *** is disabling shared libraries support. We urge you to upgrade GNU
8004 *** binutils to release 2.9.1 or newer. Another option is to modify
8005 *** your PATH or compiler configuration so that the native linker is
8006 *** used, and then restart.
8009 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8010 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8011 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8017 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8018 case `$LD -v 2>&1` in
8019 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8023 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8024 *** reliably create shared libraries on SCO systems. Therefore, libtool
8025 *** is disabling shared libraries support. We urge you to upgrade GNU
8026 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8027 *** your PATH or compiler configuration so that the native linker is
8028 *** used, and then restart.
8033 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8034 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8035 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8036 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8045 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8048 hardcode_shlibpath_var=no
8052 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8053 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8054 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8061 if test "$ld_shlibs" = no; then
8063 hardcode_libdir_flag_spec=
8064 export_dynamic_flag_spec=
8065 whole_archive_flag_spec=
8068 # PORTME fill in a description of your system's linker (not GNU ld)
8071 allow_undefined_flag=unsupported
8072 always_export_symbols=yes
8073 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'
8074 # Note: this linker hardcodes the directories in LIBPATH if there
8075 # are no directories specified by -L.
8076 hardcode_minus_L=yes
8077 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8078 # Neither direct hardcoding nor static linking is supported with a
8080 hardcode_direct=unsupported
8085 if test "$host_cpu" = ia64; then
8086 # On IA64, the linker does run time linking by default, so we don't
8087 # have to do anything special.
8088 aix_use_runtimelinking=no
8089 exp_sym_flag='-Bexport'
8092 # If we're using GNU nm, then we don't want the "-C" option.
8093 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8094 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8095 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'
8097 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'
8099 aix_use_runtimelinking=no
8101 # Test if we are trying to use run time linking or normal
8102 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8103 # need to do runtime linking.
8104 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8105 for ld_flag in $LDFLAGS; do
8106 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8107 aix_use_runtimelinking=yes
8114 exp_sym_flag='-bexport'
8115 no_entry_flag='-bnoentry'
8118 # When large executables or shared objects are built, AIX ld can
8119 # have problems creating the table of contents. If linking a library
8120 # or program results in "error TOC overflow" add -mminimal-toc to
8121 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8122 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8126 hardcode_libdir_separator=':'
8127 link_all_deplibs=yes
8129 if test "$GCC" = yes; then
8130 case $host_os in aix4.[012]|aix4.[012].*)
8131 # We only want to do this on AIX 4.2 and lower, the check
8132 # below for broken collect2 doesn't work under 4.3+
8133 collect2name=`${CC} -print-prog-name=collect2`
8134 if test -f "$collect2name" && \
8135 strings "$collect2name" | grep resolve_lib_name >/dev/null
8137 # We have reworked collect2
8140 # We have old collect2
8141 hardcode_direct=unsupported
8142 # It fails to find uninstalled libraries when the uninstalled
8143 # path is not listed in the libpath. Setting hardcode_minus_L
8144 # to unsupported forces relinking
8145 hardcode_minus_L=yes
8146 hardcode_libdir_flag_spec='-L$libdir'
8147 hardcode_libdir_separator=
8151 shared_flag='-shared'
8152 if test "$aix_use_runtimelinking" = yes; then
8153 shared_flag="$shared_flag "'${wl}-G'
8157 if test "$host_cpu" = ia64; then
8158 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8159 # chokes on -Wl,-G. The following line is correct:
8162 if test "$aix_use_runtimelinking" = yes; then
8163 shared_flag='${wl}-G'
8165 shared_flag='${wl}-bM:SRE'
8170 # It seems that -bexpall does not export symbols beginning with
8171 # underscore (_), so it is better to generate a list of symbols to export.
8172 always_export_symbols=yes
8173 if test "$aix_use_runtimelinking" = yes; then
8174 # Warning - without using the other runtime loading flags (-brtl),
8175 # -berok will link without error, but may produce a broken library.
8176 allow_undefined_flag='-berok'
8177 # Determine the default libpath from the value encoded in an empty executable.
8178 cat >conftest.$ac_ext <<_ACEOF
8181 cat confdefs.h >>conftest.$ac_ext
8182 cat >>conftest.$ac_ext <<_ACEOF
8183 /* end confdefs.h. */
8193 rm -f conftest.$ac_objext conftest$ac_exeext
8194 if { (ac_try="$ac_link"
8196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8197 *) ac_try_echo=$ac_try;;
8199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8200 (eval "$ac_link") 2>conftest.er1
8202 grep -v '^ *+' conftest.er1 >conftest.err
8204 cat conftest.err >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } && {
8207 test -z "$ac_c_werror_flag" ||
8208 test ! -s conftest.err
8209 } && test -s conftest$ac_exeext &&
8210 $as_test_x conftest$ac_exeext; then
8212 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8214 # Check for a 64-bit object if we didn't find anything.
8215 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8218 echo "$as_me: failed program was:" >&5
8219 sed 's/^/| /' conftest.$ac_ext >&5
8224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8225 conftest$ac_exeext conftest.$ac_ext
8226 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8228 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8229 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"
8231 if test "$host_cpu" = ia64; then
8232 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8233 allow_undefined_flag="-z nodefs"
8234 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"
8236 # Determine the default libpath from the value encoded in an empty executable.
8237 cat >conftest.$ac_ext <<_ACEOF
8240 cat confdefs.h >>conftest.$ac_ext
8241 cat >>conftest.$ac_ext <<_ACEOF
8242 /* end confdefs.h. */
8252 rm -f conftest.$ac_objext conftest$ac_exeext
8253 if { (ac_try="$ac_link"
8255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8256 *) ac_try_echo=$ac_try;;
8258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8259 (eval "$ac_link") 2>conftest.er1
8261 grep -v '^ *+' conftest.er1 >conftest.err
8263 cat conftest.err >&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); } && {
8266 test -z "$ac_c_werror_flag" ||
8267 test ! -s conftest.err
8268 } && test -s conftest$ac_exeext &&
8269 $as_test_x conftest$ac_exeext; then
8271 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8273 # Check for a 64-bit object if we didn't find anything.
8274 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8277 echo "$as_me: failed program was:" >&5
8278 sed 's/^/| /' conftest.$ac_ext >&5
8283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8284 conftest$ac_exeext conftest.$ac_ext
8285 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8287 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8288 # Warning - without using the other run time loading flags,
8289 # -berok will link without error, but may produce a broken library.
8290 no_undefined_flag=' ${wl}-bernotok'
8291 allow_undefined_flag=' ${wl}-berok'
8292 # Exported symbols can be pulled into shared objects from archives
8293 whole_archive_flag_spec='$convenience'
8294 archive_cmds_need_lc=yes
8295 # This is similar to how AIX traditionally builds its shared libraries.
8296 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'
8302 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)'
8303 hardcode_libdir_flag_spec='-L$libdir'
8304 hardcode_minus_L=yes
8305 # see comment about different semantics on the GNU ld section
8310 export_dynamic_flag_spec=-rdynamic
8313 cygwin* | mingw* | pw32*)
8314 # When not using gcc, we currently assume that we are using
8315 # Microsoft Visual C++.
8316 # hardcode_libdir_flag_spec is actually meaningless, as there is
8317 # no search path for DLLs.
8318 hardcode_libdir_flag_spec=' '
8319 allow_undefined_flag=unsupported
8320 # Tell ltmain to make .lib files, not .a files.
8322 # Tell ltmain to make .dll files, not .so files.
8324 # FIXME: Setting linknames here is a bad hack.
8325 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8326 # The linker will automatically build a .lib file if we build a DLL.
8327 old_archive_From_new_cmds='true'
8328 # FIXME: Should let the user specify the lib program.
8329 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8330 fix_srcfile_path='`cygpath -w "$srcfile"`'
8331 enable_shared_with_static_runtimes=yes
8334 darwin* | rhapsody*)
8336 rhapsody* | darwin1.[012])
8337 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8340 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8341 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8343 case ${MACOSX_DEPLOYMENT_TARGET} in
8345 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8348 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8354 archive_cmds_need_lc=no
8356 hardcode_automatic=yes
8357 hardcode_shlibpath_var=unsupported
8358 whole_archive_flag_spec=''
8359 link_all_deplibs=yes
8360 if test "$GCC" = yes ; then
8361 output_verbose_link_cmd='echo'
8362 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8363 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8364 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8365 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}'
8366 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}'
8368 case $cc_basename in
8370 output_verbose_link_cmd='echo'
8371 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8372 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8373 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8374 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8375 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}'
8385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8386 hardcode_libdir_flag_spec='-L$libdir'
8387 hardcode_shlibpath_var=no
8394 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8395 # support. Future versions do this automatically, but an explicit c++rt0.o
8396 # does not break anything, and helps significantly (at the cost of a little
8399 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8400 hardcode_libdir_flag_spec='-R$libdir'
8402 hardcode_shlibpath_var=no
8405 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8407 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8409 hardcode_minus_L=yes
8410 hardcode_shlibpath_var=no
8413 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8414 freebsd* | dragonfly*)
8415 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8416 hardcode_libdir_flag_spec='-R$libdir'
8418 hardcode_shlibpath_var=no
8422 if test "$GCC" = yes; then
8423 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'
8425 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'
8427 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8428 hardcode_libdir_separator=:
8431 # hardcode_minus_L: Not really in the search PATH,
8432 # but as the default location of the library.
8433 hardcode_minus_L=yes
8434 export_dynamic_flag_spec='${wl}-E'
8438 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8439 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8441 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8443 if test "$with_gnu_ld" = no; then
8444 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8445 hardcode_libdir_separator=:
8448 export_dynamic_flag_spec='${wl}-E'
8450 # hardcode_minus_L: Not really in the search PATH,
8451 # but as the default location of the library.
8452 hardcode_minus_L=yes
8457 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8460 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8463 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8466 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8472 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8475 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8478 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8482 if test "$with_gnu_ld" = no; then
8483 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8484 hardcode_libdir_separator=:
8488 hardcode_libdir_flag_spec_ld='+b $libdir'
8490 hardcode_shlibpath_var=no
8494 export_dynamic_flag_spec='${wl}-E'
8496 # hardcode_minus_L: Not really in the search PATH,
8497 # but as the default location of the library.
8498 hardcode_minus_L=yes
8504 irix5* | irix6* | nonstopux*)
8505 if test "$GCC" = yes; then
8506 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'
8508 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'
8509 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8511 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8512 hardcode_libdir_separator=:
8513 link_all_deplibs=yes
8516 netbsd* | netbsdelf*-gnu)
8517 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8518 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8520 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8522 hardcode_libdir_flag_spec='-R$libdir'
8524 hardcode_shlibpath_var=no
8528 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8531 hardcode_libdir_separator=:
8532 hardcode_shlibpath_var=no
8537 hardcode_shlibpath_var=no
8538 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8539 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8540 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8541 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8542 export_dynamic_flag_spec='${wl}-E'
8545 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8546 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8547 hardcode_libdir_flag_spec='-R$libdir'
8550 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8551 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8558 hardcode_libdir_flag_spec='-L$libdir'
8559 hardcode_minus_L=yes
8560 allow_undefined_flag=unsupported
8561 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'
8562 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8566 if test "$GCC" = yes; then
8567 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8568 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'
8570 allow_undefined_flag=' -expect_unresolved \*'
8571 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'
8573 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8574 hardcode_libdir_separator=:
8577 osf4* | osf5*) # as osf3* with the addition of -msym flag
8578 if test "$GCC" = yes; then
8579 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8580 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'
8581 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8583 allow_undefined_flag=' -expect_unresolved \*'
8584 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'
8585 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8586 $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'
8588 # Both c and cxx compiler support -rpath directly
8589 hardcode_libdir_flag_spec='-rpath $libdir'
8591 hardcode_libdir_separator=:
8595 no_undefined_flag=' -z text'
8596 if test "$GCC" = yes; then
8598 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8599 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8600 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8603 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8604 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8605 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8607 hardcode_libdir_flag_spec='-R$libdir'
8608 hardcode_shlibpath_var=no
8610 solaris2.[0-5] | solaris2.[0-5].*) ;;
8612 # The compiler driver will combine linker options so we
8613 # cannot just pass the convience library names through
8614 # without $wl, iff we do not link with $LD.
8615 # Luckily, gcc supports the same syntax we need for Sun Studio.
8616 # Supported since Solaris 2.6 (maybe 2.5.1?)
8619 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8621 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8624 link_all_deplibs=yes
8628 if test "x$host_vendor" = xsequent; then
8629 # Use $CC to link under sequent, because it throws in some extra .o
8630 # files that make .init and .fini sections work.
8631 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8633 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8635 hardcode_libdir_flag_spec='-L$libdir'
8637 hardcode_minus_L=yes
8638 hardcode_shlibpath_var=no
8642 case $host_vendor in
8644 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8645 hardcode_direct=yes # is this really true???
8648 ## LD is ld it makes a PLAMLIB
8649 ## CC just makes a GrossModule.
8650 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8651 reload_cmds='$CC -r -o $output$reload_objs'
8655 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8656 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8659 runpath_var='LD_RUN_PATH'
8660 hardcode_shlibpath_var=no
8664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8665 hardcode_shlibpath_var=no
8666 export_dynamic_flag_spec='-Bexport'
8670 if test -d /usr/nec; then
8671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8672 hardcode_shlibpath_var=no
8673 runpath_var=LD_RUN_PATH
8674 hardcode_runpath_var=yes
8679 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8680 no_undefined_flag='${wl}-z,text'
8681 archive_cmds_need_lc=no
8682 hardcode_shlibpath_var=no
8683 runpath_var='LD_RUN_PATH'
8685 if test "$GCC" = yes; then
8686 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8687 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8689 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8690 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8694 sysv5* | sco3.2v5* | sco5v6*)
8695 # Note: We can NOT use -z defs as we might desire, because we do not
8696 # link with -lc, and that would cause any symbols used from libc to
8697 # always be unresolved, which means just about no library would
8698 # ever link correctly. If we're not using GNU ld we use -z text
8699 # though, which does catch some bad symbols but isn't as heavy-handed
8701 no_undefined_flag='${wl}-z,text'
8702 allow_undefined_flag='${wl}-z,nodefs'
8703 archive_cmds_need_lc=no
8704 hardcode_shlibpath_var=no
8705 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8706 hardcode_libdir_separator=':'
8707 link_all_deplibs=yes
8708 export_dynamic_flag_spec='${wl}-Bexport'
8709 runpath_var='LD_RUN_PATH'
8711 if test "$GCC" = yes; then
8712 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8713 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8715 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8716 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8721 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8722 hardcode_libdir_flag_spec='-L$libdir'
8723 hardcode_shlibpath_var=no
8732 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8733 echo "${ECHO_T}$ld_shlibs" >&6; }
8734 test "$ld_shlibs" = no && can_build_shared=no
8737 # Do we need to explicitly link libc?
8739 case "x$archive_cmds_need_lc" in
8741 # Assume -lc should be added
8742 archive_cmds_need_lc=yes
8744 if test "$enable_shared" = yes && test "$GCC" = yes; then
8745 case $archive_cmds in
8747 # FIXME: we may have to deal with multi-command sequences.
8750 # Test whether the compiler implicitly links with -lc since on some
8751 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8752 # to ld, don't add -lc before -lgcc.
8753 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8754 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8756 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8759 (eval $ac_compile) 2>&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } 2>conftest.err; then
8765 libobjs=conftest.$ac_objext
8767 wl=$lt_prog_compiler_wl
8768 pic_flag=$lt_prog_compiler_pic
8774 lt_save_allow_undefined_flag=$allow_undefined_flag
8775 allow_undefined_flag=
8776 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8777 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); }
8782 archive_cmds_need_lc=no
8784 archive_cmds_need_lc=yes
8786 allow_undefined_flag=$lt_save_allow_undefined_flag
8788 cat conftest.err 1>&5
8791 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8792 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8799 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8800 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8802 libname_spec='lib$name'
8810 shlibpath_overrides_runpath=unknown
8812 dynamic_linker="$host_os ld.so"
8813 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8814 if test "$GCC" = yes; then
8815 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8816 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8817 # if the path contains ";" then we assume it to be the separator
8818 # otherwise default to the standard path separator (i.e. ":") - it is
8819 # assumed that no part of a normal pathname contains ";" but that should
8820 # okay in the real world where ";" in dirpaths is itself problematic.
8821 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8823 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8826 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8828 need_lib_prefix=unknown
8829 hardcode_into_libs=no
8831 # when you set need_version to no, make sure it does not cause -set_version
8832 # flags to be left without arguments
8833 need_version=unknown
8838 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8839 shlibpath_var=LIBPATH
8841 # AIX 3 has no versioning support, so we append a major version to the name.
8842 soname_spec='${libname}${release}${shared_ext}$major'
8849 hardcode_into_libs=yes
8850 if test "$host_cpu" = ia64; then
8851 # AIX 5 supports IA64
8852 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8853 shlibpath_var=LD_LIBRARY_PATH
8855 # With GCC up to 2.95.x, collect2 would create an import file
8856 # for dependence libraries. The import file would start with
8857 # the line `#! .'. This would cause the generated library to
8858 # depend on `.', always an invalid library. This was fixed in
8859 # development snapshots of GCC prior to 3.0.
8861 aix4 | aix4.[01] | aix4.[01].*)
8862 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8864 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8871 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8872 # soname into executable. Probably we can add versioning support to
8873 # collect2, so additional links can be useful in future.
8874 if test "$aix_use_runtimelinking" = yes; then
8875 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8876 # instead of lib<name>.a to let people know that these are not
8877 # typical AIX shared libraries.
8878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8880 # We preserve .a as extension for shared libraries through AIX4.2
8881 # and later when we are not doing run time linking.
8882 library_names_spec='${libname}${release}.a $libname.a'
8883 soname_spec='${libname}${release}${shared_ext}$major'
8885 shlibpath_var=LIBPATH
8890 library_names_spec='$libname.ixlibrary $libname.a'
8891 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8892 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'
8896 library_names_spec='${libname}${shared_ext}'
8897 dynamic_linker="$host_os ld.so"
8898 shlibpath_var=LIBRARY_PATH
8904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8905 soname_spec='${libname}${release}${shared_ext}$major'
8906 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8907 shlibpath_var=LD_LIBRARY_PATH
8908 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8909 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8910 # the default ld.so.conf also contains /usr/contrib/lib and
8911 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8912 # libtool to hard-code these into programs
8915 cygwin* | mingw* | pw32*)
8916 version_type=windows
8921 case $GCC,$host_os in
8922 yes,cygwin* | yes,mingw* | yes,pw32*)
8923 library_names_spec='$libname.dll.a'
8924 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8925 postinstall_cmds='base_file=`basename \${file}`~
8926 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8927 dldir=$destdir/`dirname \$dlpath`~
8928 test -d \$dldir || mkdir -p \$dldir~
8929 $install_prog $dir/$dlname \$dldir/$dlname~
8930 chmod a+x \$dldir/$dlname'
8931 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8932 dlpath=$dir/\$dldll~
8934 shlibpath_overrides_runpath=yes
8938 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8939 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8940 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8943 # MinGW DLLs use traditional 'lib' prefix
8944 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8945 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8946 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8947 # It is most probably a Windows format PATH printed by
8948 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8949 # path with ; separators, and with drive letters. We can handle the
8950 # drive letters (cygwin fileutils understands them), so leave them,
8951 # especially as we might pass files found there to a mingw objdump,
8952 # which wouldn't understand a cygwinified path. Ahh.
8953 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8955 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8959 # pw32 DLLs use 'pw' prefix rather than 'lib'
8960 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8966 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8969 dynamic_linker='Win32 ld.exe'
8970 # FIXME: first we should search . and the directory the executable is in
8974 darwin* | rhapsody*)
8975 dynamic_linker="$host_os dyld"
8979 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8980 soname_spec='${libname}${release}${major}$shared_ext'
8981 shlibpath_overrides_runpath=yes
8982 shlibpath_var=DYLD_LIBRARY_PATH
8983 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8984 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8985 if test "$GCC" = yes; then
8986 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8988 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8990 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8998 soname_spec='${libname}${release}${shared_ext}$major'
8999 shlibpath_var=LD_LIBRARY_PATH
9006 freebsd* | dragonfly*)
9007 # DragonFly does not have aout. When/if they implement a new
9008 # versioning mechanism, adjust this.
9009 if test -x /usr/bin/objformat; then
9010 objformat=`/usr/bin/objformat`
9013 freebsd[123]*) objformat=aout ;;
9017 version_type=freebsd-$objformat
9018 case $version_type in
9020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9025 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9029 shlibpath_var=LD_LIBRARY_PATH
9032 shlibpath_overrides_runpath=yes
9034 freebsd3.[01]* | freebsdelf3.[01]*)
9035 shlibpath_overrides_runpath=yes
9036 hardcode_into_libs=yes
9038 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9039 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9040 shlibpath_overrides_runpath=no
9041 hardcode_into_libs=yes
9043 freebsd*) # from 4.6 on
9044 shlibpath_overrides_runpath=yes
9045 hardcode_into_libs=yes
9054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9055 soname_spec='${libname}${release}${shared_ext}$major'
9056 shlibpath_var=LD_LIBRARY_PATH
9057 hardcode_into_libs=yes
9060 hpux9* | hpux10* | hpux11*)
9061 # Give a soname corresponding to the major version so that dld.sl refuses to
9062 # link against other versions.
9069 hardcode_into_libs=yes
9070 dynamic_linker="$host_os dld.so"
9071 shlibpath_var=LD_LIBRARY_PATH
9072 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9074 soname_spec='${libname}${release}${shared_ext}$major'
9075 if test "X$HPUX_IA64_MODE" = X32; then
9076 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9078 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9080 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9084 hardcode_into_libs=yes
9085 dynamic_linker="$host_os dld.sl"
9086 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9087 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9089 soname_spec='${libname}${release}${shared_ext}$major'
9090 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9091 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9095 dynamic_linker="$host_os dld.sl"
9096 shlibpath_var=SHLIB_PATH
9097 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9099 soname_spec='${libname}${release}${shared_ext}$major'
9102 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9103 postinstall_cmds='chmod 555 $lib'
9110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9111 soname_spec='${libname}${release}${shared_ext}$major'
9112 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9113 shlibpath_var=LD_LIBRARY_PATH
9114 shlibpath_overrides_runpath=no
9115 hardcode_into_libs=yes
9118 irix5* | irix6* | nonstopux*)
9120 nonstopux*) version_type=nonstopux ;;
9122 if test "$lt_cv_prog_gnu_ld" = yes; then
9130 soname_spec='${libname}${release}${shared_ext}$major'
9131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9133 irix5* | nonstopux*)
9137 case $LD in # libtool.m4 will add one of these switches to LD
9138 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9139 libsuff= shlibsuff= libmagic=32-bit;;
9140 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9141 libsuff=32 shlibsuff=N32 libmagic=N32;;
9142 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9143 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9144 *) libsuff= shlibsuff= libmagic=never-match;;
9148 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9149 shlibpath_overrides_runpath=no
9150 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9151 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9152 hardcode_into_libs=yes
9155 # No shared lib support for Linux oldld, aout, or coff.
9156 linux*oldld* | linux*aout* | linux*coff*)
9160 # This must be Linux ELF.
9161 linux* | k*bsd*-gnu)
9165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9166 soname_spec='${libname}${release}${shared_ext}$major'
9167 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9168 shlibpath_var=LD_LIBRARY_PATH
9169 shlibpath_overrides_runpath=no
9170 # This implies no fast_install, which is unacceptable.
9171 # Some rework will be needed to allow for fast_install
9172 # before this can be enabled.
9173 hardcode_into_libs=yes
9175 # Append ld.so.conf contents to the search path
9176 if test -f /etc/ld.so.conf; then
9177 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9178 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9181 # We used to test for /lib/ld.so.1 and disable shared libraries on
9182 # powerpc, because MkLinux only supported shared libraries with the
9183 # GNU dynamic linker. Since this was broken with cross compilers,
9184 # most powerpc-linux boxes support dynamic linking these days and
9185 # people can always --disable-shared, the test was removed, and we
9186 # assume the GNU/Linux dynamic linker is in use.
9187 dynamic_linker='GNU/Linux ld.so'
9194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9195 soname_spec='${libname}${release}${shared_ext}$major'
9196 shlibpath_var=LD_LIBRARY_PATH
9197 shlibpath_overrides_runpath=no
9198 hardcode_into_libs=yes
9199 dynamic_linker='NetBSD ld.elf_so'
9206 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9209 dynamic_linker='NetBSD (a.out) ld.so'
9211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9212 soname_spec='${libname}${release}${shared_ext}$major'
9213 dynamic_linker='NetBSD ld.elf_so'
9215 shlibpath_var=LD_LIBRARY_PATH
9216 shlibpath_overrides_runpath=yes
9217 hardcode_into_libs=yes
9222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9223 shlibpath_var=LD_LIBRARY_PATH
9224 shlibpath_overrides_runpath=yes
9231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9232 soname_spec='${libname}${release}${shared_ext}$major'
9233 shlibpath_var=LD_LIBRARY_PATH
9234 shlibpath_overrides_runpath=yes
9239 sys_lib_dlsearch_path_spec="/usr/lib"
9241 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9243 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9244 *) need_version=no ;;
9246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9247 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9248 shlibpath_var=LD_LIBRARY_PATH
9249 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9251 openbsd2.[89] | openbsd2.[89].*)
9252 shlibpath_overrides_runpath=no
9255 shlibpath_overrides_runpath=yes
9259 shlibpath_overrides_runpath=yes
9264 libname_spec='$name'
9267 library_names_spec='$libname${shared_ext} $libname.a'
9268 dynamic_linker='OS/2 ld.exe'
9269 shlibpath_var=LIBPATH
9272 osf3* | osf4* | osf5*)
9276 soname_spec='${libname}${release}${shared_ext}$major'
9277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9278 shlibpath_var=LD_LIBRARY_PATH
9279 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9280 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9288 soname_spec='${libname}${release}${shared_ext}$major'
9289 shlibpath_var=LD_LIBRARY_PATH
9290 shlibpath_overrides_runpath=yes
9291 hardcode_into_libs=yes
9292 # ldd complains unless libraries are executable
9293 postinstall_cmds='chmod +x $lib'
9298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9299 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9300 shlibpath_var=LD_LIBRARY_PATH
9301 shlibpath_overrides_runpath=yes
9302 if test "$with_gnu_ld" = yes; then
9310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9311 soname_spec='${libname}${release}${shared_ext}$major'
9312 shlibpath_var=LD_LIBRARY_PATH
9313 case $host_vendor in
9315 shlibpath_overrides_runpath=no
9317 export_dynamic_flag_spec='${wl}-Blargedynsym'
9318 runpath_var=LD_RUN_PATH
9326 shlibpath_overrides_runpath=no
9327 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9333 if test -d /usr/nec ;then
9335 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9336 soname_spec='$libname${shared_ext}.$major'
9337 shlibpath_var=LD_LIBRARY_PATH
9341 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9342 version_type=freebsd-elf
9345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9346 soname_spec='${libname}${release}${shared_ext}$major'
9347 shlibpath_var=LD_LIBRARY_PATH
9348 hardcode_into_libs=yes
9349 if test "$with_gnu_ld" = yes; then
9350 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9351 shlibpath_overrides_runpath=no
9353 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9354 shlibpath_overrides_runpath=yes
9357 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9361 sys_lib_dlsearch_path_spec='/usr/lib'
9366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9367 soname_spec='${libname}${release}${shared_ext}$major'
9368 shlibpath_var=LD_LIBRARY_PATH
9375 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9376 echo "${ECHO_T}$dynamic_linker" >&6; }
9377 test "$dynamic_linker" = no && can_build_shared=no
9379 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9380 if test "$GCC" = yes; then
9381 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9384 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9385 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9387 if test -n "$hardcode_libdir_flag_spec" || \
9388 test -n "$runpath_var" || \
9389 test "X$hardcode_automatic" = "Xyes" ; then
9391 # We can hardcode non-existant directories.
9392 if test "$hardcode_direct" != no &&
9393 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9394 # have to relink, otherwise we might link with an installed library
9395 # when we should be linking with a yet-to-be-installed one
9396 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9397 test "$hardcode_minus_L" != no; then
9398 # Linking always hardcodes the temporary library directory.
9399 hardcode_action=relink
9401 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9402 hardcode_action=immediate
9405 # We cannot hardcode anything, or else we can only hardcode existing
9407 hardcode_action=unsupported
9409 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9410 echo "${ECHO_T}$hardcode_action" >&6; }
9412 if test "$hardcode_action" = relink; then
9413 # Fast installation is not supported
9414 enable_fast_install=no
9415 elif test "$shlibpath_overrides_runpath" = yes ||
9416 test "$enable_shared" = no; then
9417 # Fast installation is not necessary
9418 enable_fast_install=needless
9423 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9424 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9425 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9426 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9427 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9428 { echo "$as_me:$LINENO: result: yes" >&5
9429 echo "${ECHO_T}yes" >&6; }
9431 # FIXME - insert some real tests, host_os isn't really good enough
9434 if test -n "$STRIP" ; then
9435 striplib="$STRIP -x"
9436 { echo "$as_me:$LINENO: result: yes" >&5
9437 echo "${ECHO_T}yes" >&6; }
9439 { echo "$as_me:$LINENO: result: no" >&5
9440 echo "${ECHO_T}no" >&6; }
9444 { echo "$as_me:$LINENO: result: no" >&5
9445 echo "${ECHO_T}no" >&6; }
9450 if test "x$enable_dlopen" != xyes; then
9451 enable_dlopen=unknown
9452 enable_dlopen_self=unknown
9453 enable_dlopen_self_static=unknown
9460 lt_cv_dlopen="load_add_on"
9462 lt_cv_dlopen_self=yes
9466 lt_cv_dlopen="LoadLibrary"
9471 lt_cv_dlopen="dlopen"
9476 # if libdl is installed we need to link against it
9477 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9478 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9479 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9482 ac_check_lib_save_LIBS=$LIBS
9484 cat >conftest.$ac_ext <<_ACEOF
9487 cat confdefs.h >>conftest.$ac_ext
9488 cat >>conftest.$ac_ext <<_ACEOF
9489 /* end confdefs.h. */
9491 /* Override any GCC internal prototype to avoid an error.
9492 Use char because int might match the return type of a GCC
9493 builtin and then its argument prototype would still apply. */
9506 rm -f conftest.$ac_objext conftest$ac_exeext
9507 if { (ac_try="$ac_link"
9509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9510 *) ac_try_echo=$ac_try;;
9512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9513 (eval "$ac_link") 2>conftest.er1
9515 grep -v '^ *+' conftest.er1 >conftest.err
9517 cat conftest.err >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); } && {
9520 test -z "$ac_c_werror_flag" ||
9521 test ! -s conftest.err
9522 } && test -s conftest$ac_exeext &&
9523 $as_test_x conftest$ac_exeext; then
9524 ac_cv_lib_dl_dlopen=yes
9526 echo "$as_me: failed program was:" >&5
9527 sed 's/^/| /' conftest.$ac_ext >&5
9529 ac_cv_lib_dl_dlopen=no
9532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9533 conftest$ac_exeext conftest.$ac_ext
9534 LIBS=$ac_check_lib_save_LIBS
9536 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9537 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9538 if test $ac_cv_lib_dl_dlopen = yes; then
9539 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9544 lt_cv_dlopen_self=yes
9551 { echo "$as_me:$LINENO: checking for shl_load" >&5
9552 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9553 if test "${ac_cv_func_shl_load+set}" = set; then
9554 echo $ECHO_N "(cached) $ECHO_C" >&6
9556 cat >conftest.$ac_ext <<_ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h. */
9562 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9564 #define shl_load innocuous_shl_load
9566 /* System header to define __stub macros and hopefully few prototypes,
9567 which can conflict with char shl_load (); below.
9568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9569 <limits.h> exists even on freestanding compilers. */
9572 # include <limits.h>
9574 # include <assert.h>
9579 /* Override any GCC internal prototype to avoid an error.
9580 Use char because int might match the return type of a GCC
9581 builtin and then its argument prototype would still apply. */
9586 /* The GNU C library defines this for functions which it implements
9587 to always fail with ENOSYS. Some functions are actually named
9588 something starting with __ and the normal name is an alias. */
9589 #if defined __stub_shl_load || defined __stub___shl_load
9601 rm -f conftest.$ac_objext conftest$ac_exeext
9602 if { (ac_try="$ac_link"
9604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605 *) ac_try_echo=$ac_try;;
9607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9608 (eval "$ac_link") 2>conftest.er1
9610 grep -v '^ *+' conftest.er1 >conftest.err
9612 cat conftest.err >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); } && {
9615 test -z "$ac_c_werror_flag" ||
9616 test ! -s conftest.err
9617 } && test -s conftest$ac_exeext &&
9618 $as_test_x conftest$ac_exeext; then
9619 ac_cv_func_shl_load=yes
9621 echo "$as_me: failed program was:" >&5
9622 sed 's/^/| /' conftest.$ac_ext >&5
9624 ac_cv_func_shl_load=no
9627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9628 conftest$ac_exeext conftest.$ac_ext
9630 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9631 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9632 if test $ac_cv_func_shl_load = yes; then
9633 lt_cv_dlopen="shl_load"
9635 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9636 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9637 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9638 echo $ECHO_N "(cached) $ECHO_C" >&6
9640 ac_check_lib_save_LIBS=$LIBS
9642 cat >conftest.$ac_ext <<_ACEOF
9645 cat confdefs.h >>conftest.$ac_ext
9646 cat >>conftest.$ac_ext <<_ACEOF
9647 /* end confdefs.h. */
9649 /* Override any GCC internal prototype to avoid an error.
9650 Use char because int might match the return type of a GCC
9651 builtin and then its argument prototype would still apply. */
9664 rm -f conftest.$ac_objext conftest$ac_exeext
9665 if { (ac_try="$ac_link"
9667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9668 *) ac_try_echo=$ac_try;;
9670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9671 (eval "$ac_link") 2>conftest.er1
9673 grep -v '^ *+' conftest.er1 >conftest.err
9675 cat conftest.err >&5
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); } && {
9678 test -z "$ac_c_werror_flag" ||
9679 test ! -s conftest.err
9680 } && test -s conftest$ac_exeext &&
9681 $as_test_x conftest$ac_exeext; then
9682 ac_cv_lib_dld_shl_load=yes
9684 echo "$as_me: failed program was:" >&5
9685 sed 's/^/| /' conftest.$ac_ext >&5
9687 ac_cv_lib_dld_shl_load=no
9690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9691 conftest$ac_exeext conftest.$ac_ext
9692 LIBS=$ac_check_lib_save_LIBS
9694 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9695 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9696 if test $ac_cv_lib_dld_shl_load = yes; then
9697 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9699 { echo "$as_me:$LINENO: checking for dlopen" >&5
9700 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9701 if test "${ac_cv_func_dlopen+set}" = set; then
9702 echo $ECHO_N "(cached) $ECHO_C" >&6
9704 cat >conftest.$ac_ext <<_ACEOF
9707 cat confdefs.h >>conftest.$ac_ext
9708 cat >>conftest.$ac_ext <<_ACEOF
9709 /* end confdefs.h. */
9710 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9712 #define dlopen innocuous_dlopen
9714 /* System header to define __stub macros and hopefully few prototypes,
9715 which can conflict with char dlopen (); below.
9716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9717 <limits.h> exists even on freestanding compilers. */
9720 # include <limits.h>
9722 # include <assert.h>
9727 /* Override any GCC internal prototype to avoid an error.
9728 Use char because int might match the return type of a GCC
9729 builtin and then its argument prototype would still apply. */
9734 /* The GNU C library defines this for functions which it implements
9735 to always fail with ENOSYS. Some functions are actually named
9736 something starting with __ and the normal name is an alias. */
9737 #if defined __stub_dlopen || defined __stub___dlopen
9749 rm -f conftest.$ac_objext conftest$ac_exeext
9750 if { (ac_try="$ac_link"
9752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9753 *) ac_try_echo=$ac_try;;
9755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9756 (eval "$ac_link") 2>conftest.er1
9758 grep -v '^ *+' conftest.er1 >conftest.err
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } && {
9763 test -z "$ac_c_werror_flag" ||
9764 test ! -s conftest.err
9765 } && test -s conftest$ac_exeext &&
9766 $as_test_x conftest$ac_exeext; then
9767 ac_cv_func_dlopen=yes
9769 echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.$ac_ext >&5
9772 ac_cv_func_dlopen=no
9775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9776 conftest$ac_exeext conftest.$ac_ext
9778 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9779 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9780 if test $ac_cv_func_dlopen = yes; then
9781 lt_cv_dlopen="dlopen"
9783 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9784 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9785 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9788 ac_check_lib_save_LIBS=$LIBS
9790 cat >conftest.$ac_ext <<_ACEOF
9793 cat confdefs.h >>conftest.$ac_ext
9794 cat >>conftest.$ac_ext <<_ACEOF
9795 /* end confdefs.h. */
9797 /* Override any GCC internal prototype to avoid an error.
9798 Use char because int might match the return type of a GCC
9799 builtin and then its argument prototype would still apply. */
9812 rm -f conftest.$ac_objext conftest$ac_exeext
9813 if { (ac_try="$ac_link"
9815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816 *) ac_try_echo=$ac_try;;
9818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819 (eval "$ac_link") 2>conftest.er1
9821 grep -v '^ *+' conftest.er1 >conftest.err
9823 cat conftest.err >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } && {
9826 test -z "$ac_c_werror_flag" ||
9827 test ! -s conftest.err
9828 } && test -s conftest$ac_exeext &&
9829 $as_test_x conftest$ac_exeext; then
9830 ac_cv_lib_dl_dlopen=yes
9832 echo "$as_me: failed program was:" >&5
9833 sed 's/^/| /' conftest.$ac_ext >&5
9835 ac_cv_lib_dl_dlopen=no
9838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9839 conftest$ac_exeext conftest.$ac_ext
9840 LIBS=$ac_check_lib_save_LIBS
9842 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9843 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9844 if test $ac_cv_lib_dl_dlopen = yes; then
9845 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9847 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9848 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9849 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9850 echo $ECHO_N "(cached) $ECHO_C" >&6
9852 ac_check_lib_save_LIBS=$LIBS
9854 cat >conftest.$ac_ext <<_ACEOF
9857 cat confdefs.h >>conftest.$ac_ext
9858 cat >>conftest.$ac_ext <<_ACEOF
9859 /* end confdefs.h. */
9861 /* Override any GCC internal prototype to avoid an error.
9862 Use char because int might match the return type of a GCC
9863 builtin and then its argument prototype would still apply. */
9876 rm -f conftest.$ac_objext conftest$ac_exeext
9877 if { (ac_try="$ac_link"
9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880 *) ac_try_echo=$ac_try;;
9882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883 (eval "$ac_link") 2>conftest.er1
9885 grep -v '^ *+' conftest.er1 >conftest.err
9887 cat conftest.err >&5
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); } && {
9890 test -z "$ac_c_werror_flag" ||
9891 test ! -s conftest.err
9892 } && test -s conftest$ac_exeext &&
9893 $as_test_x conftest$ac_exeext; then
9894 ac_cv_lib_svld_dlopen=yes
9896 echo "$as_me: failed program was:" >&5
9897 sed 's/^/| /' conftest.$ac_ext >&5
9899 ac_cv_lib_svld_dlopen=no
9902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9903 conftest$ac_exeext conftest.$ac_ext
9904 LIBS=$ac_check_lib_save_LIBS
9906 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9907 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9908 if test $ac_cv_lib_svld_dlopen = yes; then
9909 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9911 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9912 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9913 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9914 echo $ECHO_N "(cached) $ECHO_C" >&6
9916 ac_check_lib_save_LIBS=$LIBS
9918 cat >conftest.$ac_ext <<_ACEOF
9921 cat confdefs.h >>conftest.$ac_ext
9922 cat >>conftest.$ac_ext <<_ACEOF
9923 /* end confdefs.h. */
9925 /* Override any GCC internal prototype to avoid an error.
9926 Use char because int might match the return type of a GCC
9927 builtin and then its argument prototype would still apply. */
9940 rm -f conftest.$ac_objext conftest$ac_exeext
9941 if { (ac_try="$ac_link"
9943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9944 *) ac_try_echo=$ac_try;;
9946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9947 (eval "$ac_link") 2>conftest.er1
9949 grep -v '^ *+' conftest.er1 >conftest.err
9951 cat conftest.err >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } && {
9954 test -z "$ac_c_werror_flag" ||
9955 test ! -s conftest.err
9956 } && test -s conftest$ac_exeext &&
9957 $as_test_x conftest$ac_exeext; then
9958 ac_cv_lib_dld_dld_link=yes
9960 echo "$as_me: failed program was:" >&5
9961 sed 's/^/| /' conftest.$ac_ext >&5
9963 ac_cv_lib_dld_dld_link=no
9966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9967 conftest$ac_exeext conftest.$ac_ext
9968 LIBS=$ac_check_lib_save_LIBS
9970 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9971 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9972 if test $ac_cv_lib_dld_dld_link = yes; then
9973 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9994 if test "x$lt_cv_dlopen" != xno; then
10000 case $lt_cv_dlopen in
10002 save_CPPFLAGS="$CPPFLAGS"
10003 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10005 save_LDFLAGS="$LDFLAGS"
10006 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10009 LIBS="$lt_cv_dlopen_libs $LIBS"
10011 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10012 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10013 if test "${lt_cv_dlopen_self+set}" = set; then
10014 echo $ECHO_N "(cached) $ECHO_C" >&6
10016 if test "$cross_compiling" = yes; then :
10017 lt_cv_dlopen_self=cross
10019 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10020 lt_status=$lt_dlunknown
10021 cat > conftest.$ac_ext <<EOF
10022 #line 10022 "configure"
10023 #include "confdefs.h"
10032 # define LT_DLGLOBAL RTLD_GLOBAL
10035 # define LT_DLGLOBAL DL_GLOBAL
10037 # define LT_DLGLOBAL 0
10041 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10042 find out it does not work in some platform. */
10043 #ifndef LT_DLLAZY_OR_NOW
10045 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10048 # define LT_DLLAZY_OR_NOW DL_LAZY
10051 # define LT_DLLAZY_OR_NOW RTLD_NOW
10054 # define LT_DLLAZY_OR_NOW DL_NOW
10056 # define LT_DLLAZY_OR_NOW 0
10064 extern "C" void exit (int);
10067 void fnord() { int i=42;}
10070 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10071 int status = $lt_dlunknown;
10075 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10076 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10077 /* dlclose (self); */
10085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10086 (eval $ac_link) 2>&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10090 (./conftest; exit; ) >&5 2>/dev/null
10092 case x$lt_status in
10093 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10094 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10095 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10098 # compilation failed
10099 lt_cv_dlopen_self=no
10106 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10107 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10109 if test "x$lt_cv_dlopen_self" = xyes; then
10110 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10111 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10112 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10113 if test "${lt_cv_dlopen_self_static+set}" = set; then
10114 echo $ECHO_N "(cached) $ECHO_C" >&6
10116 if test "$cross_compiling" = yes; then :
10117 lt_cv_dlopen_self_static=cross
10119 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10120 lt_status=$lt_dlunknown
10121 cat > conftest.$ac_ext <<EOF
10122 #line 10122 "configure"
10123 #include "confdefs.h"
10132 # define LT_DLGLOBAL RTLD_GLOBAL
10135 # define LT_DLGLOBAL DL_GLOBAL
10137 # define LT_DLGLOBAL 0
10141 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10142 find out it does not work in some platform. */
10143 #ifndef LT_DLLAZY_OR_NOW
10145 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10148 # define LT_DLLAZY_OR_NOW DL_LAZY
10151 # define LT_DLLAZY_OR_NOW RTLD_NOW
10154 # define LT_DLLAZY_OR_NOW DL_NOW
10156 # define LT_DLLAZY_OR_NOW 0
10164 extern "C" void exit (int);
10167 void fnord() { int i=42;}
10170 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10171 int status = $lt_dlunknown;
10175 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10176 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10177 /* dlclose (self); */
10185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10186 (eval $ac_link) 2>&5
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10190 (./conftest; exit; ) >&5 2>/dev/null
10192 case x$lt_status in
10193 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10194 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10195 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10198 # compilation failed
10199 lt_cv_dlopen_self_static=no
10206 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10207 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10210 CPPFLAGS="$save_CPPFLAGS"
10211 LDFLAGS="$save_LDFLAGS"
10216 case $lt_cv_dlopen_self in
10217 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10218 *) enable_dlopen_self=unknown ;;
10221 case $lt_cv_dlopen_self_static in
10222 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10223 *) enable_dlopen_self_static=unknown ;;
10228 # Report which library types will actually be built
10229 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10230 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10231 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10232 echo "${ECHO_T}$can_build_shared" >&6; }
10234 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10235 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10236 test "$can_build_shared" = "no" && enable_shared=no
10238 # On AIX, shared libraries and static libraries use the same namespace, and
10239 # are all built from PIC.
10242 test "$enable_shared" = yes && enable_static=no
10243 if test -n "$RANLIB"; then
10244 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10245 postinstall_cmds='$RANLIB $lib'
10250 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10251 test "$enable_shared" = yes && enable_static=no
10255 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10256 echo "${ECHO_T}$enable_shared" >&6; }
10258 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10259 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10260 # Make sure either enable_shared or enable_static is yes.
10261 test "$enable_shared" = yes || enable_static=yes
10262 { echo "$as_me:$LINENO: result: $enable_static" >&5
10263 echo "${ECHO_T}$enable_static" >&6; }
10265 # The else clause should only fire when bootstrapping the
10266 # libtool distribution, otherwise you forgot to ship ltmain.sh
10267 # with your package, and you will get complaints that there are
10268 # no rules to generate ltmain.sh.
10269 if test -f "$ltmain"; then
10270 # See if we are running on zsh, and set the options which allow our commands through
10271 # without removal of \ escapes.
10272 if test -n "${ZSH_VERSION+set}" ; then
10273 setopt NO_GLOB_SUBST
10275 # Now quote all the things that may contain metacharacters while being
10276 # careful not to overquote the AC_SUBSTed values. We take copies of the
10277 # variables and quote the copies for generation of the libtool script.
10278 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10280 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10281 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10282 deplibs_check_method reload_flag reload_cmds need_locks \
10283 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10284 lt_cv_sys_global_symbol_to_c_name_address \
10285 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10286 old_postinstall_cmds old_postuninstall_cmds \
10290 lt_prog_compiler_wl \
10291 lt_prog_compiler_pic \
10292 lt_prog_compiler_static \
10293 lt_prog_compiler_no_builtin_flag \
10294 export_dynamic_flag_spec \
10295 thread_safe_flag_spec \
10296 whole_archive_flag_spec \
10297 enable_shared_with_static_runtimes \
10299 old_archive_from_new_cmds \
10304 compiler_lib_search_path \
10306 archive_expsym_cmds \
10308 postuninstall_cmds \
10309 old_archive_from_expsyms_cmds \
10310 allow_undefined_flag \
10311 no_undefined_flag \
10312 export_symbols_cmds \
10313 hardcode_libdir_flag_spec \
10314 hardcode_libdir_flag_spec_ld \
10315 hardcode_libdir_separator \
10316 hardcode_automatic \
10318 module_expsym_cmds \
10319 lt_cv_prog_compiler_c_o \
10321 include_expsyms; do
10324 old_archive_cmds | \
10325 old_archive_from_new_cmds | \
10327 archive_expsym_cmds | \
10329 module_expsym_cmds | \
10330 old_archive_from_expsyms_cmds | \
10331 export_symbols_cmds | \
10332 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10333 postinstall_cmds | postuninstall_cmds | \
10334 old_postinstall_cmds | old_postuninstall_cmds | \
10335 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10336 # Double-quote double-evaled strings.
10337 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10340 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10346 *'\$0 --fallback-echo"')
10347 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10351 cfgfile="${ofile}T"
10352 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10354 { echo "$as_me:$LINENO: creating $ofile" >&5
10355 echo "$as_me: creating $ofile" >&6;}
10357 cat <<__EOF__ >> "$cfgfile"
10360 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10361 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10362 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10364 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10365 # Free Software Foundation, Inc.
10367 # This file is part of GNU Libtool:
10368 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10370 # This program is free software; you can redistribute it and/or modify
10371 # it under the terms of the GNU General Public License as published by
10372 # the Free Software Foundation; either version 2 of the License, or
10373 # (at your option) any later version.
10375 # This program is distributed in the hope that it will be useful, but
10376 # WITHOUT ANY WARRANTY; without even the implied warranty of
10377 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10378 # General Public License for more details.
10380 # You should have received a copy of the GNU General Public License
10381 # along with this program; if not, write to the Free Software
10382 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10384 # As a special exception to the GNU General Public License, if you
10385 # distribute this file as part of a program that contains a
10386 # configuration script generated by Autoconf, you may include it under
10387 # the same distribution terms that you use for the rest of that program.
10389 # A sed program that does not truncate output.
10392 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10393 Xsed="$SED -e 1s/^X//"
10395 # The HP-UX ksh and POSIX shell print the target directory to stdout
10396 # if CDPATH is set.
10397 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10399 # The names of the tagged configurations supported by this script.
10402 # ### BEGIN LIBTOOL CONFIG
10404 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10406 # Shell to use when invoking shell scripts.
10409 # Whether or not to build shared libraries.
10410 build_libtool_libs=$enable_shared
10412 # Whether or not to build static libraries.
10413 build_old_libs=$enable_static
10415 # Whether or not to add -lc for building shared libraries.
10416 build_libtool_need_lc=$archive_cmds_need_lc
10418 # Whether or not to disallow shared libs when runtime libs are static
10419 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10421 # Whether or not to optimize for fast installation.
10422 fast_install=$enable_fast_install
10425 host_alias=$host_alias
10429 # The build system.
10430 build_alias=$build_alias
10434 # An echo program that does not interpret backslashes.
10439 AR_FLAGS=$lt_AR_FLAGS
10444 # LTCC compiler flags.
10445 LTCFLAGS=$lt_LTCFLAGS
10447 # A language-specific compiler.
10450 # Is the compiler the GNU C compiler?
10456 # The linker used to build libraries.
10459 # Whether we need hard or soft links.
10462 # A BSD-compatible nm program.
10465 # A symbol stripping program
10468 # Used to examine libraries when file_magic_cmd begins "file"
10469 MAGIC_CMD=$MAGIC_CMD
10471 # Used on cygwin: DLL creation program.
10474 # Used on cygwin: object dumper.
10477 # Used on cygwin: assembler.
10480 # The name of the directory that contains temporary libtool files.
10483 # How to create reloadable object files.
10484 reload_flag=$lt_reload_flag
10485 reload_cmds=$lt_reload_cmds
10487 # How to pass a linker flag through the compiler.
10488 wl=$lt_lt_prog_compiler_wl
10490 # Object file suffix (normally "o").
10491 objext="$ac_objext"
10493 # Old archive suffix (normally "a").
10496 # Shared library suffix (normally ".so").
10497 shrext_cmds='$shrext_cmds'
10499 # Executable file suffix (normally "").
10502 # Additional compiler flags for building library objects.
10503 pic_flag=$lt_lt_prog_compiler_pic
10506 # What is the maximum length of a command?
10507 max_cmd_len=$lt_cv_sys_max_cmd_len
10509 # Does compiler simultaneously support -c and -o options?
10510 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10512 # Must we lock files when doing compilation?
10513 need_locks=$lt_need_locks
10515 # Do we need the lib prefix for modules?
10516 need_lib_prefix=$need_lib_prefix
10518 # Do we need a version for libraries?
10519 need_version=$need_version
10521 # Whether dlopen is supported.
10522 dlopen_support=$enable_dlopen
10524 # Whether dlopen of programs is supported.
10525 dlopen_self=$enable_dlopen_self
10527 # Whether dlopen of statically linked programs is supported.
10528 dlopen_self_static=$enable_dlopen_self_static
10530 # Compiler flag to prevent dynamic linking.
10531 link_static_flag=$lt_lt_prog_compiler_static
10533 # Compiler flag to turn off builtin functions.
10534 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10536 # Compiler flag to allow reflexive dlopens.
10537 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10539 # Compiler flag to generate shared objects directly from archives.
10540 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10542 # Compiler flag to generate thread-safe objects.
10543 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10545 # Library versioning type.
10546 version_type=$version_type
10548 # Format of library name prefix.
10549 libname_spec=$lt_libname_spec
10551 # List of archive names. First name is the real one, the rest are links.
10552 # The last name is the one that the linker finds with -lNAME.
10553 library_names_spec=$lt_library_names_spec
10555 # The coded name of the library, if different from the real name.
10556 soname_spec=$lt_soname_spec
10558 # Commands used to build and install an old-style archive.
10560 old_archive_cmds=$lt_old_archive_cmds
10561 old_postinstall_cmds=$lt_old_postinstall_cmds
10562 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10564 # Create an old-style archive from a shared archive.
10565 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10567 # Create a temporary old-style archive to link instead of a shared archive.
10568 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10570 # Commands used to build and install a shared archive.
10571 archive_cmds=$lt_archive_cmds
10572 archive_expsym_cmds=$lt_archive_expsym_cmds
10573 postinstall_cmds=$lt_postinstall_cmds
10574 postuninstall_cmds=$lt_postuninstall_cmds
10576 # Commands used to build a loadable module (assumed same as above if empty)
10577 module_cmds=$lt_module_cmds
10578 module_expsym_cmds=$lt_module_expsym_cmds
10580 # Commands to strip libraries.
10581 old_striplib=$lt_old_striplib
10582 striplib=$lt_striplib
10584 # Dependencies to place before the objects being linked to create a
10586 predep_objects=$lt_predep_objects
10588 # Dependencies to place after the objects being linked to create a
10590 postdep_objects=$lt_postdep_objects
10592 # Dependencies to place before the objects being linked to create a
10594 predeps=$lt_predeps
10596 # Dependencies to place after the objects being linked to create a
10598 postdeps=$lt_postdeps
10600 # The library search path used internally by the compiler when linking
10601 # a shared library.
10602 compiler_lib_search_path=$lt_compiler_lib_search_path
10604 # Method to check whether dependent libraries are shared objects.
10605 deplibs_check_method=$lt_deplibs_check_method
10607 # Command to use when deplibs_check_method == file_magic.
10608 file_magic_cmd=$lt_file_magic_cmd
10610 # Flag that allows shared libraries with undefined symbols to be built.
10611 allow_undefined_flag=$lt_allow_undefined_flag
10613 # Flag that forces no undefined symbols.
10614 no_undefined_flag=$lt_no_undefined_flag
10616 # Commands used to finish a libtool library installation in a directory.
10617 finish_cmds=$lt_finish_cmds
10619 # Same as above, but a single script fragment to be evaled but not shown.
10620 finish_eval=$lt_finish_eval
10622 # Take the output of nm and produce a listing of raw symbols and C names.
10623 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10625 # Transform the output of nm in a proper C declaration
10626 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10628 # Transform the output of nm in a C name address pair
10629 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10631 # This is the shared library runtime path variable.
10632 runpath_var=$runpath_var
10634 # This is the shared library path variable.
10635 shlibpath_var=$shlibpath_var
10637 # Is shlibpath searched before the hard-coded library search path?
10638 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10640 # How to hardcode a shared library path into an executable.
10641 hardcode_action=$hardcode_action
10643 # Whether we should hardcode library paths into libraries.
10644 hardcode_into_libs=$hardcode_into_libs
10646 # Flag to hardcode \$libdir into a binary during linking.
10647 # This must work even if \$libdir does not exist.
10648 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10650 # If ld is used when linking, flag to hardcode \$libdir into
10651 # a binary during linking. This must work even if \$libdir does
10653 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10655 # Whether we need a single -rpath flag with a separated argument.
10656 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10658 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10659 # resulting binary.
10660 hardcode_direct=$hardcode_direct
10662 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10663 # resulting binary.
10664 hardcode_minus_L=$hardcode_minus_L
10666 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10667 # the resulting binary.
10668 hardcode_shlibpath_var=$hardcode_shlibpath_var
10670 # Set to yes if building a shared library automatically hardcodes DIR into the library
10671 # and all subsequent libraries and executables linked against it.
10672 hardcode_automatic=$hardcode_automatic
10674 # Variables whose values should be saved in libtool wrapper scripts and
10675 # restored at relink time.
10676 variables_saved_for_relink="$variables_saved_for_relink"
10678 # Whether libtool must link a program against all its dependency libraries.
10679 link_all_deplibs=$link_all_deplibs
10681 # Compile-time system search path for libraries
10682 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10684 # Run-time system search path for libraries
10685 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10687 # Fix the shell variable \$srcfile for the compiler.
10688 fix_srcfile_path="$fix_srcfile_path"
10690 # Set to yes if exported symbols are required.
10691 always_export_symbols=$always_export_symbols
10693 # The commands to list exported symbols.
10694 export_symbols_cmds=$lt_export_symbols_cmds
10696 # The commands to extract the exported symbol list from a shared archive.
10697 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10699 # Symbols that should not be listed in the preloaded symbols.
10700 exclude_expsyms=$lt_exclude_expsyms
10702 # Symbols that must always be exported.
10703 include_expsyms=$lt_include_expsyms
10705 # ### END LIBTOOL CONFIG
10712 cat <<\EOF >> "$cfgfile"
10714 # AIX sometimes has problems with the GCC collect2 program. For some
10715 # reason, if we set the COLLECT_NAMES environment variable, the problems
10716 # vanish in a puff of smoke.
10717 if test "X${COLLECT_NAMES+set}" != Xset; then
10719 export COLLECT_NAMES
10725 # We use sed instead of cat because bash on DJGPP gets confused if
10726 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10727 # text mode, it properly converts lines to CR/LF. This bash problem
10728 # is reportedly fixed, but why not run on old versions too?
10729 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10731 mv -f "$cfgfile" "$ofile" || \
10732 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10736 # If there is no Makefile yet, we rely on a make rule to execute
10737 # `config.status --recheck' to rerun these tests and create the
10738 # libtool script then.
10739 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10740 if test -f "$ltmain_in"; then
10741 test -f Makefile && make "$ltmain"
10747 ac_cpp='$CPP $CPPFLAGS'
10748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10755 # Check whether --with-tags was given.
10756 if test "${with_tags+set}" = set; then
10757 withval=$with_tags; tagnames="$withval"
10761 if test -f "$ltmain" && test -n "$tagnames"; then
10762 if test ! -f "${ofile}"; then
10763 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10764 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10767 if test -z "$LTCC"; then
10768 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10769 if test -z "$LTCC"; then
10770 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10771 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10773 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10774 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10777 if test -z "$LTCFLAGS"; then
10778 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10781 # Extract list of available tagged configurations in $ofile.
10782 # Note that this assumes the entire list is on one line.
10783 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10785 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10786 for tagname in $tagnames; do
10788 # Check whether tagname contains only valid characters
10789 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10791 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10792 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10793 { (exit 1); exit 1; }; }
10797 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10799 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10800 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10801 { (exit 1); exit 1; }; }
10804 # Update the list of available tags.
10805 if test -n "$tagname"; then
10806 echo appending configuration tag \"$tagname\" to $ofile
10810 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10811 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10812 (test "X$CXX" != "Xg++"))) ; then
10814 ac_cpp='$CXXCPP $CPPFLAGS'
10815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10822 archive_cmds_need_lc_CXX=no
10823 allow_undefined_flag_CXX=
10824 always_export_symbols_CXX=no
10825 archive_expsym_cmds_CXX=
10826 export_dynamic_flag_spec_CXX=
10827 hardcode_direct_CXX=no
10828 hardcode_libdir_flag_spec_CXX=
10829 hardcode_libdir_flag_spec_ld_CXX=
10830 hardcode_libdir_separator_CXX=
10831 hardcode_minus_L_CXX=no
10832 hardcode_shlibpath_var_CXX=unsupported
10833 hardcode_automatic_CXX=no
10835 module_expsym_cmds_CXX=
10836 link_all_deplibs_CXX=unknown
10837 old_archive_cmds_CXX=$old_archive_cmds
10838 no_undefined_flag_CXX=
10839 whole_archive_flag_spec_CXX=
10840 enable_shared_with_static_runtimes_CXX=no
10842 # Dependencies to place before and after the object being linked:
10843 predep_objects_CXX=
10844 postdep_objects_CXX=
10847 compiler_lib_search_path_CXX=
10849 # Source file extension for C++ test sources.
10852 # Object file extension for compiled C++ test sources.
10856 # Code to be used in simple compile tests
10857 lt_simple_compile_test_code="int some_variable = 0;\n"
10859 # Code to be used in simple link tests
10860 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10862 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10864 # If no C compiler was specified, use CC.
10867 # If no C compiler flags were specified, use CFLAGS.
10868 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10870 # Allow CC to be a program name with arguments.
10874 # save warnings/boilerplate of simple test code
10875 ac_outfile=conftest.$ac_objext
10876 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10877 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10878 _lt_compiler_boilerplate=`cat conftest.err`
10881 ac_outfile=conftest.$ac_objext
10882 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10883 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10884 _lt_linker_boilerplate=`cat conftest.err`
10888 # Allow CC to be a program name with arguments.
10893 lt_save_with_gnu_ld=$with_gnu_ld
10894 lt_save_path_LD=$lt_cv_path_LD
10895 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10896 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10898 $as_unset lt_cv_prog_gnu_ld
10900 if test -n "${lt_cv_path_LDCXX+set}"; then
10901 lt_cv_path_LD=$lt_cv_path_LDCXX
10903 $as_unset lt_cv_path_LD
10905 test -z "${LDCXX+set}" || LD=$LDCXX
10909 for cc_temp in $compiler""; do
10911 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10912 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10917 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10920 # We don't want -fno-exception wen compiling C++ code, so set the
10921 # no_builtin_flag separately
10922 if test "$GXX" = yes; then
10923 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10925 lt_prog_compiler_no_builtin_flag_CXX=
10928 if test "$GXX" = yes; then
10929 # Set up default GNU C++ configuration
10932 # Check whether --with-gnu-ld was given.
10933 if test "${with_gnu_ld+set}" = set; then
10934 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10940 if test "$GCC" = yes; then
10941 # Check if gcc -print-prog-name=ld gives a path.
10942 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10943 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10946 # gcc leaves a trailing carriage return which upsets mingw
10947 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10949 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10952 # Accept absolute paths.
10954 re_direlt='/[^/][^/]*/\.\./'
10955 # Canonicalize the pathname of ld
10956 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10957 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10958 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10960 test -z "$LD" && LD="$ac_prog"
10963 # If it fails, then pretend we aren't using GCC.
10967 # If it is relative, then search for the first ld in PATH.
10968 with_gnu_ld=unknown
10971 elif test "$with_gnu_ld" = yes; then
10972 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10973 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10975 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10976 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10978 if test "${lt_cv_path_LD+set}" = set; then
10979 echo $ECHO_N "(cached) $ECHO_C" >&6
10981 if test -z "$LD"; then
10982 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10983 for ac_dir in $PATH; do
10985 test -z "$ac_dir" && ac_dir=.
10986 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10987 lt_cv_path_LD="$ac_dir/$ac_prog"
10988 # Check to see if the program is GNU ld. I'd rather use --version,
10989 # but apparently some variants of GNU ld only accept -v.
10990 # Break only if it was the GNU/non-GNU ld that we prefer.
10991 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10992 *GNU* | *'with BFD'*)
10993 test "$with_gnu_ld" != no && break
10996 test "$with_gnu_ld" != yes && break
11003 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11007 LD="$lt_cv_path_LD"
11008 if test -n "$LD"; then
11009 { echo "$as_me:$LINENO: result: $LD" >&5
11010 echo "${ECHO_T}$LD" >&6; }
11012 { echo "$as_me:$LINENO: result: no" >&5
11013 echo "${ECHO_T}no" >&6; }
11015 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11016 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11017 { (exit 1); exit 1; }; }
11018 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11019 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11020 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11021 echo $ECHO_N "(cached) $ECHO_C" >&6
11023 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11024 case `$LD -v 2>&1 </dev/null` in
11025 *GNU* | *'with BFD'*)
11026 lt_cv_prog_gnu_ld=yes
11029 lt_cv_prog_gnu_ld=no
11033 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11034 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11035 with_gnu_ld=$lt_cv_prog_gnu_ld
11039 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11040 # archiving commands below assume that GNU ld is being used.
11041 if test "$with_gnu_ld" = yes; then
11042 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11043 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'
11045 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11046 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11048 # If archive_cmds runs LD, not CC, wlarc should be empty
11049 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11050 # investigate it a little bit more. (MM)
11053 # ancient GNU ld didn't support --whole-archive et. al.
11054 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11055 grep 'no-whole-archive' > /dev/null; then
11056 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11058 whole_archive_flag_spec_CXX=
11064 # A generic and very simple default shared library creation
11065 # command for GNU C++ for the case where it uses the native
11066 # linker, instead of GNU ld. If possible, this setting should
11067 # overridden to take advantage of the native linker features on
11068 # the platform it is being used on.
11069 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11072 # Commands to make compiler produce verbose output that lists
11073 # what "hidden" libraries, object files and flags are used when
11074 # linking a shared library.
11075 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11083 # PORTME: fill in a description of your system's C++ link characteristics
11084 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11085 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11089 # FIXME: insert proper C++ library support
11093 if test "$host_cpu" = ia64; then
11094 # On IA64, the linker does run time linking by default, so we don't
11095 # have to do anything special.
11096 aix_use_runtimelinking=no
11097 exp_sym_flag='-Bexport'
11100 aix_use_runtimelinking=no
11102 # Test if we are trying to use run time linking or normal
11103 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11104 # need to do runtime linking.
11105 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11106 for ld_flag in $LDFLAGS; do
11109 aix_use_runtimelinking=yes
11117 exp_sym_flag='-bexport'
11118 no_entry_flag='-bnoentry'
11121 # When large executables or shared objects are built, AIX ld can
11122 # have problems creating the table of contents. If linking a library
11123 # or program results in "error TOC overflow" add -mminimal-toc to
11124 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11125 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11127 archive_cmds_CXX=''
11128 hardcode_direct_CXX=yes
11129 hardcode_libdir_separator_CXX=':'
11130 link_all_deplibs_CXX=yes
11132 if test "$GXX" = yes; then
11133 case $host_os in aix4.[012]|aix4.[012].*)
11134 # We only want to do this on AIX 4.2 and lower, the check
11135 # below for broken collect2 doesn't work under 4.3+
11136 collect2name=`${CC} -print-prog-name=collect2`
11137 if test -f "$collect2name" && \
11138 strings "$collect2name" | grep resolve_lib_name >/dev/null
11140 # We have reworked collect2
11141 hardcode_direct_CXX=yes
11143 # We have old collect2
11144 hardcode_direct_CXX=unsupported
11145 # It fails to find uninstalled libraries when the uninstalled
11146 # path is not listed in the libpath. Setting hardcode_minus_L
11147 # to unsupported forces relinking
11148 hardcode_minus_L_CXX=yes
11149 hardcode_libdir_flag_spec_CXX='-L$libdir'
11150 hardcode_libdir_separator_CXX=
11154 shared_flag='-shared'
11155 if test "$aix_use_runtimelinking" = yes; then
11156 shared_flag="$shared_flag "'${wl}-G'
11160 if test "$host_cpu" = ia64; then
11161 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11162 # chokes on -Wl,-G. The following line is correct:
11165 if test "$aix_use_runtimelinking" = yes; then
11166 shared_flag='${wl}-G'
11168 shared_flag='${wl}-bM:SRE'
11173 # It seems that -bexpall does not export symbols beginning with
11174 # underscore (_), so it is better to generate a list of symbols to export.
11175 always_export_symbols_CXX=yes
11176 if test "$aix_use_runtimelinking" = yes; then
11177 # Warning - without using the other runtime loading flags (-brtl),
11178 # -berok will link without error, but may produce a broken library.
11179 allow_undefined_flag_CXX='-berok'
11180 # Determine the default libpath from the value encoded in an empty executable.
11181 cat >conftest.$ac_ext <<_ACEOF
11184 cat confdefs.h >>conftest.$ac_ext
11185 cat >>conftest.$ac_ext <<_ACEOF
11186 /* end confdefs.h. */
11196 rm -f conftest.$ac_objext conftest$ac_exeext
11197 if { (ac_try="$ac_link"
11198 case "(($ac_try" in
11199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200 *) ac_try_echo=$ac_try;;
11202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203 (eval "$ac_link") 2>conftest.er1
11205 grep -v '^ *+' conftest.er1 >conftest.err
11207 cat conftest.err >&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); } && {
11210 test -z "$ac_cxx_werror_flag" ||
11211 test ! -s conftest.err
11212 } && test -s conftest$ac_exeext &&
11213 $as_test_x conftest$ac_exeext; then
11215 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11217 # Check for a 64-bit object if we didn't find anything.
11218 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11221 echo "$as_me: failed program was:" >&5
11222 sed 's/^/| /' conftest.$ac_ext >&5
11227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11228 conftest$ac_exeext conftest.$ac_ext
11229 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11231 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11233 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"
11235 if test "$host_cpu" = ia64; then
11236 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11237 allow_undefined_flag_CXX="-z nodefs"
11238 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"
11240 # Determine the default libpath from the value encoded in an empty executable.
11241 cat >conftest.$ac_ext <<_ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h. */
11256 rm -f conftest.$ac_objext conftest$ac_exeext
11257 if { (ac_try="$ac_link"
11258 case "(($ac_try" in
11259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11260 *) ac_try_echo=$ac_try;;
11262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11263 (eval "$ac_link") 2>conftest.er1
11265 grep -v '^ *+' conftest.er1 >conftest.err
11267 cat conftest.err >&5
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); } && {
11270 test -z "$ac_cxx_werror_flag" ||
11271 test ! -s conftest.err
11272 } && test -s conftest$ac_exeext &&
11273 $as_test_x conftest$ac_exeext; then
11275 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11277 # Check for a 64-bit object if we didn't find anything.
11278 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11281 echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11288 conftest$ac_exeext conftest.$ac_ext
11289 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11291 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11292 # Warning - without using the other run time loading flags,
11293 # -berok will link without error, but may produce a broken library.
11294 no_undefined_flag_CXX=' ${wl}-bernotok'
11295 allow_undefined_flag_CXX=' ${wl}-berok'
11296 # Exported symbols can be pulled into shared objects from archives
11297 whole_archive_flag_spec_CXX='$convenience'
11298 archive_cmds_need_lc_CXX=yes
11299 # This is similar to how AIX traditionally builds its shared libraries.
11300 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'
11306 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11307 allow_undefined_flag_CXX=unsupported
11308 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11309 # support --undefined. This deserves some investigation. FIXME
11310 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11317 case $cc_basename in
11319 # FIXME: insert proper C++ library support
11325 cygwin* | mingw* | pw32*)
11326 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11327 # as there is no search path for DLLs.
11328 hardcode_libdir_flag_spec_CXX='-L$libdir'
11329 allow_undefined_flag_CXX=unsupported
11330 always_export_symbols_CXX=no
11331 enable_shared_with_static_runtimes_CXX=yes
11333 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11334 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'
11335 # If the export-symbols file already is a .def file (1st line
11336 # is EXPORTS), use it as is; otherwise, prepend...
11337 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11338 cp $export_symbols $output_objdir/$soname.def;
11340 echo EXPORTS > $output_objdir/$soname.def;
11341 cat $export_symbols >> $output_objdir/$soname.def;
11343 $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'
11348 darwin* | rhapsody*)
11350 rhapsody* | darwin1.[012])
11351 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11354 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11355 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11357 case ${MACOSX_DEPLOYMENT_TARGET} in
11359 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11362 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11368 archive_cmds_need_lc_CXX=no
11369 hardcode_direct_CXX=no
11370 hardcode_automatic_CXX=yes
11371 hardcode_shlibpath_var_CXX=unsupported
11372 whole_archive_flag_spec_CXX=''
11373 link_all_deplibs_CXX=yes
11375 if test "$GXX" = yes ; then
11376 lt_int_apple_cc_single_mod=no
11377 output_verbose_link_cmd='echo'
11378 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11379 lt_int_apple_cc_single_mod=yes
11381 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11382 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11384 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'
11386 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11387 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11388 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11389 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}'
11391 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}'
11393 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}'
11395 case $cc_basename in
11397 output_verbose_link_cmd='echo'
11398 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11399 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11400 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11401 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11402 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}'
11412 case $cc_basename in
11414 # FIXME: insert proper C++ library support
11418 # Green Hills C++ Compiler
11419 # FIXME: insert proper C++ library support
11423 # FIXME: insert proper C++ library support
11429 # C++ shared libraries reported to be fairly broken before switch to ELF
11433 archive_cmds_need_lc_CXX=no
11435 freebsd* | dragonfly*)
11436 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11443 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11444 hardcode_libdir_separator_CXX=:
11445 export_dynamic_flag_spec_CXX='${wl}-E'
11446 hardcode_direct_CXX=yes
11447 hardcode_minus_L_CXX=yes # Not in the search PATH,
11448 # but as the default
11449 # location of the library.
11451 case $cc_basename in
11453 # FIXME: insert proper C++ library support
11457 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'
11458 # Commands to make compiler produce verbose output that lists
11459 # what "hidden" libraries, object files and flags are used when
11460 # linking a shared library.
11462 # There doesn't appear to be a way to prevent this compiler from
11463 # explicitly linking system object files so we need to strip them
11464 # from the output so that they don't get included in the library
11466 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'
11469 if test "$GXX" = yes; then
11470 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'
11472 # FIXME: insert proper C++ library support
11479 if test $with_gnu_ld = no; then
11480 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11481 hardcode_libdir_separator_CXX=:
11485 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11488 export_dynamic_flag_spec_CXX='${wl}-E'
11494 hardcode_direct_CXX=no
11495 hardcode_shlibpath_var_CXX=no
11498 hardcode_direct_CXX=yes
11499 hardcode_minus_L_CXX=yes # Not in the search PATH,
11500 # but as the default
11501 # location of the library.
11505 case $cc_basename in
11507 # FIXME: insert proper C++ library support
11513 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11516 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11519 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11522 # Commands to make compiler produce verbose output that lists
11523 # what "hidden" libraries, object files and flags are used when
11524 # linking a shared library.
11526 # There doesn't appear to be a way to prevent this compiler from
11527 # explicitly linking system object files so we need to strip them
11528 # from the output so that they don't get included in the library
11530 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'
11533 if test "$GXX" = yes; then
11534 if test $with_gnu_ld = no; then
11537 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11540 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11543 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'
11548 # FIXME: insert proper C++ library support
11555 hardcode_direct_CXX=no
11556 hardcode_shlibpath_var_CXX=no
11557 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11558 export_dynamic_flag_spec_CXX='${wl}-E'
11559 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11560 # Instead, shared libraries are loaded at an image base (0x10000000 by
11561 # default) and relocated if they conflict, which is a slow very memory
11562 # consuming and fragmenting process. To avoid this, we pick a random,
11563 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11564 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11565 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'
11566 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'
11569 case $cc_basename in
11572 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'
11574 # Archives containing C++ object files must be created using
11575 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11576 # necessary to make sure instantiated templates are included
11578 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11581 if test "$GXX" = yes; then
11582 if test "$with_gnu_ld" = no; then
11583 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'
11585 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'
11588 link_all_deplibs_CXX=yes
11591 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11592 hardcode_libdir_separator_CXX=:
11594 linux* | k*bsd*-gnu)
11595 case $cc_basename in
11597 # Kuck and Associates, Inc. (KAI) C++ Compiler
11599 # KCC will only create a shared library if the output file
11600 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11601 # to its proper name (with version) after linking.
11602 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'
11603 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'
11604 # Commands to make compiler produce verbose output that lists
11605 # what "hidden" libraries, object files and flags are used when
11606 # linking a shared library.
11608 # There doesn't appear to be a way to prevent this compiler from
11609 # explicitly linking system object files so we need to strip them
11610 # from the output so that they don't get included in the library
11612 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'
11614 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11615 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11617 # Archives containing C++ object files must be created using
11618 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11619 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11624 # version 8.0 and above of icpc choke on multiply defined symbols
11625 # if we add $predep_objects and $postdep_objects, however 7.1 and
11626 # earlier do not add the objects themselves.
11627 case `$CC -V 2>&1` in
11629 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11630 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'
11632 *) # Version 8.0 or newer
11635 ia64*) tmp_idyn=' -i_dynamic';;
11637 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11638 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'
11641 archive_cmds_need_lc_CXX=no
11642 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11643 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11644 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11647 # Portland Group C++ compiler
11648 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11649 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'
11651 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11652 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11653 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'
11657 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11658 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'
11660 runpath_var=LD_RUN_PATH
11661 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11662 hardcode_libdir_separator_CXX=:
11664 # Commands to make compiler produce verbose output that lists
11665 # what "hidden" libraries, object files and flags are used when
11666 # linking a shared library.
11668 # There doesn't appear to be a way to prevent this compiler from
11669 # explicitly linking system object files so we need to strip them
11670 # from the output so that they don't get included in the library
11672 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'
11677 # FIXME: insert proper C++ library support
11681 # FIXME: insert proper C++ library support
11685 case $cc_basename in
11687 # FIXME: insert proper C++ library support
11691 # FIXME: insert proper C++ library support
11696 netbsd* | netbsdelf*-gnu)
11697 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11698 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11700 hardcode_libdir_flag_spec_CXX='-R$libdir'
11701 hardcode_direct_CXX=yes
11702 hardcode_shlibpath_var_CXX=no
11704 # Workaround some broken pre-1.5 toolchains
11705 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11708 # C++ shared libraries are fairly broken
11712 hardcode_direct_CXX=yes
11713 hardcode_shlibpath_var_CXX=no
11714 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11715 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11716 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11717 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11718 export_dynamic_flag_spec_CXX='${wl}-E'
11719 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11721 output_verbose_link_cmd='echo'
11724 case $cc_basename in
11726 # Kuck and Associates, Inc. (KAI) C++ Compiler
11728 # KCC will only create a shared library if the output file
11729 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11730 # to its proper name (with version) after linking.
11731 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'
11733 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11734 hardcode_libdir_separator_CXX=:
11736 # Archives containing C++ object files must be created using
11737 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11738 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11742 # Rational C++ 2.4.1
11743 # FIXME: insert proper C++ library support
11747 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11748 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'
11750 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11751 hardcode_libdir_separator_CXX=:
11753 # Commands to make compiler produce verbose output that lists
11754 # what "hidden" libraries, object files and flags are used when
11755 # linking a shared library.
11757 # There doesn't appear to be a way to prevent this compiler from
11758 # explicitly linking system object files so we need to strip them
11759 # from the output so that they don't get included in the library
11761 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'
11764 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11765 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11766 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'
11768 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11769 hardcode_libdir_separator_CXX=:
11771 # Commands to make compiler produce verbose output that lists
11772 # what "hidden" libraries, object files and flags are used when
11773 # linking a shared library.
11774 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11777 # FIXME: insert proper C++ library support
11784 case $cc_basename in
11786 # Kuck and Associates, Inc. (KAI) C++ Compiler
11788 # KCC will only create a shared library if the output file
11789 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11790 # to its proper name (with version) after linking.
11791 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'
11793 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11794 hardcode_libdir_separator_CXX=:
11796 # Archives containing C++ object files must be created using
11797 # the KAI C++ compiler.
11798 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11801 # Rational C++ 2.4.1
11802 # FIXME: insert proper C++ library support
11806 allow_undefined_flag_CXX=' -expect_unresolved \*'
11807 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'
11808 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11809 echo "-hidden">> $lib.exp~
11810 $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~
11813 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11814 hardcode_libdir_separator_CXX=:
11816 # Commands to make compiler produce verbose output that lists
11817 # what "hidden" libraries, object files and flags are used when
11818 # linking a shared library.
11820 # There doesn't appear to be a way to prevent this compiler from
11821 # explicitly linking system object files so we need to strip them
11822 # from the output so that they don't get included in the library
11824 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'
11827 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11828 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11829 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'
11831 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11832 hardcode_libdir_separator_CXX=:
11834 # Commands to make compiler produce verbose output that lists
11835 # what "hidden" libraries, object files and flags are used when
11836 # linking a shared library.
11837 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11840 # FIXME: insert proper C++ library support
11847 # FIXME: insert proper C++ library support
11851 case $cc_basename in
11854 # FIXME: insert proper C++ library support
11859 # FIXME: insert proper C++ library support
11863 # FIXME: insert proper C++ library support
11869 case $cc_basename in
11871 # Sun C++ 4.2, 5.x and Centerline C++
11872 archive_cmds_need_lc_CXX=yes
11873 no_undefined_flag_CXX=' -zdefs'
11874 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11875 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11876 $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'
11878 hardcode_libdir_flag_spec_CXX='-R$libdir'
11879 hardcode_shlibpath_var_CXX=no
11881 solaris2.[0-5] | solaris2.[0-5].*) ;;
11883 # The C++ compiler is used as linker so we must use $wl
11884 # flag to pass the commands to the underlying system
11885 # linker. We must also pass each convience library through
11886 # to the system linker between allextract/defaultextract.
11887 # The C++ compiler will combine linker options so we
11888 # cannot just pass the convience library names through
11890 # Supported since Solaris 2.6 (maybe 2.5.1?)
11891 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11894 link_all_deplibs_CXX=yes
11896 output_verbose_link_cmd='echo'
11898 # Archives containing C++ object files must be created using
11899 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11900 # necessary to make sure instantiated templates are included
11902 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11905 # Green Hills C++ Compiler
11906 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11908 # The C++ compiler must be used to create the archive.
11909 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11912 # GNU C++ compiler with Solaris linker
11913 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11914 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11915 if $CC --version | grep -v '^2\.7' > /dev/null; then
11916 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11917 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11918 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11920 # Commands to make compiler produce verbose output that lists
11921 # what "hidden" libraries, object files and flags are used when
11922 # linking a shared library.
11923 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11925 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11927 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11928 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11929 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11931 # Commands to make compiler produce verbose output that lists
11932 # what "hidden" libraries, object files and flags are used when
11933 # linking a shared library.
11934 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11937 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11942 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11943 no_undefined_flag_CXX='${wl}-z,text'
11944 archive_cmds_need_lc_CXX=no
11945 hardcode_shlibpath_var_CXX=no
11946 runpath_var='LD_RUN_PATH'
11948 case $cc_basename in
11950 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11951 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11954 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11955 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11959 sysv5* | sco3.2v5* | sco5v6*)
11960 # Note: We can NOT use -z defs as we might desire, because we do not
11961 # link with -lc, and that would cause any symbols used from libc to
11962 # always be unresolved, which means just about no library would
11963 # ever link correctly. If we're not using GNU ld we use -z text
11964 # though, which does catch some bad symbols but isn't as heavy-handed
11966 # For security reasons, it is highly recommended that you always
11967 # use absolute paths for naming shared libraries, and exclude the
11968 # DT_RUNPATH tag from executables and libraries. But doing so
11969 # requires that you compile everything twice, which is a pain.
11970 # So that behaviour is only enabled if SCOABSPATH is set to a
11971 # non-empty value in the environment. Most likely only useful for
11972 # creating official distributions of packages.
11973 # This is a hack until libtool officially supports absolute path
11974 # names for shared libraries.
11975 no_undefined_flag_CXX='${wl}-z,text'
11976 allow_undefined_flag_CXX='${wl}-z,nodefs'
11977 archive_cmds_need_lc_CXX=no
11978 hardcode_shlibpath_var_CXX=no
11979 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11980 hardcode_libdir_separator_CXX=':'
11981 link_all_deplibs_CXX=yes
11982 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11983 runpath_var='LD_RUN_PATH'
11985 case $cc_basename in
11987 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11988 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11991 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11992 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11997 case $cc_basename in
11999 # NonStop-UX NCC 3.20
12000 # FIXME: insert proper C++ library support
12004 # FIXME: insert proper C++ library support
12010 # FIXME: insert proper C++ library support
12014 # FIXME: insert proper C++ library support
12018 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12019 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12020 test "$ld_shlibs_CXX" = no && can_build_shared=no
12026 cat > conftest.$ac_ext <<EOF
12030 Foo (void) { a = 0; }
12036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12037 (eval $ac_compile) 2>&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); }; then
12041 # Parse the compiler output and extract the necessary
12042 # objects, libraries and library flags.
12044 # Sentinel used to keep track of whether or not we are before
12045 # the conftest object file.
12046 pre_test_object_deps_done=no
12048 # The `*' in the case matches for architectures that use `case' in
12049 # $output_verbose_cmd can trigger glob expansion during the loop
12050 # eval without this substitution.
12051 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12053 for p in `eval $output_verbose_link_cmd`; do
12057 # Some compilers place space between "-{L,R}" and the path.
12058 # Remove the space.
12059 if test $p = "-L" \
12060 || test $p = "-R"; then
12067 if test "$pre_test_object_deps_done" = no; then
12070 # Internal compiler library paths should come after those
12071 # provided the user. The postdeps already come after the
12072 # user supplied libs so there is no need to process them.
12073 if test -z "$compiler_lib_search_path_CXX"; then
12074 compiler_lib_search_path_CXX="${prev}${p}"
12076 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12079 # The "-l" case would never come before the object being
12080 # linked, so don't bother handling this case.
12083 if test -z "$postdeps_CXX"; then
12084 postdeps_CXX="${prev}${p}"
12086 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12092 # This assumes that the test object file only shows up
12093 # once in the compiler output.
12094 if test "$p" = "conftest.$objext"; then
12095 pre_test_object_deps_done=yes
12099 if test "$pre_test_object_deps_done" = no; then
12100 if test -z "$predep_objects_CXX"; then
12101 predep_objects_CXX="$p"
12103 predep_objects_CXX="$predep_objects_CXX $p"
12106 if test -z "$postdep_objects_CXX"; then
12107 postdep_objects_CXX="$p"
12109 postdep_objects_CXX="$postdep_objects_CXX $p"
12114 *) ;; # Ignore the rest.
12122 echo "libtool.m4: error: problem compiling CXX test program"
12125 $rm -f confest.$objext
12127 # PORTME: override above test on systems where it is broken
12130 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12131 # hack all around it, let's just trust "g++" to DTRT.
12132 predep_objects_CXX=
12133 postdep_objects_CXX=
12138 case $cc_basename in
12140 # Adding this requires a known-good setup of shared libraries for
12141 # Sun compiler versions before 5.6, else PIC objects from an old
12142 # archive will be linked into the output, leading to subtle bugs.
12143 postdeps_CXX='-lCstd -lCrun'
12150 case " $postdeps_CXX " in
12151 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12154 lt_prog_compiler_wl_CXX=
12155 lt_prog_compiler_pic_CXX=
12156 lt_prog_compiler_static_CXX=
12158 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12159 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12161 # C++ specific cases for pic, static, wl, etc.
12162 if test "$GXX" = yes; then
12163 lt_prog_compiler_wl_CXX='-Wl,'
12164 lt_prog_compiler_static_CXX='-static'
12168 # All AIX code is PIC.
12169 if test "$host_cpu" = ia64; then
12170 # AIX 5 now supports IA64 processor
12171 lt_prog_compiler_static_CXX='-Bstatic'
12175 # FIXME: we need at least 68020 code to build shared libraries, but
12176 # adding the `-m68020' flag to GCC prevents building anything better,
12178 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12180 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12181 # PIC is the default for these OSes.
12183 mingw* | os2* | pw32*)
12184 # This hack is so that the source file can tell whether it is being
12185 # built for inclusion in a dll (and should export symbols for example).
12186 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12188 darwin* | rhapsody*)
12189 # PIC is the default on this platform
12190 # Common symbols not allowed in MH_DYLIB files
12191 lt_prog_compiler_pic_CXX='-fno-common'
12194 # DJGPP does not support shared libraries at all
12195 lt_prog_compiler_pic_CXX=
12198 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12199 # Instead, we relocate shared libraries at runtime.
12202 if test -d /usr/nec; then
12203 lt_prog_compiler_pic_CXX=-Kconform_pic
12207 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12208 # not for PA HP-UX.
12213 lt_prog_compiler_pic_CXX='-fPIC'
12218 lt_prog_compiler_pic_CXX='-fPIC'
12224 # All AIX code is PIC.
12225 if test "$host_cpu" = ia64; then
12226 # AIX 5 now supports IA64 processor
12227 lt_prog_compiler_static_CXX='-Bstatic'
12229 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12233 case $cc_basename in
12235 # Green Hills C++ Compiler
12236 # _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"
12241 # PIC is the default on this platform
12242 # Common symbols not allowed in MH_DYLIB files
12243 case $cc_basename in
12245 lt_prog_compiler_pic_CXX='-qnocommon'
12246 lt_prog_compiler_wl_CXX='-Wl,'
12251 case $cc_basename in
12253 lt_prog_compiler_pic_CXX='-KPIC'
12256 # Green Hills C++ Compiler
12257 lt_prog_compiler_pic_CXX='-pic'
12263 freebsd* | dragonfly*)
12264 # FreeBSD uses GNU C++
12266 hpux9* | hpux10* | hpux11*)
12267 case $cc_basename in
12269 lt_prog_compiler_wl_CXX='-Wl,'
12270 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12271 if test "$host_cpu" != ia64; then
12272 lt_prog_compiler_pic_CXX='+Z'
12276 lt_prog_compiler_wl_CXX='-Wl,'
12277 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12283 lt_prog_compiler_pic_CXX='+Z'
12292 # This is c89, which is MS Visual C++ (no shared libs)
12293 # Anyone wants to do a port?
12295 irix5* | irix6* | nonstopux*)
12296 case $cc_basename in
12298 lt_prog_compiler_wl_CXX='-Wl,'
12299 lt_prog_compiler_static_CXX='-non_shared'
12300 # CC pic flag -KPIC is the default.
12306 linux* | k*bsd*-gnu)
12307 case $cc_basename in
12310 lt_prog_compiler_wl_CXX='--backend -Wl,'
12311 lt_prog_compiler_pic_CXX='-fPIC'
12315 lt_prog_compiler_wl_CXX='-Wl,'
12316 lt_prog_compiler_pic_CXX='-KPIC'
12317 lt_prog_compiler_static_CXX='-static'
12320 # Portland Group C++ compiler.
12321 lt_prog_compiler_wl_CXX='-Wl,'
12322 lt_prog_compiler_pic_CXX='-fpic'
12323 lt_prog_compiler_static_CXX='-Bstatic'
12327 # Make sure the PIC flag is empty. It appears that all Alpha
12328 # Linux and Compaq Tru64 Unix objects are PIC.
12329 lt_prog_compiler_pic_CXX=
12330 lt_prog_compiler_static_CXX='-non_shared'
12341 case $cc_basename in
12343 lt_prog_compiler_pic_CXX='-W c,exportall'
12349 netbsd* | netbsdelf*-gnu)
12351 osf3* | osf4* | osf5*)
12352 case $cc_basename in
12354 lt_prog_compiler_wl_CXX='--backend -Wl,'
12357 # Rational C++ 2.4.1
12358 lt_prog_compiler_pic_CXX='-pic'
12361 # Digital/Compaq C++
12362 lt_prog_compiler_wl_CXX='-Wl,'
12363 # Make sure the PIC flag is empty. It appears that all Alpha
12364 # Linux and Compaq Tru64 Unix objects are PIC.
12365 lt_prog_compiler_pic_CXX=
12366 lt_prog_compiler_static_CXX='-non_shared'
12375 case $cc_basename in
12377 # Sun C++ 4.2, 5.x and Centerline C++
12378 lt_prog_compiler_pic_CXX='-KPIC'
12379 lt_prog_compiler_static_CXX='-Bstatic'
12380 lt_prog_compiler_wl_CXX='-Qoption ld '
12383 # Green Hills C++ Compiler
12384 lt_prog_compiler_pic_CXX='-PIC'
12391 case $cc_basename in
12394 lt_prog_compiler_pic_CXX='-pic'
12395 lt_prog_compiler_static_CXX='-Bstatic'
12399 lt_prog_compiler_pic_CXX='-pic'
12406 case $cc_basename in
12408 # NonStop-UX NCC 3.20
12409 lt_prog_compiler_pic_CXX='-KPIC'
12415 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12416 case $cc_basename in
12418 lt_prog_compiler_wl_CXX='-Wl,'
12419 lt_prog_compiler_pic_CXX='-KPIC'
12420 lt_prog_compiler_static_CXX='-Bstatic'
12427 lt_prog_compiler_can_build_shared_CXX=no
12432 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12433 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12436 # Check to make sure the PIC flag actually works.
12438 if test -n "$lt_prog_compiler_pic_CXX"; then
12440 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12441 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12442 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12443 echo $ECHO_N "(cached) $ECHO_C" >&6
12445 lt_prog_compiler_pic_works_CXX=no
12446 ac_outfile=conftest.$ac_objext
12447 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12448 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12449 # Insert the option either (1) after the last *FLAGS variable, or
12450 # (2) before a word containing "conftest.", or (3) at the end.
12451 # Note that $ac_compile itself does not contain backslashes and begins
12452 # with a dollar sign (not a hyphen), so the echo should work correctly.
12453 # The option is referenced via a variable to avoid confusing sed.
12454 lt_compile=`echo "$ac_compile" | $SED \
12455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12457 -e 's:$: $lt_compiler_flag:'`
12458 (eval echo "\"\$as_me:12458: $lt_compile\"" >&5)
12459 (eval "$lt_compile" 2>conftest.err)
12461 cat conftest.err >&5
12462 echo "$as_me:12462: \$? = $ac_status" >&5
12463 if (exit $ac_status) && test -s "$ac_outfile"; then
12464 # The compiler can only warn and ignore the option if not recognized
12465 # So say no if there are warnings other than the usual output.
12466 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12468 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12469 lt_prog_compiler_pic_works_CXX=yes
12475 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12476 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12478 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12479 case $lt_prog_compiler_pic_CXX in
12481 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12484 lt_prog_compiler_pic_CXX=
12485 lt_prog_compiler_can_build_shared_CXX=no
12490 # For platforms which do not support PIC, -DPIC is meaningless:
12492 lt_prog_compiler_pic_CXX=
12495 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12500 # Check to make sure the static flag actually works.
12502 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12503 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12504 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12505 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12506 echo $ECHO_N "(cached) $ECHO_C" >&6
12508 lt_prog_compiler_static_works_CXX=no
12509 save_LDFLAGS="$LDFLAGS"
12510 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12511 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12512 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12513 # The linker can only warn and ignore the option if not recognized
12514 # So say no if there are warnings
12515 if test -s conftest.err; then
12516 # Append any errors to the config.log.
12517 cat conftest.err 1>&5
12518 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12519 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12520 if diff conftest.exp conftest.er2 >/dev/null; then
12521 lt_prog_compiler_static_works_CXX=yes
12524 lt_prog_compiler_static_works_CXX=yes
12528 LDFLAGS="$save_LDFLAGS"
12531 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12532 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12534 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12537 lt_prog_compiler_static_CXX=
12541 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12542 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12543 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12544 echo $ECHO_N "(cached) $ECHO_C" >&6
12546 lt_cv_prog_compiler_c_o_CXX=no
12547 $rm -r conftest 2>/dev/null
12551 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12553 lt_compiler_flag="-o out/conftest2.$ac_objext"
12554 # Insert the option either (1) after the last *FLAGS variable, or
12555 # (2) before a word containing "conftest.", or (3) at the end.
12556 # Note that $ac_compile itself does not contain backslashes and begins
12557 # with a dollar sign (not a hyphen), so the echo should work correctly.
12558 lt_compile=`echo "$ac_compile" | $SED \
12559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12561 -e 's:$: $lt_compiler_flag:'`
12562 (eval echo "\"\$as_me:12562: $lt_compile\"" >&5)
12563 (eval "$lt_compile" 2>out/conftest.err)
12565 cat out/conftest.err >&5
12566 echo "$as_me:12566: \$? = $ac_status" >&5
12567 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12569 # The compiler can only warn and ignore the option if not recognized
12570 # So say no if there are warnings
12571 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12572 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12573 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12574 lt_cv_prog_compiler_c_o_CXX=yes
12579 # SGI C++ compiler will create directory out/ii_files/ for
12580 # template instantiation
12581 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12582 $rm out/* && rmdir out
12588 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12589 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12592 hard_links="nottested"
12593 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12594 # do not overwrite the value of need_locks provided by the user
12595 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12596 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12599 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12601 ln conftest.a conftest.b 2>&5 || hard_links=no
12602 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12603 { echo "$as_me:$LINENO: result: $hard_links" >&5
12604 echo "${ECHO_T}$hard_links" >&6; }
12605 if test "$hard_links" = no; then
12606 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12607 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12614 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12615 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12617 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12620 # If we're using GNU nm, then we don't want the "-C" option.
12621 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12622 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12623 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'
12625 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'
12629 export_symbols_cmds_CXX="$ltdll_cmds"
12632 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'
12634 linux* | k*bsd*-gnu)
12635 link_all_deplibs_CXX=no
12638 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12642 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12643 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12644 test "$ld_shlibs_CXX" = no && can_build_shared=no
12647 # Do we need to explicitly link libc?
12649 case "x$archive_cmds_need_lc_CXX" in
12651 # Assume -lc should be added
12652 archive_cmds_need_lc_CXX=yes
12654 if test "$enable_shared" = yes && test "$GCC" = yes; then
12655 case $archive_cmds_CXX in
12657 # FIXME: we may have to deal with multi-command sequences.
12660 # Test whether the compiler implicitly links with -lc since on some
12661 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12662 # to ld, don't add -lc before -lgcc.
12663 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12664 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12666 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12669 (eval $ac_compile) 2>&5
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); } 2>conftest.err; then
12675 libobjs=conftest.$ac_objext
12677 wl=$lt_prog_compiler_wl_CXX
12678 pic_flag=$lt_prog_compiler_pic_CXX
12684 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12685 allow_undefined_flag_CXX=
12686 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12687 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }
12692 archive_cmds_need_lc_CXX=no
12694 archive_cmds_need_lc_CXX=yes
12696 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12698 cat conftest.err 1>&5
12701 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12702 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12709 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12710 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12711 library_names_spec=
12712 libname_spec='lib$name'
12716 postuninstall_cmds=
12720 shlibpath_overrides_runpath=unknown
12722 dynamic_linker="$host_os ld.so"
12723 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12724 if test "$GCC" = yes; then
12725 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12726 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12727 # if the path contains ";" then we assume it to be the separator
12728 # otherwise default to the standard path separator (i.e. ":") - it is
12729 # assumed that no part of a normal pathname contains ";" but that should
12730 # okay in the real world where ";" in dirpaths is itself problematic.
12731 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12733 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12736 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12738 need_lib_prefix=unknown
12739 hardcode_into_libs=no
12741 # when you set need_version to no, make sure it does not cause -set_version
12742 # flags to be left without arguments
12743 need_version=unknown
12748 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12749 shlibpath_var=LIBPATH
12751 # AIX 3 has no versioning support, so we append a major version to the name.
12752 soname_spec='${libname}${release}${shared_ext}$major'
12759 hardcode_into_libs=yes
12760 if test "$host_cpu" = ia64; then
12761 # AIX 5 supports IA64
12762 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12763 shlibpath_var=LD_LIBRARY_PATH
12765 # With GCC up to 2.95.x, collect2 would create an import file
12766 # for dependence libraries. The import file would start with
12767 # the line `#! .'. This would cause the generated library to
12768 # depend on `.', always an invalid library. This was fixed in
12769 # development snapshots of GCC prior to 3.0.
12771 aix4 | aix4.[01] | aix4.[01].*)
12772 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12774 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12777 can_build_shared=no
12781 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12782 # soname into executable. Probably we can add versioning support to
12783 # collect2, so additional links can be useful in future.
12784 if test "$aix_use_runtimelinking" = yes; then
12785 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12786 # instead of lib<name>.a to let people know that these are not
12787 # typical AIX shared libraries.
12788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12790 # We preserve .a as extension for shared libraries through AIX4.2
12791 # and later when we are not doing run time linking.
12792 library_names_spec='${libname}${release}.a $libname.a'
12793 soname_spec='${libname}${release}${shared_ext}$major'
12795 shlibpath_var=LIBPATH
12800 library_names_spec='$libname.ixlibrary $libname.a'
12801 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12802 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'
12806 library_names_spec='${libname}${shared_ext}'
12807 dynamic_linker="$host_os ld.so"
12808 shlibpath_var=LIBRARY_PATH
12814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12815 soname_spec='${libname}${release}${shared_ext}$major'
12816 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12817 shlibpath_var=LD_LIBRARY_PATH
12818 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12819 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12820 # the default ld.so.conf also contains /usr/contrib/lib and
12821 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12822 # libtool to hard-code these into programs
12825 cygwin* | mingw* | pw32*)
12826 version_type=windows
12831 case $GCC,$host_os in
12832 yes,cygwin* | yes,mingw* | yes,pw32*)
12833 library_names_spec='$libname.dll.a'
12834 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12835 postinstall_cmds='base_file=`basename \${file}`~
12836 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12837 dldir=$destdir/`dirname \$dlpath`~
12838 test -d \$dldir || mkdir -p \$dldir~
12839 $install_prog $dir/$dlname \$dldir/$dlname~
12840 chmod a+x \$dldir/$dlname'
12841 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12842 dlpath=$dir/\$dldll~
12844 shlibpath_overrides_runpath=yes
12848 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12849 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12850 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12853 # MinGW DLLs use traditional 'lib' prefix
12854 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12855 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12856 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12857 # It is most probably a Windows format PATH printed by
12858 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12859 # path with ; separators, and with drive letters. We can handle the
12860 # drive letters (cygwin fileutils understands them), so leave them,
12861 # especially as we might pass files found there to a mingw objdump,
12862 # which wouldn't understand a cygwinified path. Ahh.
12863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12865 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12869 # pw32 DLLs use 'pw' prefix rather than 'lib'
12870 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12876 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12879 dynamic_linker='Win32 ld.exe'
12880 # FIXME: first we should search . and the directory the executable is in
12884 darwin* | rhapsody*)
12885 dynamic_linker="$host_os dyld"
12886 version_type=darwin
12889 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12890 soname_spec='${libname}${release}${major}$shared_ext'
12891 shlibpath_overrides_runpath=yes
12892 shlibpath_var=DYLD_LIBRARY_PATH
12893 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12894 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12895 if test "$GCC" = yes; then
12896 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12898 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12900 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12908 soname_spec='${libname}${release}${shared_ext}$major'
12909 shlibpath_var=LD_LIBRARY_PATH
12916 freebsd* | dragonfly*)
12917 # DragonFly does not have aout. When/if they implement a new
12918 # versioning mechanism, adjust this.
12919 if test -x /usr/bin/objformat; then
12920 objformat=`/usr/bin/objformat`
12923 freebsd[123]*) objformat=aout ;;
12924 *) objformat=elf ;;
12927 version_type=freebsd-$objformat
12928 case $version_type in
12930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12935 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12939 shlibpath_var=LD_LIBRARY_PATH
12942 shlibpath_overrides_runpath=yes
12944 freebsd3.[01]* | freebsdelf3.[01]*)
12945 shlibpath_overrides_runpath=yes
12946 hardcode_into_libs=yes
12948 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12949 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12950 shlibpath_overrides_runpath=no
12951 hardcode_into_libs=yes
12953 freebsd*) # from 4.6 on
12954 shlibpath_overrides_runpath=yes
12955 hardcode_into_libs=yes
12964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12965 soname_spec='${libname}${release}${shared_ext}$major'
12966 shlibpath_var=LD_LIBRARY_PATH
12967 hardcode_into_libs=yes
12970 hpux9* | hpux10* | hpux11*)
12971 # Give a soname corresponding to the major version so that dld.sl refuses to
12972 # link against other versions.
12979 hardcode_into_libs=yes
12980 dynamic_linker="$host_os dld.so"
12981 shlibpath_var=LD_LIBRARY_PATH
12982 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12984 soname_spec='${libname}${release}${shared_ext}$major'
12985 if test "X$HPUX_IA64_MODE" = X32; then
12986 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12988 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12990 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12994 hardcode_into_libs=yes
12995 dynamic_linker="$host_os dld.sl"
12996 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12997 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12999 soname_spec='${libname}${release}${shared_ext}$major'
13000 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13001 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13005 dynamic_linker="$host_os dld.sl"
13006 shlibpath_var=SHLIB_PATH
13007 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13009 soname_spec='${libname}${release}${shared_ext}$major'
13012 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13013 postinstall_cmds='chmod 555 $lib'
13020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13021 soname_spec='${libname}${release}${shared_ext}$major'
13022 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13023 shlibpath_var=LD_LIBRARY_PATH
13024 shlibpath_overrides_runpath=no
13025 hardcode_into_libs=yes
13028 irix5* | irix6* | nonstopux*)
13030 nonstopux*) version_type=nonstopux ;;
13032 if test "$lt_cv_prog_gnu_ld" = yes; then
13040 soname_spec='${libname}${release}${shared_ext}$major'
13041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13043 irix5* | nonstopux*)
13044 libsuff= shlibsuff=
13047 case $LD in # libtool.m4 will add one of these switches to LD
13048 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13049 libsuff= shlibsuff= libmagic=32-bit;;
13050 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13051 libsuff=32 shlibsuff=N32 libmagic=N32;;
13052 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13053 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13054 *) libsuff= shlibsuff= libmagic=never-match;;
13058 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13059 shlibpath_overrides_runpath=no
13060 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13061 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13062 hardcode_into_libs=yes
13065 # No shared lib support for Linux oldld, aout, or coff.
13066 linux*oldld* | linux*aout* | linux*coff*)
13070 # This must be Linux ELF.
13071 linux* | k*bsd*-gnu)
13075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13076 soname_spec='${libname}${release}${shared_ext}$major'
13077 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13078 shlibpath_var=LD_LIBRARY_PATH
13079 shlibpath_overrides_runpath=no
13080 # This implies no fast_install, which is unacceptable.
13081 # Some rework will be needed to allow for fast_install
13082 # before this can be enabled.
13083 hardcode_into_libs=yes
13085 # Append ld.so.conf contents to the search path
13086 if test -f /etc/ld.so.conf; then
13087 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13088 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13091 # We used to test for /lib/ld.so.1 and disable shared libraries on
13092 # powerpc, because MkLinux only supported shared libraries with the
13093 # GNU dynamic linker. Since this was broken with cross compilers,
13094 # most powerpc-linux boxes support dynamic linking these days and
13095 # people can always --disable-shared, the test was removed, and we
13096 # assume the GNU/Linux dynamic linker is in use.
13097 dynamic_linker='GNU/Linux ld.so'
13104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13105 soname_spec='${libname}${release}${shared_ext}$major'
13106 shlibpath_var=LD_LIBRARY_PATH
13107 shlibpath_overrides_runpath=no
13108 hardcode_into_libs=yes
13109 dynamic_linker='NetBSD ld.elf_so'
13116 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13118 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13119 dynamic_linker='NetBSD (a.out) ld.so'
13121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13122 soname_spec='${libname}${release}${shared_ext}$major'
13123 dynamic_linker='NetBSD ld.elf_so'
13125 shlibpath_var=LD_LIBRARY_PATH
13126 shlibpath_overrides_runpath=yes
13127 hardcode_into_libs=yes
13132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13133 shlibpath_var=LD_LIBRARY_PATH
13134 shlibpath_overrides_runpath=yes
13141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13142 soname_spec='${libname}${release}${shared_ext}$major'
13143 shlibpath_var=LD_LIBRARY_PATH
13144 shlibpath_overrides_runpath=yes
13149 sys_lib_dlsearch_path_spec="/usr/lib"
13151 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13153 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13154 *) need_version=no ;;
13156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13157 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13158 shlibpath_var=LD_LIBRARY_PATH
13159 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13161 openbsd2.[89] | openbsd2.[89].*)
13162 shlibpath_overrides_runpath=no
13165 shlibpath_overrides_runpath=yes
13169 shlibpath_overrides_runpath=yes
13174 libname_spec='$name'
13177 library_names_spec='$libname${shared_ext} $libname.a'
13178 dynamic_linker='OS/2 ld.exe'
13179 shlibpath_var=LIBPATH
13182 osf3* | osf4* | osf5*)
13186 soname_spec='${libname}${release}${shared_ext}$major'
13187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13188 shlibpath_var=LD_LIBRARY_PATH
13189 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13190 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13198 soname_spec='${libname}${release}${shared_ext}$major'
13199 shlibpath_var=LD_LIBRARY_PATH
13200 shlibpath_overrides_runpath=yes
13201 hardcode_into_libs=yes
13202 # ldd complains unless libraries are executable
13203 postinstall_cmds='chmod +x $lib'
13208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13209 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13210 shlibpath_var=LD_LIBRARY_PATH
13211 shlibpath_overrides_runpath=yes
13212 if test "$with_gnu_ld" = yes; then
13220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13221 soname_spec='${libname}${release}${shared_ext}$major'
13222 shlibpath_var=LD_LIBRARY_PATH
13223 case $host_vendor in
13225 shlibpath_overrides_runpath=no
13227 export_dynamic_flag_spec='${wl}-Blargedynsym'
13228 runpath_var=LD_RUN_PATH
13236 shlibpath_overrides_runpath=no
13237 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13243 if test -d /usr/nec ;then
13245 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13246 soname_spec='$libname${shared_ext}.$major'
13247 shlibpath_var=LD_LIBRARY_PATH
13251 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13252 version_type=freebsd-elf
13255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13256 soname_spec='${libname}${release}${shared_ext}$major'
13257 shlibpath_var=LD_LIBRARY_PATH
13258 hardcode_into_libs=yes
13259 if test "$with_gnu_ld" = yes; then
13260 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13261 shlibpath_overrides_runpath=no
13263 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13264 shlibpath_overrides_runpath=yes
13267 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13271 sys_lib_dlsearch_path_spec='/usr/lib'
13276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13277 soname_spec='${libname}${release}${shared_ext}$major'
13278 shlibpath_var=LD_LIBRARY_PATH
13285 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13286 echo "${ECHO_T}$dynamic_linker" >&6; }
13287 test "$dynamic_linker" = no && can_build_shared=no
13289 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13290 if test "$GCC" = yes; then
13291 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13294 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13295 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13296 hardcode_action_CXX=
13297 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13298 test -n "$runpath_var_CXX" || \
13299 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13301 # We can hardcode non-existant directories.
13302 if test "$hardcode_direct_CXX" != no &&
13303 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13304 # have to relink, otherwise we might link with an installed library
13305 # when we should be linking with a yet-to-be-installed one
13306 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13307 test "$hardcode_minus_L_CXX" != no; then
13308 # Linking always hardcodes the temporary library directory.
13309 hardcode_action_CXX=relink
13311 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13312 hardcode_action_CXX=immediate
13315 # We cannot hardcode anything, or else we can only hardcode existing
13317 hardcode_action_CXX=unsupported
13319 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13320 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13322 if test "$hardcode_action_CXX" = relink; then
13323 # Fast installation is not supported
13324 enable_fast_install=no
13325 elif test "$shlibpath_overrides_runpath" = yes ||
13326 test "$enable_shared" = no; then
13327 # Fast installation is not necessary
13328 enable_fast_install=needless
13332 # The else clause should only fire when bootstrapping the
13333 # libtool distribution, otherwise you forgot to ship ltmain.sh
13334 # with your package, and you will get complaints that there are
13335 # no rules to generate ltmain.sh.
13336 if test -f "$ltmain"; then
13337 # See if we are running on zsh, and set the options which allow our commands through
13338 # without removal of \ escapes.
13339 if test -n "${ZSH_VERSION+set}" ; then
13340 setopt NO_GLOB_SUBST
13342 # Now quote all the things that may contain metacharacters while being
13343 # careful not to overquote the AC_SUBSTed values. We take copies of the
13344 # variables and quote the copies for generation of the libtool script.
13345 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13347 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13348 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13349 deplibs_check_method reload_flag reload_cmds need_locks \
13350 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13351 lt_cv_sys_global_symbol_to_c_name_address \
13352 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13353 old_postinstall_cmds old_postuninstall_cmds \
13357 lt_prog_compiler_wl_CXX \
13358 lt_prog_compiler_pic_CXX \
13359 lt_prog_compiler_static_CXX \
13360 lt_prog_compiler_no_builtin_flag_CXX \
13361 export_dynamic_flag_spec_CXX \
13362 thread_safe_flag_spec_CXX \
13363 whole_archive_flag_spec_CXX \
13364 enable_shared_with_static_runtimes_CXX \
13365 old_archive_cmds_CXX \
13366 old_archive_from_new_cmds_CXX \
13367 predep_objects_CXX \
13368 postdep_objects_CXX \
13371 compiler_lib_search_path_CXX \
13373 archive_expsym_cmds_CXX \
13374 postinstall_cmds_CXX \
13375 postuninstall_cmds_CXX \
13376 old_archive_from_expsyms_cmds_CXX \
13377 allow_undefined_flag_CXX \
13378 no_undefined_flag_CXX \
13379 export_symbols_cmds_CXX \
13380 hardcode_libdir_flag_spec_CXX \
13381 hardcode_libdir_flag_spec_ld_CXX \
13382 hardcode_libdir_separator_CXX \
13383 hardcode_automatic_CXX \
13385 module_expsym_cmds_CXX \
13386 lt_cv_prog_compiler_c_o_CXX \
13387 exclude_expsyms_CXX \
13388 include_expsyms_CXX; do
13391 old_archive_cmds_CXX | \
13392 old_archive_from_new_cmds_CXX | \
13393 archive_cmds_CXX | \
13394 archive_expsym_cmds_CXX | \
13395 module_cmds_CXX | \
13396 module_expsym_cmds_CXX | \
13397 old_archive_from_expsyms_cmds_CXX | \
13398 export_symbols_cmds_CXX | \
13399 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13400 postinstall_cmds | postuninstall_cmds | \
13401 old_postinstall_cmds | old_postuninstall_cmds | \
13402 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13403 # Double-quote double-evaled strings.
13404 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13407 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13413 *'\$0 --fallback-echo"')
13414 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13420 cat <<__EOF__ >> "$cfgfile"
13421 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13423 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13425 # Shell to use when invoking shell scripts.
13428 # Whether or not to build shared libraries.
13429 build_libtool_libs=$enable_shared
13431 # Whether or not to build static libraries.
13432 build_old_libs=$enable_static
13434 # Whether or not to add -lc for building shared libraries.
13435 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13437 # Whether or not to disallow shared libs when runtime libs are static
13438 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13440 # Whether or not to optimize for fast installation.
13441 fast_install=$enable_fast_install
13444 host_alias=$host_alias
13448 # The build system.
13449 build_alias=$build_alias
13453 # An echo program that does not interpret backslashes.
13458 AR_FLAGS=$lt_AR_FLAGS
13463 # LTCC compiler flags.
13464 LTCFLAGS=$lt_LTCFLAGS
13466 # A language-specific compiler.
13467 CC=$lt_compiler_CXX
13469 # Is the compiler the GNU C compiler?
13475 # The linker used to build libraries.
13478 # Whether we need hard or soft links.
13481 # A BSD-compatible nm program.
13484 # A symbol stripping program
13487 # Used to examine libraries when file_magic_cmd begins "file"
13488 MAGIC_CMD=$MAGIC_CMD
13490 # Used on cygwin: DLL creation program.
13493 # Used on cygwin: object dumper.
13496 # Used on cygwin: assembler.
13499 # The name of the directory that contains temporary libtool files.
13502 # How to create reloadable object files.
13503 reload_flag=$lt_reload_flag
13504 reload_cmds=$lt_reload_cmds
13506 # How to pass a linker flag through the compiler.
13507 wl=$lt_lt_prog_compiler_wl_CXX
13509 # Object file suffix (normally "o").
13510 objext="$ac_objext"
13512 # Old archive suffix (normally "a").
13515 # Shared library suffix (normally ".so").
13516 shrext_cmds='$shrext_cmds'
13518 # Executable file suffix (normally "").
13521 # Additional compiler flags for building library objects.
13522 pic_flag=$lt_lt_prog_compiler_pic_CXX
13525 # What is the maximum length of a command?
13526 max_cmd_len=$lt_cv_sys_max_cmd_len
13528 # Does compiler simultaneously support -c and -o options?
13529 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13531 # Must we lock files when doing compilation?
13532 need_locks=$lt_need_locks
13534 # Do we need the lib prefix for modules?
13535 need_lib_prefix=$need_lib_prefix
13537 # Do we need a version for libraries?
13538 need_version=$need_version
13540 # Whether dlopen is supported.
13541 dlopen_support=$enable_dlopen
13543 # Whether dlopen of programs is supported.
13544 dlopen_self=$enable_dlopen_self
13546 # Whether dlopen of statically linked programs is supported.
13547 dlopen_self_static=$enable_dlopen_self_static
13549 # Compiler flag to prevent dynamic linking.
13550 link_static_flag=$lt_lt_prog_compiler_static_CXX
13552 # Compiler flag to turn off builtin functions.
13553 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13555 # Compiler flag to allow reflexive dlopens.
13556 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13558 # Compiler flag to generate shared objects directly from archives.
13559 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13561 # Compiler flag to generate thread-safe objects.
13562 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13564 # Library versioning type.
13565 version_type=$version_type
13567 # Format of library name prefix.
13568 libname_spec=$lt_libname_spec
13570 # List of archive names. First name is the real one, the rest are links.
13571 # The last name is the one that the linker finds with -lNAME.
13572 library_names_spec=$lt_library_names_spec
13574 # The coded name of the library, if different from the real name.
13575 soname_spec=$lt_soname_spec
13577 # Commands used to build and install an old-style archive.
13579 old_archive_cmds=$lt_old_archive_cmds_CXX
13580 old_postinstall_cmds=$lt_old_postinstall_cmds
13581 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13583 # Create an old-style archive from a shared archive.
13584 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13586 # Create a temporary old-style archive to link instead of a shared archive.
13587 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13589 # Commands used to build and install a shared archive.
13590 archive_cmds=$lt_archive_cmds_CXX
13591 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13592 postinstall_cmds=$lt_postinstall_cmds
13593 postuninstall_cmds=$lt_postuninstall_cmds
13595 # Commands used to build a loadable module (assumed same as above if empty)
13596 module_cmds=$lt_module_cmds_CXX
13597 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13599 # Commands to strip libraries.
13600 old_striplib=$lt_old_striplib
13601 striplib=$lt_striplib
13603 # Dependencies to place before the objects being linked to create a
13605 predep_objects=$lt_predep_objects_CXX
13607 # Dependencies to place after the objects being linked to create a
13609 postdep_objects=$lt_postdep_objects_CXX
13611 # Dependencies to place before the objects being linked to create a
13613 predeps=$lt_predeps_CXX
13615 # Dependencies to place after the objects being linked to create a
13617 postdeps=$lt_postdeps_CXX
13619 # The library search path used internally by the compiler when linking
13620 # a shared library.
13621 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13623 # Method to check whether dependent libraries are shared objects.
13624 deplibs_check_method=$lt_deplibs_check_method
13626 # Command to use when deplibs_check_method == file_magic.
13627 file_magic_cmd=$lt_file_magic_cmd
13629 # Flag that allows shared libraries with undefined symbols to be built.
13630 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13632 # Flag that forces no undefined symbols.
13633 no_undefined_flag=$lt_no_undefined_flag_CXX
13635 # Commands used to finish a libtool library installation in a directory.
13636 finish_cmds=$lt_finish_cmds
13638 # Same as above, but a single script fragment to be evaled but not shown.
13639 finish_eval=$lt_finish_eval
13641 # Take the output of nm and produce a listing of raw symbols and C names.
13642 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13644 # Transform the output of nm in a proper C declaration
13645 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13647 # Transform the output of nm in a C name address pair
13648 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13650 # This is the shared library runtime path variable.
13651 runpath_var=$runpath_var
13653 # This is the shared library path variable.
13654 shlibpath_var=$shlibpath_var
13656 # Is shlibpath searched before the hard-coded library search path?
13657 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13659 # How to hardcode a shared library path into an executable.
13660 hardcode_action=$hardcode_action_CXX
13662 # Whether we should hardcode library paths into libraries.
13663 hardcode_into_libs=$hardcode_into_libs
13665 # Flag to hardcode \$libdir into a binary during linking.
13666 # This must work even if \$libdir does not exist.
13667 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13669 # If ld is used when linking, flag to hardcode \$libdir into
13670 # a binary during linking. This must work even if \$libdir does
13672 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13674 # Whether we need a single -rpath flag with a separated argument.
13675 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13677 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13678 # resulting binary.
13679 hardcode_direct=$hardcode_direct_CXX
13681 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13682 # resulting binary.
13683 hardcode_minus_L=$hardcode_minus_L_CXX
13685 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13686 # the resulting binary.
13687 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13689 # Set to yes if building a shared library automatically hardcodes DIR into the library
13690 # and all subsequent libraries and executables linked against it.
13691 hardcode_automatic=$hardcode_automatic_CXX
13693 # Variables whose values should be saved in libtool wrapper scripts and
13694 # restored at relink time.
13695 variables_saved_for_relink="$variables_saved_for_relink"
13697 # Whether libtool must link a program against all its dependency libraries.
13698 link_all_deplibs=$link_all_deplibs_CXX
13700 # Compile-time system search path for libraries
13701 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13703 # Run-time system search path for libraries
13704 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13706 # Fix the shell variable \$srcfile for the compiler.
13707 fix_srcfile_path="$fix_srcfile_path_CXX"
13709 # Set to yes if exported symbols are required.
13710 always_export_symbols=$always_export_symbols_CXX
13712 # The commands to list exported symbols.
13713 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13715 # The commands to extract the exported symbol list from a shared archive.
13716 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13718 # Symbols that should not be listed in the preloaded symbols.
13719 exclude_expsyms=$lt_exclude_expsyms_CXX
13721 # Symbols that must always be exported.
13722 include_expsyms=$lt_include_expsyms_CXX
13724 # ### END LIBTOOL TAG CONFIG: $tagname
13730 # If there is no Makefile yet, we rely on a make rule to execute
13731 # `config.status --recheck' to rerun these tests and create the
13732 # libtool script then.
13733 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13734 if test -f "$ltmain_in"; then
13735 test -f Makefile && make "$ltmain"
13741 ac_cpp='$CPP $CPPFLAGS'
13742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13750 with_gnu_ldcxx=$with_gnu_ld
13751 with_gnu_ld=$lt_save_with_gnu_ld
13752 lt_cv_path_LDCXX=$lt_cv_path_LD
13753 lt_cv_path_LD=$lt_save_path_LD
13754 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13755 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13763 if test -n "$F77" && test "X$F77" != "Xno"; then
13766 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13767 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13768 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13771 archive_cmds_need_lc_F77=no
13772 allow_undefined_flag_F77=
13773 always_export_symbols_F77=no
13774 archive_expsym_cmds_F77=
13775 export_dynamic_flag_spec_F77=
13776 hardcode_direct_F77=no
13777 hardcode_libdir_flag_spec_F77=
13778 hardcode_libdir_flag_spec_ld_F77=
13779 hardcode_libdir_separator_F77=
13780 hardcode_minus_L_F77=no
13781 hardcode_automatic_F77=no
13783 module_expsym_cmds_F77=
13784 link_all_deplibs_F77=unknown
13785 old_archive_cmds_F77=$old_archive_cmds
13786 no_undefined_flag_F77=
13787 whole_archive_flag_spec_F77=
13788 enable_shared_with_static_runtimes_F77=no
13790 # Source file extension for f77 test sources.
13793 # Object file extension for compiled f77 test sources.
13797 # Code to be used in simple compile tests
13798 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13800 # Code to be used in simple link tests
13801 lt_simple_link_test_code=" program t\n end\n"
13803 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13805 # If no C compiler was specified, use CC.
13808 # If no C compiler flags were specified, use CFLAGS.
13809 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13811 # Allow CC to be a program name with arguments.
13815 # save warnings/boilerplate of simple test code
13816 ac_outfile=conftest.$ac_objext
13817 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13818 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13819 _lt_compiler_boilerplate=`cat conftest.err`
13822 ac_outfile=conftest.$ac_objext
13823 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13824 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13825 _lt_linker_boilerplate=`cat conftest.err`
13829 # Allow CC to be a program name with arguments.
13834 for cc_temp in $compiler""; do
13836 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13837 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13842 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13845 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13846 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13847 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13848 echo "${ECHO_T}$can_build_shared" >&6; }
13850 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13851 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13852 test "$can_build_shared" = "no" && enable_shared=no
13854 # On AIX, shared libraries and static libraries use the same namespace, and
13855 # are all built from PIC.
13858 test "$enable_shared" = yes && enable_static=no
13859 if test -n "$RANLIB"; then
13860 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13861 postinstall_cmds='$RANLIB $lib'
13865 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13866 test "$enable_shared" = yes && enable_static=no
13870 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13871 echo "${ECHO_T}$enable_shared" >&6; }
13873 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13874 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13875 # Make sure either enable_shared or enable_static is yes.
13876 test "$enable_shared" = yes || enable_static=yes
13877 { echo "$as_me:$LINENO: result: $enable_static" >&5
13878 echo "${ECHO_T}$enable_static" >&6; }
13883 lt_prog_compiler_wl_F77=
13884 lt_prog_compiler_pic_F77=
13885 lt_prog_compiler_static_F77=
13887 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13888 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13890 if test "$GCC" = yes; then
13891 lt_prog_compiler_wl_F77='-Wl,'
13892 lt_prog_compiler_static_F77='-static'
13896 # All AIX code is PIC.
13897 if test "$host_cpu" = ia64; then
13898 # AIX 5 now supports IA64 processor
13899 lt_prog_compiler_static_F77='-Bstatic'
13904 # FIXME: we need at least 68020 code to build shared libraries, but
13905 # adding the `-m68020' flag to GCC prevents building anything better,
13907 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13910 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13911 # PIC is the default for these OSes.
13914 mingw* | pw32* | os2*)
13915 # This hack is so that the source file can tell whether it is being
13916 # built for inclusion in a dll (and should export symbols for example).
13917 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13920 darwin* | rhapsody*)
13921 # PIC is the default on this platform
13922 # Common symbols not allowed in MH_DYLIB files
13923 lt_prog_compiler_pic_F77='-fno-common'
13927 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13928 # Instead, we relocate shared libraries at runtime.
13932 # Just because we use GCC doesn't mean we suddenly get shared libraries
13933 # on systems that don't support them.
13934 lt_prog_compiler_can_build_shared_F77=no
13939 if test -d /usr/nec; then
13940 lt_prog_compiler_pic_F77=-Kconform_pic
13945 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13946 # not for PA HP-UX.
13952 lt_prog_compiler_pic_F77='-fPIC'
13958 lt_prog_compiler_pic_F77='-fPIC'
13962 # PORTME Check for flag to pass linker flags through the system compiler.
13965 lt_prog_compiler_wl_F77='-Wl,'
13966 if test "$host_cpu" = ia64; then
13967 # AIX 5 now supports IA64 processor
13968 lt_prog_compiler_static_F77='-Bstatic'
13970 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13974 # PIC is the default on this platform
13975 # Common symbols not allowed in MH_DYLIB files
13976 case $cc_basename in
13978 lt_prog_compiler_pic_F77='-qnocommon'
13979 lt_prog_compiler_wl_F77='-Wl,'
13984 mingw* | pw32* | os2*)
13985 # This hack is so that the source file can tell whether it is being
13986 # built for inclusion in a dll (and should export symbols for example).
13987 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13990 hpux9* | hpux10* | hpux11*)
13991 lt_prog_compiler_wl_F77='-Wl,'
13992 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13993 # not for PA HP-UX.
13999 lt_prog_compiler_pic_F77='+Z'
14002 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14003 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14006 irix5* | irix6* | nonstopux*)
14007 lt_prog_compiler_wl_F77='-Wl,'
14008 # PIC (with -KPIC) is the default.
14009 lt_prog_compiler_static_F77='-non_shared'
14013 lt_prog_compiler_pic_F77='-KPIC'
14014 lt_prog_compiler_static_F77='-Bstatic'
14017 linux* | k*bsd*-gnu)
14018 case $cc_basename in
14020 lt_prog_compiler_wl_F77='-Wl,'
14021 lt_prog_compiler_pic_F77='-KPIC'
14022 lt_prog_compiler_static_F77='-static'
14024 pgcc* | pgf77* | pgf90* | pgf95*)
14025 # Portland Group compilers (*not* the Pentium gcc compiler,
14026 # which looks to be a dead project)
14027 lt_prog_compiler_wl_F77='-Wl,'
14028 lt_prog_compiler_pic_F77='-fpic'
14029 lt_prog_compiler_static_F77='-Bstatic'
14032 lt_prog_compiler_wl_F77='-Wl,'
14033 # All Alpha code is PIC.
14034 lt_prog_compiler_static_F77='-non_shared'
14039 osf3* | osf4* | osf5*)
14040 lt_prog_compiler_wl_F77='-Wl,'
14041 # All OSF/1 code is PIC.
14042 lt_prog_compiler_static_F77='-non_shared'
14046 lt_prog_compiler_pic_F77='-KPIC'
14047 lt_prog_compiler_static_F77='-Bstatic'
14048 case $cc_basename in
14049 f77* | f90* | f95*)
14050 lt_prog_compiler_wl_F77='-Qoption ld ';;
14052 lt_prog_compiler_wl_F77='-Wl,';;
14057 lt_prog_compiler_wl_F77='-Qoption ld '
14058 lt_prog_compiler_pic_F77='-PIC'
14059 lt_prog_compiler_static_F77='-Bstatic'
14062 sysv4 | sysv4.2uw2* | sysv4.3*)
14063 lt_prog_compiler_wl_F77='-Wl,'
14064 lt_prog_compiler_pic_F77='-KPIC'
14065 lt_prog_compiler_static_F77='-Bstatic'
14069 if test -d /usr/nec ;then
14070 lt_prog_compiler_pic_F77='-Kconform_pic'
14071 lt_prog_compiler_static_F77='-Bstatic'
14075 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14076 lt_prog_compiler_wl_F77='-Wl,'
14077 lt_prog_compiler_pic_F77='-KPIC'
14078 lt_prog_compiler_static_F77='-Bstatic'
14082 lt_prog_compiler_wl_F77='-Wl,'
14083 lt_prog_compiler_can_build_shared_F77=no
14087 lt_prog_compiler_pic_F77='-pic'
14088 lt_prog_compiler_static_F77='-Bstatic'
14092 lt_prog_compiler_can_build_shared_F77=no
14097 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14098 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14101 # Check to make sure the PIC flag actually works.
14103 if test -n "$lt_prog_compiler_pic_F77"; then
14105 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14106 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14107 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14108 echo $ECHO_N "(cached) $ECHO_C" >&6
14110 lt_prog_compiler_pic_works_F77=no
14111 ac_outfile=conftest.$ac_objext
14112 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14113 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14114 # Insert the option either (1) after the last *FLAGS variable, or
14115 # (2) before a word containing "conftest.", or (3) at the end.
14116 # Note that $ac_compile itself does not contain backslashes and begins
14117 # with a dollar sign (not a hyphen), so the echo should work correctly.
14118 # The option is referenced via a variable to avoid confusing sed.
14119 lt_compile=`echo "$ac_compile" | $SED \
14120 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14122 -e 's:$: $lt_compiler_flag:'`
14123 (eval echo "\"\$as_me:14123: $lt_compile\"" >&5)
14124 (eval "$lt_compile" 2>conftest.err)
14126 cat conftest.err >&5
14127 echo "$as_me:14127: \$? = $ac_status" >&5
14128 if (exit $ac_status) && test -s "$ac_outfile"; then
14129 # The compiler can only warn and ignore the option if not recognized
14130 # So say no if there are warnings other than the usual output.
14131 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14132 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14133 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14134 lt_prog_compiler_pic_works_F77=yes
14140 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14141 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14143 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14144 case $lt_prog_compiler_pic_F77 in
14146 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14149 lt_prog_compiler_pic_F77=
14150 lt_prog_compiler_can_build_shared_F77=no
14155 # For platforms which do not support PIC, -DPIC is meaningless:
14157 lt_prog_compiler_pic_F77=
14160 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14165 # Check to make sure the static flag actually works.
14167 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14168 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14169 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14170 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14171 echo $ECHO_N "(cached) $ECHO_C" >&6
14173 lt_prog_compiler_static_works_F77=no
14174 save_LDFLAGS="$LDFLAGS"
14175 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14176 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14177 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14178 # The linker can only warn and ignore the option if not recognized
14179 # So say no if there are warnings
14180 if test -s conftest.err; then
14181 # Append any errors to the config.log.
14182 cat conftest.err 1>&5
14183 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14184 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14185 if diff conftest.exp conftest.er2 >/dev/null; then
14186 lt_prog_compiler_static_works_F77=yes
14189 lt_prog_compiler_static_works_F77=yes
14193 LDFLAGS="$save_LDFLAGS"
14196 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14197 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14199 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14202 lt_prog_compiler_static_F77=
14206 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14207 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14208 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14209 echo $ECHO_N "(cached) $ECHO_C" >&6
14211 lt_cv_prog_compiler_c_o_F77=no
14212 $rm -r conftest 2>/dev/null
14216 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14218 lt_compiler_flag="-o out/conftest2.$ac_objext"
14219 # Insert the option either (1) after the last *FLAGS variable, or
14220 # (2) before a word containing "conftest.", or (3) at the end.
14221 # Note that $ac_compile itself does not contain backslashes and begins
14222 # with a dollar sign (not a hyphen), so the echo should work correctly.
14223 lt_compile=`echo "$ac_compile" | $SED \
14224 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14225 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14226 -e 's:$: $lt_compiler_flag:'`
14227 (eval echo "\"\$as_me:14227: $lt_compile\"" >&5)
14228 (eval "$lt_compile" 2>out/conftest.err)
14230 cat out/conftest.err >&5
14231 echo "$as_me:14231: \$? = $ac_status" >&5
14232 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14234 # The compiler can only warn and ignore the option if not recognized
14235 # So say no if there are warnings
14236 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14237 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14238 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14239 lt_cv_prog_compiler_c_o_F77=yes
14244 # SGI C++ compiler will create directory out/ii_files/ for
14245 # template instantiation
14246 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14247 $rm out/* && rmdir out
14253 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14254 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14257 hard_links="nottested"
14258 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14259 # do not overwrite the value of need_locks provided by the user
14260 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14261 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14264 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14266 ln conftest.a conftest.b 2>&5 || hard_links=no
14267 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14268 { echo "$as_me:$LINENO: result: $hard_links" >&5
14269 echo "${ECHO_T}$hard_links" >&6; }
14270 if test "$hard_links" = no; then
14271 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14272 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14279 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14280 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14283 allow_undefined_flag_F77=
14284 enable_shared_with_static_runtimes_F77=no
14286 archive_expsym_cmds_F77=
14287 old_archive_From_new_cmds_F77=
14288 old_archive_from_expsyms_cmds_F77=
14289 export_dynamic_flag_spec_F77=
14290 whole_archive_flag_spec_F77=
14291 thread_safe_flag_spec_F77=
14292 hardcode_libdir_flag_spec_F77=
14293 hardcode_libdir_flag_spec_ld_F77=
14294 hardcode_libdir_separator_F77=
14295 hardcode_direct_F77=no
14296 hardcode_minus_L_F77=no
14297 hardcode_shlibpath_var_F77=unsupported
14298 link_all_deplibs_F77=unknown
14299 hardcode_automatic_F77=no
14301 module_expsym_cmds_F77=
14302 always_export_symbols_F77=no
14303 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14304 # include_expsyms should be a list of space-separated symbols to be *always*
14305 # included in the symbol list
14306 include_expsyms_F77=
14307 # exclude_expsyms can be an extended regexp of symbols to exclude
14308 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14309 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14310 # as well as any symbol that contains `d'.
14311 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14312 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14313 # platforms (ab)use it in PIC code, but their linkers get confused if
14314 # the symbol is explicitly referenced. Since portable code cannot
14315 # rely on this symbol name, it's probably fine to never include it in
14316 # preloaded symbol tables.
14317 extract_expsyms_cmds=
14318 # Just being paranoid about ensuring that cc_basename is set.
14319 for cc_temp in $compiler""; do
14321 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14322 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14327 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14330 cygwin* | mingw* | pw32*)
14331 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14332 # When not using gcc, we currently assume that we are using
14333 # Microsoft Visual C++.
14334 if test "$GCC" != yes; then
14339 # we just hope/assume this is gcc and not c89 (= MSVC++)
14348 if test "$with_gnu_ld" = yes; then
14349 # If archive_cmds runs LD, not CC, wlarc should be empty
14352 # Set some defaults for GNU ld with shared library support. These
14353 # are reset later if shared libraries are not supported. Putting them
14354 # here allows them to be overridden if necessary.
14355 runpath_var=LD_RUN_PATH
14356 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14357 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14358 # ancient GNU ld didn't support --whole-archive et. al.
14359 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14360 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14362 whole_archive_flag_spec_F77=
14364 supports_anon_versioning=no
14365 case `$LD -v 2>/dev/null` in
14366 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14367 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14368 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14369 *\ 2.11.*) ;; # other 2.11 versions
14370 *) supports_anon_versioning=yes ;;
14373 # See if GNU ld supports shared libraries.
14375 aix3* | aix4* | aix5*)
14376 # On AIX/PPC, the GNU linker is very broken
14377 if test "$host_cpu" != ia64; then
14381 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14382 *** to be unable to reliably create shared libraries on AIX.
14383 *** Therefore, libtool is disabling shared libraries support. If you
14384 *** really care for shared libraries, you may want to modify your PATH
14385 *** so that a non-GNU linker is found, and then restart.
14392 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)'
14393 hardcode_libdir_flag_spec_F77='-L$libdir'
14394 hardcode_minus_L_F77=yes
14396 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14397 # that the semantics of dynamic libraries on AmigaOS, at least up
14398 # to version 4, is to share data among multiple programs linked
14399 # with the same dynamic library. Since this doesn't match the
14400 # behavior of shared libraries on other platforms, we can't use
14406 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14407 allow_undefined_flag_F77=unsupported
14408 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14409 # support --undefined. This deserves some investigation. FIXME
14410 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14416 cygwin* | mingw* | pw32*)
14417 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14418 # as there is no search path for DLLs.
14419 hardcode_libdir_flag_spec_F77='-L$libdir'
14420 allow_undefined_flag_F77=unsupported
14421 always_export_symbols_F77=no
14422 enable_shared_with_static_runtimes_F77=yes
14423 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14425 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14426 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14427 # If the export-symbols file already is a .def file (1st line
14428 # is EXPORTS), use it as is; otherwise, prepend...
14429 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14430 cp $export_symbols $output_objdir/$soname.def;
14432 echo EXPORTS > $output_objdir/$soname.def;
14433 cat $export_symbols >> $output_objdir/$soname.def;
14435 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14442 hardcode_direct_F77=no
14443 hardcode_shlibpath_var_F77=no
14444 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14445 export_dynamic_flag_spec_F77='${wl}-E'
14446 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14447 # Instead, shared libraries are loaded at an image base (0x10000000 by
14448 # default) and relocated if they conflict, which is a slow very memory
14449 # consuming and fragmenting process. To avoid this, we pick a random,
14450 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14451 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14452 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'
14453 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'
14456 linux* | k*bsd*-gnu)
14457 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14459 case $cc_basename,$host_cpu in
14460 pgcc*) # Portland Group C compiler
14461 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'
14462 tmp_addflag=' $pic_flag'
14464 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14465 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'
14466 tmp_addflag=' $pic_flag -Mnomain' ;;
14467 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14468 tmp_addflag=' -i_dynamic' ;;
14469 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14470 tmp_addflag=' -i_dynamic -nofor_main' ;;
14471 ifc* | ifort*) # Intel Fortran compiler
14472 tmp_addflag=' -nofor_main' ;;
14474 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14476 if test $supports_anon_versioning = yes; then
14477 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14478 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14479 $echo "local: *; };" >> $output_objdir/$libname.ver~
14480 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14482 link_all_deplibs_F77=no
14488 netbsd* | netbsdelf*-gnu)
14489 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14490 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14493 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14494 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14499 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14503 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14504 *** create shared libraries on Solaris systems. Therefore, libtool
14505 *** is disabling shared libraries support. We urge you to upgrade GNU
14506 *** binutils to release 2.9.1 or newer. Another option is to modify
14507 *** your PATH or compiler configuration so that the native linker is
14508 *** used, and then restart.
14511 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14512 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14513 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14519 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14520 case `$LD -v 2>&1` in
14521 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14525 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14526 *** reliably create shared libraries on SCO systems. Therefore, libtool
14527 *** is disabling shared libraries support. We urge you to upgrade GNU
14528 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14529 *** your PATH or compiler configuration so that the native linker is
14530 *** used, and then restart.
14535 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14536 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14537 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14538 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14547 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14549 hardcode_direct_F77=yes
14550 hardcode_shlibpath_var_F77=no
14554 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14555 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14556 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14563 if test "$ld_shlibs_F77" = no; then
14565 hardcode_libdir_flag_spec_F77=
14566 export_dynamic_flag_spec_F77=
14567 whole_archive_flag_spec_F77=
14570 # PORTME fill in a description of your system's linker (not GNU ld)
14573 allow_undefined_flag_F77=unsupported
14574 always_export_symbols_F77=yes
14575 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'
14576 # Note: this linker hardcodes the directories in LIBPATH if there
14577 # are no directories specified by -L.
14578 hardcode_minus_L_F77=yes
14579 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14580 # Neither direct hardcoding nor static linking is supported with a
14582 hardcode_direct_F77=unsupported
14587 if test "$host_cpu" = ia64; then
14588 # On IA64, the linker does run time linking by default, so we don't
14589 # have to do anything special.
14590 aix_use_runtimelinking=no
14591 exp_sym_flag='-Bexport'
14594 # If we're using GNU nm, then we don't want the "-C" option.
14595 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14596 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14597 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'
14599 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'
14601 aix_use_runtimelinking=no
14603 # Test if we are trying to use run time linking or normal
14604 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14605 # need to do runtime linking.
14606 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14607 for ld_flag in $LDFLAGS; do
14608 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14609 aix_use_runtimelinking=yes
14616 exp_sym_flag='-bexport'
14617 no_entry_flag='-bnoentry'
14620 # When large executables or shared objects are built, AIX ld can
14621 # have problems creating the table of contents. If linking a library
14622 # or program results in "error TOC overflow" add -mminimal-toc to
14623 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14624 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14626 archive_cmds_F77=''
14627 hardcode_direct_F77=yes
14628 hardcode_libdir_separator_F77=':'
14629 link_all_deplibs_F77=yes
14631 if test "$GCC" = yes; then
14632 case $host_os in aix4.[012]|aix4.[012].*)
14633 # We only want to do this on AIX 4.2 and lower, the check
14634 # below for broken collect2 doesn't work under 4.3+
14635 collect2name=`${CC} -print-prog-name=collect2`
14636 if test -f "$collect2name" && \
14637 strings "$collect2name" | grep resolve_lib_name >/dev/null
14639 # We have reworked collect2
14640 hardcode_direct_F77=yes
14642 # We have old collect2
14643 hardcode_direct_F77=unsupported
14644 # It fails to find uninstalled libraries when the uninstalled
14645 # path is not listed in the libpath. Setting hardcode_minus_L
14646 # to unsupported forces relinking
14647 hardcode_minus_L_F77=yes
14648 hardcode_libdir_flag_spec_F77='-L$libdir'
14649 hardcode_libdir_separator_F77=
14653 shared_flag='-shared'
14654 if test "$aix_use_runtimelinking" = yes; then
14655 shared_flag="$shared_flag "'${wl}-G'
14659 if test "$host_cpu" = ia64; then
14660 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14661 # chokes on -Wl,-G. The following line is correct:
14664 if test "$aix_use_runtimelinking" = yes; then
14665 shared_flag='${wl}-G'
14667 shared_flag='${wl}-bM:SRE'
14672 # It seems that -bexpall does not export symbols beginning with
14673 # underscore (_), so it is better to generate a list of symbols to export.
14674 always_export_symbols_F77=yes
14675 if test "$aix_use_runtimelinking" = yes; then
14676 # Warning - without using the other runtime loading flags (-brtl),
14677 # -berok will link without error, but may produce a broken library.
14678 allow_undefined_flag_F77='-berok'
14679 # Determine the default libpath from the value encoded in an empty executable.
14680 cat >conftest.$ac_ext <<_ACEOF
14685 rm -f conftest.$ac_objext conftest$ac_exeext
14686 if { (ac_try="$ac_link"
14687 case "(($ac_try" in
14688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14689 *) ac_try_echo=$ac_try;;
14691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14692 (eval "$ac_link") 2>conftest.er1
14694 grep -v '^ *+' conftest.er1 >conftest.err
14696 cat conftest.err >&5
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); } && {
14699 test -z "$ac_f77_werror_flag" ||
14700 test ! -s conftest.err
14701 } && test -s conftest$ac_exeext &&
14702 $as_test_x conftest$ac_exeext; then
14704 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14706 # Check for a 64-bit object if we didn't find anything.
14707 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14710 echo "$as_me: failed program was:" >&5
14711 sed 's/^/| /' conftest.$ac_ext >&5
14716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14717 conftest$ac_exeext conftest.$ac_ext
14718 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14720 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14721 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"
14723 if test "$host_cpu" = ia64; then
14724 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14725 allow_undefined_flag_F77="-z nodefs"
14726 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"
14728 # Determine the default libpath from the value encoded in an empty executable.
14729 cat >conftest.$ac_ext <<_ACEOF
14734 rm -f conftest.$ac_objext conftest$ac_exeext
14735 if { (ac_try="$ac_link"
14736 case "(($ac_try" in
14737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14738 *) ac_try_echo=$ac_try;;
14740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14741 (eval "$ac_link") 2>conftest.er1
14743 grep -v '^ *+' conftest.er1 >conftest.err
14745 cat conftest.err >&5
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); } && {
14748 test -z "$ac_f77_werror_flag" ||
14749 test ! -s conftest.err
14750 } && test -s conftest$ac_exeext &&
14751 $as_test_x conftest$ac_exeext; then
14753 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14755 # Check for a 64-bit object if we didn't find anything.
14756 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14759 echo "$as_me: failed program was:" >&5
14760 sed 's/^/| /' conftest.$ac_ext >&5
14765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14766 conftest$ac_exeext conftest.$ac_ext
14767 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14769 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14770 # Warning - without using the other run time loading flags,
14771 # -berok will link without error, but may produce a broken library.
14772 no_undefined_flag_F77=' ${wl}-bernotok'
14773 allow_undefined_flag_F77=' ${wl}-berok'
14774 # Exported symbols can be pulled into shared objects from archives
14775 whole_archive_flag_spec_F77='$convenience'
14776 archive_cmds_need_lc_F77=yes
14777 # This is similar to how AIX traditionally builds its shared libraries.
14778 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'
14784 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)'
14785 hardcode_libdir_flag_spec_F77='-L$libdir'
14786 hardcode_minus_L_F77=yes
14787 # see comment about different semantics on the GNU ld section
14792 export_dynamic_flag_spec_F77=-rdynamic
14795 cygwin* | mingw* | pw32*)
14796 # When not using gcc, we currently assume that we are using
14797 # Microsoft Visual C++.
14798 # hardcode_libdir_flag_spec is actually meaningless, as there is
14799 # no search path for DLLs.
14800 hardcode_libdir_flag_spec_F77=' '
14801 allow_undefined_flag_F77=unsupported
14802 # Tell ltmain to make .lib files, not .a files.
14804 # Tell ltmain to make .dll files, not .so files.
14806 # FIXME: Setting linknames here is a bad hack.
14807 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14808 # The linker will automatically build a .lib file if we build a DLL.
14809 old_archive_From_new_cmds_F77='true'
14810 # FIXME: Should let the user specify the lib program.
14811 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14812 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14813 enable_shared_with_static_runtimes_F77=yes
14816 darwin* | rhapsody*)
14818 rhapsody* | darwin1.[012])
14819 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14822 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14823 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14825 case ${MACOSX_DEPLOYMENT_TARGET} in
14827 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14830 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14836 archive_cmds_need_lc_F77=no
14837 hardcode_direct_F77=no
14838 hardcode_automatic_F77=yes
14839 hardcode_shlibpath_var_F77=unsupported
14840 whole_archive_flag_spec_F77=''
14841 link_all_deplibs_F77=yes
14842 if test "$GCC" = yes ; then
14843 output_verbose_link_cmd='echo'
14844 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14845 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14846 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14847 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}'
14848 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}'
14850 case $cc_basename in
14852 output_verbose_link_cmd='echo'
14853 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14854 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14855 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14856 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14857 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}'
14867 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14868 hardcode_libdir_flag_spec_F77='-L$libdir'
14869 hardcode_shlibpath_var_F77=no
14876 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14877 # support. Future versions do this automatically, but an explicit c++rt0.o
14878 # does not break anything, and helps significantly (at the cost of a little
14881 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14882 hardcode_libdir_flag_spec_F77='-R$libdir'
14883 hardcode_direct_F77=yes
14884 hardcode_shlibpath_var_F77=no
14887 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14889 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14890 hardcode_direct_F77=yes
14891 hardcode_minus_L_F77=yes
14892 hardcode_shlibpath_var_F77=no
14895 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14896 freebsd* | dragonfly*)
14897 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14898 hardcode_libdir_flag_spec_F77='-R$libdir'
14899 hardcode_direct_F77=yes
14900 hardcode_shlibpath_var_F77=no
14904 if test "$GCC" = yes; then
14905 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'
14907 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'
14909 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14910 hardcode_libdir_separator_F77=:
14911 hardcode_direct_F77=yes
14913 # hardcode_minus_L: Not really in the search PATH,
14914 # but as the default location of the library.
14915 hardcode_minus_L_F77=yes
14916 export_dynamic_flag_spec_F77='${wl}-E'
14920 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14921 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14923 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14925 if test "$with_gnu_ld" = no; then
14926 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14927 hardcode_libdir_separator_F77=:
14929 hardcode_direct_F77=yes
14930 export_dynamic_flag_spec_F77='${wl}-E'
14932 # hardcode_minus_L: Not really in the search PATH,
14933 # but as the default location of the library.
14934 hardcode_minus_L_F77=yes
14939 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14942 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14945 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14948 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14954 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14957 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14960 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14964 if test "$with_gnu_ld" = no; then
14965 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14966 hardcode_libdir_separator_F77=:
14970 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14971 hardcode_direct_F77=no
14972 hardcode_shlibpath_var_F77=no
14975 hardcode_direct_F77=yes
14976 export_dynamic_flag_spec_F77='${wl}-E'
14978 # hardcode_minus_L: Not really in the search PATH,
14979 # but as the default location of the library.
14980 hardcode_minus_L_F77=yes
14986 irix5* | irix6* | nonstopux*)
14987 if test "$GCC" = yes; then
14988 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'
14990 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'
14991 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14993 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14994 hardcode_libdir_separator_F77=:
14995 link_all_deplibs_F77=yes
14998 netbsd* | netbsdelf*-gnu)
14999 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15000 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15002 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15004 hardcode_libdir_flag_spec_F77='-R$libdir'
15005 hardcode_direct_F77=yes
15006 hardcode_shlibpath_var_F77=no
15010 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15011 hardcode_direct_F77=yes
15012 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15013 hardcode_libdir_separator_F77=:
15014 hardcode_shlibpath_var_F77=no
15018 hardcode_direct_F77=yes
15019 hardcode_shlibpath_var_F77=no
15020 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15021 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15022 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15023 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15024 export_dynamic_flag_spec_F77='${wl}-E'
15027 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15028 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15029 hardcode_libdir_flag_spec_F77='-R$libdir'
15032 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15033 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15040 hardcode_libdir_flag_spec_F77='-L$libdir'
15041 hardcode_minus_L_F77=yes
15042 allow_undefined_flag_F77=unsupported
15043 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'
15044 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15048 if test "$GCC" = yes; then
15049 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15050 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'
15052 allow_undefined_flag_F77=' -expect_unresolved \*'
15053 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'
15055 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15056 hardcode_libdir_separator_F77=:
15059 osf4* | osf5*) # as osf3* with the addition of -msym flag
15060 if test "$GCC" = yes; then
15061 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15062 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'
15063 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15065 allow_undefined_flag_F77=' -expect_unresolved \*'
15066 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'
15067 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~
15068 $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'
15070 # Both c and cxx compiler support -rpath directly
15071 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15073 hardcode_libdir_separator_F77=:
15077 no_undefined_flag_F77=' -z text'
15078 if test "$GCC" = yes; then
15080 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15081 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15082 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15085 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15086 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15087 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15089 hardcode_libdir_flag_spec_F77='-R$libdir'
15090 hardcode_shlibpath_var_F77=no
15092 solaris2.[0-5] | solaris2.[0-5].*) ;;
15094 # The compiler driver will combine linker options so we
15095 # cannot just pass the convience library names through
15096 # without $wl, iff we do not link with $LD.
15097 # Luckily, gcc supports the same syntax we need for Sun Studio.
15098 # Supported since Solaris 2.6 (maybe 2.5.1?)
15101 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15103 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15106 link_all_deplibs_F77=yes
15110 if test "x$host_vendor" = xsequent; then
15111 # Use $CC to link under sequent, because it throws in some extra .o
15112 # files that make .init and .fini sections work.
15113 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15115 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15117 hardcode_libdir_flag_spec_F77='-L$libdir'
15118 hardcode_direct_F77=yes
15119 hardcode_minus_L_F77=yes
15120 hardcode_shlibpath_var_F77=no
15124 case $host_vendor in
15126 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15127 hardcode_direct_F77=yes # is this really true???
15130 ## LD is ld it makes a PLAMLIB
15131 ## CC just makes a GrossModule.
15132 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15133 reload_cmds_F77='$CC -r -o $output$reload_objs'
15134 hardcode_direct_F77=no
15137 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15138 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15141 runpath_var='LD_RUN_PATH'
15142 hardcode_shlibpath_var_F77=no
15146 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15147 hardcode_shlibpath_var_F77=no
15148 export_dynamic_flag_spec_F77='-Bexport'
15152 if test -d /usr/nec; then
15153 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15154 hardcode_shlibpath_var_F77=no
15155 runpath_var=LD_RUN_PATH
15156 hardcode_runpath_var=yes
15161 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15162 no_undefined_flag_F77='${wl}-z,text'
15163 archive_cmds_need_lc_F77=no
15164 hardcode_shlibpath_var_F77=no
15165 runpath_var='LD_RUN_PATH'
15167 if test "$GCC" = yes; then
15168 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15169 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15171 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15172 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15176 sysv5* | sco3.2v5* | sco5v6*)
15177 # Note: We can NOT use -z defs as we might desire, because we do not
15178 # link with -lc, and that would cause any symbols used from libc to
15179 # always be unresolved, which means just about no library would
15180 # ever link correctly. If we're not using GNU ld we use -z text
15181 # though, which does catch some bad symbols but isn't as heavy-handed
15183 no_undefined_flag_F77='${wl}-z,text'
15184 allow_undefined_flag_F77='${wl}-z,nodefs'
15185 archive_cmds_need_lc_F77=no
15186 hardcode_shlibpath_var_F77=no
15187 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15188 hardcode_libdir_separator_F77=':'
15189 link_all_deplibs_F77=yes
15190 export_dynamic_flag_spec_F77='${wl}-Bexport'
15191 runpath_var='LD_RUN_PATH'
15193 if test "$GCC" = yes; then
15194 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15195 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15197 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15198 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15203 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15204 hardcode_libdir_flag_spec_F77='-L$libdir'
15205 hardcode_shlibpath_var_F77=no
15214 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15215 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15216 test "$ld_shlibs_F77" = no && can_build_shared=no
15219 # Do we need to explicitly link libc?
15221 case "x$archive_cmds_need_lc_F77" in
15223 # Assume -lc should be added
15224 archive_cmds_need_lc_F77=yes
15226 if test "$enable_shared" = yes && test "$GCC" = yes; then
15227 case $archive_cmds_F77 in
15229 # FIXME: we may have to deal with multi-command sequences.
15232 # Test whether the compiler implicitly links with -lc since on some
15233 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15234 # to ld, don't add -lc before -lgcc.
15235 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15236 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15238 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15241 (eval $ac_compile) 2>&5
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); } 2>conftest.err; then
15247 libobjs=conftest.$ac_objext
15249 wl=$lt_prog_compiler_wl_F77
15250 pic_flag=$lt_prog_compiler_pic_F77
15256 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15257 allow_undefined_flag_F77=
15258 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15259 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); }
15264 archive_cmds_need_lc_F77=no
15266 archive_cmds_need_lc_F77=yes
15268 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15270 cat conftest.err 1>&5
15273 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15274 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15281 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15282 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15283 library_names_spec=
15284 libname_spec='lib$name'
15288 postuninstall_cmds=
15292 shlibpath_overrides_runpath=unknown
15294 dynamic_linker="$host_os ld.so"
15295 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15296 if test "$GCC" = yes; then
15297 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15298 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15299 # if the path contains ";" then we assume it to be the separator
15300 # otherwise default to the standard path separator (i.e. ":") - it is
15301 # assumed that no part of a normal pathname contains ";" but that should
15302 # okay in the real world where ";" in dirpaths is itself problematic.
15303 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15305 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15308 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15310 need_lib_prefix=unknown
15311 hardcode_into_libs=no
15313 # when you set need_version to no, make sure it does not cause -set_version
15314 # flags to be left without arguments
15315 need_version=unknown
15320 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15321 shlibpath_var=LIBPATH
15323 # AIX 3 has no versioning support, so we append a major version to the name.
15324 soname_spec='${libname}${release}${shared_ext}$major'
15331 hardcode_into_libs=yes
15332 if test "$host_cpu" = ia64; then
15333 # AIX 5 supports IA64
15334 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15335 shlibpath_var=LD_LIBRARY_PATH
15337 # With GCC up to 2.95.x, collect2 would create an import file
15338 # for dependence libraries. The import file would start with
15339 # the line `#! .'. This would cause the generated library to
15340 # depend on `.', always an invalid library. This was fixed in
15341 # development snapshots of GCC prior to 3.0.
15343 aix4 | aix4.[01] | aix4.[01].*)
15344 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15346 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15349 can_build_shared=no
15353 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15354 # soname into executable. Probably we can add versioning support to
15355 # collect2, so additional links can be useful in future.
15356 if test "$aix_use_runtimelinking" = yes; then
15357 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15358 # instead of lib<name>.a to let people know that these are not
15359 # typical AIX shared libraries.
15360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15362 # We preserve .a as extension for shared libraries through AIX4.2
15363 # and later when we are not doing run time linking.
15364 library_names_spec='${libname}${release}.a $libname.a'
15365 soname_spec='${libname}${release}${shared_ext}$major'
15367 shlibpath_var=LIBPATH
15372 library_names_spec='$libname.ixlibrary $libname.a'
15373 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15374 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'
15378 library_names_spec='${libname}${shared_ext}'
15379 dynamic_linker="$host_os ld.so"
15380 shlibpath_var=LIBRARY_PATH
15386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15387 soname_spec='${libname}${release}${shared_ext}$major'
15388 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15389 shlibpath_var=LD_LIBRARY_PATH
15390 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15391 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15392 # the default ld.so.conf also contains /usr/contrib/lib and
15393 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15394 # libtool to hard-code these into programs
15397 cygwin* | mingw* | pw32*)
15398 version_type=windows
15403 case $GCC,$host_os in
15404 yes,cygwin* | yes,mingw* | yes,pw32*)
15405 library_names_spec='$libname.dll.a'
15406 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15407 postinstall_cmds='base_file=`basename \${file}`~
15408 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15409 dldir=$destdir/`dirname \$dlpath`~
15410 test -d \$dldir || mkdir -p \$dldir~
15411 $install_prog $dir/$dlname \$dldir/$dlname~
15412 chmod a+x \$dldir/$dlname'
15413 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15414 dlpath=$dir/\$dldll~
15416 shlibpath_overrides_runpath=yes
15420 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15421 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15422 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15425 # MinGW DLLs use traditional 'lib' prefix
15426 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15427 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15428 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15429 # It is most probably a Windows format PATH printed by
15430 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15431 # path with ; separators, and with drive letters. We can handle the
15432 # drive letters (cygwin fileutils understands them), so leave them,
15433 # especially as we might pass files found there to a mingw objdump,
15434 # which wouldn't understand a cygwinified path. Ahh.
15435 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15437 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15441 # pw32 DLLs use 'pw' prefix rather than 'lib'
15442 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15448 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15451 dynamic_linker='Win32 ld.exe'
15452 # FIXME: first we should search . and the directory the executable is in
15456 darwin* | rhapsody*)
15457 dynamic_linker="$host_os dyld"
15458 version_type=darwin
15461 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15462 soname_spec='${libname}${release}${major}$shared_ext'
15463 shlibpath_overrides_runpath=yes
15464 shlibpath_var=DYLD_LIBRARY_PATH
15465 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15466 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15467 if test "$GCC" = yes; then
15468 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15470 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15472 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15480 soname_spec='${libname}${release}${shared_ext}$major'
15481 shlibpath_var=LD_LIBRARY_PATH
15488 freebsd* | dragonfly*)
15489 # DragonFly does not have aout. When/if they implement a new
15490 # versioning mechanism, adjust this.
15491 if test -x /usr/bin/objformat; then
15492 objformat=`/usr/bin/objformat`
15495 freebsd[123]*) objformat=aout ;;
15496 *) objformat=elf ;;
15499 version_type=freebsd-$objformat
15500 case $version_type in
15502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15507 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15511 shlibpath_var=LD_LIBRARY_PATH
15514 shlibpath_overrides_runpath=yes
15516 freebsd3.[01]* | freebsdelf3.[01]*)
15517 shlibpath_overrides_runpath=yes
15518 hardcode_into_libs=yes
15520 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15521 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15522 shlibpath_overrides_runpath=no
15523 hardcode_into_libs=yes
15525 freebsd*) # from 4.6 on
15526 shlibpath_overrides_runpath=yes
15527 hardcode_into_libs=yes
15536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15537 soname_spec='${libname}${release}${shared_ext}$major'
15538 shlibpath_var=LD_LIBRARY_PATH
15539 hardcode_into_libs=yes
15542 hpux9* | hpux10* | hpux11*)
15543 # Give a soname corresponding to the major version so that dld.sl refuses to
15544 # link against other versions.
15551 hardcode_into_libs=yes
15552 dynamic_linker="$host_os dld.so"
15553 shlibpath_var=LD_LIBRARY_PATH
15554 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15556 soname_spec='${libname}${release}${shared_ext}$major'
15557 if test "X$HPUX_IA64_MODE" = X32; then
15558 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15560 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15562 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15566 hardcode_into_libs=yes
15567 dynamic_linker="$host_os dld.sl"
15568 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15569 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15571 soname_spec='${libname}${release}${shared_ext}$major'
15572 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15573 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15577 dynamic_linker="$host_os dld.sl"
15578 shlibpath_var=SHLIB_PATH
15579 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15581 soname_spec='${libname}${release}${shared_ext}$major'
15584 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15585 postinstall_cmds='chmod 555 $lib'
15592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15593 soname_spec='${libname}${release}${shared_ext}$major'
15594 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15595 shlibpath_var=LD_LIBRARY_PATH
15596 shlibpath_overrides_runpath=no
15597 hardcode_into_libs=yes
15600 irix5* | irix6* | nonstopux*)
15602 nonstopux*) version_type=nonstopux ;;
15604 if test "$lt_cv_prog_gnu_ld" = yes; then
15612 soname_spec='${libname}${release}${shared_ext}$major'
15613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15615 irix5* | nonstopux*)
15616 libsuff= shlibsuff=
15619 case $LD in # libtool.m4 will add one of these switches to LD
15620 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15621 libsuff= shlibsuff= libmagic=32-bit;;
15622 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15623 libsuff=32 shlibsuff=N32 libmagic=N32;;
15624 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15625 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15626 *) libsuff= shlibsuff= libmagic=never-match;;
15630 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15631 shlibpath_overrides_runpath=no
15632 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15633 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15634 hardcode_into_libs=yes
15637 # No shared lib support for Linux oldld, aout, or coff.
15638 linux*oldld* | linux*aout* | linux*coff*)
15642 # This must be Linux ELF.
15643 linux* | k*bsd*-gnu)
15647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15648 soname_spec='${libname}${release}${shared_ext}$major'
15649 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15650 shlibpath_var=LD_LIBRARY_PATH
15651 shlibpath_overrides_runpath=no
15652 # This implies no fast_install, which is unacceptable.
15653 # Some rework will be needed to allow for fast_install
15654 # before this can be enabled.
15655 hardcode_into_libs=yes
15657 # Append ld.so.conf contents to the search path
15658 if test -f /etc/ld.so.conf; then
15659 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15660 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15663 # We used to test for /lib/ld.so.1 and disable shared libraries on
15664 # powerpc, because MkLinux only supported shared libraries with the
15665 # GNU dynamic linker. Since this was broken with cross compilers,
15666 # most powerpc-linux boxes support dynamic linking these days and
15667 # people can always --disable-shared, the test was removed, and we
15668 # assume the GNU/Linux dynamic linker is in use.
15669 dynamic_linker='GNU/Linux ld.so'
15676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15677 soname_spec='${libname}${release}${shared_ext}$major'
15678 shlibpath_var=LD_LIBRARY_PATH
15679 shlibpath_overrides_runpath=no
15680 hardcode_into_libs=yes
15681 dynamic_linker='NetBSD ld.elf_so'
15688 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15690 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15691 dynamic_linker='NetBSD (a.out) ld.so'
15693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15694 soname_spec='${libname}${release}${shared_ext}$major'
15695 dynamic_linker='NetBSD ld.elf_so'
15697 shlibpath_var=LD_LIBRARY_PATH
15698 shlibpath_overrides_runpath=yes
15699 hardcode_into_libs=yes
15704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15705 shlibpath_var=LD_LIBRARY_PATH
15706 shlibpath_overrides_runpath=yes
15713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15714 soname_spec='${libname}${release}${shared_ext}$major'
15715 shlibpath_var=LD_LIBRARY_PATH
15716 shlibpath_overrides_runpath=yes
15721 sys_lib_dlsearch_path_spec="/usr/lib"
15723 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15725 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15726 *) need_version=no ;;
15728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15729 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15730 shlibpath_var=LD_LIBRARY_PATH
15731 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15733 openbsd2.[89] | openbsd2.[89].*)
15734 shlibpath_overrides_runpath=no
15737 shlibpath_overrides_runpath=yes
15741 shlibpath_overrides_runpath=yes
15746 libname_spec='$name'
15749 library_names_spec='$libname${shared_ext} $libname.a'
15750 dynamic_linker='OS/2 ld.exe'
15751 shlibpath_var=LIBPATH
15754 osf3* | osf4* | osf5*)
15758 soname_spec='${libname}${release}${shared_ext}$major'
15759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15760 shlibpath_var=LD_LIBRARY_PATH
15761 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15762 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15770 soname_spec='${libname}${release}${shared_ext}$major'
15771 shlibpath_var=LD_LIBRARY_PATH
15772 shlibpath_overrides_runpath=yes
15773 hardcode_into_libs=yes
15774 # ldd complains unless libraries are executable
15775 postinstall_cmds='chmod +x $lib'
15780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15781 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15782 shlibpath_var=LD_LIBRARY_PATH
15783 shlibpath_overrides_runpath=yes
15784 if test "$with_gnu_ld" = yes; then
15792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15793 soname_spec='${libname}${release}${shared_ext}$major'
15794 shlibpath_var=LD_LIBRARY_PATH
15795 case $host_vendor in
15797 shlibpath_overrides_runpath=no
15799 export_dynamic_flag_spec='${wl}-Blargedynsym'
15800 runpath_var=LD_RUN_PATH
15808 shlibpath_overrides_runpath=no
15809 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15815 if test -d /usr/nec ;then
15817 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15818 soname_spec='$libname${shared_ext}.$major'
15819 shlibpath_var=LD_LIBRARY_PATH
15823 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15824 version_type=freebsd-elf
15827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15828 soname_spec='${libname}${release}${shared_ext}$major'
15829 shlibpath_var=LD_LIBRARY_PATH
15830 hardcode_into_libs=yes
15831 if test "$with_gnu_ld" = yes; then
15832 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15833 shlibpath_overrides_runpath=no
15835 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15836 shlibpath_overrides_runpath=yes
15839 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15843 sys_lib_dlsearch_path_spec='/usr/lib'
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 shlibpath_var=LD_LIBRARY_PATH
15857 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15858 echo "${ECHO_T}$dynamic_linker" >&6; }
15859 test "$dynamic_linker" = no && can_build_shared=no
15861 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15862 if test "$GCC" = yes; then
15863 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15866 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15867 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15868 hardcode_action_F77=
15869 if test -n "$hardcode_libdir_flag_spec_F77" || \
15870 test -n "$runpath_var_F77" || \
15871 test "X$hardcode_automatic_F77" = "Xyes" ; then
15873 # We can hardcode non-existant directories.
15874 if test "$hardcode_direct_F77" != no &&
15875 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15876 # have to relink, otherwise we might link with an installed library
15877 # when we should be linking with a yet-to-be-installed one
15878 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15879 test "$hardcode_minus_L_F77" != no; then
15880 # Linking always hardcodes the temporary library directory.
15881 hardcode_action_F77=relink
15883 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15884 hardcode_action_F77=immediate
15887 # We cannot hardcode anything, or else we can only hardcode existing
15889 hardcode_action_F77=unsupported
15891 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15892 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15894 if test "$hardcode_action_F77" = relink; then
15895 # Fast installation is not supported
15896 enable_fast_install=no
15897 elif test "$shlibpath_overrides_runpath" = yes ||
15898 test "$enable_shared" = no; then
15899 # Fast installation is not necessary
15900 enable_fast_install=needless
15904 # The else clause should only fire when bootstrapping the
15905 # libtool distribution, otherwise you forgot to ship ltmain.sh
15906 # with your package, and you will get complaints that there are
15907 # no rules to generate ltmain.sh.
15908 if test -f "$ltmain"; then
15909 # See if we are running on zsh, and set the options which allow our commands through
15910 # without removal of \ escapes.
15911 if test -n "${ZSH_VERSION+set}" ; then
15912 setopt NO_GLOB_SUBST
15914 # Now quote all the things that may contain metacharacters while being
15915 # careful not to overquote the AC_SUBSTed values. We take copies of the
15916 # variables and quote the copies for generation of the libtool script.
15917 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15919 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15920 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15921 deplibs_check_method reload_flag reload_cmds need_locks \
15922 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15923 lt_cv_sys_global_symbol_to_c_name_address \
15924 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15925 old_postinstall_cmds old_postuninstall_cmds \
15929 lt_prog_compiler_wl_F77 \
15930 lt_prog_compiler_pic_F77 \
15931 lt_prog_compiler_static_F77 \
15932 lt_prog_compiler_no_builtin_flag_F77 \
15933 export_dynamic_flag_spec_F77 \
15934 thread_safe_flag_spec_F77 \
15935 whole_archive_flag_spec_F77 \
15936 enable_shared_with_static_runtimes_F77 \
15937 old_archive_cmds_F77 \
15938 old_archive_from_new_cmds_F77 \
15939 predep_objects_F77 \
15940 postdep_objects_F77 \
15943 compiler_lib_search_path_F77 \
15945 archive_expsym_cmds_F77 \
15946 postinstall_cmds_F77 \
15947 postuninstall_cmds_F77 \
15948 old_archive_from_expsyms_cmds_F77 \
15949 allow_undefined_flag_F77 \
15950 no_undefined_flag_F77 \
15951 export_symbols_cmds_F77 \
15952 hardcode_libdir_flag_spec_F77 \
15953 hardcode_libdir_flag_spec_ld_F77 \
15954 hardcode_libdir_separator_F77 \
15955 hardcode_automatic_F77 \
15957 module_expsym_cmds_F77 \
15958 lt_cv_prog_compiler_c_o_F77 \
15959 exclude_expsyms_F77 \
15960 include_expsyms_F77; do
15963 old_archive_cmds_F77 | \
15964 old_archive_from_new_cmds_F77 | \
15965 archive_cmds_F77 | \
15966 archive_expsym_cmds_F77 | \
15967 module_cmds_F77 | \
15968 module_expsym_cmds_F77 | \
15969 old_archive_from_expsyms_cmds_F77 | \
15970 export_symbols_cmds_F77 | \
15971 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15972 postinstall_cmds | postuninstall_cmds | \
15973 old_postinstall_cmds | old_postuninstall_cmds | \
15974 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15975 # Double-quote double-evaled strings.
15976 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15979 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15985 *'\$0 --fallback-echo"')
15986 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15992 cat <<__EOF__ >> "$cfgfile"
15993 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15995 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15997 # Shell to use when invoking shell scripts.
16000 # Whether or not to build shared libraries.
16001 build_libtool_libs=$enable_shared
16003 # Whether or not to build static libraries.
16004 build_old_libs=$enable_static
16006 # Whether or not to add -lc for building shared libraries.
16007 build_libtool_need_lc=$archive_cmds_need_lc_F77
16009 # Whether or not to disallow shared libs when runtime libs are static
16010 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16012 # Whether or not to optimize for fast installation.
16013 fast_install=$enable_fast_install
16016 host_alias=$host_alias
16020 # The build system.
16021 build_alias=$build_alias
16025 # An echo program that does not interpret backslashes.
16030 AR_FLAGS=$lt_AR_FLAGS
16035 # LTCC compiler flags.
16036 LTCFLAGS=$lt_LTCFLAGS
16038 # A language-specific compiler.
16039 CC=$lt_compiler_F77
16041 # Is the compiler the GNU C compiler?
16047 # The linker used to build libraries.
16050 # Whether we need hard or soft links.
16053 # A BSD-compatible nm program.
16056 # A symbol stripping program
16059 # Used to examine libraries when file_magic_cmd begins "file"
16060 MAGIC_CMD=$MAGIC_CMD
16062 # Used on cygwin: DLL creation program.
16065 # Used on cygwin: object dumper.
16068 # Used on cygwin: assembler.
16071 # The name of the directory that contains temporary libtool files.
16074 # How to create reloadable object files.
16075 reload_flag=$lt_reload_flag
16076 reload_cmds=$lt_reload_cmds
16078 # How to pass a linker flag through the compiler.
16079 wl=$lt_lt_prog_compiler_wl_F77
16081 # Object file suffix (normally "o").
16082 objext="$ac_objext"
16084 # Old archive suffix (normally "a").
16087 # Shared library suffix (normally ".so").
16088 shrext_cmds='$shrext_cmds'
16090 # Executable file suffix (normally "").
16093 # Additional compiler flags for building library objects.
16094 pic_flag=$lt_lt_prog_compiler_pic_F77
16097 # What is the maximum length of a command?
16098 max_cmd_len=$lt_cv_sys_max_cmd_len
16100 # Does compiler simultaneously support -c and -o options?
16101 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16103 # Must we lock files when doing compilation?
16104 need_locks=$lt_need_locks
16106 # Do we need the lib prefix for modules?
16107 need_lib_prefix=$need_lib_prefix
16109 # Do we need a version for libraries?
16110 need_version=$need_version
16112 # Whether dlopen is supported.
16113 dlopen_support=$enable_dlopen
16115 # Whether dlopen of programs is supported.
16116 dlopen_self=$enable_dlopen_self
16118 # Whether dlopen of statically linked programs is supported.
16119 dlopen_self_static=$enable_dlopen_self_static
16121 # Compiler flag to prevent dynamic linking.
16122 link_static_flag=$lt_lt_prog_compiler_static_F77
16124 # Compiler flag to turn off builtin functions.
16125 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16127 # Compiler flag to allow reflexive dlopens.
16128 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16130 # Compiler flag to generate shared objects directly from archives.
16131 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16133 # Compiler flag to generate thread-safe objects.
16134 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16136 # Library versioning type.
16137 version_type=$version_type
16139 # Format of library name prefix.
16140 libname_spec=$lt_libname_spec
16142 # List of archive names. First name is the real one, the rest are links.
16143 # The last name is the one that the linker finds with -lNAME.
16144 library_names_spec=$lt_library_names_spec
16146 # The coded name of the library, if different from the real name.
16147 soname_spec=$lt_soname_spec
16149 # Commands used to build and install an old-style archive.
16151 old_archive_cmds=$lt_old_archive_cmds_F77
16152 old_postinstall_cmds=$lt_old_postinstall_cmds
16153 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16155 # Create an old-style archive from a shared archive.
16156 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16158 # Create a temporary old-style archive to link instead of a shared archive.
16159 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16161 # Commands used to build and install a shared archive.
16162 archive_cmds=$lt_archive_cmds_F77
16163 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16164 postinstall_cmds=$lt_postinstall_cmds
16165 postuninstall_cmds=$lt_postuninstall_cmds
16167 # Commands used to build a loadable module (assumed same as above if empty)
16168 module_cmds=$lt_module_cmds_F77
16169 module_expsym_cmds=$lt_module_expsym_cmds_F77
16171 # Commands to strip libraries.
16172 old_striplib=$lt_old_striplib
16173 striplib=$lt_striplib
16175 # Dependencies to place before the objects being linked to create a
16177 predep_objects=$lt_predep_objects_F77
16179 # Dependencies to place after the objects being linked to create a
16181 postdep_objects=$lt_postdep_objects_F77
16183 # Dependencies to place before the objects being linked to create a
16185 predeps=$lt_predeps_F77
16187 # Dependencies to place after the objects being linked to create a
16189 postdeps=$lt_postdeps_F77
16191 # The library search path used internally by the compiler when linking
16192 # a shared library.
16193 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16195 # Method to check whether dependent libraries are shared objects.
16196 deplibs_check_method=$lt_deplibs_check_method
16198 # Command to use when deplibs_check_method == file_magic.
16199 file_magic_cmd=$lt_file_magic_cmd
16201 # Flag that allows shared libraries with undefined symbols to be built.
16202 allow_undefined_flag=$lt_allow_undefined_flag_F77
16204 # Flag that forces no undefined symbols.
16205 no_undefined_flag=$lt_no_undefined_flag_F77
16207 # Commands used to finish a libtool library installation in a directory.
16208 finish_cmds=$lt_finish_cmds
16210 # Same as above, but a single script fragment to be evaled but not shown.
16211 finish_eval=$lt_finish_eval
16213 # Take the output of nm and produce a listing of raw symbols and C names.
16214 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16216 # Transform the output of nm in a proper C declaration
16217 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16219 # Transform the output of nm in a C name address pair
16220 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16222 # This is the shared library runtime path variable.
16223 runpath_var=$runpath_var
16225 # This is the shared library path variable.
16226 shlibpath_var=$shlibpath_var
16228 # Is shlibpath searched before the hard-coded library search path?
16229 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16231 # How to hardcode a shared library path into an executable.
16232 hardcode_action=$hardcode_action_F77
16234 # Whether we should hardcode library paths into libraries.
16235 hardcode_into_libs=$hardcode_into_libs
16237 # Flag to hardcode \$libdir into a binary during linking.
16238 # This must work even if \$libdir does not exist.
16239 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16241 # If ld is used when linking, flag to hardcode \$libdir into
16242 # a binary during linking. This must work even if \$libdir does
16244 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16246 # Whether we need a single -rpath flag with a separated argument.
16247 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16249 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16250 # resulting binary.
16251 hardcode_direct=$hardcode_direct_F77
16253 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16254 # resulting binary.
16255 hardcode_minus_L=$hardcode_minus_L_F77
16257 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16258 # the resulting binary.
16259 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16261 # Set to yes if building a shared library automatically hardcodes DIR into the library
16262 # and all subsequent libraries and executables linked against it.
16263 hardcode_automatic=$hardcode_automatic_F77
16265 # Variables whose values should be saved in libtool wrapper scripts and
16266 # restored at relink time.
16267 variables_saved_for_relink="$variables_saved_for_relink"
16269 # Whether libtool must link a program against all its dependency libraries.
16270 link_all_deplibs=$link_all_deplibs_F77
16272 # Compile-time system search path for libraries
16273 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16275 # Run-time system search path for libraries
16276 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16278 # Fix the shell variable \$srcfile for the compiler.
16279 fix_srcfile_path="$fix_srcfile_path_F77"
16281 # Set to yes if exported symbols are required.
16282 always_export_symbols=$always_export_symbols_F77
16284 # The commands to list exported symbols.
16285 export_symbols_cmds=$lt_export_symbols_cmds_F77
16287 # The commands to extract the exported symbol list from a shared archive.
16288 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16290 # Symbols that should not be listed in the preloaded symbols.
16291 exclude_expsyms=$lt_exclude_expsyms_F77
16293 # Symbols that must always be exported.
16294 include_expsyms=$lt_include_expsyms_F77
16296 # ### END LIBTOOL TAG CONFIG: $tagname
16302 # If there is no Makefile yet, we rely on a make rule to execute
16303 # `config.status --recheck' to rerun these tests and create the
16304 # libtool script then.
16305 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16306 if test -f "$ltmain_in"; then
16307 test -f Makefile && make "$ltmain"
16313 ac_cpp='$CPP $CPPFLAGS'
16314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16326 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16329 # Source file extension for Java test sources.
16332 # Object file extension for compiled Java test sources.
16336 # Code to be used in simple compile tests
16337 lt_simple_compile_test_code="class foo {}\n"
16339 # Code to be used in simple link tests
16340 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16342 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16344 # If no C compiler was specified, use CC.
16347 # If no C compiler flags were specified, use CFLAGS.
16348 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16350 # Allow CC to be a program name with arguments.
16354 # save warnings/boilerplate of simple test code
16355 ac_outfile=conftest.$ac_objext
16356 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16357 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16358 _lt_compiler_boilerplate=`cat conftest.err`
16361 ac_outfile=conftest.$ac_objext
16362 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16363 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16364 _lt_linker_boilerplate=`cat conftest.err`
16368 # Allow CC to be a program name with arguments.
16373 for cc_temp in $compiler""; do
16375 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16376 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16381 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16384 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16385 archive_cmds_need_lc_GCJ=no
16387 old_archive_cmds_GCJ=$old_archive_cmds
16390 lt_prog_compiler_no_builtin_flag_GCJ=
16392 if test "$GCC" = yes; then
16393 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16396 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16397 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16398 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16399 echo $ECHO_N "(cached) $ECHO_C" >&6
16401 lt_cv_prog_compiler_rtti_exceptions=no
16402 ac_outfile=conftest.$ac_objext
16403 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16404 lt_compiler_flag="-fno-rtti -fno-exceptions"
16405 # Insert the option either (1) after the last *FLAGS variable, or
16406 # (2) before a word containing "conftest.", or (3) at the end.
16407 # Note that $ac_compile itself does not contain backslashes and begins
16408 # with a dollar sign (not a hyphen), so the echo should work correctly.
16409 # The option is referenced via a variable to avoid confusing sed.
16410 lt_compile=`echo "$ac_compile" | $SED \
16411 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16412 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16413 -e 's:$: $lt_compiler_flag:'`
16414 (eval echo "\"\$as_me:16414: $lt_compile\"" >&5)
16415 (eval "$lt_compile" 2>conftest.err)
16417 cat conftest.err >&5
16418 echo "$as_me:16418: \$? = $ac_status" >&5
16419 if (exit $ac_status) && test -s "$ac_outfile"; then
16420 # The compiler can only warn and ignore the option if not recognized
16421 # So say no if there are warnings other than the usual output.
16422 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16423 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16424 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16425 lt_cv_prog_compiler_rtti_exceptions=yes
16431 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16432 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16434 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16435 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16442 lt_prog_compiler_wl_GCJ=
16443 lt_prog_compiler_pic_GCJ=
16444 lt_prog_compiler_static_GCJ=
16446 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16447 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16449 if test "$GCC" = yes; then
16450 lt_prog_compiler_wl_GCJ='-Wl,'
16451 lt_prog_compiler_static_GCJ='-static'
16455 # All AIX code is PIC.
16456 if test "$host_cpu" = ia64; then
16457 # AIX 5 now supports IA64 processor
16458 lt_prog_compiler_static_GCJ='-Bstatic'
16463 # FIXME: we need at least 68020 code to build shared libraries, but
16464 # adding the `-m68020' flag to GCC prevents building anything better,
16466 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16469 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16470 # PIC is the default for these OSes.
16473 mingw* | pw32* | os2*)
16474 # This hack is so that the source file can tell whether it is being
16475 # built for inclusion in a dll (and should export symbols for example).
16476 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16479 darwin* | rhapsody*)
16480 # PIC is the default on this platform
16481 # Common symbols not allowed in MH_DYLIB files
16482 lt_prog_compiler_pic_GCJ='-fno-common'
16486 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16487 # Instead, we relocate shared libraries at runtime.
16491 # Just because we use GCC doesn't mean we suddenly get shared libraries
16492 # on systems that don't support them.
16493 lt_prog_compiler_can_build_shared_GCJ=no
16498 if test -d /usr/nec; then
16499 lt_prog_compiler_pic_GCJ=-Kconform_pic
16504 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16505 # not for PA HP-UX.
16511 lt_prog_compiler_pic_GCJ='-fPIC'
16517 lt_prog_compiler_pic_GCJ='-fPIC'
16521 # PORTME Check for flag to pass linker flags through the system compiler.
16524 lt_prog_compiler_wl_GCJ='-Wl,'
16525 if test "$host_cpu" = ia64; then
16526 # AIX 5 now supports IA64 processor
16527 lt_prog_compiler_static_GCJ='-Bstatic'
16529 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16533 # PIC is the default on this platform
16534 # Common symbols not allowed in MH_DYLIB files
16535 case $cc_basename in
16537 lt_prog_compiler_pic_GCJ='-qnocommon'
16538 lt_prog_compiler_wl_GCJ='-Wl,'
16543 mingw* | pw32* | os2*)
16544 # This hack is so that the source file can tell whether it is being
16545 # built for inclusion in a dll (and should export symbols for example).
16546 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16549 hpux9* | hpux10* | hpux11*)
16550 lt_prog_compiler_wl_GCJ='-Wl,'
16551 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16552 # not for PA HP-UX.
16558 lt_prog_compiler_pic_GCJ='+Z'
16561 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16562 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16565 irix5* | irix6* | nonstopux*)
16566 lt_prog_compiler_wl_GCJ='-Wl,'
16567 # PIC (with -KPIC) is the default.
16568 lt_prog_compiler_static_GCJ='-non_shared'
16572 lt_prog_compiler_pic_GCJ='-KPIC'
16573 lt_prog_compiler_static_GCJ='-Bstatic'
16576 linux* | k*bsd*-gnu)
16577 case $cc_basename in
16579 lt_prog_compiler_wl_GCJ='-Wl,'
16580 lt_prog_compiler_pic_GCJ='-KPIC'
16581 lt_prog_compiler_static_GCJ='-static'
16583 pgcc* | pgf77* | pgf90* | pgf95*)
16584 # Portland Group compilers (*not* the Pentium gcc compiler,
16585 # which looks to be a dead project)
16586 lt_prog_compiler_wl_GCJ='-Wl,'
16587 lt_prog_compiler_pic_GCJ='-fpic'
16588 lt_prog_compiler_static_GCJ='-Bstatic'
16591 lt_prog_compiler_wl_GCJ='-Wl,'
16592 # All Alpha code is PIC.
16593 lt_prog_compiler_static_GCJ='-non_shared'
16598 osf3* | osf4* | osf5*)
16599 lt_prog_compiler_wl_GCJ='-Wl,'
16600 # All OSF/1 code is PIC.
16601 lt_prog_compiler_static_GCJ='-non_shared'
16605 lt_prog_compiler_pic_GCJ='-KPIC'
16606 lt_prog_compiler_static_GCJ='-Bstatic'
16607 case $cc_basename in
16608 f77* | f90* | f95*)
16609 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16611 lt_prog_compiler_wl_GCJ='-Wl,';;
16616 lt_prog_compiler_wl_GCJ='-Qoption ld '
16617 lt_prog_compiler_pic_GCJ='-PIC'
16618 lt_prog_compiler_static_GCJ='-Bstatic'
16621 sysv4 | sysv4.2uw2* | sysv4.3*)
16622 lt_prog_compiler_wl_GCJ='-Wl,'
16623 lt_prog_compiler_pic_GCJ='-KPIC'
16624 lt_prog_compiler_static_GCJ='-Bstatic'
16628 if test -d /usr/nec ;then
16629 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16630 lt_prog_compiler_static_GCJ='-Bstatic'
16634 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16635 lt_prog_compiler_wl_GCJ='-Wl,'
16636 lt_prog_compiler_pic_GCJ='-KPIC'
16637 lt_prog_compiler_static_GCJ='-Bstatic'
16641 lt_prog_compiler_wl_GCJ='-Wl,'
16642 lt_prog_compiler_can_build_shared_GCJ=no
16646 lt_prog_compiler_pic_GCJ='-pic'
16647 lt_prog_compiler_static_GCJ='-Bstatic'
16651 lt_prog_compiler_can_build_shared_GCJ=no
16656 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16657 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16660 # Check to make sure the PIC flag actually works.
16662 if test -n "$lt_prog_compiler_pic_GCJ"; then
16664 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16665 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16666 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16667 echo $ECHO_N "(cached) $ECHO_C" >&6
16669 lt_prog_compiler_pic_works_GCJ=no
16670 ac_outfile=conftest.$ac_objext
16671 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16672 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16673 # Insert the option either (1) after the last *FLAGS variable, or
16674 # (2) before a word containing "conftest.", or (3) at the end.
16675 # Note that $ac_compile itself does not contain backslashes and begins
16676 # with a dollar sign (not a hyphen), so the echo should work correctly.
16677 # The option is referenced via a variable to avoid confusing sed.
16678 lt_compile=`echo "$ac_compile" | $SED \
16679 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16680 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16681 -e 's:$: $lt_compiler_flag:'`
16682 (eval echo "\"\$as_me:16682: $lt_compile\"" >&5)
16683 (eval "$lt_compile" 2>conftest.err)
16685 cat conftest.err >&5
16686 echo "$as_me:16686: \$? = $ac_status" >&5
16687 if (exit $ac_status) && test -s "$ac_outfile"; then
16688 # The compiler can only warn and ignore the option if not recognized
16689 # So say no if there are warnings other than the usual output.
16690 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16691 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16692 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16693 lt_prog_compiler_pic_works_GCJ=yes
16699 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16700 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16702 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16703 case $lt_prog_compiler_pic_GCJ in
16705 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16708 lt_prog_compiler_pic_GCJ=
16709 lt_prog_compiler_can_build_shared_GCJ=no
16714 # For platforms which do not support PIC, -DPIC is meaningless:
16716 lt_prog_compiler_pic_GCJ=
16719 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16724 # Check to make sure the static flag actually works.
16726 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16727 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16728 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16729 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16730 echo $ECHO_N "(cached) $ECHO_C" >&6
16732 lt_prog_compiler_static_works_GCJ=no
16733 save_LDFLAGS="$LDFLAGS"
16734 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16735 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16736 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16737 # The linker can only warn and ignore the option if not recognized
16738 # So say no if there are warnings
16739 if test -s conftest.err; then
16740 # Append any errors to the config.log.
16741 cat conftest.err 1>&5
16742 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16743 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16744 if diff conftest.exp conftest.er2 >/dev/null; then
16745 lt_prog_compiler_static_works_GCJ=yes
16748 lt_prog_compiler_static_works_GCJ=yes
16752 LDFLAGS="$save_LDFLAGS"
16755 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16756 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16758 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16761 lt_prog_compiler_static_GCJ=
16765 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16766 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16767 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16768 echo $ECHO_N "(cached) $ECHO_C" >&6
16770 lt_cv_prog_compiler_c_o_GCJ=no
16771 $rm -r conftest 2>/dev/null
16775 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16777 lt_compiler_flag="-o out/conftest2.$ac_objext"
16778 # Insert the option either (1) after the last *FLAGS variable, or
16779 # (2) before a word containing "conftest.", or (3) at the end.
16780 # Note that $ac_compile itself does not contain backslashes and begins
16781 # with a dollar sign (not a hyphen), so the echo should work correctly.
16782 lt_compile=`echo "$ac_compile" | $SED \
16783 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16784 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16785 -e 's:$: $lt_compiler_flag:'`
16786 (eval echo "\"\$as_me:16786: $lt_compile\"" >&5)
16787 (eval "$lt_compile" 2>out/conftest.err)
16789 cat out/conftest.err >&5
16790 echo "$as_me:16790: \$? = $ac_status" >&5
16791 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16793 # The compiler can only warn and ignore the option if not recognized
16794 # So say no if there are warnings
16795 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16796 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16797 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16798 lt_cv_prog_compiler_c_o_GCJ=yes
16803 # SGI C++ compiler will create directory out/ii_files/ for
16804 # template instantiation
16805 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16806 $rm out/* && rmdir out
16812 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16813 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16816 hard_links="nottested"
16817 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16818 # do not overwrite the value of need_locks provided by the user
16819 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16820 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16823 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16825 ln conftest.a conftest.b 2>&5 || hard_links=no
16826 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16827 { echo "$as_me:$LINENO: result: $hard_links" >&5
16828 echo "${ECHO_T}$hard_links" >&6; }
16829 if test "$hard_links" = no; then
16830 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16831 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16838 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16839 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16842 allow_undefined_flag_GCJ=
16843 enable_shared_with_static_runtimes_GCJ=no
16845 archive_expsym_cmds_GCJ=
16846 old_archive_From_new_cmds_GCJ=
16847 old_archive_from_expsyms_cmds_GCJ=
16848 export_dynamic_flag_spec_GCJ=
16849 whole_archive_flag_spec_GCJ=
16850 thread_safe_flag_spec_GCJ=
16851 hardcode_libdir_flag_spec_GCJ=
16852 hardcode_libdir_flag_spec_ld_GCJ=
16853 hardcode_libdir_separator_GCJ=
16854 hardcode_direct_GCJ=no
16855 hardcode_minus_L_GCJ=no
16856 hardcode_shlibpath_var_GCJ=unsupported
16857 link_all_deplibs_GCJ=unknown
16858 hardcode_automatic_GCJ=no
16860 module_expsym_cmds_GCJ=
16861 always_export_symbols_GCJ=no
16862 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16863 # include_expsyms should be a list of space-separated symbols to be *always*
16864 # included in the symbol list
16865 include_expsyms_GCJ=
16866 # exclude_expsyms can be an extended regexp of symbols to exclude
16867 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16868 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16869 # as well as any symbol that contains `d'.
16870 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16871 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16872 # platforms (ab)use it in PIC code, but their linkers get confused if
16873 # the symbol is explicitly referenced. Since portable code cannot
16874 # rely on this symbol name, it's probably fine to never include it in
16875 # preloaded symbol tables.
16876 extract_expsyms_cmds=
16877 # Just being paranoid about ensuring that cc_basename is set.
16878 for cc_temp in $compiler""; do
16880 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16881 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16886 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16889 cygwin* | mingw* | pw32*)
16890 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16891 # When not using gcc, we currently assume that we are using
16892 # Microsoft Visual C++.
16893 if test "$GCC" != yes; then
16898 # we just hope/assume this is gcc and not c89 (= MSVC++)
16907 if test "$with_gnu_ld" = yes; then
16908 # If archive_cmds runs LD, not CC, wlarc should be empty
16911 # Set some defaults for GNU ld with shared library support. These
16912 # are reset later if shared libraries are not supported. Putting them
16913 # here allows them to be overridden if necessary.
16914 runpath_var=LD_RUN_PATH
16915 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16916 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16917 # ancient GNU ld didn't support --whole-archive et. al.
16918 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16919 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16921 whole_archive_flag_spec_GCJ=
16923 supports_anon_versioning=no
16924 case `$LD -v 2>/dev/null` in
16925 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16926 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16927 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16928 *\ 2.11.*) ;; # other 2.11 versions
16929 *) supports_anon_versioning=yes ;;
16932 # See if GNU ld supports shared libraries.
16934 aix3* | aix4* | aix5*)
16935 # On AIX/PPC, the GNU linker is very broken
16936 if test "$host_cpu" != ia64; then
16940 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16941 *** to be unable to reliably create shared libraries on AIX.
16942 *** Therefore, libtool is disabling shared libraries support. If you
16943 *** really care for shared libraries, you may want to modify your PATH
16944 *** so that a non-GNU linker is found, and then restart.
16951 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)'
16952 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16953 hardcode_minus_L_GCJ=yes
16955 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16956 # that the semantics of dynamic libraries on AmigaOS, at least up
16957 # to version 4, is to share data among multiple programs linked
16958 # with the same dynamic library. Since this doesn't match the
16959 # behavior of shared libraries on other platforms, we can't use
16965 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16966 allow_undefined_flag_GCJ=unsupported
16967 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16968 # support --undefined. This deserves some investigation. FIXME
16969 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16975 cygwin* | mingw* | pw32*)
16976 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16977 # as there is no search path for DLLs.
16978 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16979 allow_undefined_flag_GCJ=unsupported
16980 always_export_symbols_GCJ=no
16981 enable_shared_with_static_runtimes_GCJ=yes
16982 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16984 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16985 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16986 # If the export-symbols file already is a .def file (1st line
16987 # is EXPORTS), use it as is; otherwise, prepend...
16988 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16989 cp $export_symbols $output_objdir/$soname.def;
16991 echo EXPORTS > $output_objdir/$soname.def;
16992 cat $export_symbols >> $output_objdir/$soname.def;
16994 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17001 hardcode_direct_GCJ=no
17002 hardcode_shlibpath_var_GCJ=no
17003 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17004 export_dynamic_flag_spec_GCJ='${wl}-E'
17005 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17006 # Instead, shared libraries are loaded at an image base (0x10000000 by
17007 # default) and relocated if they conflict, which is a slow very memory
17008 # consuming and fragmenting process. To avoid this, we pick a random,
17009 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17010 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17011 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'
17012 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'
17015 linux* | k*bsd*-gnu)
17016 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17018 case $cc_basename,$host_cpu in
17019 pgcc*) # Portland Group C compiler
17020 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'
17021 tmp_addflag=' $pic_flag'
17023 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17024 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'
17025 tmp_addflag=' $pic_flag -Mnomain' ;;
17026 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17027 tmp_addflag=' -i_dynamic' ;;
17028 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17029 tmp_addflag=' -i_dynamic -nofor_main' ;;
17030 ifc* | ifort*) # Intel Fortran compiler
17031 tmp_addflag=' -nofor_main' ;;
17033 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17035 if test $supports_anon_versioning = yes; then
17036 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17037 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17038 $echo "local: *; };" >> $output_objdir/$libname.ver~
17039 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17041 link_all_deplibs_GCJ=no
17047 netbsd* | netbsdelf*-gnu)
17048 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17049 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17052 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17053 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17058 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17062 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17063 *** create shared libraries on Solaris systems. Therefore, libtool
17064 *** is disabling shared libraries support. We urge you to upgrade GNU
17065 *** binutils to release 2.9.1 or newer. Another option is to modify
17066 *** your PATH or compiler configuration so that the native linker is
17067 *** used, and then restart.
17070 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17071 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17072 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17078 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17079 case `$LD -v 2>&1` in
17080 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17084 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17085 *** reliably create shared libraries on SCO systems. Therefore, libtool
17086 *** is disabling shared libraries support. We urge you to upgrade GNU
17087 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17088 *** your PATH or compiler configuration so that the native linker is
17089 *** used, and then restart.
17094 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17095 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17096 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17097 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17106 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17108 hardcode_direct_GCJ=yes
17109 hardcode_shlibpath_var_GCJ=no
17113 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17114 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17115 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17122 if test "$ld_shlibs_GCJ" = no; then
17124 hardcode_libdir_flag_spec_GCJ=
17125 export_dynamic_flag_spec_GCJ=
17126 whole_archive_flag_spec_GCJ=
17129 # PORTME fill in a description of your system's linker (not GNU ld)
17132 allow_undefined_flag_GCJ=unsupported
17133 always_export_symbols_GCJ=yes
17134 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'
17135 # Note: this linker hardcodes the directories in LIBPATH if there
17136 # are no directories specified by -L.
17137 hardcode_minus_L_GCJ=yes
17138 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17139 # Neither direct hardcoding nor static linking is supported with a
17141 hardcode_direct_GCJ=unsupported
17146 if test "$host_cpu" = ia64; then
17147 # On IA64, the linker does run time linking by default, so we don't
17148 # have to do anything special.
17149 aix_use_runtimelinking=no
17150 exp_sym_flag='-Bexport'
17153 # If we're using GNU nm, then we don't want the "-C" option.
17154 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17155 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17156 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'
17158 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'
17160 aix_use_runtimelinking=no
17162 # Test if we are trying to use run time linking or normal
17163 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17164 # need to do runtime linking.
17165 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17166 for ld_flag in $LDFLAGS; do
17167 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17168 aix_use_runtimelinking=yes
17175 exp_sym_flag='-bexport'
17176 no_entry_flag='-bnoentry'
17179 # When large executables or shared objects are built, AIX ld can
17180 # have problems creating the table of contents. If linking a library
17181 # or program results in "error TOC overflow" add -mminimal-toc to
17182 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17183 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17185 archive_cmds_GCJ=''
17186 hardcode_direct_GCJ=yes
17187 hardcode_libdir_separator_GCJ=':'
17188 link_all_deplibs_GCJ=yes
17190 if test "$GCC" = yes; then
17191 case $host_os in aix4.[012]|aix4.[012].*)
17192 # We only want to do this on AIX 4.2 and lower, the check
17193 # below for broken collect2 doesn't work under 4.3+
17194 collect2name=`${CC} -print-prog-name=collect2`
17195 if test -f "$collect2name" && \
17196 strings "$collect2name" | grep resolve_lib_name >/dev/null
17198 # We have reworked collect2
17199 hardcode_direct_GCJ=yes
17201 # We have old collect2
17202 hardcode_direct_GCJ=unsupported
17203 # It fails to find uninstalled libraries when the uninstalled
17204 # path is not listed in the libpath. Setting hardcode_minus_L
17205 # to unsupported forces relinking
17206 hardcode_minus_L_GCJ=yes
17207 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17208 hardcode_libdir_separator_GCJ=
17212 shared_flag='-shared'
17213 if test "$aix_use_runtimelinking" = yes; then
17214 shared_flag="$shared_flag "'${wl}-G'
17218 if test "$host_cpu" = ia64; then
17219 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17220 # chokes on -Wl,-G. The following line is correct:
17223 if test "$aix_use_runtimelinking" = yes; then
17224 shared_flag='${wl}-G'
17226 shared_flag='${wl}-bM:SRE'
17231 # It seems that -bexpall does not export symbols beginning with
17232 # underscore (_), so it is better to generate a list of symbols to export.
17233 always_export_symbols_GCJ=yes
17234 if test "$aix_use_runtimelinking" = yes; then
17235 # Warning - without using the other runtime loading flags (-brtl),
17236 # -berok will link without error, but may produce a broken library.
17237 allow_undefined_flag_GCJ='-berok'
17238 # Determine the default libpath from the value encoded in an empty executable.
17239 cat >conftest.$ac_ext <<_ACEOF
17242 cat confdefs.h >>conftest.$ac_ext
17243 cat >>conftest.$ac_ext <<_ACEOF
17244 /* end confdefs.h. */
17254 rm -f conftest.$ac_objext conftest$ac_exeext
17255 if { (ac_try="$ac_link"
17256 case "(($ac_try" in
17257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17258 *) ac_try_echo=$ac_try;;
17260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17261 (eval "$ac_link") 2>conftest.er1
17263 grep -v '^ *+' conftest.er1 >conftest.err
17265 cat conftest.err >&5
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); } && {
17268 test -z "$ac_c_werror_flag" ||
17269 test ! -s conftest.err
17270 } && test -s conftest$ac_exeext &&
17271 $as_test_x conftest$ac_exeext; then
17273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17275 # Check for a 64-bit object if we didn't find anything.
17276 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17279 echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17286 conftest$ac_exeext conftest.$ac_ext
17287 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17289 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17290 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"
17292 if test "$host_cpu" = ia64; then
17293 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17294 allow_undefined_flag_GCJ="-z nodefs"
17295 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"
17297 # Determine the default libpath from the value encoded in an empty executable.
17298 cat >conftest.$ac_ext <<_ACEOF
17301 cat confdefs.h >>conftest.$ac_ext
17302 cat >>conftest.$ac_ext <<_ACEOF
17303 /* end confdefs.h. */
17313 rm -f conftest.$ac_objext conftest$ac_exeext
17314 if { (ac_try="$ac_link"
17315 case "(($ac_try" in
17316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17317 *) ac_try_echo=$ac_try;;
17319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17320 (eval "$ac_link") 2>conftest.er1
17322 grep -v '^ *+' conftest.er1 >conftest.err
17324 cat conftest.err >&5
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); } && {
17327 test -z "$ac_c_werror_flag" ||
17328 test ! -s conftest.err
17329 } && test -s conftest$ac_exeext &&
17330 $as_test_x conftest$ac_exeext; then
17332 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17334 # Check for a 64-bit object if we didn't find anything.
17335 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17338 echo "$as_me: failed program was:" >&5
17339 sed 's/^/| /' conftest.$ac_ext >&5
17344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17345 conftest$ac_exeext conftest.$ac_ext
17346 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17348 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17349 # Warning - without using the other run time loading flags,
17350 # -berok will link without error, but may produce a broken library.
17351 no_undefined_flag_GCJ=' ${wl}-bernotok'
17352 allow_undefined_flag_GCJ=' ${wl}-berok'
17353 # Exported symbols can be pulled into shared objects from archives
17354 whole_archive_flag_spec_GCJ='$convenience'
17355 archive_cmds_need_lc_GCJ=yes
17356 # This is similar to how AIX traditionally builds its shared libraries.
17357 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'
17363 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)'
17364 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17365 hardcode_minus_L_GCJ=yes
17366 # see comment about different semantics on the GNU ld section
17371 export_dynamic_flag_spec_GCJ=-rdynamic
17374 cygwin* | mingw* | pw32*)
17375 # When not using gcc, we currently assume that we are using
17376 # Microsoft Visual C++.
17377 # hardcode_libdir_flag_spec is actually meaningless, as there is
17378 # no search path for DLLs.
17379 hardcode_libdir_flag_spec_GCJ=' '
17380 allow_undefined_flag_GCJ=unsupported
17381 # Tell ltmain to make .lib files, not .a files.
17383 # Tell ltmain to make .dll files, not .so files.
17385 # FIXME: Setting linknames here is a bad hack.
17386 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17387 # The linker will automatically build a .lib file if we build a DLL.
17388 old_archive_From_new_cmds_GCJ='true'
17389 # FIXME: Should let the user specify the lib program.
17390 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17391 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17392 enable_shared_with_static_runtimes_GCJ=yes
17395 darwin* | rhapsody*)
17397 rhapsody* | darwin1.[012])
17398 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17401 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17402 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17404 case ${MACOSX_DEPLOYMENT_TARGET} in
17406 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17409 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17415 archive_cmds_need_lc_GCJ=no
17416 hardcode_direct_GCJ=no
17417 hardcode_automatic_GCJ=yes
17418 hardcode_shlibpath_var_GCJ=unsupported
17419 whole_archive_flag_spec_GCJ=''
17420 link_all_deplibs_GCJ=yes
17421 if test "$GCC" = yes ; then
17422 output_verbose_link_cmd='echo'
17423 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17424 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17425 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17426 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}'
17427 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}'
17429 case $cc_basename in
17431 output_verbose_link_cmd='echo'
17432 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17433 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17434 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17435 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17436 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}'
17446 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17447 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17448 hardcode_shlibpath_var_GCJ=no
17455 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17456 # support. Future versions do this automatically, but an explicit c++rt0.o
17457 # does not break anything, and helps significantly (at the cost of a little
17460 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17461 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17462 hardcode_direct_GCJ=yes
17463 hardcode_shlibpath_var_GCJ=no
17466 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17468 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17469 hardcode_direct_GCJ=yes
17470 hardcode_minus_L_GCJ=yes
17471 hardcode_shlibpath_var_GCJ=no
17474 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17475 freebsd* | dragonfly*)
17476 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17477 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17478 hardcode_direct_GCJ=yes
17479 hardcode_shlibpath_var_GCJ=no
17483 if test "$GCC" = yes; then
17484 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'
17486 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'
17488 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17489 hardcode_libdir_separator_GCJ=:
17490 hardcode_direct_GCJ=yes
17492 # hardcode_minus_L: Not really in the search PATH,
17493 # but as the default location of the library.
17494 hardcode_minus_L_GCJ=yes
17495 export_dynamic_flag_spec_GCJ='${wl}-E'
17499 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17500 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17502 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17504 if test "$with_gnu_ld" = no; then
17505 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17506 hardcode_libdir_separator_GCJ=:
17508 hardcode_direct_GCJ=yes
17509 export_dynamic_flag_spec_GCJ='${wl}-E'
17511 # hardcode_minus_L: Not really in the search PATH,
17512 # but as the default location of the library.
17513 hardcode_minus_L_GCJ=yes
17518 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17521 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17524 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17527 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17533 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17536 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17539 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17543 if test "$with_gnu_ld" = no; then
17544 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17545 hardcode_libdir_separator_GCJ=:
17549 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17550 hardcode_direct_GCJ=no
17551 hardcode_shlibpath_var_GCJ=no
17554 hardcode_direct_GCJ=yes
17555 export_dynamic_flag_spec_GCJ='${wl}-E'
17557 # hardcode_minus_L: Not really in the search PATH,
17558 # but as the default location of the library.
17559 hardcode_minus_L_GCJ=yes
17565 irix5* | irix6* | nonstopux*)
17566 if test "$GCC" = yes; then
17567 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'
17569 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'
17570 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17572 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17573 hardcode_libdir_separator_GCJ=:
17574 link_all_deplibs_GCJ=yes
17577 netbsd* | netbsdelf*-gnu)
17578 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17579 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17581 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17583 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17584 hardcode_direct_GCJ=yes
17585 hardcode_shlibpath_var_GCJ=no
17589 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17590 hardcode_direct_GCJ=yes
17591 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17592 hardcode_libdir_separator_GCJ=:
17593 hardcode_shlibpath_var_GCJ=no
17597 hardcode_direct_GCJ=yes
17598 hardcode_shlibpath_var_GCJ=no
17599 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17600 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17601 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17602 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17603 export_dynamic_flag_spec_GCJ='${wl}-E'
17606 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17607 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17608 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17611 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17612 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17619 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17620 hardcode_minus_L_GCJ=yes
17621 allow_undefined_flag_GCJ=unsupported
17622 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'
17623 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17627 if test "$GCC" = yes; then
17628 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17629 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'
17631 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17632 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'
17634 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17635 hardcode_libdir_separator_GCJ=:
17638 osf4* | osf5*) # as osf3* with the addition of -msym flag
17639 if test "$GCC" = yes; then
17640 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17641 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'
17642 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17644 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17645 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'
17646 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~
17647 $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'
17649 # Both c and cxx compiler support -rpath directly
17650 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17652 hardcode_libdir_separator_GCJ=:
17656 no_undefined_flag_GCJ=' -z text'
17657 if test "$GCC" = yes; then
17659 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17660 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17661 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17664 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17665 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17666 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17668 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17669 hardcode_shlibpath_var_GCJ=no
17671 solaris2.[0-5] | solaris2.[0-5].*) ;;
17673 # The compiler driver will combine linker options so we
17674 # cannot just pass the convience library names through
17675 # without $wl, iff we do not link with $LD.
17676 # Luckily, gcc supports the same syntax we need for Sun Studio.
17677 # Supported since Solaris 2.6 (maybe 2.5.1?)
17680 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17682 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17685 link_all_deplibs_GCJ=yes
17689 if test "x$host_vendor" = xsequent; then
17690 # Use $CC to link under sequent, because it throws in some extra .o
17691 # files that make .init and .fini sections work.
17692 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17694 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17696 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17697 hardcode_direct_GCJ=yes
17698 hardcode_minus_L_GCJ=yes
17699 hardcode_shlibpath_var_GCJ=no
17703 case $host_vendor in
17705 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17706 hardcode_direct_GCJ=yes # is this really true???
17709 ## LD is ld it makes a PLAMLIB
17710 ## CC just makes a GrossModule.
17711 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17712 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17713 hardcode_direct_GCJ=no
17716 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17717 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17720 runpath_var='LD_RUN_PATH'
17721 hardcode_shlibpath_var_GCJ=no
17725 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17726 hardcode_shlibpath_var_GCJ=no
17727 export_dynamic_flag_spec_GCJ='-Bexport'
17731 if test -d /usr/nec; then
17732 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17733 hardcode_shlibpath_var_GCJ=no
17734 runpath_var=LD_RUN_PATH
17735 hardcode_runpath_var=yes
17740 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17741 no_undefined_flag_GCJ='${wl}-z,text'
17742 archive_cmds_need_lc_GCJ=no
17743 hardcode_shlibpath_var_GCJ=no
17744 runpath_var='LD_RUN_PATH'
17746 if test "$GCC" = yes; then
17747 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17748 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17750 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17751 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17755 sysv5* | sco3.2v5* | sco5v6*)
17756 # Note: We can NOT use -z defs as we might desire, because we do not
17757 # link with -lc, and that would cause any symbols used from libc to
17758 # always be unresolved, which means just about no library would
17759 # ever link correctly. If we're not using GNU ld we use -z text
17760 # though, which does catch some bad symbols but isn't as heavy-handed
17762 no_undefined_flag_GCJ='${wl}-z,text'
17763 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17764 archive_cmds_need_lc_GCJ=no
17765 hardcode_shlibpath_var_GCJ=no
17766 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17767 hardcode_libdir_separator_GCJ=':'
17768 link_all_deplibs_GCJ=yes
17769 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17770 runpath_var='LD_RUN_PATH'
17772 if test "$GCC" = yes; then
17773 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17774 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17776 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17777 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17782 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17783 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17784 hardcode_shlibpath_var_GCJ=no
17793 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17794 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17795 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17798 # Do we need to explicitly link libc?
17800 case "x$archive_cmds_need_lc_GCJ" in
17802 # Assume -lc should be added
17803 archive_cmds_need_lc_GCJ=yes
17805 if test "$enable_shared" = yes && test "$GCC" = yes; then
17806 case $archive_cmds_GCJ in
17808 # FIXME: we may have to deal with multi-command sequences.
17811 # Test whether the compiler implicitly links with -lc since on some
17812 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17813 # to ld, don't add -lc before -lgcc.
17814 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17815 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17817 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17820 (eval $ac_compile) 2>&5
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); } 2>conftest.err; then
17826 libobjs=conftest.$ac_objext
17828 wl=$lt_prog_compiler_wl_GCJ
17829 pic_flag=$lt_prog_compiler_pic_GCJ
17835 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17836 allow_undefined_flag_GCJ=
17837 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17838 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); }
17843 archive_cmds_need_lc_GCJ=no
17845 archive_cmds_need_lc_GCJ=yes
17847 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17849 cat conftest.err 1>&5
17852 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17853 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17860 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17861 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17862 library_names_spec=
17863 libname_spec='lib$name'
17867 postuninstall_cmds=
17871 shlibpath_overrides_runpath=unknown
17873 dynamic_linker="$host_os ld.so"
17874 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17875 if test "$GCC" = yes; then
17876 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17877 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17878 # if the path contains ";" then we assume it to be the separator
17879 # otherwise default to the standard path separator (i.e. ":") - it is
17880 # assumed that no part of a normal pathname contains ";" but that should
17881 # okay in the real world where ";" in dirpaths is itself problematic.
17882 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17884 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17887 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17889 need_lib_prefix=unknown
17890 hardcode_into_libs=no
17892 # when you set need_version to no, make sure it does not cause -set_version
17893 # flags to be left without arguments
17894 need_version=unknown
17899 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17900 shlibpath_var=LIBPATH
17902 # AIX 3 has no versioning support, so we append a major version to the name.
17903 soname_spec='${libname}${release}${shared_ext}$major'
17910 hardcode_into_libs=yes
17911 if test "$host_cpu" = ia64; then
17912 # AIX 5 supports IA64
17913 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17914 shlibpath_var=LD_LIBRARY_PATH
17916 # With GCC up to 2.95.x, collect2 would create an import file
17917 # for dependence libraries. The import file would start with
17918 # the line `#! .'. This would cause the generated library to
17919 # depend on `.', always an invalid library. This was fixed in
17920 # development snapshots of GCC prior to 3.0.
17922 aix4 | aix4.[01] | aix4.[01].*)
17923 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17925 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17928 can_build_shared=no
17932 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17933 # soname into executable. Probably we can add versioning support to
17934 # collect2, so additional links can be useful in future.
17935 if test "$aix_use_runtimelinking" = yes; then
17936 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17937 # instead of lib<name>.a to let people know that these are not
17938 # typical AIX shared libraries.
17939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17941 # We preserve .a as extension for shared libraries through AIX4.2
17942 # and later when we are not doing run time linking.
17943 library_names_spec='${libname}${release}.a $libname.a'
17944 soname_spec='${libname}${release}${shared_ext}$major'
17946 shlibpath_var=LIBPATH
17951 library_names_spec='$libname.ixlibrary $libname.a'
17952 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17953 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'
17957 library_names_spec='${libname}${shared_ext}'
17958 dynamic_linker="$host_os ld.so"
17959 shlibpath_var=LIBRARY_PATH
17965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17966 soname_spec='${libname}${release}${shared_ext}$major'
17967 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17968 shlibpath_var=LD_LIBRARY_PATH
17969 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17970 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17971 # the default ld.so.conf also contains /usr/contrib/lib and
17972 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17973 # libtool to hard-code these into programs
17976 cygwin* | mingw* | pw32*)
17977 version_type=windows
17982 case $GCC,$host_os in
17983 yes,cygwin* | yes,mingw* | yes,pw32*)
17984 library_names_spec='$libname.dll.a'
17985 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17986 postinstall_cmds='base_file=`basename \${file}`~
17987 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17988 dldir=$destdir/`dirname \$dlpath`~
17989 test -d \$dldir || mkdir -p \$dldir~
17990 $install_prog $dir/$dlname \$dldir/$dlname~
17991 chmod a+x \$dldir/$dlname'
17992 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17993 dlpath=$dir/\$dldll~
17995 shlibpath_overrides_runpath=yes
17999 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18000 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18001 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18004 # MinGW DLLs use traditional 'lib' prefix
18005 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18006 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18007 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18008 # It is most probably a Windows format PATH printed by
18009 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18010 # path with ; separators, and with drive letters. We can handle the
18011 # drive letters (cygwin fileutils understands them), so leave them,
18012 # especially as we might pass files found there to a mingw objdump,
18013 # which wouldn't understand a cygwinified path. Ahh.
18014 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18016 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18020 # pw32 DLLs use 'pw' prefix rather than 'lib'
18021 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18027 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18030 dynamic_linker='Win32 ld.exe'
18031 # FIXME: first we should search . and the directory the executable is in
18035 darwin* | rhapsody*)
18036 dynamic_linker="$host_os dyld"
18037 version_type=darwin
18040 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18041 soname_spec='${libname}${release}${major}$shared_ext'
18042 shlibpath_overrides_runpath=yes
18043 shlibpath_var=DYLD_LIBRARY_PATH
18044 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18045 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18046 if test "$GCC" = yes; then
18047 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18049 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18051 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18059 soname_spec='${libname}${release}${shared_ext}$major'
18060 shlibpath_var=LD_LIBRARY_PATH
18067 freebsd* | dragonfly*)
18068 # DragonFly does not have aout. When/if they implement a new
18069 # versioning mechanism, adjust this.
18070 if test -x /usr/bin/objformat; then
18071 objformat=`/usr/bin/objformat`
18074 freebsd[123]*) objformat=aout ;;
18075 *) objformat=elf ;;
18078 version_type=freebsd-$objformat
18079 case $version_type in
18081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18086 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18090 shlibpath_var=LD_LIBRARY_PATH
18093 shlibpath_overrides_runpath=yes
18095 freebsd3.[01]* | freebsdelf3.[01]*)
18096 shlibpath_overrides_runpath=yes
18097 hardcode_into_libs=yes
18099 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18100 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18101 shlibpath_overrides_runpath=no
18102 hardcode_into_libs=yes
18104 freebsd*) # from 4.6 on
18105 shlibpath_overrides_runpath=yes
18106 hardcode_into_libs=yes
18115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18116 soname_spec='${libname}${release}${shared_ext}$major'
18117 shlibpath_var=LD_LIBRARY_PATH
18118 hardcode_into_libs=yes
18121 hpux9* | hpux10* | hpux11*)
18122 # Give a soname corresponding to the major version so that dld.sl refuses to
18123 # link against other versions.
18130 hardcode_into_libs=yes
18131 dynamic_linker="$host_os dld.so"
18132 shlibpath_var=LD_LIBRARY_PATH
18133 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18135 soname_spec='${libname}${release}${shared_ext}$major'
18136 if test "X$HPUX_IA64_MODE" = X32; then
18137 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18139 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18141 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18145 hardcode_into_libs=yes
18146 dynamic_linker="$host_os dld.sl"
18147 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18148 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18150 soname_spec='${libname}${release}${shared_ext}$major'
18151 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18152 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18156 dynamic_linker="$host_os dld.sl"
18157 shlibpath_var=SHLIB_PATH
18158 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18160 soname_spec='${libname}${release}${shared_ext}$major'
18163 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18164 postinstall_cmds='chmod 555 $lib'
18171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18172 soname_spec='${libname}${release}${shared_ext}$major'
18173 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18174 shlibpath_var=LD_LIBRARY_PATH
18175 shlibpath_overrides_runpath=no
18176 hardcode_into_libs=yes
18179 irix5* | irix6* | nonstopux*)
18181 nonstopux*) version_type=nonstopux ;;
18183 if test "$lt_cv_prog_gnu_ld" = yes; then
18191 soname_spec='${libname}${release}${shared_ext}$major'
18192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18194 irix5* | nonstopux*)
18195 libsuff= shlibsuff=
18198 case $LD in # libtool.m4 will add one of these switches to LD
18199 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18200 libsuff= shlibsuff= libmagic=32-bit;;
18201 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18202 libsuff=32 shlibsuff=N32 libmagic=N32;;
18203 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18204 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18205 *) libsuff= shlibsuff= libmagic=never-match;;
18209 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18210 shlibpath_overrides_runpath=no
18211 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18212 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18213 hardcode_into_libs=yes
18216 # No shared lib support for Linux oldld, aout, or coff.
18217 linux*oldld* | linux*aout* | linux*coff*)
18221 # This must be Linux ELF.
18222 linux* | k*bsd*-gnu)
18226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18227 soname_spec='${libname}${release}${shared_ext}$major'
18228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18229 shlibpath_var=LD_LIBRARY_PATH
18230 shlibpath_overrides_runpath=no
18231 # This implies no fast_install, which is unacceptable.
18232 # Some rework will be needed to allow for fast_install
18233 # before this can be enabled.
18234 hardcode_into_libs=yes
18236 # Append ld.so.conf contents to the search path
18237 if test -f /etc/ld.so.conf; then
18238 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18239 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18242 # We used to test for /lib/ld.so.1 and disable shared libraries on
18243 # powerpc, because MkLinux only supported shared libraries with the
18244 # GNU dynamic linker. Since this was broken with cross compilers,
18245 # most powerpc-linux boxes support dynamic linking these days and
18246 # people can always --disable-shared, the test was removed, and we
18247 # assume the GNU/Linux dynamic linker is in use.
18248 dynamic_linker='GNU/Linux ld.so'
18255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18256 soname_spec='${libname}${release}${shared_ext}$major'
18257 shlibpath_var=LD_LIBRARY_PATH
18258 shlibpath_overrides_runpath=no
18259 hardcode_into_libs=yes
18260 dynamic_linker='NetBSD ld.elf_so'
18267 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18270 dynamic_linker='NetBSD (a.out) ld.so'
18272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18273 soname_spec='${libname}${release}${shared_ext}$major'
18274 dynamic_linker='NetBSD ld.elf_so'
18276 shlibpath_var=LD_LIBRARY_PATH
18277 shlibpath_overrides_runpath=yes
18278 hardcode_into_libs=yes
18283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18284 shlibpath_var=LD_LIBRARY_PATH
18285 shlibpath_overrides_runpath=yes
18292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18293 soname_spec='${libname}${release}${shared_ext}$major'
18294 shlibpath_var=LD_LIBRARY_PATH
18295 shlibpath_overrides_runpath=yes
18300 sys_lib_dlsearch_path_spec="/usr/lib"
18302 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18304 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18305 *) need_version=no ;;
18307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18308 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18309 shlibpath_var=LD_LIBRARY_PATH
18310 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18312 openbsd2.[89] | openbsd2.[89].*)
18313 shlibpath_overrides_runpath=no
18316 shlibpath_overrides_runpath=yes
18320 shlibpath_overrides_runpath=yes
18325 libname_spec='$name'
18328 library_names_spec='$libname${shared_ext} $libname.a'
18329 dynamic_linker='OS/2 ld.exe'
18330 shlibpath_var=LIBPATH
18333 osf3* | osf4* | osf5*)
18337 soname_spec='${libname}${release}${shared_ext}$major'
18338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18339 shlibpath_var=LD_LIBRARY_PATH
18340 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18341 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18349 soname_spec='${libname}${release}${shared_ext}$major'
18350 shlibpath_var=LD_LIBRARY_PATH
18351 shlibpath_overrides_runpath=yes
18352 hardcode_into_libs=yes
18353 # ldd complains unless libraries are executable
18354 postinstall_cmds='chmod +x $lib'
18359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18360 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18361 shlibpath_var=LD_LIBRARY_PATH
18362 shlibpath_overrides_runpath=yes
18363 if test "$with_gnu_ld" = yes; then
18371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18372 soname_spec='${libname}${release}${shared_ext}$major'
18373 shlibpath_var=LD_LIBRARY_PATH
18374 case $host_vendor in
18376 shlibpath_overrides_runpath=no
18378 export_dynamic_flag_spec='${wl}-Blargedynsym'
18379 runpath_var=LD_RUN_PATH
18387 shlibpath_overrides_runpath=no
18388 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18394 if test -d /usr/nec ;then
18396 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18397 soname_spec='$libname${shared_ext}.$major'
18398 shlibpath_var=LD_LIBRARY_PATH
18402 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18403 version_type=freebsd-elf
18406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18407 soname_spec='${libname}${release}${shared_ext}$major'
18408 shlibpath_var=LD_LIBRARY_PATH
18409 hardcode_into_libs=yes
18410 if test "$with_gnu_ld" = yes; then
18411 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18412 shlibpath_overrides_runpath=no
18414 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18415 shlibpath_overrides_runpath=yes
18418 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18422 sys_lib_dlsearch_path_spec='/usr/lib'
18427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18428 soname_spec='${libname}${release}${shared_ext}$major'
18429 shlibpath_var=LD_LIBRARY_PATH
18436 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18437 echo "${ECHO_T}$dynamic_linker" >&6; }
18438 test "$dynamic_linker" = no && can_build_shared=no
18440 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18441 if test "$GCC" = yes; then
18442 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18445 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18446 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18447 hardcode_action_GCJ=
18448 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18449 test -n "$runpath_var_GCJ" || \
18450 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18452 # We can hardcode non-existant directories.
18453 if test "$hardcode_direct_GCJ" != no &&
18454 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18455 # have to relink, otherwise we might link with an installed library
18456 # when we should be linking with a yet-to-be-installed one
18457 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18458 test "$hardcode_minus_L_GCJ" != no; then
18459 # Linking always hardcodes the temporary library directory.
18460 hardcode_action_GCJ=relink
18462 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18463 hardcode_action_GCJ=immediate
18466 # We cannot hardcode anything, or else we can only hardcode existing
18468 hardcode_action_GCJ=unsupported
18470 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18471 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18473 if test "$hardcode_action_GCJ" = relink; then
18474 # Fast installation is not supported
18475 enable_fast_install=no
18476 elif test "$shlibpath_overrides_runpath" = yes ||
18477 test "$enable_shared" = no; then
18478 # Fast installation is not necessary
18479 enable_fast_install=needless
18483 # The else clause should only fire when bootstrapping the
18484 # libtool distribution, otherwise you forgot to ship ltmain.sh
18485 # with your package, and you will get complaints that there are
18486 # no rules to generate ltmain.sh.
18487 if test -f "$ltmain"; then
18488 # See if we are running on zsh, and set the options which allow our commands through
18489 # without removal of \ escapes.
18490 if test -n "${ZSH_VERSION+set}" ; then
18491 setopt NO_GLOB_SUBST
18493 # Now quote all the things that may contain metacharacters while being
18494 # careful not to overquote the AC_SUBSTed values. We take copies of the
18495 # variables and quote the copies for generation of the libtool script.
18496 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18498 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18499 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18500 deplibs_check_method reload_flag reload_cmds need_locks \
18501 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18502 lt_cv_sys_global_symbol_to_c_name_address \
18503 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18504 old_postinstall_cmds old_postuninstall_cmds \
18508 lt_prog_compiler_wl_GCJ \
18509 lt_prog_compiler_pic_GCJ \
18510 lt_prog_compiler_static_GCJ \
18511 lt_prog_compiler_no_builtin_flag_GCJ \
18512 export_dynamic_flag_spec_GCJ \
18513 thread_safe_flag_spec_GCJ \
18514 whole_archive_flag_spec_GCJ \
18515 enable_shared_with_static_runtimes_GCJ \
18516 old_archive_cmds_GCJ \
18517 old_archive_from_new_cmds_GCJ \
18518 predep_objects_GCJ \
18519 postdep_objects_GCJ \
18522 compiler_lib_search_path_GCJ \
18524 archive_expsym_cmds_GCJ \
18525 postinstall_cmds_GCJ \
18526 postuninstall_cmds_GCJ \
18527 old_archive_from_expsyms_cmds_GCJ \
18528 allow_undefined_flag_GCJ \
18529 no_undefined_flag_GCJ \
18530 export_symbols_cmds_GCJ \
18531 hardcode_libdir_flag_spec_GCJ \
18532 hardcode_libdir_flag_spec_ld_GCJ \
18533 hardcode_libdir_separator_GCJ \
18534 hardcode_automatic_GCJ \
18536 module_expsym_cmds_GCJ \
18537 lt_cv_prog_compiler_c_o_GCJ \
18538 exclude_expsyms_GCJ \
18539 include_expsyms_GCJ; do
18542 old_archive_cmds_GCJ | \
18543 old_archive_from_new_cmds_GCJ | \
18544 archive_cmds_GCJ | \
18545 archive_expsym_cmds_GCJ | \
18546 module_cmds_GCJ | \
18547 module_expsym_cmds_GCJ | \
18548 old_archive_from_expsyms_cmds_GCJ | \
18549 export_symbols_cmds_GCJ | \
18550 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18551 postinstall_cmds | postuninstall_cmds | \
18552 old_postinstall_cmds | old_postuninstall_cmds | \
18553 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18554 # Double-quote double-evaled strings.
18555 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18558 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18564 *'\$0 --fallback-echo"')
18565 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18571 cat <<__EOF__ >> "$cfgfile"
18572 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18574 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18576 # Shell to use when invoking shell scripts.
18579 # Whether or not to build shared libraries.
18580 build_libtool_libs=$enable_shared
18582 # Whether or not to build static libraries.
18583 build_old_libs=$enable_static
18585 # Whether or not to add -lc for building shared libraries.
18586 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18588 # Whether or not to disallow shared libs when runtime libs are static
18589 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18591 # Whether or not to optimize for fast installation.
18592 fast_install=$enable_fast_install
18595 host_alias=$host_alias
18599 # The build system.
18600 build_alias=$build_alias
18604 # An echo program that does not interpret backslashes.
18609 AR_FLAGS=$lt_AR_FLAGS
18614 # LTCC compiler flags.
18615 LTCFLAGS=$lt_LTCFLAGS
18617 # A language-specific compiler.
18618 CC=$lt_compiler_GCJ
18620 # Is the compiler the GNU C compiler?
18626 # The linker used to build libraries.
18629 # Whether we need hard or soft links.
18632 # A BSD-compatible nm program.
18635 # A symbol stripping program
18638 # Used to examine libraries when file_magic_cmd begins "file"
18639 MAGIC_CMD=$MAGIC_CMD
18641 # Used on cygwin: DLL creation program.
18644 # Used on cygwin: object dumper.
18647 # Used on cygwin: assembler.
18650 # The name of the directory that contains temporary libtool files.
18653 # How to create reloadable object files.
18654 reload_flag=$lt_reload_flag
18655 reload_cmds=$lt_reload_cmds
18657 # How to pass a linker flag through the compiler.
18658 wl=$lt_lt_prog_compiler_wl_GCJ
18660 # Object file suffix (normally "o").
18661 objext="$ac_objext"
18663 # Old archive suffix (normally "a").
18666 # Shared library suffix (normally ".so").
18667 shrext_cmds='$shrext_cmds'
18669 # Executable file suffix (normally "").
18672 # Additional compiler flags for building library objects.
18673 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18676 # What is the maximum length of a command?
18677 max_cmd_len=$lt_cv_sys_max_cmd_len
18679 # Does compiler simultaneously support -c and -o options?
18680 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18682 # Must we lock files when doing compilation?
18683 need_locks=$lt_need_locks
18685 # Do we need the lib prefix for modules?
18686 need_lib_prefix=$need_lib_prefix
18688 # Do we need a version for libraries?
18689 need_version=$need_version
18691 # Whether dlopen is supported.
18692 dlopen_support=$enable_dlopen
18694 # Whether dlopen of programs is supported.
18695 dlopen_self=$enable_dlopen_self
18697 # Whether dlopen of statically linked programs is supported.
18698 dlopen_self_static=$enable_dlopen_self_static
18700 # Compiler flag to prevent dynamic linking.
18701 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18703 # Compiler flag to turn off builtin functions.
18704 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18706 # Compiler flag to allow reflexive dlopens.
18707 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18709 # Compiler flag to generate shared objects directly from archives.
18710 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18712 # Compiler flag to generate thread-safe objects.
18713 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18715 # Library versioning type.
18716 version_type=$version_type
18718 # Format of library name prefix.
18719 libname_spec=$lt_libname_spec
18721 # List of archive names. First name is the real one, the rest are links.
18722 # The last name is the one that the linker finds with -lNAME.
18723 library_names_spec=$lt_library_names_spec
18725 # The coded name of the library, if different from the real name.
18726 soname_spec=$lt_soname_spec
18728 # Commands used to build and install an old-style archive.
18730 old_archive_cmds=$lt_old_archive_cmds_GCJ
18731 old_postinstall_cmds=$lt_old_postinstall_cmds
18732 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18734 # Create an old-style archive from a shared archive.
18735 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18737 # Create a temporary old-style archive to link instead of a shared archive.
18738 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18740 # Commands used to build and install a shared archive.
18741 archive_cmds=$lt_archive_cmds_GCJ
18742 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18743 postinstall_cmds=$lt_postinstall_cmds
18744 postuninstall_cmds=$lt_postuninstall_cmds
18746 # Commands used to build a loadable module (assumed same as above if empty)
18747 module_cmds=$lt_module_cmds_GCJ
18748 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18750 # Commands to strip libraries.
18751 old_striplib=$lt_old_striplib
18752 striplib=$lt_striplib
18754 # Dependencies to place before the objects being linked to create a
18756 predep_objects=$lt_predep_objects_GCJ
18758 # Dependencies to place after the objects being linked to create a
18760 postdep_objects=$lt_postdep_objects_GCJ
18762 # Dependencies to place before the objects being linked to create a
18764 predeps=$lt_predeps_GCJ
18766 # Dependencies to place after the objects being linked to create a
18768 postdeps=$lt_postdeps_GCJ
18770 # The library search path used internally by the compiler when linking
18771 # a shared library.
18772 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18774 # Method to check whether dependent libraries are shared objects.
18775 deplibs_check_method=$lt_deplibs_check_method
18777 # Command to use when deplibs_check_method == file_magic.
18778 file_magic_cmd=$lt_file_magic_cmd
18780 # Flag that allows shared libraries with undefined symbols to be built.
18781 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18783 # Flag that forces no undefined symbols.
18784 no_undefined_flag=$lt_no_undefined_flag_GCJ
18786 # Commands used to finish a libtool library installation in a directory.
18787 finish_cmds=$lt_finish_cmds
18789 # Same as above, but a single script fragment to be evaled but not shown.
18790 finish_eval=$lt_finish_eval
18792 # Take the output of nm and produce a listing of raw symbols and C names.
18793 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18795 # Transform the output of nm in a proper C declaration
18796 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18798 # Transform the output of nm in a C name address pair
18799 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18801 # This is the shared library runtime path variable.
18802 runpath_var=$runpath_var
18804 # This is the shared library path variable.
18805 shlibpath_var=$shlibpath_var
18807 # Is shlibpath searched before the hard-coded library search path?
18808 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18810 # How to hardcode a shared library path into an executable.
18811 hardcode_action=$hardcode_action_GCJ
18813 # Whether we should hardcode library paths into libraries.
18814 hardcode_into_libs=$hardcode_into_libs
18816 # Flag to hardcode \$libdir into a binary during linking.
18817 # This must work even if \$libdir does not exist.
18818 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18820 # If ld is used when linking, flag to hardcode \$libdir into
18821 # a binary during linking. This must work even if \$libdir does
18823 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18825 # Whether we need a single -rpath flag with a separated argument.
18826 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18828 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18829 # resulting binary.
18830 hardcode_direct=$hardcode_direct_GCJ
18832 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18833 # resulting binary.
18834 hardcode_minus_L=$hardcode_minus_L_GCJ
18836 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18837 # the resulting binary.
18838 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18840 # Set to yes if building a shared library automatically hardcodes DIR into the library
18841 # and all subsequent libraries and executables linked against it.
18842 hardcode_automatic=$hardcode_automatic_GCJ
18844 # Variables whose values should be saved in libtool wrapper scripts and
18845 # restored at relink time.
18846 variables_saved_for_relink="$variables_saved_for_relink"
18848 # Whether libtool must link a program against all its dependency libraries.
18849 link_all_deplibs=$link_all_deplibs_GCJ
18851 # Compile-time system search path for libraries
18852 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18854 # Run-time system search path for libraries
18855 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18857 # Fix the shell variable \$srcfile for the compiler.
18858 fix_srcfile_path="$fix_srcfile_path_GCJ"
18860 # Set to yes if exported symbols are required.
18861 always_export_symbols=$always_export_symbols_GCJ
18863 # The commands to list exported symbols.
18864 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18866 # The commands to extract the exported symbol list from a shared archive.
18867 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18869 # Symbols that should not be listed in the preloaded symbols.
18870 exclude_expsyms=$lt_exclude_expsyms_GCJ
18872 # Symbols that must always be exported.
18873 include_expsyms=$lt_include_expsyms_GCJ
18875 # ### END LIBTOOL TAG CONFIG: $tagname
18881 # If there is no Makefile yet, we rely on a make rule to execute
18882 # `config.status --recheck' to rerun these tests and create the
18883 # libtool script then.
18884 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18885 if test -f "$ltmain_in"; then
18886 test -f Makefile && make "$ltmain"
18892 ac_cpp='$CPP $CPPFLAGS'
18893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18907 # Source file extension for RC test sources.
18910 # Object file extension for compiled RC test sources.
18914 # Code to be used in simple compile tests
18915 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18917 # Code to be used in simple link tests
18918 lt_simple_link_test_code="$lt_simple_compile_test_code"
18920 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18922 # If no C compiler was specified, use CC.
18925 # If no C compiler flags were specified, use CFLAGS.
18926 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18928 # Allow CC to be a program name with arguments.
18932 # save warnings/boilerplate of simple test code
18933 ac_outfile=conftest.$ac_objext
18934 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18935 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18936 _lt_compiler_boilerplate=`cat conftest.err`
18939 ac_outfile=conftest.$ac_objext
18940 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18941 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18942 _lt_linker_boilerplate=`cat conftest.err`
18946 # Allow CC to be a program name with arguments.
18951 for cc_temp in $compiler""; do
18953 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18954 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18959 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18961 lt_cv_prog_compiler_c_o_RC=yes
18963 # The else clause should only fire when bootstrapping the
18964 # libtool distribution, otherwise you forgot to ship ltmain.sh
18965 # with your package, and you will get complaints that there are
18966 # no rules to generate ltmain.sh.
18967 if test -f "$ltmain"; then
18968 # See if we are running on zsh, and set the options which allow our commands through
18969 # without removal of \ escapes.
18970 if test -n "${ZSH_VERSION+set}" ; then
18971 setopt NO_GLOB_SUBST
18973 # Now quote all the things that may contain metacharacters while being
18974 # careful not to overquote the AC_SUBSTed values. We take copies of the
18975 # variables and quote the copies for generation of the libtool script.
18976 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18978 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18979 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18980 deplibs_check_method reload_flag reload_cmds need_locks \
18981 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18982 lt_cv_sys_global_symbol_to_c_name_address \
18983 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18984 old_postinstall_cmds old_postuninstall_cmds \
18988 lt_prog_compiler_wl_RC \
18989 lt_prog_compiler_pic_RC \
18990 lt_prog_compiler_static_RC \
18991 lt_prog_compiler_no_builtin_flag_RC \
18992 export_dynamic_flag_spec_RC \
18993 thread_safe_flag_spec_RC \
18994 whole_archive_flag_spec_RC \
18995 enable_shared_with_static_runtimes_RC \
18996 old_archive_cmds_RC \
18997 old_archive_from_new_cmds_RC \
18998 predep_objects_RC \
18999 postdep_objects_RC \
19002 compiler_lib_search_path_RC \
19004 archive_expsym_cmds_RC \
19005 postinstall_cmds_RC \
19006 postuninstall_cmds_RC \
19007 old_archive_from_expsyms_cmds_RC \
19008 allow_undefined_flag_RC \
19009 no_undefined_flag_RC \
19010 export_symbols_cmds_RC \
19011 hardcode_libdir_flag_spec_RC \
19012 hardcode_libdir_flag_spec_ld_RC \
19013 hardcode_libdir_separator_RC \
19014 hardcode_automatic_RC \
19016 module_expsym_cmds_RC \
19017 lt_cv_prog_compiler_c_o_RC \
19018 exclude_expsyms_RC \
19019 include_expsyms_RC; do
19022 old_archive_cmds_RC | \
19023 old_archive_from_new_cmds_RC | \
19024 archive_cmds_RC | \
19025 archive_expsym_cmds_RC | \
19027 module_expsym_cmds_RC | \
19028 old_archive_from_expsyms_cmds_RC | \
19029 export_symbols_cmds_RC | \
19030 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19031 postinstall_cmds | postuninstall_cmds | \
19032 old_postinstall_cmds | old_postuninstall_cmds | \
19033 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19034 # Double-quote double-evaled strings.
19035 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19038 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19044 *'\$0 --fallback-echo"')
19045 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19051 cat <<__EOF__ >> "$cfgfile"
19052 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19054 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19056 # Shell to use when invoking shell scripts.
19059 # Whether or not to build shared libraries.
19060 build_libtool_libs=$enable_shared
19062 # Whether or not to build static libraries.
19063 build_old_libs=$enable_static
19065 # Whether or not to add -lc for building shared libraries.
19066 build_libtool_need_lc=$archive_cmds_need_lc_RC
19068 # Whether or not to disallow shared libs when runtime libs are static
19069 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19071 # Whether or not to optimize for fast installation.
19072 fast_install=$enable_fast_install
19075 host_alias=$host_alias
19079 # The build system.
19080 build_alias=$build_alias
19084 # An echo program that does not interpret backslashes.
19089 AR_FLAGS=$lt_AR_FLAGS
19094 # LTCC compiler flags.
19095 LTCFLAGS=$lt_LTCFLAGS
19097 # A language-specific compiler.
19100 # Is the compiler the GNU C compiler?
19106 # The linker used to build libraries.
19109 # Whether we need hard or soft links.
19112 # A BSD-compatible nm program.
19115 # A symbol stripping program
19118 # Used to examine libraries when file_magic_cmd begins "file"
19119 MAGIC_CMD=$MAGIC_CMD
19121 # Used on cygwin: DLL creation program.
19124 # Used on cygwin: object dumper.
19127 # Used on cygwin: assembler.
19130 # The name of the directory that contains temporary libtool files.
19133 # How to create reloadable object files.
19134 reload_flag=$lt_reload_flag
19135 reload_cmds=$lt_reload_cmds
19137 # How to pass a linker flag through the compiler.
19138 wl=$lt_lt_prog_compiler_wl_RC
19140 # Object file suffix (normally "o").
19141 objext="$ac_objext"
19143 # Old archive suffix (normally "a").
19146 # Shared library suffix (normally ".so").
19147 shrext_cmds='$shrext_cmds'
19149 # Executable file suffix (normally "").
19152 # Additional compiler flags for building library objects.
19153 pic_flag=$lt_lt_prog_compiler_pic_RC
19156 # What is the maximum length of a command?
19157 max_cmd_len=$lt_cv_sys_max_cmd_len
19159 # Does compiler simultaneously support -c and -o options?
19160 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19162 # Must we lock files when doing compilation?
19163 need_locks=$lt_need_locks
19165 # Do we need the lib prefix for modules?
19166 need_lib_prefix=$need_lib_prefix
19168 # Do we need a version for libraries?
19169 need_version=$need_version
19171 # Whether dlopen is supported.
19172 dlopen_support=$enable_dlopen
19174 # Whether dlopen of programs is supported.
19175 dlopen_self=$enable_dlopen_self
19177 # Whether dlopen of statically linked programs is supported.
19178 dlopen_self_static=$enable_dlopen_self_static
19180 # Compiler flag to prevent dynamic linking.
19181 link_static_flag=$lt_lt_prog_compiler_static_RC
19183 # Compiler flag to turn off builtin functions.
19184 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19186 # Compiler flag to allow reflexive dlopens.
19187 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19189 # Compiler flag to generate shared objects directly from archives.
19190 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19192 # Compiler flag to generate thread-safe objects.
19193 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19195 # Library versioning type.
19196 version_type=$version_type
19198 # Format of library name prefix.
19199 libname_spec=$lt_libname_spec
19201 # List of archive names. First name is the real one, the rest are links.
19202 # The last name is the one that the linker finds with -lNAME.
19203 library_names_spec=$lt_library_names_spec
19205 # The coded name of the library, if different from the real name.
19206 soname_spec=$lt_soname_spec
19208 # Commands used to build and install an old-style archive.
19210 old_archive_cmds=$lt_old_archive_cmds_RC
19211 old_postinstall_cmds=$lt_old_postinstall_cmds
19212 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19214 # Create an old-style archive from a shared archive.
19215 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19217 # Create a temporary old-style archive to link instead of a shared archive.
19218 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19220 # Commands used to build and install a shared archive.
19221 archive_cmds=$lt_archive_cmds_RC
19222 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19223 postinstall_cmds=$lt_postinstall_cmds
19224 postuninstall_cmds=$lt_postuninstall_cmds
19226 # Commands used to build a loadable module (assumed same as above if empty)
19227 module_cmds=$lt_module_cmds_RC
19228 module_expsym_cmds=$lt_module_expsym_cmds_RC
19230 # Commands to strip libraries.
19231 old_striplib=$lt_old_striplib
19232 striplib=$lt_striplib
19234 # Dependencies to place before the objects being linked to create a
19236 predep_objects=$lt_predep_objects_RC
19238 # Dependencies to place after the objects being linked to create a
19240 postdep_objects=$lt_postdep_objects_RC
19242 # Dependencies to place before the objects being linked to create a
19244 predeps=$lt_predeps_RC
19246 # Dependencies to place after the objects being linked to create a
19248 postdeps=$lt_postdeps_RC
19250 # The library search path used internally by the compiler when linking
19251 # a shared library.
19252 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19254 # Method to check whether dependent libraries are shared objects.
19255 deplibs_check_method=$lt_deplibs_check_method
19257 # Command to use when deplibs_check_method == file_magic.
19258 file_magic_cmd=$lt_file_magic_cmd
19260 # Flag that allows shared libraries with undefined symbols to be built.
19261 allow_undefined_flag=$lt_allow_undefined_flag_RC
19263 # Flag that forces no undefined symbols.
19264 no_undefined_flag=$lt_no_undefined_flag_RC
19266 # Commands used to finish a libtool library installation in a directory.
19267 finish_cmds=$lt_finish_cmds
19269 # Same as above, but a single script fragment to be evaled but not shown.
19270 finish_eval=$lt_finish_eval
19272 # Take the output of nm and produce a listing of raw symbols and C names.
19273 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19275 # Transform the output of nm in a proper C declaration
19276 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19278 # Transform the output of nm in a C name address pair
19279 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19281 # This is the shared library runtime path variable.
19282 runpath_var=$runpath_var
19284 # This is the shared library path variable.
19285 shlibpath_var=$shlibpath_var
19287 # Is shlibpath searched before the hard-coded library search path?
19288 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19290 # How to hardcode a shared library path into an executable.
19291 hardcode_action=$hardcode_action_RC
19293 # Whether we should hardcode library paths into libraries.
19294 hardcode_into_libs=$hardcode_into_libs
19296 # Flag to hardcode \$libdir into a binary during linking.
19297 # This must work even if \$libdir does not exist.
19298 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19300 # If ld is used when linking, flag to hardcode \$libdir into
19301 # a binary during linking. This must work even if \$libdir does
19303 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19305 # Whether we need a single -rpath flag with a separated argument.
19306 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19308 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19309 # resulting binary.
19310 hardcode_direct=$hardcode_direct_RC
19312 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19313 # resulting binary.
19314 hardcode_minus_L=$hardcode_minus_L_RC
19316 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19317 # the resulting binary.
19318 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19320 # Set to yes if building a shared library automatically hardcodes DIR into the library
19321 # and all subsequent libraries and executables linked against it.
19322 hardcode_automatic=$hardcode_automatic_RC
19324 # Variables whose values should be saved in libtool wrapper scripts and
19325 # restored at relink time.
19326 variables_saved_for_relink="$variables_saved_for_relink"
19328 # Whether libtool must link a program against all its dependency libraries.
19329 link_all_deplibs=$link_all_deplibs_RC
19331 # Compile-time system search path for libraries
19332 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19334 # Run-time system search path for libraries
19335 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19337 # Fix the shell variable \$srcfile for the compiler.
19338 fix_srcfile_path="$fix_srcfile_path_RC"
19340 # Set to yes if exported symbols are required.
19341 always_export_symbols=$always_export_symbols_RC
19343 # The commands to list exported symbols.
19344 export_symbols_cmds=$lt_export_symbols_cmds_RC
19346 # The commands to extract the exported symbol list from a shared archive.
19347 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19349 # Symbols that should not be listed in the preloaded symbols.
19350 exclude_expsyms=$lt_exclude_expsyms_RC
19352 # Symbols that must always be exported.
19353 include_expsyms=$lt_include_expsyms_RC
19355 # ### END LIBTOOL TAG CONFIG: $tagname
19361 # If there is no Makefile yet, we rely on a make rule to execute
19362 # `config.status --recheck' to rerun these tests and create the
19363 # libtool script then.
19364 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19365 if test -f "$ltmain_in"; then
19366 test -f Makefile && make "$ltmain"
19372 ac_cpp='$CPP $CPPFLAGS'
19373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19382 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19383 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19384 { (exit 1); exit 1; }; }
19388 # Append the new tag name to the list of available tags.
19389 if test -n "$tagname" ; then
19390 available_tags="$available_tags $tagname"
19396 # Now substitute the updated list of available tags.
19397 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19398 mv "${ofile}T" "$ofile"
19402 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19403 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19404 { (exit 1); exit 1; }; }
19410 # This can be used to rebuild libtool when needed
19411 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19413 # Always use our own libtool.
19414 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19416 # Prevent multiple expansion
19445 { echo "$as_me:$LINENO: result: " >&5
19446 echo "${ECHO_T}" >&6; }
19447 { echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
19448 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6; }
19451 ac_cpp='$CPP $CPPFLAGS'
19452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19455 if test -n "$ac_tool_prefix"; then
19456 for ac_prog in xlC gcc cc
19458 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19459 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19462 if test "${ac_cv_prog_CC+set}" = set; then
19463 echo $ECHO_N "(cached) $ECHO_C" >&6
19465 if test -n "$CC"; then
19466 ac_cv_prog_CC="$CC" # Let the user override the test.
19468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19469 for as_dir in $PATH
19472 test -z "$as_dir" && as_dir=.
19473 for ac_exec_ext in '' $ac_executable_extensions; do
19474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19475 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19486 if test -n "$CC"; then
19487 { echo "$as_me:$LINENO: result: $CC" >&5
19488 echo "${ECHO_T}$CC" >&6; }
19490 { echo "$as_me:$LINENO: result: no" >&5
19491 echo "${ECHO_T}no" >&6; }
19495 test -n "$CC" && break
19498 if test -z "$CC"; then
19500 for ac_prog in xlC gcc cc
19502 # Extract the first word of "$ac_prog", so it can be a program name with args.
19503 set dummy $ac_prog; ac_word=$2
19504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19506 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19507 echo $ECHO_N "(cached) $ECHO_C" >&6
19509 if test -n "$ac_ct_CC"; then
19510 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19513 for as_dir in $PATH
19516 test -z "$as_dir" && as_dir=.
19517 for ac_exec_ext in '' $ac_executable_extensions; do
19518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19519 ac_cv_prog_ac_ct_CC="$ac_prog"
19520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19529 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19530 if test -n "$ac_ct_CC"; then
19531 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19532 echo "${ECHO_T}$ac_ct_CC" >&6; }
19534 { echo "$as_me:$LINENO: result: no" >&5
19535 echo "${ECHO_T}no" >&6; }
19539 test -n "$ac_ct_CC" && break
19542 if test "x$ac_ct_CC" = x; then
19545 case $cross_compiling:$ac_tool_warned in
19547 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19548 whose name does not start with the host triplet. If you think this
19549 configuration is useful to you, please write to autoconf@gnu.org." >&5
19550 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19551 whose name does not start with the host triplet. If you think this
19552 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19553 ac_tool_warned=yes ;;
19560 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19561 See \`config.log' for more details." >&5
19562 echo "$as_me: error: no acceptable C compiler found in \$PATH
19563 See \`config.log' for more details." >&2;}
19564 { (exit 1); exit 1; }; }
19566 # Provide some information about the compiler.
19567 echo "$as_me:$LINENO: checking for C compiler version" >&5
19568 ac_compiler=`set X $ac_compile; echo $2`
19569 { (ac_try="$ac_compiler --version >&5"
19570 case "(($ac_try" in
19571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19572 *) ac_try_echo=$ac_try;;
19574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19575 (eval "$ac_compiler --version >&5") 2>&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); }
19579 { (ac_try="$ac_compiler -v >&5"
19580 case "(($ac_try" in
19581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582 *) ac_try_echo=$ac_try;;
19584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585 (eval "$ac_compiler -v >&5") 2>&5
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }
19589 { (ac_try="$ac_compiler -V >&5"
19590 case "(($ac_try" in
19591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19592 *) ac_try_echo=$ac_try;;
19594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19595 (eval "$ac_compiler -V >&5") 2>&5
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); }
19600 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19601 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19602 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19603 echo $ECHO_N "(cached) $ECHO_C" >&6
19605 cat >conftest.$ac_ext <<_ACEOF
19608 cat confdefs.h >>conftest.$ac_ext
19609 cat >>conftest.$ac_ext <<_ACEOF
19610 /* end confdefs.h. */
19623 rm -f conftest.$ac_objext
19624 if { (ac_try="$ac_compile"
19625 case "(($ac_try" in
19626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19627 *) ac_try_echo=$ac_try;;
19629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19630 (eval "$ac_compile") 2>conftest.er1
19632 grep -v '^ *+' conftest.er1 >conftest.err
19634 cat conftest.err >&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); } && {
19637 test -z "$ac_c_werror_flag" ||
19638 test ! -s conftest.err
19639 } && test -s conftest.$ac_objext; then
19640 ac_compiler_gnu=yes
19642 echo "$as_me: failed program was:" >&5
19643 sed 's/^/| /' conftest.$ac_ext >&5
19648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19649 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19652 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19653 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19654 GCC=`test $ac_compiler_gnu = yes && echo yes`
19655 ac_test_CFLAGS=${CFLAGS+set}
19656 ac_save_CFLAGS=$CFLAGS
19657 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19658 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19659 if test "${ac_cv_prog_cc_g+set}" = set; then
19660 echo $ECHO_N "(cached) $ECHO_C" >&6
19662 ac_save_c_werror_flag=$ac_c_werror_flag
19663 ac_c_werror_flag=yes
19666 cat >conftest.$ac_ext <<_ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h. */
19681 rm -f conftest.$ac_objext
19682 if { (ac_try="$ac_compile"
19683 case "(($ac_try" in
19684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19685 *) ac_try_echo=$ac_try;;
19687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19688 (eval "$ac_compile") 2>conftest.er1
19690 grep -v '^ *+' conftest.er1 >conftest.err
19692 cat conftest.err >&5
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); } && {
19695 test -z "$ac_c_werror_flag" ||
19696 test ! -s conftest.err
19697 } && test -s conftest.$ac_objext; then
19698 ac_cv_prog_cc_g=yes
19700 echo "$as_me: failed program was:" >&5
19701 sed 's/^/| /' conftest.$ac_ext >&5
19704 cat >conftest.$ac_ext <<_ACEOF
19707 cat confdefs.h >>conftest.$ac_ext
19708 cat >>conftest.$ac_ext <<_ACEOF
19709 /* end confdefs.h. */
19719 rm -f conftest.$ac_objext
19720 if { (ac_try="$ac_compile"
19721 case "(($ac_try" in
19722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19723 *) ac_try_echo=$ac_try;;
19725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19726 (eval "$ac_compile") 2>conftest.er1
19728 grep -v '^ *+' conftest.er1 >conftest.err
19730 cat conftest.err >&5
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); } && {
19733 test -z "$ac_c_werror_flag" ||
19734 test ! -s conftest.err
19735 } && test -s conftest.$ac_objext; then
19738 echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19741 ac_c_werror_flag=$ac_save_c_werror_flag
19743 cat >conftest.$ac_ext <<_ACEOF
19746 cat confdefs.h >>conftest.$ac_ext
19747 cat >>conftest.$ac_ext <<_ACEOF
19748 /* end confdefs.h. */
19758 rm -f conftest.$ac_objext
19759 if { (ac_try="$ac_compile"
19760 case "(($ac_try" in
19761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19762 *) ac_try_echo=$ac_try;;
19764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19765 (eval "$ac_compile") 2>conftest.er1
19767 grep -v '^ *+' conftest.er1 >conftest.err
19769 cat conftest.err >&5
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); } && {
19772 test -z "$ac_c_werror_flag" ||
19773 test ! -s conftest.err
19774 } && test -s conftest.$ac_objext; then
19775 ac_cv_prog_cc_g=yes
19777 echo "$as_me: failed program was:" >&5
19778 sed 's/^/| /' conftest.$ac_ext >&5
19783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19790 ac_c_werror_flag=$ac_save_c_werror_flag
19792 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19793 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19794 if test "$ac_test_CFLAGS" = set; then
19795 CFLAGS=$ac_save_CFLAGS
19796 elif test $ac_cv_prog_cc_g = yes; then
19797 if test "$GCC" = yes; then
19803 if test "$GCC" = yes; then
19809 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19810 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19811 if test "${ac_cv_prog_cc_c89+set}" = set; then
19812 echo $ECHO_N "(cached) $ECHO_C" >&6
19814 ac_cv_prog_cc_c89=no
19816 cat >conftest.$ac_ext <<_ACEOF
19819 cat confdefs.h >>conftest.$ac_ext
19820 cat >>conftest.$ac_ext <<_ACEOF
19821 /* end confdefs.h. */
19822 #include <stdarg.h>
19824 #include <sys/types.h>
19825 #include <sys/stat.h>
19826 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19827 struct buf { int x; };
19828 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19829 static char *e (p, i)
19835 static char *f (char * (*g) (char **, int), char **p, ...)
19840 s = g (p, va_arg (v,int));
19845 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19846 function prototypes and stuff, but not '\xHH' hex character constants.
19847 These don't provoke an error unfortunately, instead are silently treated
19848 as 'x'. The following induces an error, until -std is added to get
19849 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19850 array size at least. It's necessary to write '\x00'==0 to get something
19851 that's true only with -std. */
19852 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19854 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19855 inside strings and character constants. */
19857 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19859 int test (int i, double x);
19860 struct s1 {int (*f) (int a);};
19861 struct s2 {int (*f) (double a);};
19862 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19868 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19873 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19874 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19876 CC="$ac_save_CC $ac_arg"
19877 rm -f conftest.$ac_objext
19878 if { (ac_try="$ac_compile"
19879 case "(($ac_try" in
19880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881 *) ac_try_echo=$ac_try;;
19883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19884 (eval "$ac_compile") 2>conftest.er1
19886 grep -v '^ *+' conftest.er1 >conftest.err
19888 cat conftest.err >&5
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); } && {
19891 test -z "$ac_c_werror_flag" ||
19892 test ! -s conftest.err
19893 } && test -s conftest.$ac_objext; then
19894 ac_cv_prog_cc_c89=$ac_arg
19896 echo "$as_me: failed program was:" >&5
19897 sed 's/^/| /' conftest.$ac_ext >&5
19902 rm -f core conftest.err conftest.$ac_objext
19903 test "x$ac_cv_prog_cc_c89" != "xno" && break
19905 rm -f conftest.$ac_ext
19910 case "x$ac_cv_prog_cc_c89" in
19912 { echo "$as_me:$LINENO: result: none needed" >&5
19913 echo "${ECHO_T}none needed" >&6; } ;;
19915 { echo "$as_me:$LINENO: result: unsupported" >&5
19916 echo "${ECHO_T}unsupported" >&6; } ;;
19918 CC="$CC $ac_cv_prog_cc_c89"
19919 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19920 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19925 ac_cpp='$CPP $CPPFLAGS'
19926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19930 depcc="$CC" am_compiler_list=
19932 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19933 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19934 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19935 echo $ECHO_N "(cached) $ECHO_C" >&6
19937 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19938 # We make a subdir and do the tests there. Otherwise we can end up
19939 # making bogus files that we don't know about and never remove. For
19940 # instance it was reported that on HP-UX the gcc test will end up
19941 # making a dummy file named `D' -- because `-MD' means `put the output
19944 # Copy depcomp to subdir because otherwise we won't find it if we're
19945 # using a relative directory.
19946 cp "$am_depcomp" conftest.dir
19948 # We will build objects and dependencies in a subdirectory because
19949 # it helps to detect inapplicable dependency modes. For instance
19950 # both Tru64's cc and ICC support -MD to output dependencies as a
19951 # side effect of compilation, but ICC will put the dependencies in
19952 # the current directory while Tru64 will put them in the object
19956 am_cv_CC_dependencies_compiler_type=none
19957 if test "$am_compiler_list" = ""; then
19958 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19960 for depmode in $am_compiler_list; do
19961 # Setup a source with many dependencies, because some compilers
19962 # like to wrap large dependency lists on column 80 (with \), and
19963 # we should not choose a depcomp mode which is confused by this.
19965 # We need to recreate these files for each test, as the compiler may
19966 # overwrite some of them when testing with obscure command lines.
19967 # This happens at least with the AIX C compiler.
19969 for i in 1 2 3 4 5 6; do
19970 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19971 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19972 # Solaris 8's {/usr,}/bin/sh.
19973 touch sub/conftst$i.h
19975 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19979 # after this tag, mechanisms are not by side-effect, so they'll
19980 # only be used when explicitly requested
19981 if test "x$enable_dependency_tracking" = xyes; then
19989 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19990 # mode. It turns out that the SunPro C++ compiler does not properly
19991 # handle `-M -o', and we need to detect this.
19992 if depmode=$depmode \
19993 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19994 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19995 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19996 >/dev/null 2>conftest.err &&
19997 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19998 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19999 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20000 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20001 # icc doesn't choke on unknown options, it will just issue warnings
20002 # or remarks (even with -Werror). So we grep stderr for any message
20003 # that says an option was ignored or not supported.
20004 # When given -MP, icc 7.0 and 7.1 complain thusly:
20005 # icc: Command line warning: ignoring option '-M'; no argument required
20006 # The diagnosis changed in icc 8.0:
20007 # icc: Command line remark: option '-MP' not supported
20008 if (grep 'ignoring option' conftest.err ||
20009 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20010 am_cv_CC_dependencies_compiler_type=$depmode
20017 rm -rf conftest.dir
20019 am_cv_CC_dependencies_compiler_type=none
20023 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20024 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20025 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20028 test "x$enable_dependency_tracking" != xno \
20029 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20030 am__fastdepCC_TRUE=
20031 am__fastdepCC_FALSE='#'
20033 am__fastdepCC_TRUE='#'
20034 am__fastdepCC_FALSE=
20038 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20039 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
20042 echo timestamp > conftest.file
20043 # Do `set' in a subshell so we don't clobber the current shell's
20044 # arguments. Must try -L first in case configure is actually a
20045 # symlink; some systems play weird games with the mod time of symlinks
20046 # (eg FreeBSD returns the mod time of the symlink's containing
20049 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
20050 if test "$*" = "X"; then
20052 set X `ls -t $srcdir/configure conftest.file`
20054 rm -f conftest.file
20055 if test "$*" != "X $srcdir/configure conftest.file" \
20056 && test "$*" != "X conftest.file $srcdir/configure"; then
20058 # If neither matched, then we have a broken ls. This can happen
20059 # if, for instance, CONFIG_SHELL is bash and it inherits a
20060 # broken ls alias from the environment. This has actually
20061 # happened. Such a system could not be considered "sane".
20062 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
20063 alias in your environment" >&5
20064 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
20065 alias in your environment" >&2;}
20066 { (exit 1); exit 1; }; }
20069 test "$2" = conftest.file
20075 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20076 Check your system clock" >&5
20077 echo "$as_me: error: newly created file is older than distributed files!
20078 Check your system clock" >&2;}
20079 { (exit 1); exit 1; }; }
20081 { echo "$as_me:$LINENO: result: yes" >&5
20082 echo "${ECHO_T}yes" >&6; }
20083 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20084 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20085 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20086 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20087 echo $ECHO_N "(cached) $ECHO_C" >&6
20089 cat >conftest.make <<\_ACEOF
20092 @echo '@@@%%%=$(MAKE)=@@@%%%'
20094 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20095 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20096 *@@@%%%=?*=@@@%%%*)
20097 eval ac_cv_prog_make_${ac_make}_set=yes;;
20099 eval ac_cv_prog_make_${ac_make}_set=no;;
20101 rm -f conftest.make
20103 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20104 { echo "$as_me:$LINENO: result: yes" >&5
20105 echo "${ECHO_T}yes" >&6; }
20108 { echo "$as_me:$LINENO: result: no" >&5
20109 echo "${ECHO_T}no" >&6; }
20110 SET_MAKE="MAKE=${MAKE-make}"
20114 { echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
20115 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6; }
20116 if test "$cross_compiling" = yes; then
20117 { echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
20118 echo "${ECHO_T}assuming the worse in cross-compilation" >&6; }
20120 cat >conftest.$ac_ext <<_ACEOF
20123 cat confdefs.h >>conftest.$ac_ext
20124 cat >>conftest.$ac_ext <<_ACEOF
20125 /* end confdefs.h. */
20135 rm -f conftest$ac_exeext
20136 if { (ac_try="$ac_link"
20137 case "(($ac_try" in
20138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20139 *) ac_try_echo=$ac_try;;
20141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20142 (eval "$ac_link") 2>&5
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20146 { (case "(($ac_try" in
20147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148 *) ac_try_echo=$ac_try;;
20150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20151 (eval "$ac_try") 2>&5
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; }; then
20156 cat >>confdefs.h <<\_ACEOF
20157 #define PRINTF_NULL_WORKING 1
20160 { echo "$as_me:$LINENO: result: yes" >&5
20161 echo "${ECHO_T}yes" >&6; }
20163 echo "$as_me: program exited with status $ac_status" >&5
20164 echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.$ac_ext >&5
20167 ( exit $ac_status )
20168 { echo "$as_me:$LINENO: result: no" >&5
20169 echo "${ECHO_T}no" >&6; }
20171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20177 { echo "$as_me:$LINENO: checking for va_copy() function" >&5
20178 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6; }
20179 if test "${ac_cv_va_copy+set}" = set; then
20180 echo $ECHO_N "(cached) $ECHO_C" >&6
20187 if test ".$ac_cv_va_copy" = .; then
20188 if test "$cross_compiling" = yes; then
20189 ac_cv_va_copy="C99"
20191 cat >conftest.$ac_ext <<_ACEOF
20194 cat confdefs.h >>conftest.$ac_ext
20195 cat >>conftest.$ac_ext <<_ACEOF
20196 /* end confdefs.h. */
20198 #include <stdlib.h>
20199 #include <stdarg.h>
20200 #include <string.h>
20201 #define DO_VA_COPY(d, s) va_copy((d), (s))
20202 void test(char *str, ...)
20207 DO_VA_COPY(ap2, ap);
20208 for (i = 1; i <= 9; i++) {
20209 int k = (int)va_arg(ap, int);
20213 DO_VA_COPY(ap, ap2);
20214 for (i = 1; i <= 9; i++) {
20215 int k = (int)va_arg(ap, int);
20221 int main(int argc, char *argv[])
20223 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20228 rm -f conftest$ac_exeext
20229 if { (ac_try="$ac_link"
20230 case "(($ac_try" in
20231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232 *) ac_try_echo=$ac_try;;
20234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20235 (eval "$ac_link") 2>&5
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20239 { (case "(($ac_try" in
20240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20241 *) ac_try_echo=$ac_try;;
20243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20244 (eval "$ac_try") 2>&5
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); }; }; then
20248 ac_cv_va_copy="C99"
20250 echo "$as_me: program exited with status $ac_status" >&5
20251 echo "$as_me: failed program was:" >&5
20252 sed 's/^/| /' conftest.$ac_ext >&5
20255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20264 if test ".$ac_cv_va_copy" = .; then
20265 if test "$cross_compiling" = yes; then
20266 ac_cv_va_copy="GCM"
20268 cat >conftest.$ac_ext <<_ACEOF
20271 cat confdefs.h >>conftest.$ac_ext
20272 cat >>conftest.$ac_ext <<_ACEOF
20273 /* end confdefs.h. */
20275 #include <stdlib.h>
20276 #include <stdarg.h>
20277 #include <string.h>
20278 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
20279 void test(char *str, ...)
20284 DO_VA_COPY(ap2, ap);
20285 for (i = 1; i <= 9; i++) {
20286 int k = (int)va_arg(ap, int);
20290 DO_VA_COPY(ap, ap2);
20291 for (i = 1; i <= 9; i++) {
20292 int k = (int)va_arg(ap, int);
20298 int main(int argc, char *argv[])
20300 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20305 rm -f conftest$ac_exeext
20306 if { (ac_try="$ac_link"
20307 case "(($ac_try" in
20308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20309 *) ac_try_echo=$ac_try;;
20311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20312 (eval "$ac_link") 2>&5
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20316 { (case "(($ac_try" in
20317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20318 *) ac_try_echo=$ac_try;;
20320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20321 (eval "$ac_try") 2>&5
20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324 (exit $ac_status); }; }; then
20325 ac_cv_va_copy="GCM"
20327 echo "$as_me: program exited with status $ac_status" >&5
20328 echo "$as_me: failed program was:" >&5
20329 sed 's/^/| /' conftest.$ac_ext >&5
20332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20341 if test ".$ac_cv_va_copy" = .; then
20342 if test "$cross_compiling" = yes; then
20343 ac_cv_va_copy="GCH"
20345 cat >conftest.$ac_ext <<_ACEOF
20348 cat confdefs.h >>conftest.$ac_ext
20349 cat >>conftest.$ac_ext <<_ACEOF
20350 /* end confdefs.h. */
20352 #include <stdlib.h>
20353 #include <stdarg.h>
20354 #include <string.h>
20355 #define DO_VA_COPY(d, s) __va_copy((d), (s))
20356 void test(char *str, ...)
20361 DO_VA_COPY(ap2, ap);
20362 for (i = 1; i <= 9; i++) {
20363 int k = (int)va_arg(ap, int);
20367 DO_VA_COPY(ap, ap2);
20368 for (i = 1; i <= 9; i++) {
20369 int k = (int)va_arg(ap, int);
20375 int main(int argc, char *argv[])
20377 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20382 rm -f conftest$ac_exeext
20383 if { (ac_try="$ac_link"
20384 case "(($ac_try" in
20385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20386 *) ac_try_echo=$ac_try;;
20388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20389 (eval "$ac_link") 2>&5
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20393 { (case "(($ac_try" in
20394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20395 *) ac_try_echo=$ac_try;;
20397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20398 (eval "$ac_try") 2>&5
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); }; }; then
20402 ac_cv_va_copy="GCH"
20404 echo "$as_me: program exited with status $ac_status" >&5
20405 echo "$as_me: failed program was:" >&5
20406 sed 's/^/| /' conftest.$ac_ext >&5
20409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20418 if test ".$ac_cv_va_copy" = .; then
20419 if test "$cross_compiling" = yes; then
20420 ac_cv_va_copy="GCB"
20422 cat >conftest.$ac_ext <<_ACEOF
20425 cat confdefs.h >>conftest.$ac_ext
20426 cat >>conftest.$ac_ext <<_ACEOF
20427 /* end confdefs.h. */
20429 #include <stdlib.h>
20430 #include <stdarg.h>
20431 #include <string.h>
20432 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
20433 void test(char *str, ...)
20438 DO_VA_COPY(ap2, ap);
20439 for (i = 1; i <= 9; i++) {
20440 int k = (int)va_arg(ap, int);
20444 DO_VA_COPY(ap, ap2);
20445 for (i = 1; i <= 9; i++) {
20446 int k = (int)va_arg(ap, int);
20452 int main(int argc, char *argv[])
20454 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20459 rm -f conftest$ac_exeext
20460 if { (ac_try="$ac_link"
20461 case "(($ac_try" in
20462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20463 *) ac_try_echo=$ac_try;;
20465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20466 (eval "$ac_link") 2>&5
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20470 { (case "(($ac_try" in
20471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20472 *) ac_try_echo=$ac_try;;
20474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20475 (eval "$ac_try") 2>&5
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); }; }; then
20479 ac_cv_va_copy="GCB"
20481 echo "$as_me: program exited with status $ac_status" >&5
20482 echo "$as_me: failed program was:" >&5
20483 sed 's/^/| /' conftest.$ac_ext >&5
20486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20495 if test ".$ac_cv_va_copy" = .; then
20496 if test "$cross_compiling" = yes; then
20497 ac_cv_va_copy="ASS"
20499 cat >conftest.$ac_ext <<_ACEOF
20502 cat confdefs.h >>conftest.$ac_ext
20503 cat >>conftest.$ac_ext <<_ACEOF
20504 /* end confdefs.h. */
20506 #include <stdlib.h>
20507 #include <stdarg.h>
20508 #include <string.h>
20509 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
20510 void test(char *str, ...)
20515 DO_VA_COPY(ap2, ap);
20516 for (i = 1; i <= 9; i++) {
20517 int k = (int)va_arg(ap, int);
20521 DO_VA_COPY(ap, ap2);
20522 for (i = 1; i <= 9; i++) {
20523 int k = (int)va_arg(ap, int);
20529 int main(int argc, char *argv[])
20531 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20536 rm -f conftest$ac_exeext
20537 if { (ac_try="$ac_link"
20538 case "(($ac_try" in
20539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20540 *) ac_try_echo=$ac_try;;
20542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20543 (eval "$ac_link") 2>&5
20545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20547 { (case "(($ac_try" in
20548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20549 *) ac_try_echo=$ac_try;;
20551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20552 (eval "$ac_try") 2>&5
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); }; }; then
20556 ac_cv_va_copy="ASS"
20558 echo "$as_me: program exited with status $ac_status" >&5
20559 echo "$as_me: failed program was:" >&5
20560 sed 's/^/| /' conftest.$ac_ext >&5
20563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20572 if test ".$ac_cv_va_copy" = .; then
20573 if test "$cross_compiling" = yes; then
20574 ac_cv_va_copy="ASP"
20576 cat >conftest.$ac_ext <<_ACEOF
20579 cat confdefs.h >>conftest.$ac_ext
20580 cat >>conftest.$ac_ext <<_ACEOF
20581 /* end confdefs.h. */
20583 #include <stdlib.h>
20584 #include <stdarg.h>
20585 #include <string.h>
20586 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
20587 void test(char *str, ...)
20592 DO_VA_COPY(ap2, ap);
20593 for (i = 1; i <= 9; i++) {
20594 int k = (int)va_arg(ap, int);
20598 DO_VA_COPY(ap, ap2);
20599 for (i = 1; i <= 9; i++) {
20600 int k = (int)va_arg(ap, int);
20606 int main(int argc, char *argv[])
20608 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20613 rm -f conftest$ac_exeext
20614 if { (ac_try="$ac_link"
20615 case "(($ac_try" in
20616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20617 *) ac_try_echo=$ac_try;;
20619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20620 (eval "$ac_link") 2>&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20624 { (case "(($ac_try" in
20625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626 *) ac_try_echo=$ac_try;;
20628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20629 (eval "$ac_try") 2>&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); }; }; then
20633 ac_cv_va_copy="ASP"
20635 echo "$as_me: program exited with status $ac_status" >&5
20636 echo "$as_me: failed program was:" >&5
20637 sed 's/^/| /' conftest.$ac_ext >&5
20640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20649 if test ".$ac_cv_va_copy" = .; then
20650 if test "$cross_compiling" = yes; then
20651 ac_cv_va_copy="CPS"
20653 cat >conftest.$ac_ext <<_ACEOF
20656 cat confdefs.h >>conftest.$ac_ext
20657 cat >>conftest.$ac_ext <<_ACEOF
20658 /* end confdefs.h. */
20660 #include <stdlib.h>
20661 #include <stdarg.h>
20662 #include <string.h>
20663 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
20664 void test(char *str, ...)
20669 DO_VA_COPY(ap2, ap);
20670 for (i = 1; i <= 9; i++) {
20671 int k = (int)va_arg(ap, int);
20675 DO_VA_COPY(ap, ap2);
20676 for (i = 1; i <= 9; i++) {
20677 int k = (int)va_arg(ap, int);
20683 int main(int argc, char *argv[])
20685 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20690 rm -f conftest$ac_exeext
20691 if { (ac_try="$ac_link"
20692 case "(($ac_try" in
20693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20694 *) ac_try_echo=$ac_try;;
20696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20697 (eval "$ac_link") 2>&5
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20701 { (case "(($ac_try" in
20702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20703 *) ac_try_echo=$ac_try;;
20705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20706 (eval "$ac_try") 2>&5
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); }; }; then
20710 ac_cv_va_copy="CPS"
20712 echo "$as_me: program exited with status $ac_status" >&5
20713 echo "$as_me: failed program was:" >&5
20714 sed 's/^/| /' conftest.$ac_ext >&5
20717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20726 if test ".$ac_cv_va_copy" = .; then
20727 if test "$cross_compiling" = yes; then
20728 ac_cv_va_copy="CPP"
20730 cat >conftest.$ac_ext <<_ACEOF
20733 cat confdefs.h >>conftest.$ac_ext
20734 cat >>conftest.$ac_ext <<_ACEOF
20735 /* end confdefs.h. */
20737 #include <stdlib.h>
20738 #include <stdarg.h>
20739 #include <string.h>
20740 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
20741 void test(char *str, ...)
20746 DO_VA_COPY(ap2, ap);
20747 for (i = 1; i <= 9; i++) {
20748 int k = (int)va_arg(ap, int);
20752 DO_VA_COPY(ap, ap2);
20753 for (i = 1; i <= 9; i++) {
20754 int k = (int)va_arg(ap, int);
20760 int main(int argc, char *argv[])
20762 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20767 rm -f conftest$ac_exeext
20768 if { (ac_try="$ac_link"
20769 case "(($ac_try" in
20770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20771 *) ac_try_echo=$ac_try;;
20773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20774 (eval "$ac_link") 2>&5
20776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20778 { (case "(($ac_try" in
20779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20780 *) ac_try_echo=$ac_try;;
20782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20783 (eval "$ac_try") 2>&5
20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); }; }; then
20787 ac_cv_va_copy="CPP"
20789 echo "$as_me: program exited with status $ac_status" >&5
20790 echo "$as_me: failed program was:" >&5
20791 sed 's/^/| /' conftest.$ac_ext >&5
20794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20800 if test ".$ac_cv_va_copy" = .; then
20801 { { echo "$as_me:$LINENO: error: no working implementation found" >&5
20802 echo "$as_me: error: no working implementation found" >&2;}
20803 { (exit 1); exit 1; }; }
20808 if test ".$ac_cv_va_copy" = ".C99"; then
20810 cat >>confdefs.h <<\_ACEOF
20811 #define HAVE_VA_COPY 1
20816 cat >>confdefs.h <<_ACEOF
20817 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
20822 if test ".$ac_cv_va_copy" = ".C99"; then
20823 { echo "$as_me:$LINENO: result: yes" >&5
20824 echo "${ECHO_T}yes" >&6; }
20826 { echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
20827 echo "${ECHO_T}no (using fallback implementation)" >&6; }
20831 # Checks for header files.
20832 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20833 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20834 if test "${ac_cv_header_stdc+set}" = set; then
20835 echo $ECHO_N "(cached) $ECHO_C" >&6
20837 cat >conftest.$ac_ext <<_ACEOF
20840 cat confdefs.h >>conftest.$ac_ext
20841 cat >>conftest.$ac_ext <<_ACEOF
20842 /* end confdefs.h. */
20843 #include <stdlib.h>
20844 #include <stdarg.h>
20845 #include <string.h>
20856 rm -f conftest.$ac_objext
20857 if { (ac_try="$ac_compile"
20858 case "(($ac_try" in
20859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20860 *) ac_try_echo=$ac_try;;
20862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20863 (eval "$ac_compile") 2>conftest.er1
20865 grep -v '^ *+' conftest.er1 >conftest.err
20867 cat conftest.err >&5
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); } && {
20870 test -z "$ac_c_werror_flag" ||
20871 test ! -s conftest.err
20872 } && test -s conftest.$ac_objext; then
20873 ac_cv_header_stdc=yes
20875 echo "$as_me: failed program was:" >&5
20876 sed 's/^/| /' conftest.$ac_ext >&5
20878 ac_cv_header_stdc=no
20881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20883 if test $ac_cv_header_stdc = yes; then
20884 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20885 cat >conftest.$ac_ext <<_ACEOF
20888 cat confdefs.h >>conftest.$ac_ext
20889 cat >>conftest.$ac_ext <<_ACEOF
20890 /* end confdefs.h. */
20891 #include <string.h>
20894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20895 $EGREP "memchr" >/dev/null 2>&1; then
20898 ac_cv_header_stdc=no
20904 if test $ac_cv_header_stdc = yes; then
20905 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20906 cat >conftest.$ac_ext <<_ACEOF
20909 cat confdefs.h >>conftest.$ac_ext
20910 cat >>conftest.$ac_ext <<_ACEOF
20911 /* end confdefs.h. */
20912 #include <stdlib.h>
20915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20916 $EGREP "free" >/dev/null 2>&1; then
20919 ac_cv_header_stdc=no
20925 if test $ac_cv_header_stdc = yes; then
20926 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20927 if test "$cross_compiling" = yes; then
20930 cat >conftest.$ac_ext <<_ACEOF
20933 cat confdefs.h >>conftest.$ac_ext
20934 cat >>conftest.$ac_ext <<_ACEOF
20935 /* end confdefs.h. */
20937 #include <stdlib.h>
20938 #if ((' ' & 0x0FF) == 0x020)
20939 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20940 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20942 # define ISLOWER(c) \
20943 (('a' <= (c) && (c) <= 'i') \
20944 || ('j' <= (c) && (c) <= 'r') \
20945 || ('s' <= (c) && (c) <= 'z'))
20946 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20949 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20954 for (i = 0; i < 256; i++)
20955 if (XOR (islower (i), ISLOWER (i))
20956 || toupper (i) != TOUPPER (i))
20961 rm -f conftest$ac_exeext
20962 if { (ac_try="$ac_link"
20963 case "(($ac_try" in
20964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20965 *) ac_try_echo=$ac_try;;
20967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20968 (eval "$ac_link") 2>&5
20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20972 { (case "(($ac_try" in
20973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20974 *) ac_try_echo=$ac_try;;
20976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20977 (eval "$ac_try") 2>&5
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); }; }; then
20983 echo "$as_me: program exited with status $ac_status" >&5
20984 echo "$as_me: failed program was:" >&5
20985 sed 's/^/| /' conftest.$ac_ext >&5
20987 ( exit $ac_status )
20988 ac_cv_header_stdc=no
20990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20996 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20997 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20998 if test $ac_cv_header_stdc = yes; then
21000 cat >>confdefs.h <<\_ACEOF
21001 #define STDC_HEADERS 1
21006 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21007 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21008 if test "${ac_cv_header_time+set}" = set; then
21009 echo $ECHO_N "(cached) $ECHO_C" >&6
21011 cat >conftest.$ac_ext <<_ACEOF
21014 cat confdefs.h >>conftest.$ac_ext
21015 cat >>conftest.$ac_ext <<_ACEOF
21016 /* end confdefs.h. */
21017 #include <sys/types.h>
21018 #include <sys/time.h>
21024 if ((struct tm *) 0)
21030 rm -f conftest.$ac_objext
21031 if { (ac_try="$ac_compile"
21032 case "(($ac_try" in
21033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21034 *) ac_try_echo=$ac_try;;
21036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21037 (eval "$ac_compile") 2>conftest.er1
21039 grep -v '^ *+' conftest.er1 >conftest.err
21041 cat conftest.err >&5
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); } && {
21044 test -z "$ac_c_werror_flag" ||
21045 test ! -s conftest.err
21046 } && test -s conftest.$ac_objext; then
21047 ac_cv_header_time=yes
21049 echo "$as_me: failed program was:" >&5
21050 sed 's/^/| /' conftest.$ac_ext >&5
21052 ac_cv_header_time=no
21055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21057 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21058 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21059 if test $ac_cv_header_time = yes; then
21061 cat >>confdefs.h <<\_ACEOF
21062 #define TIME_WITH_SYS_TIME 1
21077 for ac_header in sys/socket.h \
21079 windows.h winsock.h winsock2.h \
21085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21087 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21090 echo $ECHO_N "(cached) $ECHO_C" >&6
21092 ac_res=`eval echo '${'$as_ac_Header'}'`
21093 { echo "$as_me:$LINENO: result: $ac_res" >&5
21094 echo "${ECHO_T}$ac_res" >&6; }
21096 # Is the header compilable?
21097 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21099 cat >conftest.$ac_ext <<_ACEOF
21102 cat confdefs.h >>conftest.$ac_ext
21103 cat >>conftest.$ac_ext <<_ACEOF
21104 /* end confdefs.h. */
21105 $ac_includes_default
21106 #include <$ac_header>
21108 rm -f conftest.$ac_objext
21109 if { (ac_try="$ac_compile"
21110 case "(($ac_try" in
21111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21112 *) ac_try_echo=$ac_try;;
21114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21115 (eval "$ac_compile") 2>conftest.er1
21117 grep -v '^ *+' conftest.er1 >conftest.err
21119 cat conftest.err >&5
21120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); } && {
21122 test -z "$ac_c_werror_flag" ||
21123 test ! -s conftest.err
21124 } && test -s conftest.$ac_objext; then
21125 ac_header_compiler=yes
21127 echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.$ac_ext >&5
21130 ac_header_compiler=no
21133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21134 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21135 echo "${ECHO_T}$ac_header_compiler" >&6; }
21137 # Is the header present?
21138 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21140 cat >conftest.$ac_ext <<_ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h. */
21146 #include <$ac_header>
21148 if { (ac_try="$ac_cpp conftest.$ac_ext"
21149 case "(($ac_try" in
21150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21151 *) ac_try_echo=$ac_try;;
21153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21156 grep -v '^ *+' conftest.er1 >conftest.err
21158 cat conftest.err >&5
21159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160 (exit $ac_status); } >/dev/null && {
21161 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21162 test ! -s conftest.err
21164 ac_header_preproc=yes
21166 echo "$as_me: failed program was:" >&5
21167 sed 's/^/| /' conftest.$ac_ext >&5
21169 ac_header_preproc=no
21172 rm -f conftest.err conftest.$ac_ext
21173 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21174 echo "${ECHO_T}$ac_header_preproc" >&6; }
21176 # So? What about this header?
21177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21179 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21180 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21182 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21183 ac_header_preproc=yes
21186 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21187 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21188 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21189 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21190 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21191 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21192 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21193 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21196 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21197 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21199 ## -------------------------------------------------- ##
21200 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
21201 ## -------------------------------------------------- ##
21203 ) | sed "s/^/$as_me: WARNING: /" >&2
21206 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21209 echo $ECHO_N "(cached) $ECHO_C" >&6
21211 eval "$as_ac_Header=\$ac_header_preproc"
21213 ac_res=`eval echo '${'$as_ac_Header'}'`
21214 { echo "$as_me:$LINENO: result: $ac_res" >&5
21215 echo "${ECHO_T}$ac_res" >&6; }
21218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21219 cat >>confdefs.h <<_ACEOF
21220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21235 for ac_func in gettimeofday usleep \
21243 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21244 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21246 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21247 echo $ECHO_N "(cached) $ECHO_C" >&6
21249 cat >conftest.$ac_ext <<_ACEOF
21252 cat confdefs.h >>conftest.$ac_ext
21253 cat >>conftest.$ac_ext <<_ACEOF
21254 /* end confdefs.h. */
21255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21257 #define $ac_func innocuous_$ac_func
21259 /* System header to define __stub macros and hopefully few prototypes,
21260 which can conflict with char $ac_func (); below.
21261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21262 <limits.h> exists even on freestanding compilers. */
21265 # include <limits.h>
21267 # include <assert.h>
21272 /* Override any GCC internal prototype to avoid an error.
21273 Use char because int might match the return type of a GCC
21274 builtin and then its argument prototype would still apply. */
21279 /* The GNU C library defines this for functions which it implements
21280 to always fail with ENOSYS. Some functions are actually named
21281 something starting with __ and the normal name is an alias. */
21282 #if defined __stub_$ac_func || defined __stub___$ac_func
21289 return $ac_func ();
21294 rm -f conftest.$ac_objext conftest$ac_exeext
21295 if { (ac_try="$ac_link"
21296 case "(($ac_try" in
21297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21298 *) ac_try_echo=$ac_try;;
21300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21301 (eval "$ac_link") 2>conftest.er1
21303 grep -v '^ *+' conftest.er1 >conftest.err
21305 cat conftest.err >&5
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); } && {
21308 test -z "$ac_c_werror_flag" ||
21309 test ! -s conftest.err
21310 } && test -s conftest$ac_exeext &&
21311 $as_test_x conftest$ac_exeext; then
21312 eval "$as_ac_var=yes"
21314 echo "$as_me: failed program was:" >&5
21315 sed 's/^/| /' conftest.$ac_ext >&5
21317 eval "$as_ac_var=no"
21320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21321 conftest$ac_exeext conftest.$ac_ext
21323 ac_res=`eval echo '${'$as_ac_var'}'`
21324 { echo "$as_me:$LINENO: result: $ac_res" >&5
21325 echo "${ECHO_T}$ac_res" >&6; }
21326 if test `eval echo '${'$as_ac_var'}'` = yes; then
21327 cat >>confdefs.h <<_ACEOF
21328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21335 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
21338 for ac_func in snprintf vsnprintf
21340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21341 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21343 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21344 echo $ECHO_N "(cached) $ECHO_C" >&6
21346 cat >conftest.$ac_ext <<_ACEOF
21349 cat confdefs.h >>conftest.$ac_ext
21350 cat >>conftest.$ac_ext <<_ACEOF
21351 /* end confdefs.h. */
21352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21354 #define $ac_func innocuous_$ac_func
21356 /* System header to define __stub macros and hopefully few prototypes,
21357 which can conflict with char $ac_func (); below.
21358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21359 <limits.h> exists even on freestanding compilers. */
21362 # include <limits.h>
21364 # include <assert.h>
21369 /* Override any GCC internal prototype to avoid an error.
21370 Use char because int might match the return type of a GCC
21371 builtin and then its argument prototype would still apply. */
21376 /* The GNU C library defines this for functions which it implements
21377 to always fail with ENOSYS. Some functions are actually named
21378 something starting with __ and the normal name is an alias. */
21379 #if defined __stub_$ac_func || defined __stub___$ac_func
21386 return $ac_func ();
21391 rm -f conftest.$ac_objext conftest$ac_exeext
21392 if { (ac_try="$ac_link"
21393 case "(($ac_try" in
21394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21395 *) ac_try_echo=$ac_try;;
21397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21398 (eval "$ac_link") 2>conftest.er1
21400 grep -v '^ *+' conftest.er1 >conftest.err
21402 cat conftest.err >&5
21403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); } && {
21405 test -z "$ac_c_werror_flag" ||
21406 test ! -s conftest.err
21407 } && test -s conftest$ac_exeext &&
21408 $as_test_x conftest$ac_exeext; then
21409 eval "$as_ac_var=yes"
21411 echo "$as_me: failed program was:" >&5
21412 sed 's/^/| /' conftest.$ac_ext >&5
21414 eval "$as_ac_var=no"
21417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21418 conftest$ac_exeext conftest.$ac_ext
21420 ac_res=`eval echo '${'$as_ac_var'}'`
21421 { echo "$as_me:$LINENO: result: $ac_res" >&5
21422 echo "${ECHO_T}$ac_res" >&6; }
21423 if test `eval echo '${'$as_ac_var'}'` = yes; then
21424 cat >>confdefs.h <<_ACEOF
21425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21431 { echo "$as_me:$LINENO: checking for working snprintf" >&5
21432 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
21433 if test "${ac_cv_have_working_snprintf+set}" = set; then
21434 echo $ECHO_N "(cached) $ECHO_C" >&6
21436 if test "$cross_compiling" = yes; then
21437 ac_cv_have_working_snprintf=cross
21439 cat >conftest.$ac_ext <<_ACEOF
21442 cat confdefs.h >>conftest.$ac_ext
21443 cat >>conftest.$ac_ext <<_ACEOF
21444 /* end confdefs.h. */
21449 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21450 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21452 i = snprintf (bufs, 2, "%s", "111");
21453 if (strcmp (bufs, "1")) exit (1);
21454 if (i != 3) exit (1);
21455 i = snprintf (bufd, 2, "%d", 111);
21456 if (strcmp (bufd, "1")) exit (1);
21457 if (i != 3) exit (1);
21461 rm -f conftest$ac_exeext
21462 if { (ac_try="$ac_link"
21463 case "(($ac_try" in
21464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21465 *) ac_try_echo=$ac_try;;
21467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21468 (eval "$ac_link") 2>&5
21470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21472 { (case "(($ac_try" in
21473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21474 *) ac_try_echo=$ac_try;;
21476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21477 (eval "$ac_try") 2>&5
21479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); }; }; then
21481 ac_cv_have_working_snprintf=yes
21483 echo "$as_me: program exited with status $ac_status" >&5
21484 echo "$as_me: failed program was:" >&5
21485 sed 's/^/| /' conftest.$ac_ext >&5
21487 ( exit $ac_status )
21488 ac_cv_have_working_snprintf=no
21490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21496 { echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
21497 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; }
21498 { echo "$as_me:$LINENO: checking for working vsnprintf" >&5
21499 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
21500 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
21501 echo $ECHO_N "(cached) $ECHO_C" >&6
21503 if test "$cross_compiling" = yes; then
21504 ac_cv_have_working_vsnprintf=cross
21506 cat >conftest.$ac_ext <<_ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h. */
21513 #include <stdarg.h>
21515 int my_vsnprintf (char *buf, const char *tmpl, ...)
21519 va_start (args, tmpl);
21520 i = vsnprintf (buf, 2, tmpl, args);
21527 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21528 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21530 i = my_vsnprintf (bufs, "%s", "111");
21531 if (strcmp (bufs, "1")) exit (1);
21532 if (i != 3) exit (1);
21533 i = my_vsnprintf (bufd, "%d", 111);
21534 if (strcmp (bufd, "1")) exit (1);
21535 if (i != 3) exit (1);
21539 rm -f conftest$ac_exeext
21540 if { (ac_try="$ac_link"
21541 case "(($ac_try" in
21542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21543 *) ac_try_echo=$ac_try;;
21545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21546 (eval "$ac_link") 2>&5
21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21550 { (case "(($ac_try" in
21551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21552 *) ac_try_echo=$ac_try;;
21554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21555 (eval "$ac_try") 2>&5
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); }; }; then
21559 ac_cv_have_working_vsnprintf=yes
21561 echo "$as_me: program exited with status $ac_status" >&5
21562 echo "$as_me: failed program was:" >&5
21563 sed 's/^/| /' conftest.$ac_ext >&5
21565 ( exit $ac_status )
21566 ac_cv_have_working_vsnprintf=no
21568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21574 { echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
21575 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; }
21576 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
21577 case " $LIBOBJS " in
21578 *" snprintf.$ac_objext "* ) ;;
21579 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21583 { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
21584 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
21586 cat >>confdefs.h <<\_ACEOF
21587 #define PREFER_PORTABLE_SNPRINTF 1
21591 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
21592 { echo "$as_me:$LINENO: checking for asprintf" >&5
21593 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6; }
21594 if test "${ac_cv_func_asprintf+set}" = set; then
21595 echo $ECHO_N "(cached) $ECHO_C" >&6
21597 cat >conftest.$ac_ext <<_ACEOF
21600 cat confdefs.h >>conftest.$ac_ext
21601 cat >>conftest.$ac_ext <<_ACEOF
21602 /* end confdefs.h. */
21603 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
21604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21605 #define asprintf innocuous_asprintf
21607 /* System header to define __stub macros and hopefully few prototypes,
21608 which can conflict with char asprintf (); below.
21609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21610 <limits.h> exists even on freestanding compilers. */
21613 # include <limits.h>
21615 # include <assert.h>
21620 /* Override any GCC internal prototype to avoid an error.
21621 Use char because int might match the return type of a GCC
21622 builtin and then its argument prototype would still apply. */
21627 /* The GNU C library defines this for functions which it implements
21628 to always fail with ENOSYS. Some functions are actually named
21629 something starting with __ and the normal name is an alias. */
21630 #if defined __stub_asprintf || defined __stub___asprintf
21637 return asprintf ();
21642 rm -f conftest.$ac_objext conftest$ac_exeext
21643 if { (ac_try="$ac_link"
21644 case "(($ac_try" in
21645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21646 *) ac_try_echo=$ac_try;;
21648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21649 (eval "$ac_link") 2>conftest.er1
21651 grep -v '^ *+' conftest.er1 >conftest.err
21653 cat conftest.err >&5
21654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655 (exit $ac_status); } && {
21656 test -z "$ac_c_werror_flag" ||
21657 test ! -s conftest.err
21658 } && test -s conftest$ac_exeext &&
21659 $as_test_x conftest$ac_exeext; then
21660 ac_cv_func_asprintf=yes
21662 echo "$as_me: failed program was:" >&5
21663 sed 's/^/| /' conftest.$ac_ext >&5
21665 ac_cv_func_asprintf=no
21668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21669 conftest$ac_exeext conftest.$ac_ext
21671 { echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
21672 echo "${ECHO_T}$ac_cv_func_asprintf" >&6; }
21673 if test $ac_cv_func_asprintf = yes; then
21677 cat >>confdefs.h <<\_ACEOF
21678 #define NEED_ASPRINTF 1
21683 { echo "$as_me:$LINENO: checking for vasprintf" >&5
21684 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6; }
21685 if test "${ac_cv_func_vasprintf+set}" = set; then
21686 echo $ECHO_N "(cached) $ECHO_C" >&6
21688 cat >conftest.$ac_ext <<_ACEOF
21691 cat confdefs.h >>conftest.$ac_ext
21692 cat >>conftest.$ac_ext <<_ACEOF
21693 /* end confdefs.h. */
21694 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
21695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21696 #define vasprintf innocuous_vasprintf
21698 /* System header to define __stub macros and hopefully few prototypes,
21699 which can conflict with char vasprintf (); below.
21700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21701 <limits.h> exists even on freestanding compilers. */
21704 # include <limits.h>
21706 # include <assert.h>
21711 /* Override any GCC internal prototype to avoid an error.
21712 Use char because int might match the return type of a GCC
21713 builtin and then its argument prototype would still apply. */
21718 /* The GNU C library defines this for functions which it implements
21719 to always fail with ENOSYS. Some functions are actually named
21720 something starting with __ and the normal name is an alias. */
21721 #if defined __stub_vasprintf || defined __stub___vasprintf
21728 return vasprintf ();
21733 rm -f conftest.$ac_objext conftest$ac_exeext
21734 if { (ac_try="$ac_link"
21735 case "(($ac_try" in
21736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21737 *) ac_try_echo=$ac_try;;
21739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21740 (eval "$ac_link") 2>conftest.er1
21742 grep -v '^ *+' conftest.er1 >conftest.err
21744 cat conftest.err >&5
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); } && {
21747 test -z "$ac_c_werror_flag" ||
21748 test ! -s conftest.err
21749 } && test -s conftest$ac_exeext &&
21750 $as_test_x conftest$ac_exeext; then
21751 ac_cv_func_vasprintf=yes
21753 echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21756 ac_cv_func_vasprintf=no
21759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21760 conftest$ac_exeext conftest.$ac_ext
21762 { echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
21763 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6; }
21764 if test $ac_cv_func_vasprintf = yes; then
21768 cat >>confdefs.h <<\_ACEOF
21769 #define NEED_VASPRINTF 1
21775 # Checks for typedefs, structures, and compiler characteristics.
21776 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21777 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21778 if test "${ac_cv_c_const+set}" = set; then
21779 echo $ECHO_N "(cached) $ECHO_C" >&6
21781 cat >conftest.$ac_ext <<_ACEOF
21784 cat confdefs.h >>conftest.$ac_ext
21785 cat >>conftest.$ac_ext <<_ACEOF
21786 /* end confdefs.h. */
21791 /* FIXME: Include the comments suggested by Paul. */
21792 #ifndef __cplusplus
21793 /* Ultrix mips cc rejects this. */
21794 typedef int charset[2];
21796 /* SunOS 4.1.1 cc rejects this. */
21797 char const *const *pcpcc;
21799 /* NEC SVR4.0.2 mips cc rejects this. */
21800 struct point {int x, y;};
21801 static struct point const zero = {0,0};
21802 /* AIX XL C 1.02.0.0 rejects this.
21803 It does not let you subtract one const X* pointer from another in
21804 an arm of an if-expression whose if-part is not a constant
21806 const char *g = "string";
21807 pcpcc = &g + (g ? g-g : 0);
21808 /* HPUX 7.0 cc rejects these. */
21810 ppc = (char**) pcpcc;
21811 pcpcc = (char const *const *) ppc;
21812 { /* SCO 3.2v4 cc rejects this. */
21814 char const *s = 0 ? (char *) 0 : (char const *) 0;
21819 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21820 int x[] = {25, 17};
21821 const int *foo = &x[0];
21824 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21825 typedef const int *iptr;
21829 { /* AIX XL C 1.02.0.0 rejects this saying
21830 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21831 struct s { int j; const int *ap[3]; };
21832 struct s *b; b->j = 5;
21834 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21835 const int foo = 10;
21836 if (!foo) return 0;
21838 return !cs[0] && !zero.x;
21845 rm -f conftest.$ac_objext
21846 if { (ac_try="$ac_compile"
21847 case "(($ac_try" in
21848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21849 *) ac_try_echo=$ac_try;;
21851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21852 (eval "$ac_compile") 2>conftest.er1
21854 grep -v '^ *+' conftest.er1 >conftest.err
21856 cat conftest.err >&5
21857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858 (exit $ac_status); } && {
21859 test -z "$ac_c_werror_flag" ||
21860 test ! -s conftest.err
21861 } && test -s conftest.$ac_objext; then
21864 echo "$as_me: failed program was:" >&5
21865 sed 's/^/| /' conftest.$ac_ext >&5
21870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21872 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21873 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21874 if test $ac_cv_c_const = no; then
21876 cat >>confdefs.h <<\_ACEOF
21882 { echo "$as_me:$LINENO: checking for inline" >&5
21883 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21884 if test "${ac_cv_c_inline+set}" = set; then
21885 echo $ECHO_N "(cached) $ECHO_C" >&6
21888 for ac_kw in inline __inline__ __inline; do
21889 cat >conftest.$ac_ext <<_ACEOF
21892 cat confdefs.h >>conftest.$ac_ext
21893 cat >>conftest.$ac_ext <<_ACEOF
21894 /* end confdefs.h. */
21895 #ifndef __cplusplus
21897 static $ac_kw foo_t static_foo () {return 0; }
21898 $ac_kw foo_t foo () {return 0; }
21902 rm -f conftest.$ac_objext
21903 if { (ac_try="$ac_compile"
21904 case "(($ac_try" in
21905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21906 *) ac_try_echo=$ac_try;;
21908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21909 (eval "$ac_compile") 2>conftest.er1
21911 grep -v '^ *+' conftest.er1 >conftest.err
21913 cat conftest.err >&5
21914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); } && {
21916 test -z "$ac_c_werror_flag" ||
21917 test ! -s conftest.err
21918 } && test -s conftest.$ac_objext; then
21919 ac_cv_c_inline=$ac_kw
21921 echo "$as_me: failed program was:" >&5
21922 sed 's/^/| /' conftest.$ac_ext >&5
21927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21928 test "$ac_cv_c_inline" != no && break
21932 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21933 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21936 case $ac_cv_c_inline in
21939 case $ac_cv_c_inline in
21941 *) ac_val=$ac_cv_c_inline;;
21943 cat >>confdefs.h <<_ACEOF
21944 #ifndef __cplusplus
21945 #define inline $ac_val
21951 { echo "$as_me:$LINENO: checking for size_t" >&5
21952 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21953 if test "${ac_cv_type_size_t+set}" = set; then
21954 echo $ECHO_N "(cached) $ECHO_C" >&6
21956 cat >conftest.$ac_ext <<_ACEOF
21959 cat confdefs.h >>conftest.$ac_ext
21960 cat >>conftest.$ac_ext <<_ACEOF
21961 /* end confdefs.h. */
21962 $ac_includes_default
21963 typedef size_t ac__type_new_;
21967 if ((ac__type_new_ *) 0)
21969 if (sizeof (ac__type_new_))
21975 rm -f conftest.$ac_objext
21976 if { (ac_try="$ac_compile"
21977 case "(($ac_try" in
21978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21979 *) ac_try_echo=$ac_try;;
21981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21982 (eval "$ac_compile") 2>conftest.er1
21984 grep -v '^ *+' conftest.er1 >conftest.err
21986 cat conftest.err >&5
21987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); } && {
21989 test -z "$ac_c_werror_flag" ||
21990 test ! -s conftest.err
21991 } && test -s conftest.$ac_objext; then
21992 ac_cv_type_size_t=yes
21994 echo "$as_me: failed program was:" >&5
21995 sed 's/^/| /' conftest.$ac_ext >&5
21997 ac_cv_type_size_t=no
22000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22002 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22003 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22004 if test $ac_cv_type_size_t = yes; then
22008 cat >>confdefs.h <<_ACEOF
22009 #define size_t unsigned int
22015 ###################################
22016 ## SimGrid and GRAS specific checks
22020 { echo "$as_me:$LINENO: result: " >&5
22021 echo "${ECHO_T}" >&6; }
22022 { echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
22023 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6; }
22025 # Check architecture signature begin
22027 # Check for the architecture
22028 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22029 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22030 if test "${ac_cv_c_bigendian+set}" = set; then
22031 echo $ECHO_N "(cached) $ECHO_C" >&6
22033 # See if sys/param.h defines the BYTE_ORDER macro.
22034 cat >conftest.$ac_ext <<_ACEOF
22037 cat confdefs.h >>conftest.$ac_ext
22038 cat >>conftest.$ac_ext <<_ACEOF
22039 /* end confdefs.h. */
22040 #include <sys/types.h>
22041 #include <sys/param.h>
22046 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22047 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22048 bogus endian macros
22055 rm -f conftest.$ac_objext
22056 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
22072 # It does; now see whether it defined to BIG_ENDIAN or not.
22073 cat >conftest.$ac_ext <<_ACEOF
22076 cat confdefs.h >>conftest.$ac_ext
22077 cat >>conftest.$ac_ext <<_ACEOF
22078 /* end confdefs.h. */
22079 #include <sys/types.h>
22080 #include <sys/param.h>
22085 #if BYTE_ORDER != BIG_ENDIAN
22093 rm -f conftest.$ac_objext
22094 if { (ac_try="$ac_compile"
22095 case "(($ac_try" in
22096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22097 *) ac_try_echo=$ac_try;;
22099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22100 (eval "$ac_compile") 2>conftest.er1
22102 grep -v '^ *+' conftest.er1 >conftest.err
22104 cat conftest.err >&5
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); } && {
22107 test -z "$ac_c_werror_flag" ||
22108 test ! -s conftest.err
22109 } && test -s conftest.$ac_objext; then
22110 ac_cv_c_bigendian=yes
22112 echo "$as_me: failed program was:" >&5
22113 sed 's/^/| /' conftest.$ac_ext >&5
22115 ac_cv_c_bigendian=no
22118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22120 echo "$as_me: failed program was:" >&5
22121 sed 's/^/| /' conftest.$ac_ext >&5
22123 # It does not; compile a test program.
22124 if test "$cross_compiling" = yes; then
22125 # try to guess the endianness by grepping values into an object file
22126 ac_cv_c_bigendian=unknown
22127 cat >conftest.$ac_ext <<_ACEOF
22130 cat confdefs.h >>conftest.$ac_ext
22131 cat >>conftest.$ac_ext <<_ACEOF
22132 /* end confdefs.h. */
22133 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22134 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22135 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22136 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22137 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22138 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22142 _ascii (); _ebcdic ();
22147 rm -f conftest.$ac_objext
22148 if { (ac_try="$ac_compile"
22149 case "(($ac_try" in
22150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22151 *) ac_try_echo=$ac_try;;
22153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22154 (eval "$ac_compile") 2>conftest.er1
22156 grep -v '^ *+' conftest.er1 >conftest.err
22158 cat conftest.err >&5
22159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160 (exit $ac_status); } && {
22161 test -z "$ac_c_werror_flag" ||
22162 test ! -s conftest.err
22163 } && test -s conftest.$ac_objext; then
22164 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22165 ac_cv_c_bigendian=yes
22167 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22168 if test "$ac_cv_c_bigendian" = unknown; then
22169 ac_cv_c_bigendian=no
22171 # finding both strings is unlikely to happen, but who knows?
22172 ac_cv_c_bigendian=unknown
22176 echo "$as_me: failed program was:" >&5
22177 sed 's/^/| /' conftest.$ac_ext >&5
22182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22184 cat >conftest.$ac_ext <<_ACEOF
22187 cat confdefs.h >>conftest.$ac_ext
22188 cat >>conftest.$ac_ext <<_ACEOF
22189 /* end confdefs.h. */
22190 $ac_includes_default
22195 /* Are we little or big endian? From Harbison&Steele. */
22199 char c[sizeof (long int)];
22202 return u.c[sizeof (long int) - 1] == 1;
22208 rm -f conftest$ac_exeext
22209 if { (ac_try="$ac_link"
22210 case "(($ac_try" in
22211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22212 *) ac_try_echo=$ac_try;;
22214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22215 (eval "$ac_link") 2>&5
22217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22219 { (case "(($ac_try" in
22220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22221 *) ac_try_echo=$ac_try;;
22223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22224 (eval "$ac_try") 2>&5
22226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227 (exit $ac_status); }; }; then
22228 ac_cv_c_bigendian=no
22230 echo "$as_me: program exited with status $ac_status" >&5
22231 echo "$as_me: failed program was:" >&5
22232 sed 's/^/| /' conftest.$ac_ext >&5
22234 ( exit $ac_status )
22235 ac_cv_c_bigendian=yes
22237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22245 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22246 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22247 case $ac_cv_c_bigendian in
22253 { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
22254 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
22255 { (exit 1); exit 1; }; } ;;
22259 cat >>confdefs.h <<_ACEOF
22260 #define GRAS_BIGENDIAN $endian
22264 { echo "$as_me:$LINENO: checking size of char" >&5
22265 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22266 if test "${ac_cv_sizeof_char+set}" = set; then
22267 echo $ECHO_N "(cached) $ECHO_C" >&6
22269 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22270 cat >conftest.$ac_ext <<_ACEOF
22273 cat confdefs.h >>conftest.$ac_ext
22274 cat >>conftest.$ac_ext <<_ACEOF
22275 /* end confdefs.h. */
22276 #include "confdefs.h"
22277 #include <sys/types.h>
22283 switch (0) case 0: case (sizeof (char) == $ac_size):;
22288 rm -f conftest.$ac_objext
22289 if { (ac_try="$ac_compile"
22290 case "(($ac_try" in
22291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22292 *) ac_try_echo=$ac_try;;
22294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22295 (eval "$ac_compile") 2>conftest.er1
22297 grep -v '^ *+' conftest.er1 >conftest.err
22299 cat conftest.err >&5
22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); } && {
22302 test -z "$ac_c_werror_flag" ||
22303 test ! -s conftest.err
22304 } && test -s conftest.$ac_objext; then
22305 ac_cv_sizeof_char=$ac_size
22307 echo "$as_me: failed program was:" >&5
22308 sed 's/^/| /' conftest.$ac_ext >&5
22313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22314 if test x$ac_cv_sizeof_char != x ; then break; fi
22320 unspecif=$ac_cv_sizeof_char
22321 if test x$unspecif = x ; then
22322 { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
22323 echo "$as_me: error: cannot determine a size for char" >&2;}
22324 { (exit 1); exit 1; }; }
22327 if test "${ac_cv_sizeof_signed_char+set}" = set; then
22328 echo $ECHO_N "(cached) $ECHO_C" >&6
22330 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22331 cat >conftest.$ac_ext <<_ACEOF
22334 cat confdefs.h >>conftest.$ac_ext
22335 cat >>conftest.$ac_ext <<_ACEOF
22336 /* end confdefs.h. */
22337 #include "confdefs.h"
22338 #include <sys/types.h>
22344 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
22349 rm -f conftest.$ac_objext
22350 if { (ac_try="$ac_compile"
22351 case "(($ac_try" in
22352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22353 *) ac_try_echo=$ac_try;;
22355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22356 (eval "$ac_compile") 2>conftest.er1
22358 grep -v '^ *+' conftest.er1 >conftest.err
22360 cat conftest.err >&5
22361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362 (exit $ac_status); } && {
22363 test -z "$ac_c_werror_flag" ||
22364 test ! -s conftest.err
22365 } && test -s conftest.$ac_objext; then
22366 ac_cv_sizeof_signed_char=$ac_size
22368 echo "$as_me: failed program was:" >&5
22369 sed 's/^/| /' conftest.$ac_ext >&5
22374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22375 if test x$ac_cv_sizeof_signed_char != x ; then break; fi
22381 signed=$ac_cv_sizeof_signed_char
22382 if test x$signed = x ; then
22383 { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
22384 echo "$as_me: error: cannot determine a size for signed char" >&2;}
22385 { (exit 1); exit 1; }; }
22387 if test x$unspecif != x$signed ; then
22388 { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
22389 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
22390 { (exit 1); exit 1; }; }
22393 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
22394 echo $ECHO_N "(cached) $ECHO_C" >&6
22396 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22397 cat >conftest.$ac_ext <<_ACEOF
22400 cat confdefs.h >>conftest.$ac_ext
22401 cat >>conftest.$ac_ext <<_ACEOF
22402 /* end confdefs.h. */
22403 #include "confdefs.h"
22404 #include <sys/types.h>
22410 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
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_sizeof_unsigned_char=$ac_size
22434 echo "$as_me: failed program was:" >&5
22435 sed 's/^/| /' conftest.$ac_ext >&5
22440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22441 if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
22447 unsigned=$ac_cv_sizeof_unsigned_char
22448 if test x$unsigned = x ; then
22449 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
22450 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
22451 { (exit 1); exit 1; }; }
22453 if test x$unsigned != x$signed ; then
22454 { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
22455 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
22456 { (exit 1); exit 1; }; }
22459 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
22460 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
22461 { echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
22462 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6; }
22464 if test "${ac_cv_struct_boundary_char+set}" = set; then
22465 echo $ECHO_N "(cached) $ECHO_C" >&6
22467 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22468 cat >conftest.$ac_ext <<_ACEOF
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h. */
22474 #include "confdefs.h"
22475 #include <sys/types.h>
22476 struct s { char c; char i; };
22481 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
22486 rm -f conftest.$ac_objext
22487 if { (ac_try="$ac_compile"
22488 case "(($ac_try" in
22489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22490 *) ac_try_echo=$ac_try;;
22492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22493 (eval "$ac_compile") 2>conftest.er1
22495 grep -v '^ *+' conftest.er1 >conftest.err
22497 cat conftest.err >&5
22498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499 (exit $ac_status); } && {
22500 test -z "$ac_c_werror_flag" ||
22501 test ! -s conftest.err
22502 } && test -s conftest.$ac_objext; then
22503 ac_cv_struct_boundary_char=$ac_size
22505 echo "$as_me: failed program was:" >&5
22506 sed 's/^/| /' conftest.$ac_ext >&5
22511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22512 if test x$ac_cv_struct_boundary_char != x ; then break; fi
22517 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
22518 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6; }
22519 if test x$ac_cv_struct_boundary_char = x ; then
22520 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
22521 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
22522 { (exit 1); exit 1; }; }
22525 { echo "$as_me:$LINENO: checking size of short int" >&5
22526 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
22527 if test "${ac_cv_sizeof_short_int+set}" = set; then
22528 echo $ECHO_N "(cached) $ECHO_C" >&6
22530 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22531 cat >conftest.$ac_ext <<_ACEOF
22534 cat confdefs.h >>conftest.$ac_ext
22535 cat >>conftest.$ac_ext <<_ACEOF
22536 /* end confdefs.h. */
22537 #include "confdefs.h"
22538 #include <sys/types.h>
22544 switch (0) case 0: case (sizeof (short int) == $ac_size):;
22549 rm -f conftest.$ac_objext
22550 if { (ac_try="$ac_compile"
22551 case "(($ac_try" in
22552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22553 *) ac_try_echo=$ac_try;;
22555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22556 (eval "$ac_compile") 2>conftest.er1
22558 grep -v '^ *+' conftest.er1 >conftest.err
22560 cat conftest.err >&5
22561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562 (exit $ac_status); } && {
22563 test -z "$ac_c_werror_flag" ||
22564 test ! -s conftest.err
22565 } && test -s conftest.$ac_objext; then
22566 ac_cv_sizeof_short_int=$ac_size
22568 echo "$as_me: failed program was:" >&5
22569 sed 's/^/| /' conftest.$ac_ext >&5
22574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22575 if test x$ac_cv_sizeof_short_int != x ; then break; fi
22581 unspecif=$ac_cv_sizeof_short_int
22582 if test x$unspecif = x ; then
22583 { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
22584 echo "$as_me: error: cannot determine a size for short int" >&2;}
22585 { (exit 1); exit 1; }; }
22588 if test "${ac_cv_sizeof_signed_short_int+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 (signed short int) == $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_signed_short_int=$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_signed_short_int != x ; then break; fi
22642 signed=$ac_cv_sizeof_signed_short_int
22643 if test x$signed = x ; then
22644 { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
22645 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
22646 { (exit 1); exit 1; }; }
22648 if test x$unspecif != x$signed ; then
22649 { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
22650 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
22651 { (exit 1); exit 1; }; }
22654 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
22655 echo $ECHO_N "(cached) $ECHO_C" >&6
22657 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22658 cat >conftest.$ac_ext <<_ACEOF
22661 cat confdefs.h >>conftest.$ac_ext
22662 cat >>conftest.$ac_ext <<_ACEOF
22663 /* end confdefs.h. */
22664 #include "confdefs.h"
22665 #include <sys/types.h>
22671 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
22676 rm -f conftest.$ac_objext
22677 if { (ac_try="$ac_compile"
22678 case "(($ac_try" in
22679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22680 *) ac_try_echo=$ac_try;;
22682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22683 (eval "$ac_compile") 2>conftest.er1
22685 grep -v '^ *+' conftest.er1 >conftest.err
22687 cat conftest.err >&5
22688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22689 (exit $ac_status); } && {
22690 test -z "$ac_c_werror_flag" ||
22691 test ! -s conftest.err
22692 } && test -s conftest.$ac_objext; then
22693 ac_cv_sizeof_unsigned_short_int=$ac_size
22695 echo "$as_me: failed program was:" >&5
22696 sed 's/^/| /' conftest.$ac_ext >&5
22701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22702 if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
22708 unsigned=$ac_cv_sizeof_unsigned_short_int
22709 if test x$unsigned = x ; then
22710 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
22711 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
22712 { (exit 1); exit 1; }; }
22714 if test x$unsigned != x$signed ; then
22715 { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
22716 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
22717 { (exit 1); exit 1; }; }
22720 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
22721 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
22722 { echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
22723 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6; }
22725 if test "${ac_cv_struct_boundary_short_int+set}" = set; then
22726 echo $ECHO_N "(cached) $ECHO_C" >&6
22728 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22729 cat >conftest.$ac_ext <<_ACEOF
22732 cat confdefs.h >>conftest.$ac_ext
22733 cat >>conftest.$ac_ext <<_ACEOF
22734 /* end confdefs.h. */
22735 #include "confdefs.h"
22736 #include <sys/types.h>
22737 struct s { char c; short int i; };
22742 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
22747 rm -f conftest.$ac_objext
22748 if { (ac_try="$ac_compile"
22749 case "(($ac_try" in
22750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22751 *) ac_try_echo=$ac_try;;
22753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22754 (eval "$ac_compile") 2>conftest.er1
22756 grep -v '^ *+' conftest.er1 >conftest.err
22758 cat conftest.err >&5
22759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760 (exit $ac_status); } && {
22761 test -z "$ac_c_werror_flag" ||
22762 test ! -s conftest.err
22763 } && test -s conftest.$ac_objext; then
22764 ac_cv_struct_boundary_short_int=$ac_size
22766 echo "$as_me: failed program was:" >&5
22767 sed 's/^/| /' conftest.$ac_ext >&5
22772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22773 if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
22778 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
22779 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6; }
22780 if test x$ac_cv_struct_boundary_short_int = x ; then
22781 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
22782 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
22783 { (exit 1); exit 1; }; }
22786 { echo "$as_me:$LINENO: checking size of int" >&5
22787 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22788 if test "${ac_cv_sizeof_int+set}" = set; then
22789 echo $ECHO_N "(cached) $ECHO_C" >&6
22791 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22792 cat >conftest.$ac_ext <<_ACEOF
22795 cat confdefs.h >>conftest.$ac_ext
22796 cat >>conftest.$ac_ext <<_ACEOF
22797 /* end confdefs.h. */
22798 #include "confdefs.h"
22799 #include <sys/types.h>
22805 switch (0) case 0: case (sizeof (int) == $ac_size):;
22810 rm -f conftest.$ac_objext
22811 if { (ac_try="$ac_compile"
22812 case "(($ac_try" in
22813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22814 *) ac_try_echo=$ac_try;;
22816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22817 (eval "$ac_compile") 2>conftest.er1
22819 grep -v '^ *+' conftest.er1 >conftest.err
22821 cat conftest.err >&5
22822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22823 (exit $ac_status); } && {
22824 test -z "$ac_c_werror_flag" ||
22825 test ! -s conftest.err
22826 } && test -s conftest.$ac_objext; then
22827 ac_cv_sizeof_int=$ac_size
22829 echo "$as_me: failed program was:" >&5
22830 sed 's/^/| /' conftest.$ac_ext >&5
22835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22836 if test x$ac_cv_sizeof_int != x ; then break; fi
22842 unspecif=$ac_cv_sizeof_int
22843 if test x$unspecif = x ; then
22844 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
22845 echo "$as_me: error: cannot determine a size for int" >&2;}
22846 { (exit 1); exit 1; }; }
22849 if test "${ac_cv_sizeof_signed_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 (signed 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_signed_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_signed_int != x ; then break; fi
22903 signed=$ac_cv_sizeof_signed_int
22904 if test x$signed = x ; then
22905 { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
22906 echo "$as_me: error: cannot determine a size for signed int" >&2;}
22907 { (exit 1); exit 1; }; }
22909 if test x$unspecif != x$signed ; then
22910 { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
22911 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
22912 { (exit 1); exit 1; }; }
22915 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
22916 echo $ECHO_N "(cached) $ECHO_C" >&6
22918 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22919 cat >conftest.$ac_ext <<_ACEOF
22922 cat confdefs.h >>conftest.$ac_ext
22923 cat >>conftest.$ac_ext <<_ACEOF
22924 /* end confdefs.h. */
22925 #include "confdefs.h"
22926 #include <sys/types.h>
22932 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
22937 rm -f conftest.$ac_objext
22938 if { (ac_try="$ac_compile"
22939 case "(($ac_try" in
22940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22941 *) ac_try_echo=$ac_try;;
22943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22944 (eval "$ac_compile") 2>conftest.er1
22946 grep -v '^ *+' conftest.er1 >conftest.err
22948 cat conftest.err >&5
22949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950 (exit $ac_status); } && {
22951 test -z "$ac_c_werror_flag" ||
22952 test ! -s conftest.err
22953 } && test -s conftest.$ac_objext; then
22954 ac_cv_sizeof_unsigned_int=$ac_size
22956 echo "$as_me: failed program was:" >&5
22957 sed 's/^/| /' conftest.$ac_ext >&5
22962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22963 if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
22969 unsigned=$ac_cv_sizeof_unsigned_int
22970 if test x$unsigned = x ; then
22971 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
22972 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
22973 { (exit 1); exit 1; }; }
22975 if test x$unsigned != x$signed ; then
22976 { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
22977 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
22978 { (exit 1); exit 1; }; }
22981 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
22982 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
22983 { echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
22984 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6; }
22986 if test "${ac_cv_struct_boundary_int+set}" = set; then
22987 echo $ECHO_N "(cached) $ECHO_C" >&6
22989 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22990 cat >conftest.$ac_ext <<_ACEOF
22993 cat confdefs.h >>conftest.$ac_ext
22994 cat >>conftest.$ac_ext <<_ACEOF
22995 /* end confdefs.h. */
22996 #include "confdefs.h"
22997 #include <sys/types.h>
22998 struct s { char c; int i; };
23003 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
23008 rm -f conftest.$ac_objext
23009 if { (ac_try="$ac_compile"
23010 case "(($ac_try" in
23011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23012 *) ac_try_echo=$ac_try;;
23014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23015 (eval "$ac_compile") 2>conftest.er1
23017 grep -v '^ *+' conftest.er1 >conftest.err
23019 cat conftest.err >&5
23020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021 (exit $ac_status); } && {
23022 test -z "$ac_c_werror_flag" ||
23023 test ! -s conftest.err
23024 } && test -s conftest.$ac_objext; then
23025 ac_cv_struct_boundary_int=$ac_size
23027 echo "$as_me: failed program was:" >&5
23028 sed 's/^/| /' conftest.$ac_ext >&5
23033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23034 if test x$ac_cv_struct_boundary_int != x ; then break; fi
23039 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
23040 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6; }
23041 if test x$ac_cv_struct_boundary_int = x ; then
23042 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
23043 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
23044 { (exit 1); exit 1; }; }
23047 { echo "$as_me:$LINENO: checking size of long int" >&5
23048 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
23049 if test "${ac_cv_sizeof_long_int+set}" = set; then
23050 echo $ECHO_N "(cached) $ECHO_C" >&6
23052 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23053 cat >conftest.$ac_ext <<_ACEOF
23056 cat confdefs.h >>conftest.$ac_ext
23057 cat >>conftest.$ac_ext <<_ACEOF
23058 /* end confdefs.h. */
23059 #include "confdefs.h"
23060 #include <sys/types.h>
23066 switch (0) case 0: case (sizeof (long int) == $ac_size):;
23071 rm -f conftest.$ac_objext
23072 if { (ac_try="$ac_compile"
23073 case "(($ac_try" in
23074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23075 *) ac_try_echo=$ac_try;;
23077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23078 (eval "$ac_compile") 2>conftest.er1
23080 grep -v '^ *+' conftest.er1 >conftest.err
23082 cat conftest.err >&5
23083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); } && {
23085 test -z "$ac_c_werror_flag" ||
23086 test ! -s conftest.err
23087 } && test -s conftest.$ac_objext; then
23088 ac_cv_sizeof_long_int=$ac_size
23090 echo "$as_me: failed program was:" >&5
23091 sed 's/^/| /' conftest.$ac_ext >&5
23096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23097 if test x$ac_cv_sizeof_long_int != x ; then break; fi
23103 unspecif=$ac_cv_sizeof_long_int
23104 if test x$unspecif = x ; then
23105 { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
23106 echo "$as_me: error: cannot determine a size for long int" >&2;}
23107 { (exit 1); exit 1; }; }
23110 if test "${ac_cv_sizeof_signed_long_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 (signed long 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_signed_long_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_signed_long_int != x ; then break; fi
23164 signed=$ac_cv_sizeof_signed_long_int
23165 if test x$signed = x ; then
23166 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
23167 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
23168 { (exit 1); exit 1; }; }
23170 if test x$unspecif != x$signed ; then
23171 { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
23172 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
23173 { (exit 1); exit 1; }; }
23176 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
23177 echo $ECHO_N "(cached) $ECHO_C" >&6
23179 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23180 cat >conftest.$ac_ext <<_ACEOF
23183 cat confdefs.h >>conftest.$ac_ext
23184 cat >>conftest.$ac_ext <<_ACEOF
23185 /* end confdefs.h. */
23186 #include "confdefs.h"
23187 #include <sys/types.h>
23193 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
23198 rm -f conftest.$ac_objext
23199 if { (ac_try="$ac_compile"
23200 case "(($ac_try" in
23201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23202 *) ac_try_echo=$ac_try;;
23204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23205 (eval "$ac_compile") 2>conftest.er1
23207 grep -v '^ *+' conftest.er1 >conftest.err
23209 cat conftest.err >&5
23210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211 (exit $ac_status); } && {
23212 test -z "$ac_c_werror_flag" ||
23213 test ! -s conftest.err
23214 } && test -s conftest.$ac_objext; then
23215 ac_cv_sizeof_unsigned_long_int=$ac_size
23217 echo "$as_me: failed program was:" >&5
23218 sed 's/^/| /' conftest.$ac_ext >&5
23223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23224 if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
23230 unsigned=$ac_cv_sizeof_unsigned_long_int
23231 if test x$unsigned = x ; then
23232 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
23233 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
23234 { (exit 1); exit 1; }; }
23236 if test x$unsigned != x$signed ; then
23237 { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
23238 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
23239 { (exit 1); exit 1; }; }
23242 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
23243 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
23244 { echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
23245 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6; }
23247 if test "${ac_cv_struct_boundary_long_int+set}" = set; then
23248 echo $ECHO_N "(cached) $ECHO_C" >&6
23250 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23251 cat >conftest.$ac_ext <<_ACEOF
23254 cat confdefs.h >>conftest.$ac_ext
23255 cat >>conftest.$ac_ext <<_ACEOF
23256 /* end confdefs.h. */
23257 #include "confdefs.h"
23258 #include <sys/types.h>
23259 struct s { char c; long int i; };
23264 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
23269 rm -f conftest.$ac_objext
23270 if { (ac_try="$ac_compile"
23271 case "(($ac_try" in
23272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23273 *) ac_try_echo=$ac_try;;
23275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23276 (eval "$ac_compile") 2>conftest.er1
23278 grep -v '^ *+' conftest.er1 >conftest.err
23280 cat conftest.err >&5
23281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23282 (exit $ac_status); } && {
23283 test -z "$ac_c_werror_flag" ||
23284 test ! -s conftest.err
23285 } && test -s conftest.$ac_objext; then
23286 ac_cv_struct_boundary_long_int=$ac_size
23288 echo "$as_me: failed program was:" >&5
23289 sed 's/^/| /' conftest.$ac_ext >&5
23294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23295 if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
23300 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
23301 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6; }
23302 if test x$ac_cv_struct_boundary_long_int = x ; then
23303 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
23304 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
23305 { (exit 1); exit 1; }; }
23308 { echo "$as_me:$LINENO: checking size of long long int" >&5
23309 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
23310 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
23311 echo $ECHO_N "(cached) $ECHO_C" >&6
23313 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23314 cat >conftest.$ac_ext <<_ACEOF
23317 cat confdefs.h >>conftest.$ac_ext
23318 cat >>conftest.$ac_ext <<_ACEOF
23319 /* end confdefs.h. */
23320 #include "confdefs.h"
23321 #include <sys/types.h>
23327 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
23332 rm -f conftest.$ac_objext
23333 if { (ac_try="$ac_compile"
23334 case "(($ac_try" in
23335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23336 *) ac_try_echo=$ac_try;;
23338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23339 (eval "$ac_compile") 2>conftest.er1
23341 grep -v '^ *+' conftest.er1 >conftest.err
23343 cat conftest.err >&5
23344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23345 (exit $ac_status); } && {
23346 test -z "$ac_c_werror_flag" ||
23347 test ! -s conftest.err
23348 } && test -s conftest.$ac_objext; then
23349 ac_cv_sizeof_long_long_int=$ac_size
23351 echo "$as_me: failed program was:" >&5
23352 sed 's/^/| /' conftest.$ac_ext >&5
23357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23358 if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
23364 unspecif=$ac_cv_sizeof_long_long_int
23365 if test x$unspecif = x ; then
23366 { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
23367 echo "$as_me: error: cannot determine a size for long long int" >&2;}
23368 { (exit 1); exit 1; }; }
23371 if test "${ac_cv_sizeof_signed_long_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 (signed long 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_signed_long_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_signed_long_long_int != x ; then break; fi
23425 signed=$ac_cv_sizeof_signed_long_long_int
23426 if test x$signed = x ; then
23427 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
23428 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
23429 { (exit 1); exit 1; }; }
23431 if test x$unspecif != x$signed ; then
23432 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
23433 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
23434 { (exit 1); exit 1; }; }
23437 if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
23438 echo $ECHO_N "(cached) $ECHO_C" >&6
23440 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23441 cat >conftest.$ac_ext <<_ACEOF
23444 cat confdefs.h >>conftest.$ac_ext
23445 cat >>conftest.$ac_ext <<_ACEOF
23446 /* end confdefs.h. */
23447 #include "confdefs.h"
23448 #include <sys/types.h>
23454 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
23459 rm -f conftest.$ac_objext
23460 if { (ac_try="$ac_compile"
23461 case "(($ac_try" in
23462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23463 *) ac_try_echo=$ac_try;;
23465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23466 (eval "$ac_compile") 2>conftest.er1
23468 grep -v '^ *+' conftest.er1 >conftest.err
23470 cat conftest.err >&5
23471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472 (exit $ac_status); } && {
23473 test -z "$ac_c_werror_flag" ||
23474 test ! -s conftest.err
23475 } && test -s conftest.$ac_objext; then
23476 ac_cv_sizeof_unsigned_long_long_int=$ac_size
23478 echo "$as_me: failed program was:" >&5
23479 sed 's/^/| /' conftest.$ac_ext >&5
23484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23485 if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
23491 unsigned=$ac_cv_sizeof_unsigned_long_long_int
23492 if test x$unsigned = x ; then
23493 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
23494 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
23495 { (exit 1); exit 1; }; }
23497 if test x$unsigned != x$signed ; then
23498 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
23499 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
23500 { (exit 1); exit 1; }; }
23503 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
23504 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6; }
23505 { echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
23506 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6; }
23508 if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
23509 echo $ECHO_N "(cached) $ECHO_C" >&6
23511 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23512 cat >conftest.$ac_ext <<_ACEOF
23515 cat confdefs.h >>conftest.$ac_ext
23516 cat >>conftest.$ac_ext <<_ACEOF
23517 /* end confdefs.h. */
23518 #include "confdefs.h"
23519 #include <sys/types.h>
23520 struct s { char c; long long int i; };
23525 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
23530 rm -f conftest.$ac_objext
23531 if { (ac_try="$ac_compile"
23532 case "(($ac_try" in
23533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23534 *) ac_try_echo=$ac_try;;
23536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23537 (eval "$ac_compile") 2>conftest.er1
23539 grep -v '^ *+' conftest.er1 >conftest.err
23541 cat conftest.err >&5
23542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); } && {
23544 test -z "$ac_c_werror_flag" ||
23545 test ! -s conftest.err
23546 } && test -s conftest.$ac_objext; then
23547 ac_cv_struct_boundary_long_long_int=$ac_size
23549 echo "$as_me: failed program was:" >&5
23550 sed 's/^/| /' conftest.$ac_ext >&5
23555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23556 if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
23561 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
23562 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6; }
23563 if test x$ac_cv_struct_boundary_long_long_int = x ; then
23564 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
23565 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
23566 { (exit 1); exit 1; }; }
23570 { echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
23571 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6; }
23573 if test "${ac_cv_struct_boundary_float+set}" = set; then
23574 echo $ECHO_N "(cached) $ECHO_C" >&6
23576 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23577 cat >conftest.$ac_ext <<_ACEOF
23580 cat confdefs.h >>conftest.$ac_ext
23581 cat >>conftest.$ac_ext <<_ACEOF
23582 /* end confdefs.h. */
23583 #include "confdefs.h"
23584 #include <sys/types.h>
23585 struct s { char c; float i; };
23590 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
23595 rm -f conftest.$ac_objext
23596 if { (ac_try="$ac_compile"
23597 case "(($ac_try" in
23598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23599 *) ac_try_echo=$ac_try;;
23601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23602 (eval "$ac_compile") 2>conftest.er1
23604 grep -v '^ *+' conftest.er1 >conftest.err
23606 cat conftest.err >&5
23607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608 (exit $ac_status); } && {
23609 test -z "$ac_c_werror_flag" ||
23610 test ! -s conftest.err
23611 } && test -s conftest.$ac_objext; then
23612 ac_cv_struct_boundary_float=$ac_size
23614 echo "$as_me: failed program was:" >&5
23615 sed 's/^/| /' conftest.$ac_ext >&5
23620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23621 if test x$ac_cv_struct_boundary_float != x ; then break; fi
23626 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
23627 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6; }
23628 if test x$ac_cv_struct_boundary_float = x ; then
23629 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
23630 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
23631 { (exit 1); exit 1; }; }
23633 { echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
23634 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6; }
23636 if test "${ac_cv_struct_boundary_double+set}" = set; then
23637 echo $ECHO_N "(cached) $ECHO_C" >&6
23639 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23640 cat >conftest.$ac_ext <<_ACEOF
23643 cat confdefs.h >>conftest.$ac_ext
23644 cat >>conftest.$ac_ext <<_ACEOF
23645 /* end confdefs.h. */
23646 #include "confdefs.h"
23647 #include <sys/types.h>
23648 struct s { char c; double i; };
23653 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
23658 rm -f conftest.$ac_objext
23659 if { (ac_try="$ac_compile"
23660 case "(($ac_try" in
23661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23662 *) ac_try_echo=$ac_try;;
23664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23665 (eval "$ac_compile") 2>conftest.er1
23667 grep -v '^ *+' conftest.er1 >conftest.err
23669 cat conftest.err >&5
23670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23671 (exit $ac_status); } && {
23672 test -z "$ac_c_werror_flag" ||
23673 test ! -s conftest.err
23674 } && test -s conftest.$ac_objext; then
23675 ac_cv_struct_boundary_double=$ac_size
23677 echo "$as_me: failed program was:" >&5
23678 sed 's/^/| /' conftest.$ac_ext >&5
23683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23684 if test x$ac_cv_struct_boundary_double != x ; then break; fi
23689 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
23690 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6; }
23691 if test x$ac_cv_struct_boundary_double = x ; then
23692 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
23693 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
23694 { (exit 1); exit 1; }; }
23698 { echo "$as_me:$LINENO: checking size of void *" >&5
23699 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
23700 if test "${ac_cv_sizeof_void_p+set}" = set; then
23701 echo $ECHO_N "(cached) $ECHO_C" >&6
23703 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23704 cat >conftest.$ac_ext <<_ACEOF
23707 cat confdefs.h >>conftest.$ac_ext
23708 cat >>conftest.$ac_ext <<_ACEOF
23709 /* end confdefs.h. */
23710 #include "confdefs.h"
23711 #include <sys/types.h>
23717 switch (0) case 0: case (sizeof (void *) == $ac_size):;
23722 rm -f conftest.$ac_objext
23723 if { (ac_try="$ac_compile"
23724 case "(($ac_try" in
23725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23726 *) ac_try_echo=$ac_try;;
23728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23729 (eval "$ac_compile") 2>conftest.er1
23731 grep -v '^ *+' conftest.er1 >conftest.err
23733 cat conftest.err >&5
23734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735 (exit $ac_status); } && {
23736 test -z "$ac_c_werror_flag" ||
23737 test ! -s conftest.err
23738 } && test -s conftest.$ac_objext; then
23739 ac_cv_sizeof_void_p=$ac_size
23741 echo "$as_me: failed program was:" >&5
23742 sed 's/^/| /' conftest.$ac_ext >&5
23747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23748 if test x$ac_cv_sizeof_void_p != x ; then break; fi
23754 if test x$ac_cv_sizeof_void_p = x ; then
23755 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
23756 echo "$as_me: error: cannot determine a size for void *" >&2;}
23757 { (exit 1); exit 1; }; }
23759 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23760 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
23761 { echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
23762 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6; }
23764 if test "${ac_cv_struct_boundary_void_p+set}" = set; then
23765 echo $ECHO_N "(cached) $ECHO_C" >&6
23767 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23768 cat >conftest.$ac_ext <<_ACEOF
23771 cat confdefs.h >>conftest.$ac_ext
23772 cat >>conftest.$ac_ext <<_ACEOF
23773 /* end confdefs.h. */
23774 #include "confdefs.h"
23775 #include <sys/types.h>
23776 struct s { char c; void * i; };
23781 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
23786 rm -f conftest.$ac_objext
23787 if { (ac_try="$ac_compile"
23788 case "(($ac_try" in
23789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23790 *) ac_try_echo=$ac_try;;
23792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23793 (eval "$ac_compile") 2>conftest.er1
23795 grep -v '^ *+' conftest.er1 >conftest.err
23797 cat conftest.err >&5
23798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799 (exit $ac_status); } && {
23800 test -z "$ac_c_werror_flag" ||
23801 test ! -s conftest.err
23802 } && test -s conftest.$ac_objext; then
23803 ac_cv_struct_boundary_void_p=$ac_size
23805 echo "$as_me: failed program was:" >&5
23806 sed 's/^/| /' conftest.$ac_ext >&5
23811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23812 if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
23817 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
23818 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6; }
23819 if test x$ac_cv_struct_boundary_void_p = x ; then
23820 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
23821 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
23822 { (exit 1); exit 1; }; }
23825 { echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
23826 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6; }
23827 if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
23828 echo $ECHO_N "(cached) $ECHO_C" >&6
23830 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23831 cat >conftest.$ac_ext <<_ACEOF
23834 cat confdefs.h >>conftest.$ac_ext
23835 cat >>conftest.$ac_ext <<_ACEOF
23836 /* end confdefs.h. */
23837 #include "confdefs.h"
23838 #include <sys/types.h>
23844 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
23849 rm -f conftest.$ac_objext
23850 if { (ac_try="$ac_compile"
23851 case "(($ac_try" in
23852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23853 *) ac_try_echo=$ac_try;;
23855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23856 (eval "$ac_compile") 2>conftest.er1
23858 grep -v '^ *+' conftest.er1 >conftest.err
23860 cat conftest.err >&5
23861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23862 (exit $ac_status); } && {
23863 test -z "$ac_c_werror_flag" ||
23864 test ! -s conftest.err
23865 } && test -s conftest.$ac_objext; then
23866 ac_cv_sizeof_void_LpR_LvoidR=$ac_size
23868 echo "$as_me: failed program was:" >&5
23869 sed 's/^/| /' conftest.$ac_ext >&5
23874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23875 if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
23881 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
23882 { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
23883 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
23884 { (exit 1); exit 1; }; }
23886 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
23887 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6; }
23891 { echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
23892 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6; }
23893 if test x$endian = x1 ; then
23899 trace="$trace_endian"
23901 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
23903 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
23904 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
23905 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
23906 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
23908 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
23909 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
23911 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
23913 # sizeof float/double are not tested since IEEE 754 is assumed.
23914 # Check README.IEEE for rational.
23916 # The numbers after the _ in the arch name are the maximal packing boundary.
23917 # big32_2 means that all data are aligned on a 2 bytes boundary. (ARM)
23918 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
23920 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;;
23921 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;;
23922 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;;
23923 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;;
23925 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;;
23927 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;;
23928 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;;
23929 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;;
23930 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;;
23932 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;;
23933 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;;
23935 if test x$gras_arch = xunknown ; then
23936 { echo "$as_me:$LINENO: result: damnit ($trace)" >&5
23937 echo "${ECHO_T}damnit ($trace)" >&6; }
23938 { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
23939 Please report this architecture trace ($trace) and what it corresponds to." >&5
23940 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
23941 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
23942 { (exit 1); exit 1; }; }
23944 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
23946 cat >>confdefs.h <<_ACEOF
23947 #define GRAS_THISARCH $gras_arch
23950 { echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
23951 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6; }
23953 if test "$gras_size" = 32; then
23954 GRAS_ARCH_32_BITS_TRUE=
23955 GRAS_ARCH_32_BITS_FALSE='#'
23957 GRAS_ARCH_32_BITS_TRUE='#'
23958 GRAS_ARCH_32_BITS_FALSE=
23962 { echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
23963 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6; }
23965 for s in $ac_cv_sizeof_char \
23966 $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
23967 $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
23970 if test $ac_cv_sizeof_max -lt $s ; then
23971 ac_cv_sizeof_max=$s
23974 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
23975 echo "${ECHO_T}$ac_cv_sizeof_max" >&6; }
23977 cat >>confdefs.h <<_ACEOF
23978 #define SIZEOF_MAX $ac_cv_sizeof_max
23983 # Check architecture signature end
23984 { echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
23985 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6; }
23986 cat >conftest.$ac_ext <<_ACEOF
23989 cat confdefs.h >>conftest.$ac_ext
23990 cat >>conftest.$ac_ext <<_ACEOF
23991 /* end confdefs.h. */
23992 #include "confdefs.h"
23993 #include <sys/types.h>
23994 #include <stddef.h> /* offsetof() */
23995 struct s {char c; double d;};
24002 case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
24008 rm -f conftest.$ac_objext
24009 if { (ac_try="$ac_compile"
24010 case "(($ac_try" in
24011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24012 *) ac_try_echo=$ac_try;;
24014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24015 (eval "$ac_compile") 2>conftest.er1
24017 grep -v '^ *+' conftest.er1 >conftest.err
24019 cat conftest.err >&5
24020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24021 (exit $ac_status); } && {
24022 test -z "$ac_c_werror_flag" ||
24023 test ! -s conftest.err
24024 } && test -s conftest.$ac_objext; then
24025 gras_struct_packed=yes
24027 echo "$as_me: failed program was:" >&5
24028 sed 's/^/| /' conftest.$ac_ext >&5
24030 gras_struct_packed=no
24033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24035 { echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
24036 echo "${ECHO_T}$gras_struct_packed" >&6; }
24037 if test x$gras_struct_packed = "xyes" ; then
24038 { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
24039 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
24040 { (exit 1); exit 1; }; }
24043 { echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
24044 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6; }
24045 cat >conftest.$ac_ext <<_ACEOF
24048 cat confdefs.h >>conftest.$ac_ext
24049 cat >>conftest.$ac_ext <<_ACEOF
24050 /* end confdefs.h. */
24051 #include "confdefs.h"
24052 #include <sys/types.h>
24053 #include <stddef.h> /* offsetof() */
24054 struct s {double d; int i; char c;};
24061 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24067 rm -f conftest.$ac_objext
24068 if { (ac_try="$ac_compile"
24069 case "(($ac_try" in
24070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24071 *) ac_try_echo=$ac_try;;
24073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24074 (eval "$ac_compile") 2>conftest.er1
24076 grep -v '^ *+' conftest.er1 >conftest.err
24078 cat conftest.err >&5
24079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080 (exit $ac_status); } && {
24081 test -z "$ac_c_werror_flag" ||
24082 test ! -s conftest.err
24083 } && test -s conftest.$ac_objext; then
24084 gras_struct_compact=yes
24086 echo "$as_me: failed program was:" >&5
24087 sed 's/^/| /' conftest.$ac_ext >&5
24089 gras_struct_compact=no
24092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24094 { echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
24095 echo "${ECHO_T}$gras_struct_compact" >&6; }
24097 if test x$gras_struct_compact != xyes ; then
24098 { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
24099 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
24100 { (exit 1); exit 1; }; }
24103 cat >>confdefs.h <<_ACEOF
24104 #define GRAS_STRUCT_COMPACT 1
24107 { echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
24108 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6; }
24110 cat >conftest.$ac_ext <<_ACEOF
24113 cat confdefs.h >>conftest.$ac_ext
24114 cat >>conftest.$ac_ext <<_ACEOF
24115 /* end confdefs.h. */
24116 #include "confdefs.h"
24117 #include <sys/types.h>
24118 #include <stddef.h> /* offsetof() */
24119 struct s { double d; int i; char c[6]; };
24126 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24132 rm -f conftest.$ac_objext
24133 if { (ac_try="$ac_compile"
24134 case "(($ac_try" in
24135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24136 *) ac_try_echo=$ac_try;;
24138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24139 (eval "$ac_compile") 2>conftest.er1
24141 grep -v '^ *+' conftest.er1 >conftest.err
24143 cat conftest.err >&5
24144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24145 (exit $ac_status); } && {
24146 test -z "$ac_c_werror_flag" ||
24147 test ! -s conftest.err
24148 } && test -s conftest.$ac_objext; then
24149 gras_array_straddle_struct=yes
24151 echo "$as_me: failed program was:" >&5
24152 sed 's/^/| /' conftest.$ac_ext >&5
24154 gras_array_straddle_struct=no
24157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24159 { echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
24160 echo "${ECHO_T}$gras_array_straddle_struct" >&6; }
24162 if test x$gras_array_straddle_struct = xyes ; then
24164 cat >>confdefs.h <<_ACEOF
24165 #define GRAS_ARRAY_STRADDLE_STRUCT 1
24169 { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
24170 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
24171 { (exit 1); exit 1; }; }
24178 { echo "$as_me:$LINENO: result: " >&5
24179 echo "${ECHO_T}" >&6; }
24180 { echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
24181 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6; }
24186 { echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
24187 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6; }
24188 if test "${ac_cv_check_mcsc+set}" = set; then
24189 echo $ECHO_N "(cached) $ECHO_C" >&6
24192 if test "$cross_compiling" = yes; then
24193 ac_cv_check_mcsc=no
24196 cat >conftest.$ac_ext <<_ACEOF
24199 cat confdefs.h >>conftest.$ac_ext
24200 cat >>conftest.$ac_ext <<_ACEOF
24201 /* end confdefs.h. */
24205 #include <stdlib.h>
24206 #include <ucontext.h>
24208 ucontext_t uc_child;
24209 ucontext_t uc_main;
24211 void child(void *arg)
24213 if (arg != (void *)12345)
24215 if (swapcontext(&uc_child, &uc_main) != 0)
24219 int main(int argc, char *argv[])
24224 /* the default is that it fails */
24225 if ((fp = fopen("conftestval", "w")) == NULL)
24227 fprintf(fp, "no\n");
24230 /* configure a child user-space context */
24231 if ((stack = malloc(64*1024)) == NULL)
24233 if (getcontext(&uc_child) != 0)
24235 uc_child.uc_link = NULL;
24236 uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
24237 uc_child.uc_stack.ss_size = 32*1024;
24238 uc_child.uc_stack.ss_flags = 0;
24239 makecontext(&uc_child, child, 2, (void *)12345);
24241 /* switch into the user context */
24242 if (swapcontext(&uc_main, &uc_child) != 0)
24245 /* Fine, child came home */
24246 if ((fp = fopen("conftestval", "w")) == NULL)
24248 fprintf(fp, "yes\n");
24251 /* die successfully */
24256 rm -f conftest$ac_exeext
24257 if { (ac_try="$ac_link"
24258 case "(($ac_try" in
24259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24260 *) ac_try_echo=$ac_try;;
24262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24263 (eval "$ac_link") 2>&5
24265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24267 { (case "(($ac_try" in
24268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24269 *) ac_try_echo=$ac_try;;
24271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24272 (eval "$ac_try") 2>&5
24274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24275 (exit $ac_status); }; }; then
24276 ac_cv_check_mcsc=`cat conftestval`
24278 echo "$as_me: program exited with status $ac_status" >&5
24279 echo "$as_me: failed program was:" >&5
24280 sed 's/^/| /' conftest.$ac_ext >&5
24282 ( exit $ac_status )
24283 ac_cv_check_mcsc=no
24285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24290 { echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
24291 echo "${ECHO_T}$ac_cv_check_mcsc" >&6; }
24292 if test ".$ac_cv_check_mcsc" = .yes; then
24300 for ac_header in pthread.h
24302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24304 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24307 echo $ECHO_N "(cached) $ECHO_C" >&6
24309 ac_res=`eval echo '${'$as_ac_Header'}'`
24310 { echo "$as_me:$LINENO: result: $ac_res" >&5
24311 echo "${ECHO_T}$ac_res" >&6; }
24313 # Is the header compilable?
24314 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24316 cat >conftest.$ac_ext <<_ACEOF
24319 cat confdefs.h >>conftest.$ac_ext
24320 cat >>conftest.$ac_ext <<_ACEOF
24321 /* end confdefs.h. */
24322 $ac_includes_default
24323 #include <$ac_header>
24325 rm -f conftest.$ac_objext
24326 if { (ac_try="$ac_compile"
24327 case "(($ac_try" in
24328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24329 *) ac_try_echo=$ac_try;;
24331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24332 (eval "$ac_compile") 2>conftest.er1
24334 grep -v '^ *+' conftest.er1 >conftest.err
24336 cat conftest.err >&5
24337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24338 (exit $ac_status); } && {
24339 test -z "$ac_c_werror_flag" ||
24340 test ! -s conftest.err
24341 } && test -s conftest.$ac_objext; then
24342 ac_header_compiler=yes
24344 echo "$as_me: failed program was:" >&5
24345 sed 's/^/| /' conftest.$ac_ext >&5
24347 ac_header_compiler=no
24350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24351 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24352 echo "${ECHO_T}$ac_header_compiler" >&6; }
24354 # Is the header present?
24355 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24356 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24357 cat >conftest.$ac_ext <<_ACEOF
24360 cat confdefs.h >>conftest.$ac_ext
24361 cat >>conftest.$ac_ext <<_ACEOF
24362 /* end confdefs.h. */
24363 #include <$ac_header>
24365 if { (ac_try="$ac_cpp conftest.$ac_ext"
24366 case "(($ac_try" in
24367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24368 *) ac_try_echo=$ac_try;;
24370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24373 grep -v '^ *+' conftest.er1 >conftest.err
24375 cat conftest.err >&5
24376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377 (exit $ac_status); } >/dev/null && {
24378 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24379 test ! -s conftest.err
24381 ac_header_preproc=yes
24383 echo "$as_me: failed program was:" >&5
24384 sed 's/^/| /' conftest.$ac_ext >&5
24386 ac_header_preproc=no
24389 rm -f conftest.err conftest.$ac_ext
24390 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24391 echo "${ECHO_T}$ac_header_preproc" >&6; }
24393 # So? What about this header?
24394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24396 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24397 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24399 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24400 ac_header_preproc=yes
24403 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24404 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24405 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24406 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24407 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24408 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24409 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24410 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24413 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24414 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24416 ## -------------------------------------------------- ##
24417 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24418 ## -------------------------------------------------- ##
24420 ) | sed "s/^/$as_me: WARNING: /" >&2
24423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24426 echo $ECHO_N "(cached) $ECHO_C" >&6
24428 eval "$as_ac_Header=\$ac_header_preproc"
24430 ac_res=`eval echo '${'$as_ac_Header'}'`
24431 { echo "$as_me:$LINENO: result: $ac_res" >&5
24432 echo "${ECHO_T}$ac_res" >&6; }
24435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24436 cat >>confdefs.h <<_ACEOF
24437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24444 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24445 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24446 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24447 echo $ECHO_N "(cached) $ECHO_C" >&6
24449 ac_check_lib_save_LIBS=$LIBS
24450 LIBS="-lpthread $LIBS"
24451 cat >conftest.$ac_ext <<_ACEOF
24454 cat confdefs.h >>conftest.$ac_ext
24455 cat >>conftest.$ac_ext <<_ACEOF
24456 /* end confdefs.h. */
24458 /* Override any GCC internal prototype to avoid an error.
24459 Use char because int might match the return type of a GCC
24460 builtin and then its argument prototype would still apply. */
24464 char pthread_create ();
24468 return pthread_create ();
24473 rm -f conftest.$ac_objext conftest$ac_exeext
24474 if { (ac_try="$ac_link"
24475 case "(($ac_try" in
24476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24477 *) ac_try_echo=$ac_try;;
24479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24480 (eval "$ac_link") 2>conftest.er1
24482 grep -v '^ *+' conftest.er1 >conftest.err
24484 cat conftest.err >&5
24485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24486 (exit $ac_status); } && {
24487 test -z "$ac_c_werror_flag" ||
24488 test ! -s conftest.err
24489 } && test -s conftest$ac_exeext &&
24490 $as_test_x conftest$ac_exeext; then
24491 ac_cv_lib_pthread_pthread_create=yes
24493 echo "$as_me: failed program was:" >&5
24494 sed 's/^/| /' conftest.$ac_ext >&5
24496 ac_cv_lib_pthread_pthread_create=no
24499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24500 conftest$ac_exeext conftest.$ac_ext
24501 LIBS=$ac_check_lib_save_LIBS
24503 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24504 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24505 if test $ac_cv_lib_pthread_pthread_create = yes; then
24513 if test ".$mcsc" = .yes; then
24515 elif test ".$pthread" = .yes; then
24518 ac_header=windows.h
24519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24521 windows_context=yes
24523 { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
24524 echo "$as_me: error: no appropriate backend found" >&2;}
24525 { (exit 1); exit 1; }; }
24530 { echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
24531 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6; }
24534 # Check whether --with-pthread was given.
24535 if test "${with_pthread+set}" = set; then
24536 withval=$with_pthread; with_context=pthread
24540 # Check whether --with-pthread was given.
24541 if test "${with_pthread+set}" = set; then
24542 withval=$with_pthread; with_context=pthread
24547 # Check whether --with-context was given.
24548 if test "${with_context+set}" = set; then
24549 withval=$with_context;
24555 if test "x$with_context$mcsc" = "xucontextno" ; then
24556 { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
24557 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
24558 { (exit 77); exit 77; }; }
24561 case $with_context in
24566 auto) with_context=ucontext;;
24567 *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
24568 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
24569 { (exit 1); exit 1; }; } ;;
24572 if test "x$with_context" = "xucontext" ; then
24573 if test ".$mcsc" = .yes; then
24574 { echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
24575 echo "${ECHO_T}found working ucontext. Great!" >&6; }
24577 cat >>confdefs.h <<\_ACEOF
24578 #define CONTEXT_UCONTEXT 1
24582 if test ".$windows_context" = .yes ; then
24583 { echo "$as_me:$LINENO: result: use windows context portability layer." >&5
24584 echo "${ECHO_T}use windows context portability layer." >&6; }
24585 with_context=windows
24587 { echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
24588 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6; }
24589 with_context=pthread
24594 if test "x$with_context" = "xpthreads"; then
24595 with_context=pthread
24597 if test "x$with_context" = "xpthread"; then
24599 for ac_header in pthread.h
24601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24606 echo $ECHO_N "(cached) $ECHO_C" >&6
24608 ac_res=`eval echo '${'$as_ac_Header'}'`
24609 { echo "$as_me:$LINENO: result: $ac_res" >&5
24610 echo "${ECHO_T}$ac_res" >&6; }
24612 # Is the header compilable?
24613 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24615 cat >conftest.$ac_ext <<_ACEOF
24618 cat confdefs.h >>conftest.$ac_ext
24619 cat >>conftest.$ac_ext <<_ACEOF
24620 /* end confdefs.h. */
24621 $ac_includes_default
24622 #include <$ac_header>
24624 rm -f conftest.$ac_objext
24625 if { (ac_try="$ac_compile"
24626 case "(($ac_try" in
24627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24628 *) ac_try_echo=$ac_try;;
24630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24631 (eval "$ac_compile") 2>conftest.er1
24633 grep -v '^ *+' conftest.er1 >conftest.err
24635 cat conftest.err >&5
24636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24637 (exit $ac_status); } && {
24638 test -z "$ac_c_werror_flag" ||
24639 test ! -s conftest.err
24640 } && test -s conftest.$ac_objext; then
24641 ac_header_compiler=yes
24643 echo "$as_me: failed program was:" >&5
24644 sed 's/^/| /' conftest.$ac_ext >&5
24646 ac_header_compiler=no
24649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24651 echo "${ECHO_T}$ac_header_compiler" >&6; }
24653 # Is the header present?
24654 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24655 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24656 cat >conftest.$ac_ext <<_ACEOF
24659 cat confdefs.h >>conftest.$ac_ext
24660 cat >>conftest.$ac_ext <<_ACEOF
24661 /* end confdefs.h. */
24662 #include <$ac_header>
24664 if { (ac_try="$ac_cpp conftest.$ac_ext"
24665 case "(($ac_try" in
24666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24667 *) ac_try_echo=$ac_try;;
24669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24672 grep -v '^ *+' conftest.er1 >conftest.err
24674 cat conftest.err >&5
24675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24676 (exit $ac_status); } >/dev/null && {
24677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24678 test ! -s conftest.err
24680 ac_header_preproc=yes
24682 echo "$as_me: failed program was:" >&5
24683 sed 's/^/| /' conftest.$ac_ext >&5
24685 ac_header_preproc=no
24688 rm -f conftest.err conftest.$ac_ext
24689 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24690 echo "${ECHO_T}$ac_header_preproc" >&6; }
24692 # So? What about this header?
24693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24695 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24696 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24698 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24699 ac_header_preproc=yes
24702 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24703 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24704 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24705 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24706 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24707 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24708 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24709 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24711 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24712 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24713 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24715 ## -------------------------------------------------- ##
24716 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24717 ## -------------------------------------------------- ##
24719 ) | sed "s/^/$as_me: WARNING: /" >&2
24722 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24725 echo $ECHO_N "(cached) $ECHO_C" >&6
24727 eval "$as_ac_Header=\$ac_header_preproc"
24729 ac_res=`eval echo '${'$as_ac_Header'}'`
24730 { echo "$as_me:$LINENO: result: $ac_res" >&5
24731 echo "${ECHO_T}$ac_res" >&6; }
24734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24735 cat >>confdefs.h <<_ACEOF
24736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24744 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24745 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24746 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24747 echo $ECHO_N "(cached) $ECHO_C" >&6
24749 ac_check_lib_save_LIBS=$LIBS
24750 LIBS="-lpthread $LIBS"
24751 cat >conftest.$ac_ext <<_ACEOF
24754 cat confdefs.h >>conftest.$ac_ext
24755 cat >>conftest.$ac_ext <<_ACEOF
24756 /* end confdefs.h. */
24758 /* Override any GCC internal prototype to avoid an error.
24759 Use char because int might match the return type of a GCC
24760 builtin and then its argument prototype would still apply. */
24764 char pthread_create ();
24768 return pthread_create ();
24773 rm -f conftest.$ac_objext conftest$ac_exeext
24774 if { (ac_try="$ac_link"
24775 case "(($ac_try" in
24776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24777 *) ac_try_echo=$ac_try;;
24779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24780 (eval "$ac_link") 2>conftest.er1
24782 grep -v '^ *+' conftest.er1 >conftest.err
24784 cat conftest.err >&5
24785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786 (exit $ac_status); } && {
24787 test -z "$ac_c_werror_flag" ||
24788 test ! -s conftest.err
24789 } && test -s conftest$ac_exeext &&
24790 $as_test_x conftest$ac_exeext; then
24791 ac_cv_lib_pthread_pthread_create=yes
24793 echo "$as_me: failed program was:" >&5
24794 sed 's/^/| /' conftest.$ac_ext >&5
24796 ac_cv_lib_pthread_pthread_create=no
24799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24800 conftest$ac_exeext conftest.$ac_ext
24801 LIBS=$ac_check_lib_save_LIBS
24803 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24804 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24805 if test $ac_cv_lib_pthread_pthread_create = yes; then
24806 cat >>confdefs.h <<_ACEOF
24807 #define HAVE_LIBPTHREAD 1
24810 LIBS="-lpthread $LIBS"
24813 { { echo "$as_me:$LINENO: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&5
24814 echo "$as_me: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&2;}
24815 { (exit 1); exit 1; }; }
24819 cat >>confdefs.h <<\_ACEOF
24820 #define CONTEXT_THREADS 1
24823 { echo "$as_me:$LINENO: result: You have pthreads. Let's use them." >&5
24824 echo "${ECHO_T}You have pthreads. Let's use them." >&6; }
24828 if test "x$with_context" = "xucontext" ; then
24829 { echo "$as_me:$LINENO: checking for direction of stack growth" >&5
24830 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6; }
24831 if test "${ac_cv_check_stackgrowth+set}" = set; then
24832 echo $ECHO_N "(cached) $ECHO_C" >&6
24836 if test "$cross_compiling" = yes; then
24837 ac_cv_check_stackgrowth=down
24840 cat >conftest.$ac_ext <<_ACEOF
24843 cat confdefs.h >>conftest.$ac_ext
24844 cat >>conftest.$ac_ext <<_ACEOF
24845 /* end confdefs.h. */
24848 #include <stdlib.h>
24849 static int iterate = 10;
24850 static int growsdown(int *x)
24860 int main(int argc, char *argv[])
24864 if ((f = fopen("conftestval", "w")) == NULL)
24866 fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
24873 rm -f conftest$ac_exeext
24874 if { (ac_try="$ac_link"
24875 case "(($ac_try" in
24876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24877 *) ac_try_echo=$ac_try;;
24879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24880 (eval "$ac_link") 2>&5
24882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24884 { (case "(($ac_try" in
24885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24886 *) ac_try_echo=$ac_try;;
24888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24889 (eval "$ac_try") 2>&5
24891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892 (exit $ac_status); }; }; then
24893 ac_cv_check_stackgrowth=`cat conftestval`
24895 echo "$as_me: program exited with status $ac_status" >&5
24896 echo "$as_me: failed program was:" >&5
24897 sed 's/^/| /' conftest.$ac_ext >&5
24899 ( exit $ac_status )
24900 ac_cv_check_stackgrowth=down
24902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24907 { echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
24908 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6; }
24909 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24915 cat >>confdefs.h <<_ACEOF
24916 #define PTH_STACKGROWTH $val
24920 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24921 PTH_STACK_GROWTH="down"
24923 PTH_STACK_GROWTH="up"
24931 for ac_func in makecontext
24933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24934 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24936 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24937 echo $ECHO_N "(cached) $ECHO_C" >&6
24939 cat >conftest.$ac_ext <<_ACEOF
24942 cat confdefs.h >>conftest.$ac_ext
24943 cat >>conftest.$ac_ext <<_ACEOF
24944 /* end confdefs.h. */
24945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24947 #define $ac_func innocuous_$ac_func
24949 /* System header to define __stub macros and hopefully few prototypes,
24950 which can conflict with char $ac_func (); below.
24951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24952 <limits.h> exists even on freestanding compilers. */
24955 # include <limits.h>
24957 # include <assert.h>
24962 /* Override any GCC internal prototype to avoid an error.
24963 Use char because int might match the return type of a GCC
24964 builtin and then its argument prototype would still apply. */
24969 /* The GNU C library defines this for functions which it implements
24970 to always fail with ENOSYS. Some functions are actually named
24971 something starting with __ and the normal name is an alias. */
24972 #if defined __stub_$ac_func || defined __stub___$ac_func
24979 return $ac_func ();
24984 rm -f conftest.$ac_objext conftest$ac_exeext
24985 if { (ac_try="$ac_link"
24986 case "(($ac_try" in
24987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24988 *) ac_try_echo=$ac_try;;
24990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24991 (eval "$ac_link") 2>conftest.er1
24993 grep -v '^ *+' conftest.er1 >conftest.err
24995 cat conftest.err >&5
24996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24997 (exit $ac_status); } && {
24998 test -z "$ac_c_werror_flag" ||
24999 test ! -s conftest.err
25000 } && test -s conftest$ac_exeext &&
25001 $as_test_x conftest$ac_exeext; then
25002 eval "$as_ac_var=yes"
25004 echo "$as_me: failed program was:" >&5
25005 sed 's/^/| /' conftest.$ac_ext >&5
25007 eval "$as_ac_var=no"
25010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25011 conftest$ac_exeext conftest.$ac_ext
25013 ac_res=`eval echo '${'$as_ac_var'}'`
25014 { echo "$as_me:$LINENO: result: $ac_res" >&5
25015 echo "${ECHO_T}$ac_res" >&6; }
25016 if test `eval echo '${'$as_ac_var'}'` = yes; then
25017 cat >>confdefs.h <<_ACEOF
25018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25025 { echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
25026 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6; }
25027 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
25028 echo $ECHO_N "(cached) $ECHO_C" >&6
25031 if test ".$ac_cv_func_makecontext" = .no; then
25032 ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
25035 CFLAGS="$CFLAGS -DTEST_makecontext"
25037 if test "$cross_compiling" = yes; then
25039 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25042 cat >conftest.$ac_ext <<_ACEOF
25045 cat confdefs.h >>conftest.$ac_ext
25046 cat >>conftest.$ac_ext <<_ACEOF
25047 /* end confdefs.h. */
25050 #include <stdlib.h>
25051 #include <string.h>
25052 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25053 #include <sys/types.h>
25054 #include <signal.h>
25055 #include <unistd.h>
25057 #if defined(TEST_makecontext)
25058 #include <ucontext.h>
25067 static volatile char *handler_addr = (char *)0xDEAD;
25068 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25069 static volatile int handler_done = 0;
25070 void handler(int sig)
25072 char garbage[1024];
25075 for (i = 0; i < 1024; i++)
25077 handler_addr = (char *)&dummy;
25082 #if defined(TEST_makecontext)
25083 static ucontext_t uc_handler;
25084 static ucontext_t uc_main;
25087 char garbage[1024];
25090 for (i = 0; i < 1024; i++)
25092 handler_addr = (char *)&dummy;
25093 swapcontext(&uc_handler, &uc_main);
25097 int main(int argc, char *argv[])
25106 skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
25109 for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
25111 skaddr = skbuf+sizeof(union alltypes);
25112 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25114 struct sigaction sa;
25115 #if defined(TEST_sigstack)
25116 struct sigstack ss;
25117 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
25120 struct sigaltstack ss;
25122 #if defined(TEST_sigstack)
25123 ss.ss_sp = (void *)(skaddr + sksize);
25125 if (sigstack(&ss, NULL) < 0)
25127 #elif defined(TEST_sigaltstack)
25128 ss.ss_sp = (void *)(skaddr + sksize);
25129 ss.ss_size = sksize;
25131 if (sigaltstack(&ss, NULL) < 0)
25134 memset((void *)&sa, 0, sizeof(struct sigaction));
25135 sa.sa_handler = handler;
25136 sa.sa_flags = SA_ONSTACK;
25137 sigemptyset(&sa.sa_mask);
25138 sigaction(SIGUSR1, &sa, NULL);
25139 kill(getpid(), SIGUSR1);
25140 while (!handler_done)
25144 #if defined(TEST_makecontext)
25146 if (getcontext(&uc_handler) != 0)
25148 uc_handler.uc_link = NULL;
25149 uc_handler.uc_stack.ss_sp = (void *)(skaddr + sksize);
25150 uc_handler.uc_stack.ss_size = sksize;
25151 uc_handler.uc_stack.ss_flags = 0;
25152 makecontext(&uc_handler, handler, 1);
25153 swapcontext(&uc_main, &uc_handler);
25156 if (handler_addr == (char *)0xDEAD)
25158 if (handler_addr < skaddr+sksize) {
25159 /* stack was placed into lower area */
25160 if (*(skaddr+sksize) != 'A')
25161 sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
25162 sizeof(union alltypes), sizeof(union alltypes));
25164 strcpy(result, "(skaddr)+(sksize),(sksize)");
25167 /* stack was placed into higher area */
25168 if (*(skaddr+sksize*2) != 'A')
25169 sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
25171 strcpy(result, "(skaddr),(sksize)");
25173 if ((f = fopen("conftestval", "w")) == NULL)
25175 fprintf(f, "%s\n", result);
25181 rm -f conftest$ac_exeext
25182 if { (ac_try="$ac_link"
25183 case "(($ac_try" in
25184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25185 *) ac_try_echo=$ac_try;;
25187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25188 (eval "$ac_link") 2>&5
25190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25192 { (case "(($ac_try" in
25193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25194 *) ac_try_echo=$ac_try;;
25196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25197 (eval "$ac_try") 2>&5
25199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25200 (exit $ac_status); }; }; then
25202 ac_cv_stacksetup_makecontext=`cat conftestval`
25203 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
25206 echo "$as_me: program exited with status $ac_status" >&5
25207 echo "$as_me: failed program was:" >&5
25208 sed 's/^/| /' conftest.$ac_ext >&5
25210 ( exit $ac_status )
25212 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25223 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
25224 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
25225 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
25226 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
25227 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
25228 { echo "$as_me:$LINENO: result: $type" >&5
25229 echo "${ECHO_T}$type" >&6; }
25230 if test ".$verbose" = .yes; then
25231 { echo "$as_me:$LINENO: result: $pth_skaddr_makecontext" >&5
25232 echo "${ECHO_T} $pth_skaddr_makecontext" >&6; }
25235 if test ".$verbose" = .yes; then
25236 { echo "$as_me:$LINENO: result: $pth_sksize_makecontext" >&5
25237 echo "${ECHO_T} $pth_sksize_makecontext" >&6; }
25243 #########################################
25244 ## Check for libraries extra-dependencies
25248 { echo "$as_me:$LINENO: result: " >&5
25249 echo "${ECHO_T}" >&6; }
25250 { echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
25251 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6; }
25257 #########################################
25258 ## Build optional modules (gtnets)
25261 # Check whether --with-gtnets was given.
25262 if test "${with_gtnets+set}" = set; then
25263 withval=$with_gtnets; gtnets_path="$withval"
25268 if test "x$gtnets_path" = "xNO" ; then
25269 { echo "$as_me:$LINENO: result: Eventually you will come to GTNetS." >&5
25270 echo "${ECHO_T}Eventually you will come to GTNetS." >&6; }
25272 { echo "$as_me:$LINENO: result: ***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. ****" >&5
25273 echo "${ECHO_T}***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. ****" >&6; }
25275 cat >>confdefs.h <<\_ACEOF
25276 #define USE_GTNETS 1
25279 if ! test -e $gtnets_path ; then
25280 { { echo "$as_me:$LINENO: error: Provided path to GTNetS include files ($gtnets_path) do not exist!" >&5
25281 echo "$as_me: error: Provided path to GTNetS include files ($gtnets_path) do not exist!" >&2;}
25282 { (exit 1); exit 1; }; }
25284 GTNETS_CFLAGS=-I$gtnets_path/include
25286 GTNETS_LDFLAGS=-L$gtnets_path/lib
25288 SIMGRID_DEP="$SIMGRID_DEP $GTNETS_LDFLAGS -lgtnets"
25290 if test "x$gtnets_path" != xNO; then
25292 USE_GTNETS_FALSE='#'
25294 USE_GTNETS_TRUE='#'
25299 if test xpthread=xyes ; then
25300 # if the pthreads are usable
25301 if test "x$with_context" = "xpthread" ; then
25302 # if we use them to implement the xbt_context
25303 SIMGRID_DEP="-lpthread"
25305 # we need them in any case for the gras lib (which is multithreaded), but on windows (of course)
25306 if test "x$with_context" != "xwindows" ; then
25307 GRAS_DEP="-lpthread"
25311 { echo "$as_me:$LINENO: checking for csdp" >&5
25312 echo $ECHO_N "checking for csdp... $ECHO_C" >&6; }
25314 { echo "$as_me:$LINENO: checking for sdp in -lsdp" >&5
25315 echo $ECHO_N "checking for sdp in -lsdp... $ECHO_C" >&6; }
25316 if test "${ac_cv_lib_sdp_sdp+set}" = set; then
25317 echo $ECHO_N "(cached) $ECHO_C" >&6
25319 ac_check_lib_save_LIBS=$LIBS
25320 LIBS="-lsdp -llapack -lblas -lm $LIBS"
25321 cat >conftest.$ac_ext <<_ACEOF
25324 cat confdefs.h >>conftest.$ac_ext
25325 cat >>conftest.$ac_ext <<_ACEOF
25326 /* end confdefs.h. */
25328 /* Override any GCC internal prototype to avoid an error.
25329 Use char because int might match the return type of a GCC
25330 builtin and then its argument prototype would still apply. */
25343 rm -f conftest.$ac_objext conftest$ac_exeext
25344 if { (ac_try="$ac_link"
25345 case "(($ac_try" in
25346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25347 *) ac_try_echo=$ac_try;;
25349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25350 (eval "$ac_link") 2>conftest.er1
25352 grep -v '^ *+' conftest.er1 >conftest.err
25354 cat conftest.err >&5
25355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356 (exit $ac_status); } && {
25357 test -z "$ac_c_werror_flag" ||
25358 test ! -s conftest.err
25359 } && test -s conftest$ac_exeext &&
25360 $as_test_x conftest$ac_exeext; then
25361 ac_cv_lib_sdp_sdp=yes
25363 echo "$as_me: failed program was:" >&5
25364 sed 's/^/| /' conftest.$ac_ext >&5
25366 ac_cv_lib_sdp_sdp=no
25369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25370 conftest$ac_exeext conftest.$ac_ext
25371 LIBS=$ac_check_lib_save_LIBS
25373 { echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_sdp" >&5
25374 echo "${ECHO_T}$ac_cv_lib_sdp_sdp" >&6; }
25375 if test $ac_cv_lib_sdp_sdp = yes; then
25381 if test "x$csdp" = xyes; then
25382 SIMGRID_DEP="$SIMGRID_DEP -lsdp -llapack -lblas -lm"
25383 { echo "$as_me:$LINENO: result: Found working sdp library." >&5
25384 echo "${ECHO_T}Found working sdp library." >&6; }
25386 cat >>confdefs.h <<\_ACEOF
25391 { echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
25392 echo "${ECHO_T}Could not find any working sdp library." >&6; }
25394 if test x$csdp != xno; then
25405 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25406 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
25407 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25408 echo $ECHO_N "(cached) $ECHO_C" >&6
25410 ac_check_lib_save_LIBS=$LIBS
25412 cat >conftest.$ac_ext <<_ACEOF
25415 cat confdefs.h >>conftest.$ac_ext
25416 cat >>conftest.$ac_ext <<_ACEOF
25417 /* end confdefs.h. */
25419 /* Override any GCC internal prototype to avoid an error.
25420 Use char because int might match the return type of a GCC
25421 builtin and then its argument prototype would still apply. */
25425 char gethostbyname ();
25429 return gethostbyname ();
25434 rm -f conftest.$ac_objext conftest$ac_exeext
25435 if { (ac_try="$ac_link"
25436 case "(($ac_try" in
25437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25438 *) ac_try_echo=$ac_try;;
25440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25441 (eval "$ac_link") 2>conftest.er1
25443 grep -v '^ *+' conftest.er1 >conftest.err
25445 cat conftest.err >&5
25446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25447 (exit $ac_status); } && {
25448 test -z "$ac_c_werror_flag" ||
25449 test ! -s conftest.err
25450 } && test -s conftest$ac_exeext &&
25451 $as_test_x conftest$ac_exeext; then
25452 ac_cv_lib_nsl_gethostbyname=yes
25454 echo "$as_me: failed program was:" >&5
25455 sed 's/^/| /' conftest.$ac_ext >&5
25457 ac_cv_lib_nsl_gethostbyname=no
25460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25461 conftest$ac_exeext conftest.$ac_ext
25462 LIBS=$ac_check_lib_save_LIBS
25464 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25465 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
25466 if test $ac_cv_lib_nsl_gethostbyname = yes; then
25467 GRAS_DEP="$GRAS_DEP -lnsl"
25470 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25471 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
25472 if test "${ac_cv_lib_socket_connect+set}" = set; then
25473 echo $ECHO_N "(cached) $ECHO_C" >&6
25475 ac_check_lib_save_LIBS=$LIBS
25476 LIBS="-lsocket $LIBS"
25477 cat >conftest.$ac_ext <<_ACEOF
25480 cat confdefs.h >>conftest.$ac_ext
25481 cat >>conftest.$ac_ext <<_ACEOF
25482 /* end confdefs.h. */
25484 /* Override any GCC internal prototype to avoid an error.
25485 Use char because int might match the return type of a GCC
25486 builtin and then its argument prototype would still apply. */
25499 rm -f conftest.$ac_objext conftest$ac_exeext
25500 if { (ac_try="$ac_link"
25501 case "(($ac_try" in
25502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25503 *) ac_try_echo=$ac_try;;
25505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25506 (eval "$ac_link") 2>conftest.er1
25508 grep -v '^ *+' conftest.er1 >conftest.err
25510 cat conftest.err >&5
25511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25512 (exit $ac_status); } && {
25513 test -z "$ac_c_werror_flag" ||
25514 test ! -s conftest.err
25515 } && test -s conftest$ac_exeext &&
25516 $as_test_x conftest$ac_exeext; then
25517 ac_cv_lib_socket_connect=yes
25519 echo "$as_me: failed program was:" >&5
25520 sed 's/^/| /' conftest.$ac_ext >&5
25522 ac_cv_lib_socket_connect=no
25525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25526 conftest$ac_exeext conftest.$ac_ext
25527 LIBS=$ac_check_lib_save_LIBS
25529 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25530 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
25531 if test $ac_cv_lib_socket_connect = yes; then
25532 GRAS_DEP="$GRAS_DEP -lsocket"
25536 { echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
25537 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6; }
25539 *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32";
25540 AM_CFLAGS=-DDLL_EXPORT
25542 cat >>confdefs.h <<\_ACEOF
25543 #define CONTEXT_THREADS 1
25548 if test "x$GRAS_DEP" = x; then
25549 { echo "$as_me:$LINENO: result: none" >&5
25550 echo "${ECHO_T}none" >&6; }
25552 { echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
25553 echo "${ECHO_T}$GRAS_DEP" >&6; }
25557 ##############################################
25558 ## Enhance maintainer mode and SUBST variables
25559 ## (must be placed after any compilation tests since our overprotective flags
25560 ## let some tests fail)
25562 # Check whether we are doing a regular build or a GRAMINE (minimal) one
25563 # Next line is modified by sed when building gramine source tree
25565 if test x$gramine_mode = xyes
25567 USE_MAINTAINER_MODE=no
25569 if test x$gramine_mode != xno; then
25571 GRAMINE_MODE_FALSE='#'
25573 GRAMINE_MODE_TRUE='#'
25574 GRAMINE_MODE_FALSE=
25579 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
25580 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
25581 # Check whether --enable-maintainer-mode was given.
25582 if test "${enable_maintainer_mode+set}" = set; then
25583 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
25585 USE_MAINTAINER_MODE=no
25588 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
25589 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
25590 if test $USE_MAINTAINER_MODE = yes; then
25591 MAINTAINER_MODE_TRUE=
25592 MAINTAINER_MODE_FALSE='#'
25594 MAINTAINER_MODE_TRUE='#'
25595 MAINTAINER_MODE_FALSE=
25598 MAINT=$MAINTAINER_MODE_TRUE
25601 if test x$USE_MAINTAINER_MODE = xyes
25603 # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
25604 enable_compile_warnings=yes
25607 # Check whether --enable-compile-warnings was given.
25608 if test "${enable_compile_warnings+set}" = set; then
25609 enableval=$enable_compile_warnings; enable_compile_warnings=$enableval
25611 enable_compile_warnings=no
25615 # Check whether --enable-compile-optimizations was given.
25616 if test "${enable_compile_optimizations+set}" = set; then
25617 enableval=$enable_compile_optimizations; enable_compile_optimizations=$enableval
25619 enable_compile_optimizations=auto
25623 if test "x$cflags_set" != "xyes" ; then
25624 # if user didn't specify CFLAGS explicitely
25626 # AC PROG CC tests whether -g is accepted.
25627 # Cool, but it also tries to set -O2. I don't want it with gcc
25628 saveCFLAGS="$CFLAGS"
25630 case " $saveCFLAGS " in
25631 *-g*) CFLAGS="-g" ;;
25633 case " $saveCFLAGS " in
25634 *-O2*) test "x$CC" = xgcc || CFLAGS="$CFLAGS -O2" ;;
25637 # damn AC PROG CC, why did you set -O??
25641 if test "x$enable_compile_warnings" = "xyes" ; then
25642 { echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
25643 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6; }
25645 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25646 case " $CFLAGS " in
25648 *) warnCFLAGS="-Wall -Wunused" ;;
25651 ## -W is not all that useful. And it cannot be controlled
25652 ## with individual -Wno-xxx flags, unlike -Wall
25654 ##Â -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
25655 ## -Wshadow chokes on try{ try{} } constructs
25656 if test "x$enable_compile_warnings" = "xyes"; then
25657 warnCFLAGS=`echo $warnCFLAGS -Wmissing-prototypes -Wmissing-declarations \
25658 -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
25659 -Wno-unused-function \
25662 # -Wno-unused-variable -Wno-unused-label
25665 { echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
25666 echo "${ECHO_T}$warnCFLAGS" >&6; }
25667 # placed before since gcc remembers the last one on conflict
25668 CFLAGS="$warnCFLAGS $CFLAGS"
25671 if test "x$enable_compile_optimizations" = "xyes" ||
25672 test "x$enable_compile_optimizations" = "xauto" ; then
25673 { echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
25674 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6; }
25676 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25677 case " $CFLAGS " in
25679 *) optCFLAGS="$optCFLAGS -O3" ;;
25681 optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
25683 GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
25684 GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
25685 if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" != "x2" ; then
25686 # avoid gcc bug #12828, which is fixed in 3.4.0, but this version
25687 # isn't propagated enough to desserve an extra check
25689 # Note that the flag didn't exist before gcc 3.0
25690 optCFLAGS="$optCFLAGS -fno-loop-optimize"
25693 { echo "$as_me:$LINENO: result: $optCFLAGS" >&5
25694 echo "${ECHO_T}$optCFLAGS" >&6; }
25695 # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
25696 if test "x$cflags_set" != "xyes" ; then
25697 CFLAGS="$optCFLAGS $CFLAGS"
25701 if test x$lt_cv_prog_gnu_ld = xyes ; then
25702 LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
25721 { echo "$as_me:$LINENO: result: " >&5
25722 echo "${ECHO_T}" >&6; }
25723 { echo "$as_me:$LINENO: result: ${T_MD}Check for Java bindings...${T_ME}" >&5
25724 echo "${ECHO_T}${T_MD}Check for Java bindings...${T_ME}" >&6; }
25727 # Check whether --enable-java was given.
25728 if test "${enable_java+set}" = set; then
25729 enableval=$enable_java; want_java=$enableval
25734 if test "x$want_java" != "xyes" ; then
25735 { echo "$as_me:$LINENO: checking whether to compile java bindings" >&5
25736 echo $ECHO_N "checking whether to compile java bindings... $ECHO_C" >&6; }
25737 { echo "$as_me:$LINENO: result: disabled by user" >&5
25738 echo "${ECHO_T}disabled by user" >&6; }
25739 use_java="disabled by user"
25741 # Extract the first word of "javac", so it can be a program name with args.
25742 set dummy javac; ac_word=$2
25743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25745 if test "${ac_cv_path_JAVAC+set}" = set; then
25746 echo $ECHO_N "(cached) $ECHO_C" >&6
25750 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
25753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25754 for as_dir in $PATH
25757 test -z "$as_dir" && as_dir=.
25758 for ac_exec_ext in '' $ac_executable_extensions; do
25759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25760 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
25761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25768 test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="`which javac`"
25772 JAVAC=$ac_cv_path_JAVAC
25773 if test -n "$JAVAC"; then
25774 { echo "$as_me:$LINENO: result: $JAVAC" >&5
25775 echo "${ECHO_T}$JAVAC" >&6; }
25777 { echo "$as_me:$LINENO: result: no" >&5
25778 echo "${ECHO_T}no" >&6; }
25782 # Extract the first word of "java ", so it can be a program name with args.
25783 set dummy java ; ac_word=$2
25784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25786 if test "${ac_cv_path_JAVA+set}" = set; then
25787 echo $ECHO_N "(cached) $ECHO_C" >&6
25791 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
25794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25795 for as_dir in $PATH
25798 test -z "$as_dir" && as_dir=.
25799 for ac_exec_ext in '' $ac_executable_extensions; do
25800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25801 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
25802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25809 test -z "$ac_cv_path_JAVA" && ac_cv_path_JAVA="`which java`"
25813 JAVA=$ac_cv_path_JAVA
25814 if test -n "$JAVA"; then
25815 { echo "$as_me:$LINENO: result: $JAVA" >&5
25816 echo "${ECHO_T}$JAVA" >&6; }
25818 { echo "$as_me:$LINENO: result: no" >&5
25819 echo "${ECHO_T}no" >&6; }
25823 # Extract the first word of "jar ", so it can be a program name with args.
25824 set dummy jar ; ac_word=$2
25825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25827 if test "${ac_cv_path_JAR+set}" = set; then
25828 echo $ECHO_N "(cached) $ECHO_C" >&6
25832 ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
25835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25836 for as_dir in $PATH
25839 test -z "$as_dir" && as_dir=.
25840 for ac_exec_ext in '' $ac_executable_extensions; do
25841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25842 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
25843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25850 test -z "$ac_cv_path_JAR" && ac_cv_path_JAR="`which jar`"
25854 JAR=$ac_cv_path_JAR
25855 if test -n "$JAR"; then
25856 { echo "$as_me:$LINENO: result: $JAR" >&5
25857 echo "${ECHO_T}$JAR" >&6; }
25859 { echo "$as_me:$LINENO: result: no" >&5
25860 echo "${ECHO_T}no" >&6; }
25865 for ac_header in jni.h
25867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25869 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25872 echo $ECHO_N "(cached) $ECHO_C" >&6
25874 ac_res=`eval echo '${'$as_ac_Header'}'`
25875 { echo "$as_me:$LINENO: result: $ac_res" >&5
25876 echo "${ECHO_T}$ac_res" >&6; }
25878 # Is the header compilable?
25879 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25880 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25881 cat >conftest.$ac_ext <<_ACEOF
25884 cat confdefs.h >>conftest.$ac_ext
25885 cat >>conftest.$ac_ext <<_ACEOF
25886 /* end confdefs.h. */
25887 $ac_includes_default
25888 #include <$ac_header>
25890 rm -f conftest.$ac_objext
25891 if { (ac_try="$ac_compile"
25892 case "(($ac_try" in
25893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25894 *) ac_try_echo=$ac_try;;
25896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25897 (eval "$ac_compile") 2>conftest.er1
25899 grep -v '^ *+' conftest.er1 >conftest.err
25901 cat conftest.err >&5
25902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903 (exit $ac_status); } && {
25904 test -z "$ac_c_werror_flag" ||
25905 test ! -s conftest.err
25906 } && test -s conftest.$ac_objext; then
25907 ac_header_compiler=yes
25909 echo "$as_me: failed program was:" >&5
25910 sed 's/^/| /' conftest.$ac_ext >&5
25912 ac_header_compiler=no
25915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25916 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25917 echo "${ECHO_T}$ac_header_compiler" >&6; }
25919 # Is the header present?
25920 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25921 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25922 cat >conftest.$ac_ext <<_ACEOF
25925 cat confdefs.h >>conftest.$ac_ext
25926 cat >>conftest.$ac_ext <<_ACEOF
25927 /* end confdefs.h. */
25928 #include <$ac_header>
25930 if { (ac_try="$ac_cpp conftest.$ac_ext"
25931 case "(($ac_try" in
25932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25933 *) ac_try_echo=$ac_try;;
25935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25938 grep -v '^ *+' conftest.er1 >conftest.err
25940 cat conftest.err >&5
25941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25942 (exit $ac_status); } >/dev/null && {
25943 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25944 test ! -s conftest.err
25946 ac_header_preproc=yes
25948 echo "$as_me: failed program was:" >&5
25949 sed 's/^/| /' conftest.$ac_ext >&5
25951 ac_header_preproc=no
25954 rm -f conftest.err conftest.$ac_ext
25955 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25956 echo "${ECHO_T}$ac_header_preproc" >&6; }
25958 # So? What about this header?
25959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25964 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25965 ac_header_preproc=yes
25968 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25969 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25970 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25971 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25972 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25973 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25974 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25975 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25978 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25979 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25981 ## -------------------------------------------------- ##
25982 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
25983 ## -------------------------------------------------- ##
25985 ) | sed "s/^/$as_me: WARNING: /" >&2
25988 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25991 echo $ECHO_N "(cached) $ECHO_C" >&6
25993 eval "$as_ac_Header=\$ac_header_preproc"
25995 ac_res=`eval echo '${'$as_ac_Header'}'`
25996 { echo "$as_me:$LINENO: result: $ac_res" >&5
25997 echo "${ECHO_T}$ac_res" >&6; }
26000 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26001 cat >>confdefs.h <<_ACEOF
26002 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26009 { echo "$as_me:$LINENO: checking whether to compile java bindings" >&5
26010 echo $ECHO_N "checking whether to compile java bindings... $ECHO_C" >&6; }
26011 if test -n "$JAVAC" \
26012 && test -n "$JAVA" \
26013 && test -n "$JAR" \
26014 && test "x$ac_cv_header_jni_h" = "xyes" ; then
26020 { echo "$as_me:$LINENO: result: $use_java" >&5
26021 echo "${ECHO_T}$use_java" >&6; }
26023 if test "x$use_java" = "xyes"; then
26025 HAVE_JAVA_FALSE='#'
26032 #####################
26033 ## Check for programs
26037 { echo "$as_me:$LINENO: result: " >&5
26038 echo "${ECHO_T}" >&6; }
26039 { echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
26040 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6; }
26042 # Extract the first word of "bash", so it can be a program name with args.
26043 set dummy bash; ac_word=$2
26044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26046 if test "${ac_cv_prog_BASH+set}" = set; then
26047 echo $ECHO_N "(cached) $ECHO_C" >&6
26049 if test -n "$BASH"; then
26050 ac_cv_prog_BASH="$BASH" # Let the user override the test.
26052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26053 for as_dir in $PATH
26056 test -z "$as_dir" && as_dir=.
26057 for ac_exec_ext in '' $ac_executable_extensions; do
26058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26059 ac_cv_prog_BASH="`which bash`"
26060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26067 test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
26070 BASH=$ac_cv_prog_BASH
26071 if test -n "$BASH"; then
26072 { echo "$as_me:$LINENO: result: $BASH" >&5
26073 echo "${ECHO_T}$BASH" >&6; }
26075 { echo "$as_me:$LINENO: result: no" >&5
26076 echo "${ECHO_T}no" >&6; }
26080 WARNING="This file is generated, do not edit"
26084 # Can we rebuild the parsers?
26085 # We really want flex and refuse other lex. So, the parser is portable and
26086 # does not induce extra lib dependency
26087 for ac_prog in flex lex
26089 # Extract the first word of "$ac_prog", so it can be a program name with args.
26090 set dummy $ac_prog; ac_word=$2
26091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26093 if test "${ac_cv_prog_LEX+set}" = set; then
26094 echo $ECHO_N "(cached) $ECHO_C" >&6
26096 if test -n "$LEX"; then
26097 ac_cv_prog_LEX="$LEX" # Let the user override the test.
26099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26100 for as_dir in $PATH
26103 test -z "$as_dir" && as_dir=.
26104 for ac_exec_ext in '' $ac_executable_extensions; do
26105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26106 ac_cv_prog_LEX="$ac_prog"
26107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26116 LEX=$ac_cv_prog_LEX
26117 if test -n "$LEX"; then
26118 { echo "$as_me:$LINENO: result: $LEX" >&5
26119 echo "${ECHO_T}$LEX" >&6; }
26121 { echo "$as_me:$LINENO: result: no" >&5
26122 echo "${ECHO_T}no" >&6; }
26126 test -n "$LEX" && break
26128 test -n "$LEX" || LEX=":"
26130 if test "x$LEX" != "x:"; then
26131 cat >conftest.l <<_ACEOF
26137 e { yyless (input () != 0); }
26138 f { unput (yytext[0]); }
26139 . { BEGIN INITIAL; }
26141 #ifdef YYTEXT_POINTER
26142 extern char *yytext;
26147 return ! yylex () + ! yywrap ();
26150 { (ac_try="$LEX conftest.l"
26151 case "(($ac_try" in
26152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26153 *) ac_try_echo=$ac_try;;
26155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26156 (eval "$LEX conftest.l") 2>&5
26158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26159 (exit $ac_status); }
26160 { echo "$as_me:$LINENO: checking lex output file root" >&5
26161 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
26162 if test "${ac_cv_prog_lex_root+set}" = set; then
26163 echo $ECHO_N "(cached) $ECHO_C" >&6
26166 if test -f lex.yy.c; then
26167 ac_cv_prog_lex_root=lex.yy
26168 elif test -f lexyy.c; then
26169 ac_cv_prog_lex_root=lexyy
26171 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
26172 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
26173 { (exit 1); exit 1; }; }
26176 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
26177 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
26178 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
26180 if test -z "${LEXLIB+set}"; then
26181 { echo "$as_me:$LINENO: checking lex library" >&5
26182 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
26183 if test "${ac_cv_lib_lex+set}" = set; then
26184 echo $ECHO_N "(cached) $ECHO_C" >&6
26188 ac_cv_lib_lex='none needed'
26189 for ac_lib in '' -lfl -ll; do
26190 LIBS="$ac_lib $ac_save_LIBS"
26191 cat >conftest.$ac_ext <<_ACEOF
26192 `cat $LEX_OUTPUT_ROOT.c`
26194 rm -f conftest.$ac_objext conftest$ac_exeext
26195 if { (ac_try="$ac_link"
26196 case "(($ac_try" in
26197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26198 *) ac_try_echo=$ac_try;;
26200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26201 (eval "$ac_link") 2>conftest.er1
26203 grep -v '^ *+' conftest.er1 >conftest.err
26205 cat conftest.err >&5
26206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26207 (exit $ac_status); } && {
26208 test -z "$ac_c_werror_flag" ||
26209 test ! -s conftest.err
26210 } && test -s conftest$ac_exeext &&
26211 $as_test_x conftest$ac_exeext; then
26212 ac_cv_lib_lex=$ac_lib
26214 echo "$as_me: failed program was:" >&5
26215 sed 's/^/| /' conftest.$ac_ext >&5
26220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26221 conftest$ac_exeext conftest.$ac_ext
26222 test "$ac_cv_lib_lex" != 'none needed' && break
26227 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
26228 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
26229 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
26233 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
26234 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
26235 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
26236 echo $ECHO_N "(cached) $ECHO_C" >&6
26238 # POSIX says lex can declare yytext either as a pointer or an array; the
26239 # default is implementation-dependent. Figure out which it is, since
26240 # not all implementations provide the %pointer and %array declarations.
26241 ac_cv_prog_lex_yytext_pointer=no
26243 LIBS="$LEXLIB $ac_save_LIBS"
26244 cat >conftest.$ac_ext <<_ACEOF
26245 #define YYTEXT_POINTER 1
26246 `cat $LEX_OUTPUT_ROOT.c`
26248 rm -f conftest.$ac_objext conftest$ac_exeext
26249 if { (ac_try="$ac_link"
26250 case "(($ac_try" in
26251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26252 *) ac_try_echo=$ac_try;;
26254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26255 (eval "$ac_link") 2>conftest.er1
26257 grep -v '^ *+' conftest.er1 >conftest.err
26259 cat conftest.err >&5
26260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26261 (exit $ac_status); } && {
26262 test -z "$ac_c_werror_flag" ||
26263 test ! -s conftest.err
26264 } && test -s conftest$ac_exeext &&
26265 $as_test_x conftest$ac_exeext; then
26266 ac_cv_prog_lex_yytext_pointer=yes
26268 echo "$as_me: failed program was:" >&5
26269 sed 's/^/| /' conftest.$ac_ext >&5
26274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26275 conftest$ac_exeext conftest.$ac_ext
26279 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
26280 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
26281 if test $ac_cv_prog_lex_yytext_pointer = yes; then
26283 cat >>confdefs.h <<\_ACEOF
26284 #define YYTEXT_POINTER 1
26288 rm -f conftest.l $LEX_OUTPUT_ROOT.c
26292 if test "$LEX" != flex; then
26293 { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
26294 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
26295 LEX=${am_missing_run}flex
26299 if test "x2.5.30" != "x" ; then
26300 FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
26302 FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
26303 FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
26304 FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
26306 WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
26307 WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
26308 WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
26310 if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
26311 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED" ||
26312 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
26314 { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
26315 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
26316 LEX=${am_missing_run}flex
26320 { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
26321 echo "$as_me: Flex found. Parsers will get updated" >&6;}
26327 # Can we rebuild the xml-lexers from the XML specification?
26328 # if not, simply touch the flex source files (which are distributed in
26329 # tarballs even if generated by flexml) and hope for the best.
26330 # Extract the first word of "flexml", so it can be a program name with args.
26331 set dummy flexml; ac_word=$2
26332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26334 if test "${ac_cv_prog_FLEXML+set}" = set; then
26335 echo $ECHO_N "(cached) $ECHO_C" >&6
26337 if test -n "$FLEXML"; then
26338 ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
26340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26341 for as_dir in $PATH
26344 test -z "$as_dir" && as_dir=.
26345 for ac_exec_ext in '' $ac_executable_extensions; do
26346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26347 ac_cv_prog_FLEXML="`which flexml`"
26348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26355 test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
26358 FLEXML=$ac_cv_prog_FLEXML
26359 if test -n "$FLEXML"; then
26360 { echo "$as_me:$LINENO: result: $FLEXML" >&5
26361 echo "${ECHO_T}$FLEXML" >&6; }
26363 { echo "$as_me:$LINENO: result: no" >&5
26364 echo "${ECHO_T}no" >&6; }
26368 if test x$FLEXML != xNOTFOUND; then
26370 HAVE_FLEXML_FALSE='#'
26372 HAVE_FLEXML_TRUE='#'
26377 if test x$USE_MAINTAINER_MODE = xyes
26379 # Check for doxygen when in maintainer mode since dist* targets fail
26381 # Extract the first word of "doxygen", so it can be a program name with args.
26382 set dummy doxygen; ac_word=$2
26383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26385 if test "${ac_cv_path_DOXYGEN+set}" = set; then
26386 echo $ECHO_N "(cached) $ECHO_C" >&6
26390 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
26393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26394 for as_dir in $PATH
26397 test -z "$as_dir" && as_dir=.
26398 for ac_exec_ext in '' $ac_executable_extensions; do
26399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26400 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
26401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26408 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
26412 DOXYGEN=$ac_cv_path_DOXYGEN
26413 if test -n "$DOXYGEN"; then
26414 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
26415 echo "${ECHO_T}$DOXYGEN" >&6; }
26417 { echo "$as_me:$LINENO: result: no" >&5
26418 echo "${ECHO_T}no" >&6; }
26422 if test x$DOXYGEN = x ; then
26423 { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
26424 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
26425 { (exit 1); exit 1; }; }
26429 # Can we extract really usable backtraces? (also need the popen function)
26430 # Extract the first word of "addr2line", so it can be a program name with args.
26431 set dummy addr2line; ac_word=$2
26432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26434 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
26435 echo $ECHO_N "(cached) $ECHO_C" >&6
26439 ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
26442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26443 for as_dir in $PATH
26446 test -z "$as_dir" && as_dir=.
26447 for ac_exec_ext in '' $ac_executable_extensions; do
26448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26449 ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
26450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26460 ADDR2LINE=$ac_cv_path_ADDR2LINE
26461 if test -n "$ADDR2LINE"; then
26462 { echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
26463 echo "${ECHO_T}$ADDR2LINE" >&6; }
26465 { echo "$as_me:$LINENO: result: no" >&5
26466 echo "${ECHO_T}no" >&6; }
26470 if test x$ADDR2LINE != x ; then
26472 cat >>confdefs.h <<_ACEOF
26473 #define ADDR2LINE "$ADDR2LINE"
26479 # Can we make status line about the compilation result?
26480 # Extract the first word of "md5sum", so it can be a program name with args.
26481 set dummy md5sum; ac_word=$2
26482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26484 if test "${ac_cv_prog_MD5SUM+set}" = set; then
26485 echo $ECHO_N "(cached) $ECHO_C" >&6
26487 if test -n "$MD5SUM"; then
26488 ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
26490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26491 for as_dir in $PATH
26494 test -z "$as_dir" && as_dir=.
26495 for ac_exec_ext in '' $ac_executable_extensions; do
26496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26497 ac_cv_prog_MD5SUM="`which md5sum`"
26498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26507 MD5SUM=$ac_cv_prog_MD5SUM
26508 if test -n "$MD5SUM"; then
26509 { echo "$as_me:$LINENO: result: $MD5SUM" >&5
26510 echo "${ECHO_T}$MD5SUM" >&6; }
26512 { echo "$as_me:$LINENO: result: no" >&5
26513 echo "${ECHO_T}no" >&6; }
26517 if test x$MD5SUM != xno ; then
26518 build_version=`find -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
26519 xargs cat| $MD5SUM | sed 's/ .*$//'`
26521 build_version="no_md5sum_binary"
26523 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
26526 ###################
26527 ## Makes the output
26532 # examples/gras/chord/Makefile examples/gras/chord/test_sg examples/gras/chord/test_rl
26533 # src/amok/Makefile
26536 { echo "$as_me:$LINENO: result: " >&5
26537 echo "${ECHO_T}" >&6; }
26538 { echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
26539 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6; }
26542 # Core of the libraries
26544 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
26547 # Tools being embeeded in gramine (stub generator)
26548 ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile tools/tesh/Makefile"
26552 # GRAMINE_CUT_BEGIN
26554 # Tools NOT being embeeded in gramine
26555 ac_config_files="$ac_config_files tools/graspe-slave"
26560 ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage"
26564 ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
26569 # examples/gras/p2p/Makefile
26570 # examples/gras/p2p/chord/Makefile
26571 # examples/gras/p2p/can/Makefile
26573 if test "x$use_java" = "xyes" ; then
26574 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"
26578 ac_config_files="$ac_config_files examples/Makefile examples/msg/Makefile examples/msg/basic.tesh examples/msg/small_plat.tesh examples/msg/suspend.tesh examples/msg/flexml_bypass.tesh 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"
26584 cat >confcache <<\_ACEOF
26585 # This file is a shell script that caches the results of configure
26586 # tests run on this system so they can be shared between configure
26587 # scripts and configure runs, see configure's option --config-cache.
26588 # It is not useful on other systems. If it contains results you don't
26589 # want to keep, you may remove or edit it.
26591 # config.status only pays attention to the cache file if you give it
26592 # the --recheck option to rerun configure.
26594 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26595 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26596 # following values.
26600 # The following way of writing the cache mishandles newlines in values,
26601 # but we know of no workaround that is simple, portable, and efficient.
26602 # So, we kill variables containing newlines.
26603 # Ultrix sh set writes to stderr and can't be redirected directly,
26604 # and sets the high bit in the cache file unless we assign to the vars.
26606 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26607 eval ac_val=\$$ac_var
26611 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26612 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26615 _ | IFS | as_nl) ;; #(
26616 *) $as_unset $ac_var ;;
26622 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26623 *${as_nl}ac_space=\ *)
26624 # `set' does not quote correctly, so add quotes (double-quote
26625 # substitution turns \\\\ into \\, and sed turns \\ into \).
26628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26631 # `set' quotes correctly as required by POSIX, so do not add quotes.
26632 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26641 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26643 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26645 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26646 if test -w "$cache_file"; then
26647 test "x$cache_file" != "x/dev/null" &&
26648 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26649 echo "$as_me: updating cache $cache_file" >&6;}
26650 cat confcache >$cache_file
26652 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26653 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26658 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26659 # Let make expand exec_prefix.
26660 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26662 DEFS=-DHAVE_CONFIG_H
26666 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26667 # 1. Remove the extension, and $U if already installed.
26668 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26669 ac_i=`echo "$ac_i" | sed "$ac_script"`
26670 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26671 # will be set to the directory where LIBOBJS objects are built.
26672 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26673 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26675 LIBOBJS=$ac_libobjs
26677 LTLIBOBJS=$ac_ltlibobjs
26680 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26681 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26682 Usually this means the macro was only invoked conditionally." >&5
26683 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26684 Usually this means the macro was only invoked conditionally." >&2;}
26685 { (exit 1); exit 1; }; }
26687 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
26688 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
26689 Usually this means the macro was only invoked conditionally." >&5
26690 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
26691 Usually this means the macro was only invoked conditionally." >&2;}
26692 { (exit 1); exit 1; }; }
26694 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26695 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26696 Usually this means the macro was only invoked conditionally." >&5
26697 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26698 Usually this means the macro was only invoked conditionally." >&2;}
26699 { (exit 1); exit 1; }; }
26701 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26702 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26703 Usually this means the macro was only invoked conditionally." >&5
26704 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26705 Usually this means the macro was only invoked conditionally." >&2;}
26706 { (exit 1); exit 1; }; }
26708 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26709 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26710 Usually this means the macro was only invoked conditionally." >&5
26711 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26712 Usually this means the macro was only invoked conditionally." >&2;}
26713 { (exit 1); exit 1; }; }
26715 if test -z "${GRAS_ARCH_32_BITS_TRUE}" && test -z "${GRAS_ARCH_32_BITS_FALSE}"; then
26716 { { echo "$as_me:$LINENO: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
26717 Usually this means the macro was only invoked conditionally." >&5
26718 echo "$as_me: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
26719 Usually this means the macro was only invoked conditionally." >&2;}
26720 { (exit 1); exit 1; }; }
26722 if test -z "${USE_GTNETS_TRUE}" && test -z "${USE_GTNETS_FALSE}"; then
26723 { { echo "$as_me:$LINENO: error: conditional \"USE_GTNETS\" was never defined.
26724 Usually this means the macro was only invoked conditionally." >&5
26725 echo "$as_me: error: conditional \"USE_GTNETS\" was never defined.
26726 Usually this means the macro was only invoked conditionally." >&2;}
26727 { (exit 1); exit 1; }; }
26729 if test -z "${HAVE_SDP_TRUE}" && test -z "${HAVE_SDP_FALSE}"; then
26730 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDP\" was never defined.
26731 Usually this means the macro was only invoked conditionally." >&5
26732 echo "$as_me: error: conditional \"HAVE_SDP\" was never defined.
26733 Usually this means the macro was only invoked conditionally." >&2;}
26734 { (exit 1); exit 1; }; }
26736 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
26737 { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
26738 Usually this means the macro was only invoked conditionally." >&5
26739 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
26740 Usually this means the macro was only invoked conditionally." >&2;}
26741 { (exit 1); exit 1; }; }
26743 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26744 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26745 Usually this means the macro was only invoked conditionally." >&5
26746 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26747 Usually this means the macro was only invoked conditionally." >&2;}
26748 { (exit 1); exit 1; }; }
26750 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
26751 { { echo "$as_me:$LINENO: error: conditional \"HAVE_JAVA\" was never defined.
26752 Usually this means the macro was only invoked conditionally." >&5
26753 echo "$as_me: error: conditional \"HAVE_JAVA\" was never defined.
26754 Usually this means the macro was only invoked conditionally." >&2;}
26755 { (exit 1); exit 1; }; }
26757 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
26758 { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
26759 Usually this means the macro was only invoked conditionally." >&5
26760 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
26761 Usually this means the macro was only invoked conditionally." >&2;}
26762 { (exit 1); exit 1; }; }
26765 : ${CONFIG_STATUS=./config.status}
26766 ac_clean_files_save=$ac_clean_files
26767 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26768 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26769 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26770 cat >$CONFIG_STATUS <<_ACEOF
26772 # Generated by $as_me.
26773 # Run this file to recreate the current configuration.
26774 # Compiler output produced by configure, useful for debugging
26775 # configure, is in config.log if it exists.
26778 ac_cs_recheck=false
26780 SHELL=\${CONFIG_SHELL-$SHELL}
26783 cat >>$CONFIG_STATUS <<\_ACEOF
26784 ## --------------------- ##
26785 ## M4sh Initialization. ##
26786 ## --------------------- ##
26788 # Be more Bourne compatible
26789 DUALCASE=1; export DUALCASE # for MKS sh
26790 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26793 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26794 # is contrary to our usage. Disable this feature.
26795 alias -g '${1+"$@"}'='"$@"'
26796 setopt NO_GLOB_SUBST
26798 case `(set -o) 2>/dev/null` in
26799 *posix*) set -o posix ;;
26808 # Avoid depending upon Character Ranges.
26809 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26810 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26811 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26812 as_cr_digits='0123456789'
26813 as_cr_alnum=$as_cr_Letters$as_cr_digits
26815 # The user is always right.
26816 if test "${PATH_SEPARATOR+set}" != set; then
26817 echo "#! /bin/sh" >conf$$.sh
26818 echo "exit 0" >>conf$$.sh
26820 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26828 # Support unset when possible.
26829 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26837 # We need space, tab and new line, in precisely that order. Quoting is
26838 # there to prevent editors from complaining about space-tab.
26839 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26840 # splitting by setting IFS to empty value.)
26845 # Find who we are. Look in the path if we contain no directory separator.
26847 *[\\/]* ) as_myself=$0 ;;
26848 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26849 for as_dir in $PATH
26852 test -z "$as_dir" && as_dir=.
26853 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26859 # We did not find ourselves, most probably we were run as `sh COMMAND'
26860 # in which case we are not to be found in the path.
26861 if test "x$as_myself" = x; then
26864 if test ! -f "$as_myself"; then
26865 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26866 { (exit 1); exit 1; }
26869 # Work around bugs in pre-3.0 UWIN ksh.
26870 for as_var in ENV MAIL MAILPATH
26871 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26879 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26880 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26881 LC_TELEPHONE LC_TIME
26883 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26884 eval $as_var=C; export $as_var
26886 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26890 # Required to use basename.
26891 if expr a : '\(a\)' >/dev/null 2>&1 &&
26892 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26898 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26899 as_basename=basename
26905 # Name of the executable.
26906 as_me=`$as_basename -- "$0" ||
26907 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26908 X"$0" : 'X\(//\)$' \| \
26909 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26911 sed '/^.*\/\([^/][^/]*\)\/*$/{
26930 as_lineno_1=$LINENO
26931 as_lineno_2=$LINENO
26932 test "x$as_lineno_1" != "x$as_lineno_2" &&
26933 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26935 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26936 # uniformly replaced by the line number. The first 'sed' inserts a
26937 # line-number line after each line using $LINENO; the second 'sed'
26938 # does the real work. The second script uses 'N' to pair each
26939 # line-number line with the line containing $LINENO, and appends
26940 # trailing '-' during substitution so that $LINENO is not a special
26941 # case at line end.
26942 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26943 # scripts with optimization help from Paolo Bonzini. Blame Lee
26944 # E. McMahon (1931-1989) for sed's syntax. :-)
26956 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26959 ' >$as_me.lineno &&
26960 chmod +x "$as_me.lineno" ||
26961 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26962 { (exit 1); exit 1; }; }
26964 # Don't try to exec as it changes $[0], causing all sort of problems
26965 # (the dirname of $[0] is not the place where we might find the
26966 # original and so on. Autoconf is especially sensitive to this).
26967 . "./$as_me.lineno"
26968 # Exit status is that of the last command.
26973 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26979 ECHO_C= ECHO_N= ECHO_T=
26980 case `echo -n x` in
26982 case `echo 'x\c'` in
26983 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26990 if expr a : '\(a\)' >/dev/null 2>&1 &&
26991 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26997 rm -f conf$$ conf$$.exe conf$$.file
26998 if test -d conf$$.dir; then
26999 rm -f conf$$.dir/conf$$.file
27005 if ln -s conf$$.file conf$$ 2>/dev/null; then
27007 # ... but there are two gotchas:
27008 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27009 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27010 # In both cases, we have to default to `cp -p'.
27011 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27013 elif ln conf$$.file conf$$ 2>/dev/null; then
27018 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27019 rmdir conf$$.dir 2>/dev/null
27021 if mkdir -p . 2>/dev/null; then
27024 test -d ./-p && rmdir ./-p
27028 if test -x / >/dev/null 2>&1; then
27029 as_test_x='test -x'
27031 if ls -dL / >/dev/null 2>&1; then
27038 if test -d "$1"; then
27044 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27045 ???[sx]*):;;*)false;;esac;fi
27049 as_executable_p=$as_test_x
27051 # Sed expression to map a string onto a valid CPP name.
27052 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27054 # Sed expression to map a string onto a valid variable name.
27055 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27060 # Save the log message, to keep $[0] and so on meaningful, and to
27061 # report actual input values of CONFIG_FILES etc. instead of their
27062 # values after options handling.
27064 This file was extended by simgrid $as_me 3.3-cvs, which was
27065 generated by GNU Autoconf 2.61. Invocation command line was
27067 CONFIG_FILES = $CONFIG_FILES
27068 CONFIG_HEADERS = $CONFIG_HEADERS
27069 CONFIG_LINKS = $CONFIG_LINKS
27070 CONFIG_COMMANDS = $CONFIG_COMMANDS
27073 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27078 cat >>$CONFIG_STATUS <<_ACEOF
27079 # Files that config.status was made for.
27080 config_files="$ac_config_files"
27081 config_headers="$ac_config_headers"
27082 config_commands="$ac_config_commands"
27086 cat >>$CONFIG_STATUS <<\_ACEOF
27088 \`$as_me' instantiates files from templates according to the
27089 current configuration.
27091 Usage: $0 [OPTIONS] [FILE]...
27093 -h, --help print this help, then exit
27094 -V, --version print version number and configuration settings, then exit
27095 -q, --quiet do not print progress messages
27096 -d, --debug don't remove temporary files
27097 --recheck update $as_me by reconfiguring in the same conditions
27098 --file=FILE[:TEMPLATE]
27099 instantiate the configuration file FILE
27100 --header=FILE[:TEMPLATE]
27101 instantiate the configuration header FILE
27103 Configuration files:
27106 Configuration headers:
27109 Configuration commands:
27112 Report bugs to <bug-autoconf@gnu.org>."
27115 cat >>$CONFIG_STATUS <<_ACEOF
27117 simgrid config.status 3.3-cvs
27118 configured by $0, generated by GNU Autoconf 2.61,
27119 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27121 Copyright (C) 2006 Free Software Foundation, Inc.
27122 This config.status script is free software; the Free Software Foundation
27123 gives unlimited permission to copy, distribute and modify it."
27131 cat >>$CONFIG_STATUS <<\_ACEOF
27132 # If no file are specified by the user, then we need to provide default
27133 # value. By we need to know if files were specified by the user.
27139 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27140 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27151 # Handling of the options.
27152 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27154 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27155 echo "$ac_cs_version"; exit ;;
27156 --debug | --debu | --deb | --de | --d | -d )
27158 --file | --fil | --fi | --f )
27160 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27161 ac_need_defaults=false;;
27162 --header | --heade | --head | --hea )
27164 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27165 ac_need_defaults=false;;
27167 # Conflict between --help and --header
27168 { echo "$as_me: error: ambiguous option: $1
27169 Try \`$0 --help' for more information." >&2
27170 { (exit 1); exit 1; }; };;
27171 --help | --hel | -h )
27172 echo "$ac_cs_usage"; exit ;;
27173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27174 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27177 # This is an error.
27178 -*) { echo "$as_me: error: unrecognized option: $1
27179 Try \`$0 --help' for more information." >&2
27180 { (exit 1); exit 1; }; } ;;
27182 *) ac_config_targets="$ac_config_targets $1"
27183 ac_need_defaults=false ;;
27189 ac_configure_extra_args=
27191 if $ac_cs_silent; then
27193 ac_configure_extra_args="$ac_configure_extra_args --silent"
27197 cat >>$CONFIG_STATUS <<_ACEOF
27198 if \$ac_cs_recheck; then
27199 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27200 CONFIG_SHELL=$SHELL
27201 export CONFIG_SHELL
27202 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27206 cat >>$CONFIG_STATUS <<\_ACEOF
27210 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27211 ## Running $as_me. ##
27217 cat >>$CONFIG_STATUS <<_ACEOF
27221 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27225 cat >>$CONFIG_STATUS <<\_ACEOF
27227 # Handling of arguments.
27228 for ac_config_target in $ac_config_targets
27230 case $ac_config_target in
27231 "src/gras_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
27232 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27233 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27234 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
27235 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27236 "src/ucontext_stack.h") CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
27237 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
27238 "tools/gras/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
27239 "tools/tesh/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tesh/Makefile" ;;
27240 "tools/graspe-slave") CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
27241 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
27242 "testsuite/run_tests") CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
27243 "testsuite/gras/trp_tcp_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_tcp_usage" ;;
27244 "testsuite/gras/trp_file_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_file_usage" ;;
27245 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27246 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
27247 "examples/java/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/Makefile" ;;
27248 "examples/java/basic/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/basic/Makefile" ;;
27249 "examples/java/comm_time/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/comm_time/Makefile" ;;
27250 "examples/java/suspend/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/suspend/Makefile" ;;
27251 "examples/java/ping_pong/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/ping_pong/Makefile" ;;
27252 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
27253 "examples/msg/Makefile") CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
27254 "examples/msg/basic.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/basic.tesh" ;;
27255 "examples/msg/small_plat.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/small_plat.tesh" ;;
27256 "examples/msg/suspend.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/suspend.tesh" ;;
27257 "examples/msg/flexml_bypass.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/flexml_bypass.tesh" ;;
27258 "examples/simdag/Makefile") CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
27259 "examples/simdag/test_simdag") CONFIG_FILES="$CONFIG_FILES examples/simdag/test_simdag" ;;
27260 "examples/gras/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
27261 "examples/gras/ping/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
27262 "examples/gras/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
27263 "examples/gras/spawn/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/spawn/Makefile" ;;
27264 "examples/gras/synchro/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/synchro/Makefile" ;;
27265 "examples/gras/timer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
27266 "examples/gras/chrono/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
27267 "examples/gras/mutual_exclusion/simple_token/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
27268 "examples/gras/mmrpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
27269 "examples/gras/pmm/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
27270 "examples/gras/all2all/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
27271 "examples/amok/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
27272 "examples/amok/bandwidth/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/Makefile" ;;
27273 "examples/amok/bandwidth/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_sg" ;;
27274 "examples/amok/bandwidth/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_rl" ;;
27275 "examples/amok/saturate/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/Makefile" ;;
27276 "examples/amok/saturate/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_sg" ;;
27277 "examples/amok/saturate/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_rl" ;;
27279 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27280 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27281 { (exit 1); exit 1; }; };;
27286 # If the user did not use the arguments to specify the items to instantiate,
27287 # then the envvar interface is used. Set only those that are not.
27288 # We use the long form for the default assignment because of an extremely
27289 # bizarre bug on SunOS 4.1.3.
27290 if $ac_need_defaults; then
27291 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27292 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27293 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27296 # Have a temporary directory for convenience. Make it in the build tree
27297 # simply because there is no reason against having it here, and in addition,
27298 # creating and moving files from /tmp can sometimes cause problems.
27299 # Hook for its removal unless debugging.
27300 # Note that there is a small window in which the directory will not be cleaned:
27301 # after its creation but before its name has been assigned to `$tmp'.
27305 trap 'exit_status=$?
27306 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27308 trap '{ (exit 1); exit 1; }' 1 2 13 15
27310 # Create a (secure) tmp directory for tmp files.
27313 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27314 test -n "$tmp" && test -d "$tmp"
27317 tmp=./conf$$-$RANDOM
27318 (umask 077 && mkdir "$tmp")
27321 echo "$me: cannot create a temporary directory in ." >&2
27322 { (exit 1); exit 1; }
27326 # Set up the sed scripts for CONFIG_FILES section.
27329 # No need to generate the scripts if there are no CONFIG_FILES.
27330 # This happens for instance when ./config.status config.h
27331 if test -n "$CONFIG_FILES"; then
27338 for ac_last_try in false false false false false :; do
27339 cat >conf$$subs.sed <<_ACEOF
27340 SHELL!$SHELL$ac_delim
27341 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27342 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27343 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27344 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27345 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27346 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27347 exec_prefix!$exec_prefix$ac_delim
27348 prefix!$prefix$ac_delim
27349 program_transform_name!$program_transform_name$ac_delim
27350 bindir!$bindir$ac_delim
27351 sbindir!$sbindir$ac_delim
27352 libexecdir!$libexecdir$ac_delim
27353 datarootdir!$datarootdir$ac_delim
27354 datadir!$datadir$ac_delim
27355 sysconfdir!$sysconfdir$ac_delim
27356 sharedstatedir!$sharedstatedir$ac_delim
27357 localstatedir!$localstatedir$ac_delim
27358 includedir!$includedir$ac_delim
27359 oldincludedir!$oldincludedir$ac_delim
27360 docdir!$docdir$ac_delim
27361 infodir!$infodir$ac_delim
27362 htmldir!$htmldir$ac_delim
27363 dvidir!$dvidir$ac_delim
27364 pdfdir!$pdfdir$ac_delim
27365 psdir!$psdir$ac_delim
27366 libdir!$libdir$ac_delim
27367 localedir!$localedir$ac_delim
27368 mandir!$mandir$ac_delim
27369 DEFS!$DEFS$ac_delim
27370 ECHO_C!$ECHO_C$ac_delim
27371 ECHO_N!$ECHO_N$ac_delim
27372 ECHO_T!$ECHO_T$ac_delim
27373 LIBS!$LIBS$ac_delim
27374 build_alias!$build_alias$ac_delim
27375 host_alias!$host_alias$ac_delim
27376 target_alias!$target_alias$ac_delim
27377 build!$build$ac_delim
27378 build_cpu!$build_cpu$ac_delim
27379 build_vendor!$build_vendor$ac_delim
27380 build_os!$build_os$ac_delim
27381 host!$host$ac_delim
27382 host_cpu!$host_cpu$ac_delim
27383 host_vendor!$host_vendor$ac_delim
27384 host_os!$host_os$ac_delim
27385 target!$target$ac_delim
27386 target_cpu!$target_cpu$ac_delim
27387 target_vendor!$target_vendor$ac_delim
27388 target_os!$target_os$ac_delim
27390 GCJFLAGS!$GCJFLAGS$ac_delim
27391 am__leading_dot!$am__leading_dot$ac_delim
27392 DEPDIR!$DEPDIR$ac_delim
27393 am__include!$am__include$ac_delim
27394 am__quote!$am__quote$ac_delim
27395 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27396 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27397 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27398 GCJDEPMODE!$GCJDEPMODE$ac_delim
27399 am__fastdepGCJ_TRUE!$am__fastdepGCJ_TRUE$ac_delim
27400 am__fastdepGCJ_FALSE!$am__fastdepGCJ_FALSE$ac_delim
27401 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27402 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27403 INSTALL_DATA!$INSTALL_DATA$ac_delim
27404 am__isrc!$am__isrc$ac_delim
27405 CYGPATH_W!$CYGPATH_W$ac_delim
27406 PACKAGE!$PACKAGE$ac_delim
27407 VERSION!$VERSION$ac_delim
27408 ACLOCAL!$ACLOCAL$ac_delim
27409 AUTOCONF!$AUTOCONF$ac_delim
27410 AUTOMAKE!$AUTOMAKE$ac_delim
27411 AUTOHEADER!$AUTOHEADER$ac_delim
27412 MAKEINFO!$MAKEINFO$ac_delim
27413 install_sh!$install_sh$ac_delim
27414 STRIP!$STRIP$ac_delim
27415 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27416 mkdir_p!$mkdir_p$ac_delim
27418 SET_MAKE!$SET_MAKE$ac_delim
27419 AMTAR!$AMTAR$ac_delim
27420 am__tar!$am__tar$ac_delim
27421 am__untar!$am__untar$ac_delim
27423 CFLAGS!$CFLAGS$ac_delim
27424 LDFLAGS!$LDFLAGS$ac_delim
27425 CPPFLAGS!$CPPFLAGS$ac_delim
27426 ac_ct_CC!$ac_ct_CC$ac_delim
27427 EXEEXT!$EXEEXT$ac_delim
27428 OBJEXT!$OBJEXT$ac_delim
27429 CCDEPMODE!$CCDEPMODE$ac_delim
27430 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27431 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27432 GREP!$GREP$ac_delim
27433 EGREP!$EGREP$ac_delim
27434 LN_S!$LN_S$ac_delim
27435 ECHO!$ECHO$ac_delim
27439 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27441 elif $ac_last_try; then
27442 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27443 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27444 { (exit 1); exit 1; }; }
27446 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27450 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27451 if test -n "$ac_eof"; then
27452 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27453 ac_eof=`expr $ac_eof + 1`
27456 cat >>$CONFIG_STATUS <<_ACEOF
27457 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27458 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27461 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27462 s/^/s,@/; s/!/@,|#_!!_#|/
27465 s/'"$ac_delim"'$/,g/; t
27467 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27468 ' >>$CONFIG_STATUS <conf$$subs.sed
27469 rm -f conf$$subs.sed
27470 cat >>$CONFIG_STATUS <<_ACEOF
27476 for ac_last_try in false false false false false :; do
27477 cat >conf$$subs.sed <<_ACEOF
27478 RANLIB!$RANLIB$ac_delim
27479 DLLTOOL!$DLLTOOL$ac_delim
27481 OBJDUMP!$OBJDUMP$ac_delim
27484 CXXFLAGS!$CXXFLAGS$ac_delim
27485 ac_ct_CXX!$ac_ct_CXX$ac_delim
27486 CXXDEPMODE!$CXXDEPMODE$ac_delim
27487 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27488 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27489 CXXCPP!$CXXCPP$ac_delim
27490 LIBTOOL!$LIBTOOL$ac_delim
27491 LIBOBJS!$LIBOBJS$ac_delim
27492 GRAS_ARCH_32_BITS_TRUE!$GRAS_ARCH_32_BITS_TRUE$ac_delim
27493 GRAS_ARCH_32_BITS_FALSE!$GRAS_ARCH_32_BITS_FALSE$ac_delim
27494 PTH_STACK_GROWTH!$PTH_STACK_GROWTH$ac_delim
27495 pth_skaddr_makecontext!$pth_skaddr_makecontext$ac_delim
27496 pth_sksize_makecontext!$pth_sksize_makecontext$ac_delim
27497 GTNETS_CFLAGS!$GTNETS_CFLAGS$ac_delim
27498 GTNETS_LDFLAGS!$GTNETS_LDFLAGS$ac_delim
27499 USE_GTNETS_TRUE!$USE_GTNETS_TRUE$ac_delim
27500 USE_GTNETS_FALSE!$USE_GTNETS_FALSE$ac_delim
27501 HAVE_SDP_TRUE!$HAVE_SDP_TRUE$ac_delim
27502 HAVE_SDP_FALSE!$HAVE_SDP_FALSE$ac_delim
27503 SIMGRID_DEP!$SIMGRID_DEP$ac_delim
27504 AM_CFLAGS!$AM_CFLAGS$ac_delim
27505 GRAS_DEP!$GRAS_DEP$ac_delim
27506 GRAMINE_MODE_TRUE!$GRAMINE_MODE_TRUE$ac_delim
27507 GRAMINE_MODE_FALSE!$GRAMINE_MODE_FALSE$ac_delim
27508 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
27509 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
27510 MAINT!$MAINT$ac_delim
27511 LD_DYNAMIC_FLAGS!$LD_DYNAMIC_FLAGS$ac_delim
27512 abs_builddir!$abs_builddir$ac_delim
27513 abs_srcdir!$abs_srcdir$ac_delim
27514 abs_top_builddir!$abs_top_builddir$ac_delim
27515 abs_top_srcdir!$abs_top_srcdir$ac_delim
27516 JAVAC!$JAVAC$ac_delim
27517 JAVA!$JAVA$ac_delim
27519 HAVE_JAVA_TRUE!$HAVE_JAVA_TRUE$ac_delim
27520 HAVE_JAVA_FALSE!$HAVE_JAVA_FALSE$ac_delim
27521 BASH!$BASH$ac_delim
27522 WARNING!$WARNING$ac_delim
27524 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
27525 LEXLIB!$LEXLIB$ac_delim
27526 FLEXML!$FLEXML$ac_delim
27527 HAVE_FLEXML_TRUE!$HAVE_FLEXML_TRUE$ac_delim
27528 HAVE_FLEXML_FALSE!$HAVE_FLEXML_FALSE$ac_delim
27529 DOXYGEN!$DOXYGEN$ac_delim
27530 ADDR2LINE!$ADDR2LINE$ac_delim
27531 ac_configure_args!$ac_configure_args$ac_delim
27532 MD5SUM!$MD5SUM$ac_delim
27533 build_id!$build_id$ac_delim
27534 LTLIBOBJS!$LTLIBOBJS$ac_delim
27537 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 57; then
27539 elif $ac_last_try; then
27540 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27541 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27542 { (exit 1); exit 1; }; }
27544 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27548 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27549 if test -n "$ac_eof"; then
27550 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27551 ac_eof=`expr $ac_eof + 1`
27554 cat >>$CONFIG_STATUS <<_ACEOF
27555 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27556 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27559 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27560 s/^/s,@/; s/!/@,|#_!!_#|/
27563 s/'"$ac_delim"'$/,g/; t
27565 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27566 ' >>$CONFIG_STATUS <conf$$subs.sed
27567 rm -f conf$$subs.sed
27568 cat >>$CONFIG_STATUS <<_ACEOF
27575 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27576 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27577 # trailing colons and then remove the whole line if VPATH becomes empty
27578 # (actually we leave an empty line to preserve line numbers).
27579 if test "x$srcdir" = x.; then
27580 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27581 s/:*\$(srcdir):*/:/
27582 s/:*\${srcdir}:*/:/
27584 s/^\([^=]*=[ ]*\):*/\1/
27590 cat >>$CONFIG_STATUS <<\_ACEOF
27591 fi # test -n "$CONFIG_FILES"
27594 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
27597 :[FHLC]) ac_mode=$ac_tag; continue;;
27599 case $ac_mode$ac_tag in
27601 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27602 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27603 { (exit 1); exit 1; }; };;
27604 :[FH]-) ac_tag=-:-;;
27605 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27622 -) ac_f="$tmp/stdin";;
27623 *) # Look for the file first in the build tree, then in the source tree
27624 # (if the path is not absolute). The absolute path cannot be DOS-style,
27625 # because $ac_f cannot contain `:'.
27629 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27631 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27632 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27633 { (exit 1); exit 1; }; };;
27635 ac_file_inputs="$ac_file_inputs $ac_f"
27638 # Let's still pretend it is `configure' which instantiates (i.e., don't
27639 # use $as_me), people would be surprised to read:
27640 # /* config.h. Generated by config.status. */
27641 configure_input="Generated from "`IFS=:
27642 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27643 if test x"$ac_file" != x-; then
27644 configure_input="$ac_file. $configure_input"
27645 { echo "$as_me:$LINENO: creating $ac_file" >&5
27646 echo "$as_me: creating $ac_file" >&6;}
27650 *:-:* | *:-) cat >"$tmp/stdin";;
27655 ac_dir=`$as_dirname -- "$ac_file" ||
27656 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27657 X"$ac_file" : 'X\(//\)[^/]' \| \
27658 X"$ac_file" : 'X\(//\)$' \| \
27659 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27665 /^X\(\/\/\)[^/].*/{
27680 -*) as_dir=./$as_dir;;
27682 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27686 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27687 *) as_qdir=$as_dir;;
27689 as_dirs="'$as_qdir' $as_dirs"
27690 as_dir=`$as_dirname -- "$as_dir" ||
27691 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27692 X"$as_dir" : 'X\(//\)[^/]' \| \
27693 X"$as_dir" : 'X\(//\)$' \| \
27694 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27700 /^X\(\/\/\)[^/].*/{
27713 test -d "$as_dir" && break
27715 test -z "$as_dirs" || eval "mkdir $as_dirs"
27716 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27717 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27718 { (exit 1); exit 1; }; }; }
27722 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27724 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27725 # A ".." for each directory in $ac_dir_suffix.
27726 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27727 case $ac_top_builddir_sub in
27728 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27729 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27732 ac_abs_top_builddir=$ac_pwd
27733 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27734 # for backward compatibility:
27735 ac_top_builddir=$ac_top_build_prefix
27738 .) # We are building in place.
27740 ac_top_srcdir=$ac_top_builddir_sub
27741 ac_abs_top_srcdir=$ac_pwd ;;
27742 [\\/]* | ?:[\\/]* ) # Absolute name.
27743 ac_srcdir=$srcdir$ac_dir_suffix;
27744 ac_top_srcdir=$srcdir
27745 ac_abs_top_srcdir=$srcdir ;;
27746 *) # Relative name.
27747 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27748 ac_top_srcdir=$ac_top_build_prefix$srcdir
27749 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27751 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27761 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27762 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27764 ac_MKDIR_P=$MKDIR_P
27766 [\\/$]* | ?:[\\/]* ) ;;
27767 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27771 cat >>$CONFIG_STATUS <<\_ACEOF
27772 # If the template does not know about datarootdir, expand it.
27773 # FIXME: This hack should be removed a few years after 2.60.
27774 ac_datarootdir_hack=; ac_datarootdir_seen=
27776 case `sed -n '/datarootdir/ {
27785 ' $ac_file_inputs` in
27786 *datarootdir*) ac_datarootdir_seen=yes;;
27787 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27788 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27789 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27791 cat >>$CONFIG_STATUS <<_ACEOF
27792 ac_datarootdir_hack='
27793 s&@datadir@&$datadir&g
27794 s&@docdir@&$docdir&g
27795 s&@infodir@&$infodir&g
27796 s&@localedir@&$localedir&g
27797 s&@mandir@&$mandir&g
27798 s&\\\${datarootdir}&$datarootdir&g' ;;
27802 # Neutralize VPATH when `$srcdir' = `.'.
27803 # Shell code in configure.ac might set extrasub.
27804 # FIXME: do we really want to maintain this feature?
27805 cat >>$CONFIG_STATUS <<_ACEOF
27809 cat >>$CONFIG_STATUS <<\_ACEOF
27811 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27812 s&@configure_input@&$configure_input&;t t
27813 s&@top_builddir@&$ac_top_builddir_sub&;t t
27814 s&@srcdir@&$ac_srcdir&;t t
27815 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27816 s&@top_srcdir@&$ac_top_srcdir&;t t
27817 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27818 s&@builddir@&$ac_builddir&;t t
27819 s&@abs_builddir@&$ac_abs_builddir&;t t
27820 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27821 s&@INSTALL@&$ac_INSTALL&;t t
27822 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27823 $ac_datarootdir_hack
27824 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27826 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27827 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27828 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27829 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27830 which seems to be undefined. Please make sure it is defined." >&5
27831 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27832 which seems to be undefined. Please make sure it is defined." >&2;}
27836 -) cat "$tmp/out"; rm -f "$tmp/out";;
27837 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27846 # Transform confdefs.h into a sed script `conftest.defines', that
27847 # substitutes the proper values into config.h.in to produce config.h.
27848 rm -f conftest.defines conftest.tail
27849 # First, append a space to every undef/define line, to ease matching.
27850 echo 's/$/ /' >conftest.defines
27851 # Then, protect against being on the right side of a sed subst, or in
27852 # an unquoted here document, in config.status. If some macros were
27853 # called several times there might be several #defines for the same
27854 # symbol, which is useless. But do not sort them, since the last
27855 # AC_DEFINE must be honored.
27856 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27857 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27858 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27859 # PARAMS is the parameter list in the macro definition--in most cases, it's
27860 # just an empty string.
27861 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27862 ac_dB='\\)[ (].*,\\1define\\2'
27870 s/^[ ]*#[ ]*define[ ][ ]*//
27875 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27876 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27877 ' >>conftest.defines
27879 # Remove the space that was appended to ease matching.
27880 # Then replace #undef with comments. This is necessary, for
27881 # example, in the case of _POSIX_SOURCE, which is predefined and required
27882 # on some systems where configure will not decide to define it.
27883 # (The regexp can be short, since the line contains either #define or #undef.)
27885 s,^[ #]*u.*,/* & */,' >>conftest.defines
27887 # Break up conftest.defines:
27888 ac_max_sed_lines=50
27890 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27891 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27892 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27894 ac_in='$ac_file_inputs'
27895 ac_out='"$tmp/out1"'
27896 ac_nxt='"$tmp/out2"'
27900 # Write a here document:
27901 cat >>$CONFIG_STATUS <<_ACEOF
27902 # First, check the format of the line:
27903 cat >"\$tmp/defines.sed" <<\\CEOF
27904 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27905 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27909 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27911 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27912 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27913 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27914 grep . conftest.tail >/dev/null || break
27915 rm -f conftest.defines
27916 mv conftest.tail conftest.defines
27918 rm -f conftest.defines conftest.tail
27920 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27921 cat >>$CONFIG_STATUS <<\_ACEOF
27922 if test x"$ac_file" != x-; then
27923 echo "/* $configure_input */" >"$tmp/config.h"
27924 cat "$ac_result" >>"$tmp/config.h"
27925 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27926 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27927 echo "$as_me: $ac_file is unchanged" >&6;}
27930 mv "$tmp/config.h" $ac_file
27933 echo "/* $configure_input */"
27937 # Compute $ac_file's index in $config_headers.
27939 for _am_header in $config_headers :; do
27940 case $_am_header in
27941 $ac_file | $ac_file:* )
27944 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27947 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
27948 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27949 X$ac_file : 'X\(//\)[^/]' \| \
27950 X$ac_file : 'X\(//\)$' \| \
27951 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
27953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27957 /^X\(\/\/\)[^/].*/{
27969 s/.*/./; q'`/stamp-h$_am_stamp_count
27972 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27973 echo "$as_me: executing $ac_file commands" >&6;}
27978 case $ac_file$ac_mode in
27979 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27980 # Strip MF so we end up with the name of the file.
27981 mf=`echo "$mf" | sed -e 's/:.*$//'`
27982 # Check whether this is an Automake generated Makefile or not.
27983 # We used to match only the files named `Makefile.in', but
27984 # some people rename them; so instead we look at the file content.
27985 # Grep'ing the first line is not enough: some people post-process
27986 # each Makefile.in and add a new line on top of each file to say so.
27987 # Grep'ing the whole file is not good either: AIX grep has a line
27988 # limit of 2048, but all sed's we know have understand at least 4000.
27989 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
27990 dirpart=`$as_dirname -- "$mf" ||
27991 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27992 X"$mf" : 'X\(//\)[^/]' \| \
27993 X"$mf" : 'X\(//\)$' \| \
27994 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28000 /^X\(\/\/\)[^/].*/{
28016 # Extract the definition of DEPDIR, am__include, and am__quote
28017 # from the Makefile without running `make'.
28018 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28019 test -z "$DEPDIR" && continue
28020 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28021 test -z "am__include" && continue
28022 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28023 # When using ansi2knr, U may be empty or an underscore; expand it
28024 U=`sed -n 's/^U = //p' < "$mf"`
28025 # Find all dependency output files, they are included files with
28026 # $(DEPDIR) in their names. We invoke sed twice because it is the
28027 # simplest approach to changing $(DEPDIR) to its actual value in the
28029 for file in `sed -n "
28030 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28031 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28032 # Make sure the directory exists.
28033 test -f "$dirpart/$file" && continue
28034 fdir=`$as_dirname -- "$file" ||
28035 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28036 X"$file" : 'X\(//\)[^/]' \| \
28037 X"$file" : 'X\(//\)$' \| \
28038 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28044 /^X\(\/\/\)[^/].*/{
28057 { as_dir=$dirpart/$fdir
28059 -*) as_dir=./$as_dir;;
28061 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28065 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28066 *) as_qdir=$as_dir;;
28068 as_dirs="'$as_qdir' $as_dirs"
28069 as_dir=`$as_dirname -- "$as_dir" ||
28070 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28071 X"$as_dir" : 'X\(//\)[^/]' \| \
28072 X"$as_dir" : 'X\(//\)$' \| \
28073 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28079 /^X\(\/\/\)[^/].*/{
28092 test -d "$as_dir" && break
28094 test -z "$as_dirs" || eval "mkdir $as_dirs"
28095 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28096 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28097 { (exit 1); exit 1; }; }; }
28098 # echo "creating $dirpart/$file"
28099 echo '# dummy' > "$dirpart/$file"
28103 "tools/graspe-slave":F)
28105 tools/graspe-slave tools/graspe-master \
28107 test -e $file && chmod +x $file; \
28110 "testsuite/Makefile":F)
28112 testsuite/run_tests \
28113 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28115 test -e $file && chmod +x $file; \
28118 "testsuite/run_tests":F)
28120 testsuite/run_tests \
28121 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28123 test -e $file && chmod +x $file; \
28126 "testsuite/gras/trp_tcp_usage":F)
28128 testsuite/run_tests \
28129 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28131 test -e $file && chmod +x $file; \
28134 "testsuite/gras/trp_file_usage":F)
28136 testsuite/run_tests \
28137 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28139 test -e $file && chmod +x $file; \
28142 "examples/Makefile":F)
28145 examples/msg/run_msg_test \
28146 examples/simdag/test_simdag \
28147 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28148 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28150 test -e $file && chmod +x $file; \
28153 "examples/msg/Makefile":F)
28156 examples/msg/run_msg_test \
28157 examples/simdag/test_simdag \
28158 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28159 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28161 test -e $file && chmod +x $file; \
28164 "examples/msg/basic.tesh":F)
28167 examples/msg/run_msg_test \
28168 examples/simdag/test_simdag \
28169 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28170 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28172 test -e $file && chmod +x $file; \
28175 "examples/msg/small_plat.tesh":F)
28178 examples/msg/run_msg_test \
28179 examples/simdag/test_simdag \
28180 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28181 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28183 test -e $file && chmod +x $file; \
28186 "examples/msg/suspend.tesh":F)
28189 examples/msg/run_msg_test \
28190 examples/simdag/test_simdag \
28191 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28192 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28194 test -e $file && chmod +x $file; \
28197 "examples/msg/flexml_bypass.tesh":F)
28200 examples/msg/run_msg_test \
28201 examples/simdag/test_simdag \
28202 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28203 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28205 test -e $file && chmod +x $file; \
28208 "examples/simdag/Makefile":F)
28211 examples/msg/run_msg_test \
28212 examples/simdag/test_simdag \
28213 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28214 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28216 test -e $file && chmod +x $file; \
28219 "examples/simdag/test_simdag":F)
28222 examples/msg/run_msg_test \
28223 examples/simdag/test_simdag \
28224 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28225 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28227 test -e $file && chmod +x $file; \
28230 "examples/gras/Makefile":F)
28233 examples/msg/run_msg_test \
28234 examples/simdag/test_simdag \
28235 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28236 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28238 test -e $file && chmod +x $file; \
28241 "examples/gras/ping/Makefile":F)
28244 examples/msg/run_msg_test \
28245 examples/simdag/test_simdag \
28246 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28247 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28249 test -e $file && chmod +x $file; \
28252 "examples/gras/rpc/Makefile":F)
28255 examples/msg/run_msg_test \
28256 examples/simdag/test_simdag \
28257 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28258 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28260 test -e $file && chmod +x $file; \
28263 "examples/gras/spawn/Makefile":F)
28266 examples/msg/run_msg_test \
28267 examples/simdag/test_simdag \
28268 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28269 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28271 test -e $file && chmod +x $file; \
28274 "examples/gras/synchro/Makefile":F)
28277 examples/msg/run_msg_test \
28278 examples/simdag/test_simdag \
28279 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28280 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28282 test -e $file && chmod +x $file; \
28285 "examples/gras/timer/Makefile":F)
28288 examples/msg/run_msg_test \
28289 examples/simdag/test_simdag \
28290 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28291 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28293 test -e $file && chmod +x $file; \
28296 "examples/gras/chrono/Makefile":F)
28299 examples/msg/run_msg_test \
28300 examples/simdag/test_simdag \
28301 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28302 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28304 test -e $file && chmod +x $file; \
28307 "examples/gras/mutual_exclusion/simple_token/Makefile":F)
28310 examples/msg/run_msg_test \
28311 examples/simdag/test_simdag \
28312 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28313 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28315 test -e $file && chmod +x $file; \
28318 "examples/gras/mmrpc/Makefile":F)
28321 examples/msg/run_msg_test \
28322 examples/simdag/test_simdag \
28323 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28324 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28326 test -e $file && chmod +x $file; \
28329 "examples/gras/pmm/Makefile":F)
28332 examples/msg/run_msg_test \
28333 examples/simdag/test_simdag \
28334 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28335 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28337 test -e $file && chmod +x $file; \
28340 "examples/gras/all2all/Makefile":F)
28343 examples/msg/run_msg_test \
28344 examples/simdag/test_simdag \
28345 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28346 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28348 test -e $file && chmod +x $file; \
28351 "examples/amok/Makefile":F)
28354 examples/msg/run_msg_test \
28355 examples/simdag/test_simdag \
28356 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28357 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28359 test -e $file && chmod +x $file; \
28362 "examples/amok/bandwidth/Makefile":F)
28365 examples/msg/run_msg_test \
28366 examples/simdag/test_simdag \
28367 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28368 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28370 test -e $file && chmod +x $file; \
28373 "examples/amok/bandwidth/test_sg":F)
28376 examples/msg/run_msg_test \
28377 examples/simdag/test_simdag \
28378 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28379 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28381 test -e $file && chmod +x $file; \
28384 "examples/amok/bandwidth/test_rl":F)
28387 examples/msg/run_msg_test \
28388 examples/simdag/test_simdag \
28389 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28390 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28392 test -e $file && chmod +x $file; \
28395 "examples/amok/saturate/Makefile":F)
28398 examples/msg/run_msg_test \
28399 examples/simdag/test_simdag \
28400 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28401 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28403 test -e $file && chmod +x $file; \
28406 "examples/amok/saturate/test_sg":F)
28409 examples/msg/run_msg_test \
28410 examples/simdag/test_simdag \
28411 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28412 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28414 test -e $file && chmod +x $file; \
28417 "examples/amok/saturate/test_rl":F)
28420 examples/msg/run_msg_test \
28421 examples/simdag/test_simdag \
28422 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28423 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28425 test -e $file && chmod +x $file; \
28433 { (exit 0); exit 0; }
28435 chmod +x $CONFIG_STATUS
28436 ac_clean_files=$ac_clean_files_save
28439 # configure is writing to config.log, and then calls config.status.
28440 # config.status does its own redirection, appending to config.log.
28441 # Unfortunately, on DOS this fails, as config.log is still kept open
28442 # by configure, so config.status won't be able to write to it; its
28443 # output is simply discarded. So we exec the FD to /dev/null,
28444 # effectively closing config.log, so it can be properly (re)opened and
28445 # appended to by config.status. When coming back to configure, we
28446 # need to make the FD available again.
28447 if test "$no_create" != yes; then
28449 ac_config_status_args=
28450 test "$silent" = yes &&
28451 ac_config_status_args="$ac_config_status_args --quiet"
28453 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28455 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28456 # would make configure fail if this is the last instruction.
28457 $ac_cs_success || { (exit 1); exit 1; }
28463 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
28465 Compiler: ${CC} (version: ${GCC_VERSION})
28468 CPPFlags: ${CPPFLAGS}
28469 LDFlags: ${LDFLAGS}
28471 Context backend: ${with_context}
28474 if test -e CVS && test x$USE_MAINTAINER_MODE != xyes ; then
28476 echo "WARNING: you seem to compile the CVS version without the maintainer mode."
28477 echo "WARNING: You won't be able to build archives that way (make dist is likely to fail). "
28478 echo "WARNING: If you want to enable the maintainer mode, juste specify it like this:"
28480 echo "WARNING: ./configure '--enable-maintainer-mode' $ac_configure_args"
28483 echo $build_id > stamp.configure