2 # From configure.ac Revision: 1.166 .
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)
1540 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1541 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1542 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1543 --with-pic try to use only PIC/non-PIC objects [default=use
1545 --with-tags[=TAGS] include additional configurations [automatic]
1546 --with-pthread Use pthread instead of ucontext.
1547 --with-pthreads Use pthread instead of ucontext.
1548 --with-context=ucontext/pthread Use either (System V) swapcontext or pthread [default=auto].
1549 --with-gtnets Path to GTNetS installation (default to empty, ie
1552 Some influential environment variables:
1553 CC C compiler command
1554 CFLAGS C compiler flags
1555 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1556 nonstandard directory <lib dir>
1557 LIBS libraries to pass to the linker, e.g. -l<library>
1558 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1559 you have headers in a nonstandard directory <include dir>
1561 CXX C++ compiler command
1562 CXXFLAGS C++ compiler flags
1563 CXXCPP C++ preprocessor
1565 Use these variables to override the choices made by `configure' or to help
1566 it to find libraries and programs with nonstandard names/locations.
1568 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1573 if test "$ac_init_help" = "recursive"; then
1574 # If there are subdirs, report their specific --help.
1575 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1576 test -d "$ac_dir" || continue
1580 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1583 # A ".." for each directory in $ac_dir_suffix.
1584 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1585 case $ac_top_builddir_sub in
1586 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1590 ac_abs_top_builddir=$ac_pwd
1591 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1592 # for backward compatibility:
1593 ac_top_builddir=$ac_top_build_prefix
1596 .) # We are building in place.
1598 ac_top_srcdir=$ac_top_builddir_sub
1599 ac_abs_top_srcdir=$ac_pwd ;;
1600 [\\/]* | ?:[\\/]* ) # Absolute name.
1601 ac_srcdir=$srcdir$ac_dir_suffix;
1602 ac_top_srcdir=$srcdir
1603 ac_abs_top_srcdir=$srcdir ;;
1605 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1606 ac_top_srcdir=$ac_top_build_prefix$srcdir
1607 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1609 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1611 cd "$ac_dir" || { ac_status=$?; continue; }
1612 # Check for guested configure.
1613 if test -f "$ac_srcdir/configure.gnu"; then
1615 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1616 elif test -f "$ac_srcdir/configure"; then
1618 $SHELL "$ac_srcdir/configure" --help=recursive
1620 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1622 cd "$ac_pwd" || { ac_status=$?; break; }
1626 test -n "$ac_init_help" && exit $ac_status
1627 if $ac_init_version; then
1629 simgrid configure 3.3-cvs
1630 generated by GNU Autoconf 2.61
1632 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1633 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1634 This configure script is free software; the Free Software Foundation
1635 gives unlimited permission to copy, distribute and modify it.
1639 cat >config.log <<_ACEOF
1640 This file contains any messages produced by compilers while
1641 running configure, to aid debugging if configure makes a mistake.
1643 It was created by simgrid $as_me 3.3-cvs, which was
1644 generated by GNU Autoconf 2.61. Invocation command line was
1656 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1657 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1658 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1659 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1660 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1662 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1663 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1665 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1666 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1667 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1668 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1669 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1670 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1671 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679 test -z "$as_dir" && as_dir=.
1680 echo "PATH: $as_dir"
1696 # Keep a trace of the command line.
1697 # Strip out --no-create and --no-recursion so they do not pile up.
1698 # Strip out --silent because we don't want to record it for future runs.
1699 # Also quote any args containing shell meta-characters.
1700 # Make two passes to allow for proper duplicate-argument suppression.
1704 ac_must_keep_next=false
1710 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1711 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1712 | -silent | --silent | --silen | --sile | --sil)
1715 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1718 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1720 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1721 if test $ac_must_keep_next = true; then
1722 ac_must_keep_next=false # Got value, back to normal.
1725 *=* | --config-cache | -C | -disable-* | --disable-* \
1726 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1727 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1728 | -with-* | --with-* | -without-* | --without-* | --x)
1729 case "$ac_configure_args0 " in
1730 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1733 -* ) ac_must_keep_next=true ;;
1736 ac_configure_args="$ac_configure_args '$ac_arg'"
1741 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1742 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1744 # When interrupted or exit'd, cleanup temporary files, and complete
1745 # config.log. We remove comments because anyway the quotes in there
1746 # would cause problems or look ugly.
1747 # WARNING: Use '\'' to represent an apostrophe within the trap.
1748 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1749 trap 'exit_status=$?
1750 # Save into config.log some information that might help in debugging.
1755 ## ---------------- ##
1756 ## Cache variables. ##
1757 ## ---------------- ##
1760 # The following way of writing the cache mishandles newlines in values,
1762 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1763 eval ac_val=\$$ac_var
1767 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1768 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1771 _ | IFS | as_nl) ;; #(
1772 *) $as_unset $ac_var ;;
1777 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1778 *${as_nl}ac_space=\ *)
1780 "s/'\''/'\''\\\\'\'''\''/g;
1781 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1784 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1792 ## ----------------- ##
1793 ## Output variables. ##
1794 ## ----------------- ##
1797 for ac_var in $ac_subst_vars
1799 eval ac_val=\$$ac_var
1801 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1803 echo "$ac_var='\''$ac_val'\''"
1807 if test -n "$ac_subst_files"; then
1809 ## ------------------- ##
1810 ## File substitutions. ##
1811 ## ------------------- ##
1814 for ac_var in $ac_subst_files
1816 eval ac_val=\$$ac_var
1818 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1820 echo "$ac_var='\''$ac_val'\''"
1825 if test -s confdefs.h; then
1835 test "$ac_signal" != 0 &&
1836 echo "$as_me: caught signal $ac_signal"
1837 echo "$as_me: exit $exit_status"
1839 rm -f core *.core core.conftest.* &&
1840 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1843 for ac_signal in 1 2 13 15; do
1844 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1848 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1849 rm -f -r conftest* confdefs.h
1851 # Predefined preprocessor variables.
1853 cat >>confdefs.h <<_ACEOF
1854 #define PACKAGE_NAME "$PACKAGE_NAME"
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_STRING "$PACKAGE_STRING"
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1878 # Let the site file select an alternate cache file if it wants to.
1879 # Prefer explicitly selected file to automatically selected ones.
1880 if test -n "$CONFIG_SITE"; then
1881 set x "$CONFIG_SITE"
1882 elif test "x$prefix" != xNONE; then
1883 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1885 set x "$ac_default_prefix/share/config.site" \
1886 "$ac_default_prefix/etc/config.site"
1891 if test -r "$ac_site_file"; then
1892 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1893 echo "$as_me: loading site script $ac_site_file" >&6;}
1894 sed 's/^/| /' "$ac_site_file" >&5
1899 if test -r "$cache_file"; then
1900 # Some versions of bash will fail to source /dev/null (special
1901 # files actually), so we avoid doing that.
1902 if test -f "$cache_file"; then
1903 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1904 echo "$as_me: loading cache $cache_file" >&6;}
1906 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1907 *) . "./$cache_file";;
1911 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1912 echo "$as_me: creating cache $cache_file" >&6;}
1916 # Check that the precious variables saved in the cache have kept the same
1918 ac_cache_corrupted=false
1919 for ac_var in $ac_precious_vars; do
1920 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1921 eval ac_new_set=\$ac_env_${ac_var}_set
1922 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1923 eval ac_new_val=\$ac_env_${ac_var}_value
1924 case $ac_old_set,$ac_new_set in
1926 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1927 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1928 ac_cache_corrupted=: ;;
1930 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1931 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1932 ac_cache_corrupted=: ;;
1935 if test "x$ac_old_val" != "x$ac_new_val"; then
1936 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1937 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1938 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1939 echo "$as_me: former value: $ac_old_val" >&2;}
1940 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1941 echo "$as_me: current value: $ac_new_val" >&2;}
1942 ac_cache_corrupted=:
1945 # Pass precious variables to config.status.
1946 if test "$ac_new_set" = set; then
1948 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1949 *) ac_arg=$ac_var=$ac_new_val ;;
1951 case " $ac_configure_args " in
1952 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1953 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1957 if $ac_cache_corrupted; then
1958 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1959 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1960 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1961 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1962 { (exit 1); exit 1; }; }
1990 ac_cpp='$CPP $CPPFLAGS'
1991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1997 ac_config_headers="$ac_config_headers src/gras_config.h"
1999 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
2003 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2004 if test -f "$ac_dir/install-sh"; then
2006 ac_install_sh="$ac_aux_dir/install-sh -c"
2008 elif test -f "$ac_dir/install.sh"; then
2010 ac_install_sh="$ac_aux_dir/install.sh -c"
2012 elif test -f "$ac_dir/shtool"; then
2014 ac_install_sh="$ac_aux_dir/shtool install -c"
2018 if test -z "$ac_aux_dir"; then
2019 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2020 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2021 { (exit 1); exit 1; }; }
2024 # These three variables are undocumented and unsupported,
2025 # and are intended to be withdrawn in a future Autoconf release.
2026 # They can cause serious problems if a builder's source tree is in a directory
2027 # whose full name contains unusual characters.
2028 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2029 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2030 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2033 # Make sure we can run config.sub.
2034 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2035 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2036 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2037 { (exit 1); exit 1; }; }
2039 { echo "$as_me:$LINENO: checking build system type" >&5
2040 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2041 if test "${ac_cv_build+set}" = set; then
2042 echo $ECHO_N "(cached) $ECHO_C" >&6
2044 ac_build_alias=$build_alias
2045 test "x$ac_build_alias" = x &&
2046 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2047 test "x$ac_build_alias" = x &&
2048 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2049 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2050 { (exit 1); exit 1; }; }
2051 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2052 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2053 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2054 { (exit 1); exit 1; }; }
2057 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2058 echo "${ECHO_T}$ac_cv_build" >&6; }
2059 case $ac_cv_build in
2061 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2062 echo "$as_me: error: invalid value of canonical build" >&2;}
2063 { (exit 1); exit 1; }; };;
2066 ac_save_IFS=$IFS; IFS='-'
2072 # Remember, the first character of IFS is used to create $*,
2073 # except with old shells:
2076 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2079 { echo "$as_me:$LINENO: checking host system type" >&5
2080 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2081 if test "${ac_cv_host+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2084 if test "x$host_alias" = x; then
2085 ac_cv_host=$ac_cv_build
2087 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2088 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2089 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2090 { (exit 1); exit 1; }; }
2094 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2095 echo "${ECHO_T}$ac_cv_host" >&6; }
2098 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2099 echo "$as_me: error: invalid value of canonical host" >&2;}
2100 { (exit 1); exit 1; }; };;
2103 ac_save_IFS=$IFS; IFS='-'
2109 # Remember, the first character of IFS is used to create $*,
2110 # except with old shells:
2113 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2116 { echo "$as_me:$LINENO: checking target system type" >&5
2117 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2118 if test "${ac_cv_target+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2121 if test "x$target_alias" = x; then
2122 ac_cv_target=$ac_cv_host
2124 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2125 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2126 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2127 { (exit 1); exit 1; }; }
2131 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2132 echo "${ECHO_T}$ac_cv_target" >&6; }
2133 case $ac_cv_target in
2135 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2136 echo "$as_me: error: invalid value of canonical target" >&2;}
2137 { (exit 1); exit 1; }; };;
2139 target=$ac_cv_target
2140 ac_save_IFS=$IFS; IFS='-'
2146 # Remember, the first character of IFS is used to create $*,
2147 # except with old shells:
2150 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2153 # The aliases save the names the user supplied, while $host etc.
2154 # will get canonicalized.
2155 test -n "$target_alias" &&
2156 test "$program_prefix$program_suffix$program_transform_name" = \
2158 program_prefix=${target_alias}-
2160 ac_cpp='$CPP $CPPFLAGS'
2161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2165 rm -rf .tst 2>/dev/null
2166 mkdir .tst 2>/dev/null
2167 if test -d .tst; then
2172 rmdir .tst 2>/dev/null
2174 DEPDIR="${am__leading_dot}deps"
2176 ac_config_commands="$ac_config_commands depfiles"
2179 am_make=${MAKE-make}
2180 cat > confinc << 'END'
2185 # If we don't find an include directive, just comment out the code.
2186 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2187 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2191 # First try GNU make style include.
2192 echo "include confinc" > confmf
2193 # We grep out `Entering directory' and `Leaving directory'
2194 # messages which can occur if `w' ends up in MAKEFLAGS.
2195 # In particular we don't look at `^make:' because GNU make might
2196 # be invoked under some other name (usually "gmake"), in which
2197 # case it prints its new name instead of `make'.
2198 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2203 # Now try BSD make style include.
2204 if test "$am__include" = "#"; then
2205 echo '.include "confinc"' > confmf
2206 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2207 am__include=.include
2214 { echo "$as_me:$LINENO: result: $_am_result" >&5
2215 echo "${ECHO_T}$_am_result" >&6; }
2216 rm -f confinc confmf
2218 # Check whether --enable-dependency-tracking was given.
2219 if test "${enable_dependency_tracking+set}" = set; then
2220 enableval=$enable_dependency_tracking;
2223 if test "x$enable_dependency_tracking" != xno; then
2224 am_depcomp="$ac_aux_dir/depcomp"
2227 if test "x$enable_dependency_tracking" != xno; then
2237 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
2239 # Extract the first word of "$ac_prog", so it can be a program name with args.
2240 set dummy $ac_prog; ac_word=$2
2241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2243 if test "${ac_cv_prog_GCJ+set}" = set; then
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
2246 if test -n "$GCJ"; then
2247 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
2249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253 test -z "$as_dir" && as_dir=.
2254 for ac_exec_ext in '' $ac_executable_extensions; do
2255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2256 ac_cv_prog_GCJ="$ac_prog"
2257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2267 if test -n "$GCJ"; then
2268 { echo "$as_me:$LINENO: result: $GCJ" >&5
2269 echo "${ECHO_T}$GCJ" >&6; }
2271 { echo "$as_me:$LINENO: result: no" >&5
2272 echo "${ECHO_T}no" >&6; }
2276 test -n "$GCJ" && break
2278 test -n "$GCJ" || GCJ="gcj"
2280 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
2281 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
2282 { (exit 1); exit 1; }; }
2283 if test "x${GCJFLAGS-unset}" = xunset; then
2288 depcc="$GCJ" am_compiler_list='gcc3 gcc'
2290 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2291 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2292 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
2293 echo $ECHO_N "(cached) $ECHO_C" >&6
2295 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2296 # We make a subdir and do the tests there. Otherwise we can end up
2297 # making bogus files that we don't know about and never remove. For
2298 # instance it was reported that on HP-UX the gcc test will end up
2299 # making a dummy file named `D' -- because `-MD' means `put the output
2302 # Copy depcomp to subdir because otherwise we won't find it if we're
2303 # using a relative directory.
2304 cp "$am_depcomp" conftest.dir
2306 # We will build objects and dependencies in a subdirectory because
2307 # it helps to detect inapplicable dependency modes. For instance
2308 # both Tru64's cc and ICC support -MD to output dependencies as a
2309 # side effect of compilation, but ICC will put the dependencies in
2310 # the current directory while Tru64 will put them in the object
2314 am_cv_GCJ_dependencies_compiler_type=none
2315 if test "$am_compiler_list" = ""; then
2316 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2318 for depmode in $am_compiler_list; do
2319 # Setup a source with many dependencies, because some compilers
2320 # like to wrap large dependency lists on column 80 (with \), and
2321 # we should not choose a depcomp mode which is confused by this.
2323 # We need to recreate these files for each test, as the compiler may
2324 # overwrite some of them when testing with obscure command lines.
2325 # This happens at least with the AIX C compiler.
2327 for i in 1 2 3 4 5 6; do
2328 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2329 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2330 # Solaris 8's {/usr,}/bin/sh.
2331 touch sub/conftst$i.h
2333 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2337 # after this tag, mechanisms are not by side-effect, so they'll
2338 # only be used when explicitly requested
2339 if test "x$enable_dependency_tracking" = xyes; then
2347 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2348 # mode. It turns out that the SunPro C++ compiler does not properly
2349 # handle `-M -o', and we need to detect this.
2350 if depmode=$depmode \
2351 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2352 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2353 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2354 >/dev/null 2>conftest.err &&
2355 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2356 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2357 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2358 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2359 # icc doesn't choke on unknown options, it will just issue warnings
2360 # or remarks (even with -Werror). So we grep stderr for any message
2361 # that says an option was ignored or not supported.
2362 # When given -MP, icc 7.0 and 7.1 complain thusly:
2363 # icc: Command line warning: ignoring option '-M'; no argument required
2364 # The diagnosis changed in icc 8.0:
2365 # icc: Command line remark: option '-MP' not supported
2366 if (grep 'ignoring option' conftest.err ||
2367 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2368 am_cv_GCJ_dependencies_compiler_type=$depmode
2377 am_cv_GCJ_dependencies_compiler_type=none
2381 { echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
2382 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6; }
2383 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
2386 test "x$enable_dependency_tracking" != xno \
2387 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
2388 am__fastdepGCJ_TRUE=
2389 am__fastdepGCJ_FALSE='#'
2391 am__fastdepGCJ_TRUE='#'
2392 am__fastdepGCJ_FALSE=
2398 am__api_version='1.10'
2400 # Find a good install program. We prefer a C program (faster),
2401 # so one script is as good as another. But avoid the broken or
2402 # incompatible versions:
2403 # SysV /etc/install, /usr/sbin/install
2404 # SunOS /usr/etc/install
2405 # IRIX /sbin/install
2407 # AmigaOS /C/install, which installs bootblocks on floppy discs
2408 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2409 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2410 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2411 # OS/2's system install, which has a completely different semantic
2412 # ./install, which can be erroneously created by make from ./install.sh.
2413 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2414 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2415 if test -z "$INSTALL"; then
2416 if test "${ac_cv_path_install+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 test -z "$as_dir" && as_dir=.
2424 # Account for people who put trailing slashes in PATH elements.
2426 ./ | .// | /cC/* | \
2427 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2428 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2431 # OSF1 and SCO ODT 3.0 have their own names for install.
2432 # Don't use installbsd from OSF since it installs stuff as root
2434 for ac_prog in ginstall scoinst install; do
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2437 if test $ac_prog = install &&
2438 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2439 # AIX install. It has an incompatible calling convention.
2441 elif test $ac_prog = install &&
2442 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2443 # program-specific install script used by HP pwplus--don't use.
2446 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2459 if test "${ac_cv_path_install+set}" = set; then
2460 INSTALL=$ac_cv_path_install
2462 # As a last resort, use the slow shell script. Don't cache a
2463 # value for INSTALL within a source directory, because that will
2464 # break other packages using the cache if that directory is
2465 # removed, or if the value is a relative name.
2466 INSTALL=$ac_install_sh
2469 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2470 echo "${ECHO_T}$INSTALL" >&6; }
2472 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2473 # It thinks the first close brace ends the variable substitution.
2474 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2476 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2478 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2480 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2481 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2484 echo timestamp > conftest.file
2485 # Do `set' in a subshell so we don't clobber the current shell's
2486 # arguments. Must try -L first in case configure is actually a
2487 # symlink; some systems play weird games with the mod time of symlinks
2488 # (eg FreeBSD returns the mod time of the symlink's containing
2491 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2492 if test "$*" = "X"; then
2494 set X `ls -t $srcdir/configure conftest.file`
2497 if test "$*" != "X $srcdir/configure conftest.file" \
2498 && test "$*" != "X conftest.file $srcdir/configure"; then
2500 # If neither matched, then we have a broken ls. This can happen
2501 # if, for instance, CONFIG_SHELL is bash and it inherits a
2502 # broken ls alias from the environment. This has actually
2503 # happened. Such a system could not be considered "sane".
2504 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2505 alias in your environment" >&5
2506 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2507 alias in your environment" >&2;}
2508 { (exit 1); exit 1; }; }
2511 test "$2" = conftest.file
2517 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2518 Check your system clock" >&5
2519 echo "$as_me: error: newly created file is older than distributed files!
2520 Check your system clock" >&2;}
2521 { (exit 1); exit 1; }; }
2523 { echo "$as_me:$LINENO: result: yes" >&5
2524 echo "${ECHO_T}yes" >&6; }
2525 test "$program_prefix" != NONE &&
2526 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2527 # Use a double $ so make ignores it.
2528 test "$program_suffix" != NONE &&
2529 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2530 # Double any \ or $. echo might interpret backslashes.
2531 # By default was `s,x,x', remove it if useless.
2532 cat <<\_ACEOF >conftest.sed
2533 s/[\\$]/&&/g;s/;s,x,x,$//
2535 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2538 # expand $ac_aux_dir to an absolute path
2539 am_aux_dir=`cd $ac_aux_dir && pwd`
2541 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2542 # Use eval to expand $SHELL
2543 if eval "$MISSING --run true"; then
2544 am_missing_run="$MISSING --run "
2547 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2548 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2551 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2552 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2553 if test -z "$MKDIR_P"; then
2554 if test "${ac_cv_path_mkdir+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2561 test -z "$as_dir" && as_dir=.
2562 for ac_prog in mkdir gmkdir; do
2563 for ac_exec_ext in '' $ac_executable_extensions; do
2564 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2565 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2566 'mkdir (GNU coreutils) '* | \
2567 'mkdir (coreutils) '* | \
2568 'mkdir (fileutils) '4.1*)
2569 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2579 if test "${ac_cv_path_mkdir+set}" = set; then
2580 MKDIR_P="$ac_cv_path_mkdir -p"
2582 # As a last resort, use the slow shell script. Don't cache a
2583 # value for MKDIR_P within a source directory, because that will
2584 # break other packages using the cache if that directory is
2585 # removed, or if the value is a relative name.
2586 test -d ./--version && rmdir ./--version
2587 MKDIR_P="$ac_install_sh -d"
2590 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2591 echo "${ECHO_T}$MKDIR_P" >&6; }
2595 [\\/$]* | ?:[\\/]*) ;;
2596 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2599 for ac_prog in gawk mawk nawk awk
2601 # Extract the first word of "$ac_prog", so it can be a program name with args.
2602 set dummy $ac_prog; ac_word=$2
2603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2605 if test "${ac_cv_prog_AWK+set}" = set; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
2608 if test -n "$AWK"; then
2609 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618 ac_cv_prog_AWK="$ac_prog"
2619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 if test -n "$AWK"; then
2630 { echo "$as_me:$LINENO: result: $AWK" >&5
2631 echo "${ECHO_T}$AWK" >&6; }
2633 { echo "$as_me:$LINENO: result: no" >&5
2634 echo "${ECHO_T}no" >&6; }
2638 test -n "$AWK" && break
2641 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2642 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2643 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2644 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 cat >conftest.make <<\_ACEOF
2650 @echo '@@@%%%=$(MAKE)=@@@%%%'
2652 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2653 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2655 eval ac_cv_prog_make_${ac_make}_set=yes;;
2657 eval ac_cv_prog_make_${ac_make}_set=no;;
2661 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2662 { echo "$as_me:$LINENO: result: yes" >&5
2663 echo "${ECHO_T}yes" >&6; }
2666 { echo "$as_me:$LINENO: result: no" >&5
2667 echo "${ECHO_T}no" >&6; }
2668 SET_MAKE="MAKE=${MAKE-make}"
2671 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2672 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2673 # is not polluted with repeated "-I."
2674 am__isrc=' -I$(srcdir)'
2675 # test to see if srcdir already configured
2676 if test -f $srcdir/config.status; then
2677 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2678 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2679 { (exit 1); exit 1; }; }
2683 # test whether we have cygpath
2684 if test -z "$CYGPATH_W"; then
2685 if (cygpath --version) >/dev/null 2>/dev/null; then
2686 CYGPATH_W='cygpath -w'
2693 # Define the identity of the package.
2698 cat >>confdefs.h <<_ACEOF
2699 #define PACKAGE "$PACKAGE"
2703 cat >>confdefs.h <<_ACEOF
2704 #define VERSION "$VERSION"
2707 # Some tools Automake needs.
2709 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2712 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2715 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2718 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2721 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2723 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2725 # Installed binaries are usually stripped using `strip' when the user
2726 # run `make install-strip'. However `strip' might not be the right
2727 # tool to use in cross-compilation environments, therefore Automake
2728 # will honor the `STRIP' environment variable to overrule this program.
2729 if test "$cross_compiling" != no; then
2730 if test -n "$ac_tool_prefix"; then
2731 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2732 set dummy ${ac_tool_prefix}strip; ac_word=$2
2733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2735 if test "${ac_cv_prog_STRIP+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2738 if test -n "$STRIP"; then
2739 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2748 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 STRIP=$ac_cv_prog_STRIP
2759 if test -n "$STRIP"; then
2760 { echo "$as_me:$LINENO: result: $STRIP" >&5
2761 echo "${ECHO_T}$STRIP" >&6; }
2763 { echo "$as_me:$LINENO: result: no" >&5
2764 echo "${ECHO_T}no" >&6; }
2769 if test -z "$ac_cv_prog_STRIP"; then
2771 # Extract the first word of "strip", so it can be a program name with args.
2772 set dummy strip; ac_word=$2
2773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2775 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 if test -n "$ac_ct_STRIP"; then
2779 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2788 ac_cv_prog_ac_ct_STRIP="strip"
2789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2799 if test -n "$ac_ct_STRIP"; then
2800 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2801 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2803 { echo "$as_me:$LINENO: result: no" >&5
2804 echo "${ECHO_T}no" >&6; }
2807 if test "x$ac_ct_STRIP" = x; then
2810 case $cross_compiling:$ac_tool_warned in
2812 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2813 whose name does not start with the host triplet. If you think this
2814 configuration is useful to you, please write to autoconf@gnu.org." >&5
2815 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2816 whose name does not start with the host triplet. If you think this
2817 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2818 ac_tool_warned=yes ;;
2823 STRIP="$ac_cv_prog_STRIP"
2827 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2829 # We need awk for the "check" target. The system "awk" is bad on
2831 # Always define AMTAR for backward compatibility.
2833 AMTAR=${AMTAR-"${am_missing_run}tar"}
2835 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2842 ACLOCAL="$ACLOCAL -I acmacro"
2849 # Check whether --enable-shared was given.
2850 if test "${enable_shared+set}" = set; then
2851 enableval=$enable_shared; p=${PACKAGE-default}
2853 yes) enable_shared=yes ;;
2854 no) enable_shared=no ;;
2857 # Look at the argument we got. We use all the common list separators.
2858 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2859 for pkg in $enableval; do
2861 if test "X$pkg" = "X$p"; then
2873 # Check whether --enable-static was given.
2874 if test "${enable_static+set}" = set; then
2875 enableval=$enable_static; p=${PACKAGE-default}
2877 yes) enable_static=yes ;;
2878 no) enable_static=no ;;
2881 # Look at the argument we got. We use all the common list separators.
2882 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2883 for pkg in $enableval; do
2885 if test "X$pkg" = "X$p"; then
2897 # Check whether --enable-fast-install was given.
2898 if test "${enable_fast_install+set}" = set; then
2899 enableval=$enable_fast_install; p=${PACKAGE-default}
2901 yes) enable_fast_install=yes ;;
2902 no) enable_fast_install=no ;;
2904 enable_fast_install=no
2905 # Look at the argument we got. We use all the common list separators.
2906 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2907 for pkg in $enableval; do
2909 if test "X$pkg" = "X$p"; then
2910 enable_fast_install=yes
2917 enable_fast_install=yes
2922 ac_cpp='$CPP $CPPFLAGS'
2923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2926 if test -n "$ac_tool_prefix"; then
2927 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2928 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2931 if test "${ac_cv_prog_CC+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2934 if test -n "$CC"; then
2935 ac_cv_prog_CC="$CC" # Let the user override the test.
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2944 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 if test -n "$CC"; then
2956 { echo "$as_me:$LINENO: result: $CC" >&5
2957 echo "${ECHO_T}$CC" >&6; }
2959 { echo "$as_me:$LINENO: result: no" >&5
2960 echo "${ECHO_T}no" >&6; }
2965 if test -z "$ac_cv_prog_CC"; then
2967 # Extract the first word of "gcc", so it can be a program name with args.
2968 set dummy gcc; ac_word=$2
2969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2971 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
2974 if test -n "$ac_ct_CC"; then
2975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2984 ac_cv_prog_ac_ct_CC="gcc"
2985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2995 if test -n "$ac_ct_CC"; then
2996 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2997 echo "${ECHO_T}$ac_ct_CC" >&6; }
2999 { echo "$as_me:$LINENO: result: no" >&5
3000 echo "${ECHO_T}no" >&6; }
3003 if test "x$ac_ct_CC" = x; then
3006 case $cross_compiling:$ac_tool_warned in
3008 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3009 whose name does not start with the host triplet. If you think this
3010 configuration is useful to you, please write to autoconf@gnu.org." >&5
3011 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3012 whose name does not start with the host triplet. If you think this
3013 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3014 ac_tool_warned=yes ;;
3022 if test -z "$CC"; then
3023 if test -n "$ac_tool_prefix"; then
3024 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3025 set dummy ${ac_tool_prefix}cc; ac_word=$2
3026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3028 if test "${ac_cv_prog_CC+set}" = set; then
3029 echo $ECHO_N "(cached) $ECHO_C" >&6
3031 if test -n "$CC"; then
3032 ac_cv_prog_CC="$CC" # Let the user override the test.
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 test -z "$as_dir" && as_dir=.
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3041 ac_cv_prog_CC="${ac_tool_prefix}cc"
3042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3052 if test -n "$CC"; then
3053 { echo "$as_me:$LINENO: result: $CC" >&5
3054 echo "${ECHO_T}$CC" >&6; }
3056 { echo "$as_me:$LINENO: result: no" >&5
3057 echo "${ECHO_T}no" >&6; }
3063 if test -z "$CC"; then
3064 # Extract the first word of "cc", so it can be a program name with args.
3065 set dummy cc; ac_word=$2
3066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3068 if test "${ac_cv_prog_CC+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3071 if test -n "$CC"; then
3072 ac_cv_prog_CC="$CC" # Let the user override the test.
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3083 ac_prog_rejected=yes
3087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 if test $ac_prog_rejected = yes; then
3095 # We found a bogon in the path, so make sure we never use it.
3096 set dummy $ac_cv_prog_CC
3098 if test $# != 0; then
3099 # We chose a different compiler from the bogus one.
3100 # However, it has the same basename, so the bogon will be chosen
3101 # first if we set CC to just the basename; use the full file name.
3103 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3109 if test -n "$CC"; then
3110 { echo "$as_me:$LINENO: result: $CC" >&5
3111 echo "${ECHO_T}$CC" >&6; }
3113 { echo "$as_me:$LINENO: result: no" >&5
3114 echo "${ECHO_T}no" >&6; }
3119 if test -z "$CC"; then
3120 if test -n "$ac_tool_prefix"; then
3121 for ac_prog in cl.exe
3123 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3124 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3127 if test "${ac_cv_prog_CC+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3130 if test -n "$CC"; then
3131 ac_cv_prog_CC="$CC" # Let the user override the test.
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 test -z "$as_dir" && as_dir=.
3138 for ac_exec_ext in '' $ac_executable_extensions; do
3139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3140 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3151 if test -n "$CC"; then
3152 { echo "$as_me:$LINENO: result: $CC" >&5
3153 echo "${ECHO_T}$CC" >&6; }
3155 { echo "$as_me:$LINENO: result: no" >&5
3156 echo "${ECHO_T}no" >&6; }
3160 test -n "$CC" && break
3163 if test -z "$CC"; then
3165 for ac_prog in cl.exe
3167 # Extract the first word of "$ac_prog", so it can be a program name with args.
3168 set dummy $ac_prog; ac_word=$2
3169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3171 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3172 echo $ECHO_N "(cached) $ECHO_C" >&6
3174 if test -n "$ac_ct_CC"; then
3175 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 test -z "$as_dir" && as_dir=.
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3184 ac_cv_prog_ac_ct_CC="$ac_prog"
3185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3195 if test -n "$ac_ct_CC"; then
3196 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3197 echo "${ECHO_T}$ac_ct_CC" >&6; }
3199 { echo "$as_me:$LINENO: result: no" >&5
3200 echo "${ECHO_T}no" >&6; }
3204 test -n "$ac_ct_CC" && break
3207 if test "x$ac_ct_CC" = x; then
3210 case $cross_compiling:$ac_tool_warned in
3212 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3213 whose name does not start with the host triplet. If you think this
3214 configuration is useful to you, please write to autoconf@gnu.org." >&5
3215 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3216 whose name does not start with the host triplet. If you think this
3217 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3218 ac_tool_warned=yes ;;
3227 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3228 See \`config.log' for more details." >&5
3229 echo "$as_me: error: no acceptable C compiler found in \$PATH
3230 See \`config.log' for more details." >&2;}
3231 { (exit 1); exit 1; }; }
3233 # Provide some information about the compiler.
3234 echo "$as_me:$LINENO: checking for C compiler version" >&5
3235 ac_compiler=`set X $ac_compile; echo $2`
3236 { (ac_try="$ac_compiler --version >&5"
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3242 (eval "$ac_compiler --version >&5") 2>&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); }
3246 { (ac_try="$ac_compiler -v >&5"
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252 (eval "$ac_compiler -v >&5") 2>&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }
3256 { (ac_try="$ac_compiler -V >&5"
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3262 (eval "$ac_compiler -V >&5") 2>&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }
3267 cat >conftest.$ac_ext <<_ACEOF
3270 cat confdefs.h >>conftest.$ac_ext
3271 cat >>conftest.$ac_ext <<_ACEOF
3272 /* end confdefs.h. */
3282 ac_clean_files_save=$ac_clean_files
3283 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3284 # Try to create an executable without -o first, disregard a.out.
3285 # It will help us diagnose broken compilers, and finding out an intuition
3287 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3288 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3289 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3291 # List of possible output files, starting from the most likely.
3292 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3293 # only as a last resort. b.out is created by i960 compilers.
3294 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3296 # The IRIX 6 linker writes into existing files which may not be
3297 # executable, retaining their permissions. Remove them first so a
3298 # subsequent execution test works.
3300 for ac_file in $ac_files
3303 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3304 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3309 if { (ac_try="$ac_link_default"
3311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312 *) ac_try_echo=$ac_try;;
3314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3315 (eval "$ac_link_default") 2>&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; then
3319 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3320 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3321 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3322 # so that the user can short-circuit this test for compilers unknown to
3324 for ac_file in $ac_files ''
3326 test -f "$ac_file" || continue
3328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3331 # We found the default executable, but exeext='' is most
3335 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3337 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3339 # We set ac_cv_exeext here because the later test for it is not
3340 # safe: cross compilers may not add the suffix if given an `-o'
3341 # argument, so we may need to know it at that point already.
3342 # Even if this section looks crufty: it has the advantage of
3349 test "$ac_cv_exeext" = no && ac_cv_exeext=
3355 { echo "$as_me:$LINENO: result: $ac_file" >&5
3356 echo "${ECHO_T}$ac_file" >&6; }
3357 if test -z "$ac_file"; then
3358 echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3361 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3362 See \`config.log' for more details." >&5
3363 echo "$as_me: error: C compiler cannot create executables
3364 See \`config.log' for more details." >&2;}
3365 { (exit 77); exit 77; }; }
3368 ac_exeext=$ac_cv_exeext
3370 # Check that the compiler produces executables we can run. If not, either
3371 # the compiler is broken, or we cross compile.
3372 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3373 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3374 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3375 # If not cross compiling, check that we can run a simple program.
3376 if test "$cross_compiling" != yes; then
3377 if { ac_try='./$ac_file'
3378 { (case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3383 (eval "$ac_try") 2>&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); }; }; then
3389 if test "$cross_compiling" = maybe; then
3392 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3393 If you meant to cross compile, use \`--host'.
3394 See \`config.log' for more details." >&5
3395 echo "$as_me: error: cannot run C compiled programs.
3396 If you meant to cross compile, use \`--host'.
3397 See \`config.log' for more details." >&2;}
3398 { (exit 1); exit 1; }; }
3402 { echo "$as_me:$LINENO: result: yes" >&5
3403 echo "${ECHO_T}yes" >&6; }
3405 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3406 ac_clean_files=$ac_clean_files_save
3407 # Check that the compiler produces executables we can run. If not, either
3408 # the compiler is broken, or we cross compile.
3409 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3410 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3411 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3412 echo "${ECHO_T}$cross_compiling" >&6; }
3414 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3415 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3416 if { (ac_try="$ac_link"
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422 (eval "$ac_link") 2>&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }; then
3426 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3427 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3428 # work properly (i.e., refer to `conftest.exe'), while it won't with
3430 for ac_file in conftest.exe conftest conftest.*; do
3431 test -f "$ac_file" || continue
3433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3434 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3440 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3441 See \`config.log' for more details." >&5
3442 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3443 See \`config.log' for more details." >&2;}
3444 { (exit 1); exit 1; }; }
3447 rm -f conftest$ac_cv_exeext
3448 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3449 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3451 rm -f conftest.$ac_ext
3452 EXEEXT=$ac_cv_exeext
3454 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3455 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3456 if test "${ac_cv_objext+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3459 cat >conftest.$ac_ext <<_ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h. */
3474 rm -f conftest.o conftest.obj
3475 if { (ac_try="$ac_compile"
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3481 (eval "$ac_compile") 2>&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); }; then
3485 for ac_file in conftest.o conftest.obj conftest.*; do
3486 test -f "$ac_file" || continue;
3488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3489 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3494 echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3497 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3498 See \`config.log' for more details." >&5
3499 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3500 See \`config.log' for more details." >&2;}
3501 { (exit 1); exit 1; }; }
3504 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3506 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3507 echo "${ECHO_T}$ac_cv_objext" >&6; }
3508 OBJEXT=$ac_cv_objext
3510 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3511 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3512 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 cat >conftest.$ac_ext <<_ACEOF
3518 cat confdefs.h >>conftest.$ac_ext
3519 cat >>conftest.$ac_ext <<_ACEOF
3520 /* end confdefs.h. */
3533 rm -f conftest.$ac_objext
3534 if { (ac_try="$ac_compile"
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540 (eval "$ac_compile") 2>conftest.er1
3542 grep -v '^ *+' conftest.er1 >conftest.err
3544 cat conftest.err >&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); } && {
3547 test -z "$ac_c_werror_flag" ||
3548 test ! -s conftest.err
3549 } && test -s conftest.$ac_objext; then
3552 echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.$ac_ext >&5
3558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3562 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3563 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3564 GCC=`test $ac_compiler_gnu = yes && echo yes`
3565 ac_test_CFLAGS=${CFLAGS+set}
3566 ac_save_CFLAGS=$CFLAGS
3567 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3568 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3569 if test "${ac_cv_prog_cc_g+set}" = set; then
3570 echo $ECHO_N "(cached) $ECHO_C" >&6
3572 ac_save_c_werror_flag=$ac_c_werror_flag
3573 ac_c_werror_flag=yes
3576 cat >conftest.$ac_ext <<_ACEOF
3579 cat confdefs.h >>conftest.$ac_ext
3580 cat >>conftest.$ac_ext <<_ACEOF
3581 /* end confdefs.h. */
3591 rm -f conftest.$ac_objext
3592 if { (ac_try="$ac_compile"
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3598 (eval "$ac_compile") 2>conftest.er1
3600 grep -v '^ *+' conftest.er1 >conftest.err
3602 cat conftest.err >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } && {
3605 test -z "$ac_c_werror_flag" ||
3606 test ! -s conftest.err
3607 } && test -s conftest.$ac_objext; then
3610 echo "$as_me: failed program was:" >&5
3611 sed 's/^/| /' conftest.$ac_ext >&5
3614 cat >conftest.$ac_ext <<_ACEOF
3617 cat confdefs.h >>conftest.$ac_ext
3618 cat >>conftest.$ac_ext <<_ACEOF
3619 /* end confdefs.h. */
3629 rm -f conftest.$ac_objext
3630 if { (ac_try="$ac_compile"
3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3636 (eval "$ac_compile") 2>conftest.er1
3638 grep -v '^ *+' conftest.er1 >conftest.err
3640 cat conftest.err >&5
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); } && {
3643 test -z "$ac_c_werror_flag" ||
3644 test ! -s conftest.err
3645 } && test -s conftest.$ac_objext; then
3648 echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3651 ac_c_werror_flag=$ac_save_c_werror_flag
3653 cat >conftest.$ac_ext <<_ACEOF
3656 cat confdefs.h >>conftest.$ac_ext
3657 cat >>conftest.$ac_ext <<_ACEOF
3658 /* end confdefs.h. */
3668 rm -f conftest.$ac_objext
3669 if { (ac_try="$ac_compile"
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675 (eval "$ac_compile") 2>conftest.er1
3677 grep -v '^ *+' conftest.er1 >conftest.err
3679 cat conftest.err >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } && {
3682 test -z "$ac_c_werror_flag" ||
3683 test ! -s conftest.err
3684 } && test -s conftest.$ac_objext; then
3687 echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700 ac_c_werror_flag=$ac_save_c_werror_flag
3702 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3703 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3704 if test "$ac_test_CFLAGS" = set; then
3705 CFLAGS=$ac_save_CFLAGS
3706 elif test $ac_cv_prog_cc_g = yes; then
3707 if test "$GCC" = yes; then
3713 if test "$GCC" = yes; then
3719 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3720 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3721 if test "${ac_cv_prog_cc_c89+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 ac_cv_prog_cc_c89=no
3726 cat >conftest.$ac_ext <<_ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h. */
3734 #include <sys/types.h>
3735 #include <sys/stat.h>
3736 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3737 struct buf { int x; };
3738 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3739 static char *e (p, i)
3745 static char *f (char * (*g) (char **, int), char **p, ...)
3750 s = g (p, va_arg (v,int));
3755 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3756 function prototypes and stuff, but not '\xHH' hex character constants.
3757 These don't provoke an error unfortunately, instead are silently treated
3758 as 'x'. The following induces an error, until -std is added to get
3759 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3760 array size at least. It's necessary to write '\x00'==0 to get something
3761 that's true only with -std. */
3762 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3764 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3765 inside strings and character constants. */
3767 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3769 int test (int i, double x);
3770 struct s1 {int (*f) (int a);};
3771 struct s2 {int (*f) (double a);};
3772 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3778 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3783 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3784 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3786 CC="$ac_save_CC $ac_arg"
3787 rm -f conftest.$ac_objext
3788 if { (ac_try="$ac_compile"
3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791 *) ac_try_echo=$ac_try;;
3793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3794 (eval "$ac_compile") 2>conftest.er1
3796 grep -v '^ *+' conftest.er1 >conftest.err
3798 cat conftest.err >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); } && {
3801 test -z "$ac_c_werror_flag" ||
3802 test ! -s conftest.err
3803 } && test -s conftest.$ac_objext; then
3804 ac_cv_prog_cc_c89=$ac_arg
3806 echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3812 rm -f core conftest.err conftest.$ac_objext
3813 test "x$ac_cv_prog_cc_c89" != "xno" && break
3815 rm -f conftest.$ac_ext
3820 case "x$ac_cv_prog_cc_c89" in
3822 { echo "$as_me:$LINENO: result: none needed" >&5
3823 echo "${ECHO_T}none needed" >&6; } ;;
3825 { echo "$as_me:$LINENO: result: unsupported" >&5
3826 echo "${ECHO_T}unsupported" >&6; } ;;
3828 CC="$CC $ac_cv_prog_cc_c89"
3829 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3830 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3835 ac_cpp='$CPP $CPPFLAGS'
3836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3840 depcc="$CC" am_compiler_list=
3842 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3843 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3844 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3848 # We make a subdir and do the tests there. Otherwise we can end up
3849 # making bogus files that we don't know about and never remove. For
3850 # instance it was reported that on HP-UX the gcc test will end up
3851 # making a dummy file named `D' -- because `-MD' means `put the output
3854 # Copy depcomp to subdir because otherwise we won't find it if we're
3855 # using a relative directory.
3856 cp "$am_depcomp" conftest.dir
3858 # We will build objects and dependencies in a subdirectory because
3859 # it helps to detect inapplicable dependency modes. For instance
3860 # both Tru64's cc and ICC support -MD to output dependencies as a
3861 # side effect of compilation, but ICC will put the dependencies in
3862 # the current directory while Tru64 will put them in the object
3866 am_cv_CC_dependencies_compiler_type=none
3867 if test "$am_compiler_list" = ""; then
3868 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3870 for depmode in $am_compiler_list; do
3871 # Setup a source with many dependencies, because some compilers
3872 # like to wrap large dependency lists on column 80 (with \), and
3873 # we should not choose a depcomp mode which is confused by this.
3875 # We need to recreate these files for each test, as the compiler may
3876 # overwrite some of them when testing with obscure command lines.
3877 # This happens at least with the AIX C compiler.
3879 for i in 1 2 3 4 5 6; do
3880 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3881 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3882 # Solaris 8's {/usr,}/bin/sh.
3883 touch sub/conftst$i.h
3885 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3889 # after this tag, mechanisms are not by side-effect, so they'll
3890 # only be used when explicitly requested
3891 if test "x$enable_dependency_tracking" = xyes; then
3899 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3900 # mode. It turns out that the SunPro C++ compiler does not properly
3901 # handle `-M -o', and we need to detect this.
3902 if depmode=$depmode \
3903 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3904 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3905 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3906 >/dev/null 2>conftest.err &&
3907 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3908 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3909 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3910 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3911 # icc doesn't choke on unknown options, it will just issue warnings
3912 # or remarks (even with -Werror). So we grep stderr for any message
3913 # that says an option was ignored or not supported.
3914 # When given -MP, icc 7.0 and 7.1 complain thusly:
3915 # icc: Command line warning: ignoring option '-M'; no argument required
3916 # The diagnosis changed in icc 8.0:
3917 # icc: Command line remark: option '-MP' not supported
3918 if (grep 'ignoring option' conftest.err ||
3919 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3920 am_cv_CC_dependencies_compiler_type=$depmode
3929 am_cv_CC_dependencies_compiler_type=none
3933 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3934 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3935 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3938 test "x$enable_dependency_tracking" != xno \
3939 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3941 am__fastdepCC_FALSE='#'
3943 am__fastdepCC_TRUE='#'
3944 am__fastdepCC_FALSE=
3948 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3949 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3950 if test "${lt_cv_path_SED+set}" = set; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
3953 # Loop through the user's path and test for sed and gsed.
3954 # Then use that list of sed's as ones to test for truncation.
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 test -z "$as_dir" && as_dir=.
3960 for lt_ac_prog in sed gsed; do
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3963 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3970 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3971 # along with /bin/sed that truncates output.
3972 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3973 test ! -f $lt_ac_sed && continue
3974 cat /dev/null > conftest.in
3976 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3977 # Check for GNU sed and select it if it is found.
3978 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3979 lt_cv_path_SED=$lt_ac_sed
3983 cat conftest.in conftest.in >conftest.tmp
3984 mv conftest.tmp conftest.in
3985 cp conftest.in conftest.nl
3987 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3988 cmp -s conftest.out conftest.nl || break
3989 # 10000 chars as input seems more than enough
3990 test $lt_ac_count -gt 10 && break
3991 lt_ac_count=`expr $lt_ac_count + 1`
3992 if test $lt_ac_count -gt $lt_ac_max; then
3993 lt_ac_max=$lt_ac_count
3994 lt_cv_path_SED=$lt_ac_sed
4002 { echo "$as_me:$LINENO: result: $SED" >&5
4003 echo "${ECHO_T}$SED" >&6; }
4005 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4006 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4007 if test "${ac_cv_path_GREP+set}" = set; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 # Extract the first word of "grep ggrep" to use in msg output
4011 if test -z "$GREP"; then
4012 set dummy grep ggrep; ac_prog_name=$2
4013 if test "${ac_cv_path_GREP+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 ac_path_GREP_found=false
4017 # Loop through the user's path and test for each of PROGNAME-LIST
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4022 test -z "$as_dir" && as_dir=.
4023 for ac_prog in grep ggrep; do
4024 for ac_exec_ext in '' $ac_executable_extensions; do
4025 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4026 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4027 # Check for GNU ac_path_GREP and select it if it is found.
4028 # Check for GNU $ac_path_GREP
4029 case `"$ac_path_GREP" --version 2>&1` in
4031 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4034 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4037 cat "conftest.in" "conftest.in" >"conftest.tmp"
4038 mv "conftest.tmp" "conftest.in"
4039 cp "conftest.in" "conftest.nl"
4040 echo 'GREP' >> "conftest.nl"
4041 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4042 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4043 ac_count=`expr $ac_count + 1`
4044 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4045 # Best one so far, save it but keep looking for a better one
4046 ac_cv_path_GREP="$ac_path_GREP"
4047 ac_path_GREP_max=$ac_count
4049 # 10*(2^10) chars as input seems more than enough
4050 test $ac_count -gt 10 && break
4052 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4056 $ac_path_GREP_found && break 3
4066 GREP="$ac_cv_path_GREP"
4067 if test -z "$GREP"; then
4068 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4069 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4070 { (exit 1); exit 1; }; }
4074 ac_cv_path_GREP=$GREP
4079 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4080 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4081 GREP="$ac_cv_path_GREP"
4084 { echo "$as_me:$LINENO: checking for egrep" >&5
4085 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4086 if test "${ac_cv_path_EGREP+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4090 then ac_cv_path_EGREP="$GREP -E"
4092 # Extract the first word of "egrep" to use in msg output
4093 if test -z "$EGREP"; then
4094 set dummy egrep; ac_prog_name=$2
4095 if test "${ac_cv_path_EGREP+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4098 ac_path_EGREP_found=false
4099 # Loop through the user's path and test for each of PROGNAME-LIST
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4104 test -z "$as_dir" && as_dir=.
4105 for ac_prog in egrep; do
4106 for ac_exec_ext in '' $ac_executable_extensions; do
4107 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4108 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4109 # Check for GNU ac_path_EGREP and select it if it is found.
4110 # Check for GNU $ac_path_EGREP
4111 case `"$ac_path_EGREP" --version 2>&1` in
4113 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4116 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4119 cat "conftest.in" "conftest.in" >"conftest.tmp"
4120 mv "conftest.tmp" "conftest.in"
4121 cp "conftest.in" "conftest.nl"
4122 echo 'EGREP' >> "conftest.nl"
4123 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4124 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4125 ac_count=`expr $ac_count + 1`
4126 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4127 # Best one so far, save it but keep looking for a better one
4128 ac_cv_path_EGREP="$ac_path_EGREP"
4129 ac_path_EGREP_max=$ac_count
4131 # 10*(2^10) chars as input seems more than enough
4132 test $ac_count -gt 10 && break
4134 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4138 $ac_path_EGREP_found && break 3
4148 EGREP="$ac_cv_path_EGREP"
4149 if test -z "$EGREP"; then
4150 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4151 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4152 { (exit 1); exit 1; }; }
4156 ac_cv_path_EGREP=$EGREP
4162 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4163 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4164 EGREP="$ac_cv_path_EGREP"
4168 # Check whether --with-gnu-ld was given.
4169 if test "${with_gnu_ld+set}" = set; then
4170 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4176 if test "$GCC" = yes; then
4177 # Check if gcc -print-prog-name=ld gives a path.
4178 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4179 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4182 # gcc leaves a trailing carriage return which upsets mingw
4183 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4185 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4188 # Accept absolute paths.
4190 re_direlt='/[^/][^/]*/\.\./'
4191 # Canonicalize the pathname of ld
4192 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4193 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4194 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4196 test -z "$LD" && LD="$ac_prog"
4199 # If it fails, then pretend we aren't using GCC.
4203 # If it is relative, then search for the first ld in PATH.
4207 elif test "$with_gnu_ld" = yes; then
4208 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4209 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4211 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4212 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4214 if test "${lt_cv_path_LD+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 if test -z "$LD"; then
4218 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4219 for ac_dir in $PATH; do
4221 test -z "$ac_dir" && ac_dir=.
4222 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4223 lt_cv_path_LD="$ac_dir/$ac_prog"
4224 # Check to see if the program is GNU ld. I'd rather use --version,
4225 # but apparently some variants of GNU ld only accept -v.
4226 # Break only if it was the GNU/non-GNU ld that we prefer.
4227 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4228 *GNU* | *'with BFD'*)
4229 test "$with_gnu_ld" != no && break
4232 test "$with_gnu_ld" != yes && break
4239 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4244 if test -n "$LD"; then
4245 { echo "$as_me:$LINENO: result: $LD" >&5
4246 echo "${ECHO_T}$LD" >&6; }
4248 { echo "$as_me:$LINENO: result: no" >&5
4249 echo "${ECHO_T}no" >&6; }
4251 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4252 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4253 { (exit 1); exit 1; }; }
4254 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4255 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4256 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4257 echo $ECHO_N "(cached) $ECHO_C" >&6
4259 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4260 case `$LD -v 2>&1 </dev/null` in
4261 *GNU* | *'with BFD'*)
4262 lt_cv_prog_gnu_ld=yes
4265 lt_cv_prog_gnu_ld=no
4269 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4270 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4271 with_gnu_ld=$lt_cv_prog_gnu_ld
4274 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4275 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4276 if test "${lt_cv_ld_reload_flag+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
4279 lt_cv_ld_reload_flag='-r'
4281 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4282 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4283 reload_flag=$lt_cv_ld_reload_flag
4284 case $reload_flag in
4286 *) reload_flag=" $reload_flag" ;;
4288 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4291 if test "$GCC" = yes; then
4292 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4294 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4299 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4300 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4301 if test "${lt_cv_path_NM+set}" = set; then
4302 echo $ECHO_N "(cached) $ECHO_C" >&6
4304 if test -n "$NM"; then
4305 # Let the user override the test.
4308 lt_nm_to_check="${ac_tool_prefix}nm"
4309 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4310 lt_nm_to_check="$lt_nm_to_check nm"
4312 for lt_tmp_nm in $lt_nm_to_check; do
4313 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4314 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4316 test -z "$ac_dir" && ac_dir=.
4317 tmp_nm="$ac_dir/$lt_tmp_nm"
4318 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4319 # Check to see if the nm accepts a BSD-compat flag.
4320 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4321 # nm: unknown option "B" ignored
4322 # Tru64's nm complains that /dev/null is an invalid object file
4323 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4324 */dev/null* | *'Invalid file or object type'*)
4325 lt_cv_path_NM="$tmp_nm -B"
4329 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4331 lt_cv_path_NM="$tmp_nm -p"
4335 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4336 continue # so that we can try to find one that supports BSD flags
4345 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4348 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4349 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4352 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4353 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4355 if test "$LN_S" = "ln -s"; then
4356 { echo "$as_me:$LINENO: result: yes" >&5
4357 echo "${ECHO_T}yes" >&6; }
4359 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4360 echo "${ECHO_T}no, using $LN_S" >&6; }
4363 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4364 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4365 if test "${lt_cv_deplibs_check_method+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 lt_cv_file_magic_cmd='$MAGIC_CMD'
4369 lt_cv_file_magic_test_file=
4370 lt_cv_deplibs_check_method='unknown'
4371 # Need to set the preceding variable on all platforms that support
4372 # interlibrary dependencies.
4373 # 'none' -- dependencies not supported.
4374 # `unknown' -- same as none, but documents that we really don't know.
4375 # 'pass_all' -- all dependencies passed with no checks.
4376 # 'test_compile' -- check by making test program.
4377 # 'file_magic [[regex]]' -- check by looking for files in library path
4378 # which responds to the $file_magic_cmd with a given extended regex.
4379 # If you have `file' or equivalent on your system and you're not sure
4380 # whether `pass_all' will *always* work, you probably want this one.
4384 lt_cv_deplibs_check_method=pass_all
4388 lt_cv_deplibs_check_method=pass_all
4392 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4393 lt_cv_file_magic_cmd='/usr/bin/file -L'
4394 lt_cv_file_magic_test_file=/shlib/libc.so
4398 # func_win32_libid is a shell function defined in ltmain.sh
4399 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4400 lt_cv_file_magic_cmd='func_win32_libid'
4404 # Base MSYS/MinGW do not provide the 'file' command needed by
4405 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4406 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4407 lt_cv_file_magic_cmd='$OBJDUMP -f'
4410 darwin* | rhapsody*)
4411 lt_cv_deplibs_check_method=pass_all
4414 freebsd* | dragonfly*)
4415 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4418 # Not sure whether the presence of OpenBSD here was a mistake.
4419 # Let's accept both of them until this is cleared up.
4420 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4421 lt_cv_file_magic_cmd=/usr/bin/file
4422 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4426 lt_cv_deplibs_check_method=pass_all
4431 lt_cv_deplibs_check_method=pass_all
4434 hpux10.20* | hpux11*)
4435 lt_cv_file_magic_cmd=/usr/bin/file
4438 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4439 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4442 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]'
4443 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4446 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4447 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4453 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4454 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4457 irix5* | irix6* | nonstopux*)
4459 *-32|*"-32 ") libmagic=32-bit;;
4460 *-n32|*"-n32 ") libmagic=N32;;
4461 *-64|*"-64 ") libmagic=64-bit;;
4462 *) libmagic=never-match;;
4464 lt_cv_deplibs_check_method=pass_all
4467 # This must be Linux ELF.
4468 linux* | k*bsd*-gnu)
4469 lt_cv_deplibs_check_method=pass_all
4472 netbsd* | netbsdelf*-gnu)
4473 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4474 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4476 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4481 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4482 lt_cv_file_magic_cmd=/usr/bin/file
4483 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4487 lt_cv_deplibs_check_method=unknown
4491 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4492 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4494 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4498 osf3* | osf4* | osf5*)
4499 lt_cv_deplibs_check_method=pass_all
4503 lt_cv_deplibs_check_method=pass_all
4507 case $host_vendor in
4509 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]'
4510 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4513 lt_cv_deplibs_check_method=pass_all
4516 lt_cv_file_magic_cmd='/bin/file'
4517 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4520 lt_cv_file_magic_cmd='/bin/file'
4521 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4522 lt_cv_file_magic_test_file=/lib/libc.so
4525 lt_cv_deplibs_check_method=pass_all
4528 lt_cv_deplibs_check_method=pass_all
4533 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4534 lt_cv_deplibs_check_method=pass_all
4539 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4540 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4541 file_magic_cmd=$lt_cv_file_magic_cmd
4542 deplibs_check_method=$lt_cv_deplibs_check_method
4543 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4548 # If no C compiler was specified, use CC.
4551 # If no C compiler flags were specified, use CFLAGS.
4552 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4554 # Allow CC to be a program name with arguments.
4558 # Check whether --enable-libtool-lock was given.
4559 if test "${enable_libtool_lock+set}" = set; then
4560 enableval=$enable_libtool_lock;
4563 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4565 # Some flags need to be propagated to the compiler or linker for good
4569 # Find out which ABI we are using.
4570 echo 'int i;' > conftest.$ac_ext
4571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4572 (eval $ac_compile) 2>&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; then
4576 case `/usr/bin/file conftest.$ac_objext` in
4588 # Find out which ABI we are using.
4589 echo '#line 4589 "configure"' > conftest.$ac_ext
4590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4591 (eval $ac_compile) 2>&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); }; then
4595 if test "$lt_cv_prog_gnu_ld" = yes; then
4596 case `/usr/bin/file conftest.$ac_objext` in
4598 LD="${LD-ld} -melf32bsmip"
4601 LD="${LD-ld} -melf32bmipn32"
4604 LD="${LD-ld} -melf64bmip"
4608 case `/usr/bin/file conftest.$ac_objext` in
4624 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4625 # Find out which ABI we are using.
4626 echo 'int i;' > conftest.$ac_ext
4627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4628 (eval $ac_compile) 2>&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; then
4632 case `/usr/bin/file conftest.o` in
4636 LD="${LD-ld} -m elf_i386"
4638 ppc64-*linux*|powerpc64-*linux*)
4639 LD="${LD-ld} -m elf32ppclinux"
4642 LD="${LD-ld} -m elf_s390"
4645 LD="${LD-ld} -m elf32_sparc"
4652 LD="${LD-ld} -m elf_x86_64"
4654 ppc*-*linux*|powerpc*-*linux*)
4655 LD="${LD-ld} -m elf64ppc"
4658 LD="${LD-ld} -m elf64_s390"
4661 LD="${LD-ld} -m elf64_sparc"
4671 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4672 SAVE_CFLAGS="$CFLAGS"
4673 CFLAGS="$CFLAGS -belf"
4674 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4675 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4676 if test "${lt_cv_cc_needs_belf+set}" = set; then
4677 echo $ECHO_N "(cached) $ECHO_C" >&6
4680 ac_cpp='$CPP $CPPFLAGS'
4681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4685 cat >conftest.$ac_ext <<_ACEOF
4688 cat confdefs.h >>conftest.$ac_ext
4689 cat >>conftest.$ac_ext <<_ACEOF
4690 /* end confdefs.h. */
4700 rm -f conftest.$ac_objext conftest$ac_exeext
4701 if { (ac_try="$ac_link"
4703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704 *) ac_try_echo=$ac_try;;
4706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4707 (eval "$ac_link") 2>conftest.er1
4709 grep -v '^ *+' conftest.er1 >conftest.err
4711 cat conftest.err >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } && {
4714 test -z "$ac_c_werror_flag" ||
4715 test ! -s conftest.err
4716 } && test -s conftest$ac_exeext &&
4717 $as_test_x conftest$ac_exeext; then
4718 lt_cv_cc_needs_belf=yes
4720 echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.$ac_ext >&5
4723 lt_cv_cc_needs_belf=no
4726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4727 conftest$ac_exeext conftest.$ac_ext
4729 ac_cpp='$CPP $CPPFLAGS'
4730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4735 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4736 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4737 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4738 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4739 CFLAGS="$SAVE_CFLAGS"
4743 # Find out which ABI we are using.
4744 echo 'int i;' > conftest.$ac_ext
4745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4746 (eval $ac_compile) 2>&5
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); }; then
4750 case `/usr/bin/file conftest.o` in
4752 case $lt_cv_prog_gnu_ld in
4753 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4754 *) LD="${LD-ld} -64" ;;
4762 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4763 if test -n "$ac_tool_prefix"; then
4764 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4765 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4768 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4769 echo $ECHO_N "(cached) $ECHO_C" >&6
4771 if test -n "$DLLTOOL"; then
4772 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 test -z "$as_dir" && as_dir=.
4779 for ac_exec_ext in '' $ac_executable_extensions; do
4780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4781 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 DLLTOOL=$ac_cv_prog_DLLTOOL
4792 if test -n "$DLLTOOL"; then
4793 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4794 echo "${ECHO_T}$DLLTOOL" >&6; }
4796 { echo "$as_me:$LINENO: result: no" >&5
4797 echo "${ECHO_T}no" >&6; }
4802 if test -z "$ac_cv_prog_DLLTOOL"; then
4803 ac_ct_DLLTOOL=$DLLTOOL
4804 # Extract the first word of "dlltool", so it can be a program name with args.
4805 set dummy dlltool; ac_word=$2
4806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4808 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 if test -n "$ac_ct_DLLTOOL"; then
4812 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 test -z "$as_dir" && as_dir=.
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4821 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4832 if test -n "$ac_ct_DLLTOOL"; then
4833 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4834 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4836 { echo "$as_me:$LINENO: result: no" >&5
4837 echo "${ECHO_T}no" >&6; }
4840 if test "x$ac_ct_DLLTOOL" = x; then
4843 case $cross_compiling:$ac_tool_warned in
4845 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4846 whose name does not start with the host triplet. If you think this
4847 configuration is useful to you, please write to autoconf@gnu.org." >&5
4848 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4849 whose name does not start with the host triplet. If you think this
4850 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4851 ac_tool_warned=yes ;;
4853 DLLTOOL=$ac_ct_DLLTOOL
4856 DLLTOOL="$ac_cv_prog_DLLTOOL"
4859 if test -n "$ac_tool_prefix"; then
4860 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4861 set dummy ${ac_tool_prefix}as; ac_word=$2
4862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4864 if test "${ac_cv_prog_AS+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 if test -n "$AS"; then
4868 ac_cv_prog_AS="$AS" # Let the user override the test.
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4877 ac_cv_prog_AS="${ac_tool_prefix}as"
4878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4888 if test -n "$AS"; then
4889 { echo "$as_me:$LINENO: result: $AS" >&5
4890 echo "${ECHO_T}$AS" >&6; }
4892 { echo "$as_me:$LINENO: result: no" >&5
4893 echo "${ECHO_T}no" >&6; }
4898 if test -z "$ac_cv_prog_AS"; then
4900 # Extract the first word of "as", so it can be a program name with args.
4901 set dummy as; ac_word=$2
4902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4904 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 if test -n "$ac_ct_AS"; then
4908 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4917 ac_cv_prog_ac_ct_AS="as"
4918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4928 if test -n "$ac_ct_AS"; then
4929 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4930 echo "${ECHO_T}$ac_ct_AS" >&6; }
4932 { echo "$as_me:$LINENO: result: no" >&5
4933 echo "${ECHO_T}no" >&6; }
4936 if test "x$ac_ct_AS" = x; then
4939 case $cross_compiling:$ac_tool_warned in
4941 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4942 whose name does not start with the host triplet. If you think this
4943 configuration is useful to you, please write to autoconf@gnu.org." >&5
4944 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4945 whose name does not start with the host triplet. If you think this
4946 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4947 ac_tool_warned=yes ;;
4955 if test -n "$ac_tool_prefix"; then
4956 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4957 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4960 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4961 echo $ECHO_N "(cached) $ECHO_C" >&6
4963 if test -n "$OBJDUMP"; then
4964 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4973 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4983 OBJDUMP=$ac_cv_prog_OBJDUMP
4984 if test -n "$OBJDUMP"; then
4985 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4986 echo "${ECHO_T}$OBJDUMP" >&6; }
4988 { echo "$as_me:$LINENO: result: no" >&5
4989 echo "${ECHO_T}no" >&6; }
4994 if test -z "$ac_cv_prog_OBJDUMP"; then
4995 ac_ct_OBJDUMP=$OBJDUMP
4996 # Extract the first word of "objdump", so it can be a program name with args.
4997 set dummy objdump; ac_word=$2
4998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5000 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 if test -n "$ac_ct_OBJDUMP"; then
5004 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 test -z "$as_dir" && as_dir=.
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5013 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5024 if test -n "$ac_ct_OBJDUMP"; then
5025 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5026 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5028 { echo "$as_me:$LINENO: result: no" >&5
5029 echo "${ECHO_T}no" >&6; }
5032 if test "x$ac_ct_OBJDUMP" = x; then
5035 case $cross_compiling:$ac_tool_warned in
5037 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5038 whose name does not start with the host triplet. If you think this
5039 configuration is useful to you, please write to autoconf@gnu.org." >&5
5040 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5041 whose name does not start with the host triplet. If you think this
5042 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5043 ac_tool_warned=yes ;;
5045 OBJDUMP=$ac_ct_OBJDUMP
5048 OBJDUMP="$ac_cv_prog_OBJDUMP"
5055 need_locks="$enable_libtool_lock"
5059 ac_cpp='$CPP $CPPFLAGS'
5060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5063 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5064 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5065 # On Suns, sometimes $CPP names a directory.
5066 if test -n "$CPP" && test -d "$CPP"; then
5069 if test -z "$CPP"; then
5070 if test "${ac_cv_prog_CPP+set}" = set; then
5071 echo $ECHO_N "(cached) $ECHO_C" >&6
5073 # Double quotes because CPP needs to be expanded
5074 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5077 for ac_c_preproc_warn_flag in '' yes
5079 # Use a header file that comes with gcc, so configuring glibc
5080 # with a fresh cross-compiler works.
5081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5082 # <limits.h> exists even on freestanding compilers.
5083 # On the NeXT, cc -E runs the code through the compiler's parser,
5084 # not just through cpp. "Syntax error" is here to catch this case.
5085 cat >conftest.$ac_ext <<_ACEOF
5088 cat confdefs.h >>conftest.$ac_ext
5089 cat >>conftest.$ac_ext <<_ACEOF
5090 /* end confdefs.h. */
5092 # include <limits.h>
5094 # include <assert.h>
5098 if { (ac_try="$ac_cpp conftest.$ac_ext"
5100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5101 *) ac_try_echo=$ac_try;;
5103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5106 grep -v '^ *+' conftest.er1 >conftest.err
5108 cat conftest.err >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } >/dev/null && {
5111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5112 test ! -s conftest.err
5116 echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5119 # Broken: fails on valid input.
5123 rm -f conftest.err conftest.$ac_ext
5125 # OK, works on sane cases. Now check whether nonexistent headers
5126 # can be detected and how.
5127 cat >conftest.$ac_ext <<_ACEOF
5130 cat confdefs.h >>conftest.$ac_ext
5131 cat >>conftest.$ac_ext <<_ACEOF
5132 /* end confdefs.h. */
5133 #include <ac_nonexistent.h>
5135 if { (ac_try="$ac_cpp conftest.$ac_ext"
5137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138 *) ac_try_echo=$ac_try;;
5140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5143 grep -v '^ *+' conftest.er1 >conftest.err
5145 cat conftest.err >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); } >/dev/null && {
5148 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5149 test ! -s conftest.err
5151 # Broken: success on invalid input.
5154 echo "$as_me: failed program was:" >&5
5155 sed 's/^/| /' conftest.$ac_ext >&5
5157 # Passes both tests.
5162 rm -f conftest.err conftest.$ac_ext
5165 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5166 rm -f conftest.err conftest.$ac_ext
5167 if $ac_preproc_ok; then
5179 { echo "$as_me:$LINENO: result: $CPP" >&5
5180 echo "${ECHO_T}$CPP" >&6; }
5182 for ac_c_preproc_warn_flag in '' yes
5184 # Use a header file that comes with gcc, so configuring glibc
5185 # with a fresh cross-compiler works.
5186 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5187 # <limits.h> exists even on freestanding compilers.
5188 # On the NeXT, cc -E runs the code through the compiler's parser,
5189 # not just through cpp. "Syntax error" is here to catch this case.
5190 cat >conftest.$ac_ext <<_ACEOF
5193 cat confdefs.h >>conftest.$ac_ext
5194 cat >>conftest.$ac_ext <<_ACEOF
5195 /* end confdefs.h. */
5197 # include <limits.h>
5199 # include <assert.h>
5203 if { (ac_try="$ac_cpp conftest.$ac_ext"
5205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5206 *) ac_try_echo=$ac_try;;
5208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5209 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5211 grep -v '^ *+' conftest.er1 >conftest.err
5213 cat conftest.err >&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); } >/dev/null && {
5216 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5217 test ! -s conftest.err
5221 echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5224 # Broken: fails on valid input.
5228 rm -f conftest.err conftest.$ac_ext
5230 # OK, works on sane cases. Now check whether nonexistent headers
5231 # can be detected and how.
5232 cat >conftest.$ac_ext <<_ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5238 #include <ac_nonexistent.h>
5240 if { (ac_try="$ac_cpp conftest.$ac_ext"
5242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5243 *) ac_try_echo=$ac_try;;
5245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5248 grep -v '^ *+' conftest.er1 >conftest.err
5250 cat conftest.err >&5
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); } >/dev/null && {
5253 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5254 test ! -s conftest.err
5256 # Broken: success on invalid input.
5259 echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5262 # Passes both tests.
5267 rm -f conftest.err conftest.$ac_ext
5270 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5271 rm -f conftest.err conftest.$ac_ext
5272 if $ac_preproc_ok; then
5275 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5276 See \`config.log' for more details." >&5
5277 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5278 See \`config.log' for more details." >&2;}
5279 { (exit 1); exit 1; }; }
5283 ac_cpp='$CPP $CPPFLAGS'
5284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5289 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5290 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5291 if test "${ac_cv_header_stdc+set}" = set; then
5292 echo $ECHO_N "(cached) $ECHO_C" >&6
5294 cat >conftest.$ac_ext <<_ACEOF
5297 cat confdefs.h >>conftest.$ac_ext
5298 cat >>conftest.$ac_ext <<_ACEOF
5299 /* end confdefs.h. */
5313 rm -f conftest.$ac_objext
5314 if { (ac_try="$ac_compile"
5316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5317 *) ac_try_echo=$ac_try;;
5319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5320 (eval "$ac_compile") 2>conftest.er1
5322 grep -v '^ *+' conftest.er1 >conftest.err
5324 cat conftest.err >&5
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); } && {
5327 test -z "$ac_c_werror_flag" ||
5328 test ! -s conftest.err
5329 } && test -s conftest.$ac_objext; then
5330 ac_cv_header_stdc=yes
5332 echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5335 ac_cv_header_stdc=no
5338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5340 if test $ac_cv_header_stdc = yes; then
5341 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5342 cat >conftest.$ac_ext <<_ACEOF
5345 cat confdefs.h >>conftest.$ac_ext
5346 cat >>conftest.$ac_ext <<_ACEOF
5347 /* end confdefs.h. */
5351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5352 $EGREP "memchr" >/dev/null 2>&1; then
5355 ac_cv_header_stdc=no
5361 if test $ac_cv_header_stdc = yes; then
5362 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5363 cat >conftest.$ac_ext <<_ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h. */
5372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5373 $EGREP "free" >/dev/null 2>&1; then
5376 ac_cv_header_stdc=no
5382 if test $ac_cv_header_stdc = yes; then
5383 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5384 if test "$cross_compiling" = yes; then
5387 cat >conftest.$ac_ext <<_ACEOF
5390 cat confdefs.h >>conftest.$ac_ext
5391 cat >>conftest.$ac_ext <<_ACEOF
5392 /* end confdefs.h. */
5395 #if ((' ' & 0x0FF) == 0x020)
5396 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5397 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5399 # define ISLOWER(c) \
5400 (('a' <= (c) && (c) <= 'i') \
5401 || ('j' <= (c) && (c) <= 'r') \
5402 || ('s' <= (c) && (c) <= 'z'))
5403 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5406 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5411 for (i = 0; i < 256; i++)
5412 if (XOR (islower (i), ISLOWER (i))
5413 || toupper (i) != TOUPPER (i))
5418 rm -f conftest$ac_exeext
5419 if { (ac_try="$ac_link"
5421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5422 *) ac_try_echo=$ac_try;;
5424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5425 (eval "$ac_link") 2>&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5429 { (case "(($ac_try" in
5430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431 *) ac_try_echo=$ac_try;;
5433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5434 (eval "$ac_try") 2>&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }; }; then
5440 echo "$as_me: program exited with status $ac_status" >&5
5441 echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5445 ac_cv_header_stdc=no
5447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5453 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5454 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5455 if test $ac_cv_header_stdc = yes; then
5457 cat >>confdefs.h <<\_ACEOF
5458 #define STDC_HEADERS 1
5463 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5473 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5474 inttypes.h stdint.h unistd.h
5476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5480 echo $ECHO_N "(cached) $ECHO_C" >&6
5482 cat >conftest.$ac_ext <<_ACEOF
5485 cat confdefs.h >>conftest.$ac_ext
5486 cat >>conftest.$ac_ext <<_ACEOF
5487 /* end confdefs.h. */
5488 $ac_includes_default
5490 #include <$ac_header>
5492 rm -f conftest.$ac_objext
5493 if { (ac_try="$ac_compile"
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499 (eval "$ac_compile") 2>conftest.er1
5501 grep -v '^ *+' conftest.er1 >conftest.err
5503 cat conftest.err >&5
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); } && {
5506 test -z "$ac_c_werror_flag" ||
5507 test ! -s conftest.err
5508 } && test -s conftest.$ac_objext; then
5509 eval "$as_ac_Header=yes"
5511 echo "$as_me: failed program was:" >&5
5512 sed 's/^/| /' conftest.$ac_ext >&5
5514 eval "$as_ac_Header=no"
5517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5519 ac_res=`eval echo '${'$as_ac_Header'}'`
5520 { echo "$as_me:$LINENO: result: $ac_res" >&5
5521 echo "${ECHO_T}$ac_res" >&6; }
5522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5523 cat >>confdefs.h <<_ACEOF
5524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5533 for ac_header in dlfcn.h
5535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5540 echo $ECHO_N "(cached) $ECHO_C" >&6
5542 ac_res=`eval echo '${'$as_ac_Header'}'`
5543 { echo "$as_me:$LINENO: result: $ac_res" >&5
5544 echo "${ECHO_T}$ac_res" >&6; }
5546 # Is the header compilable?
5547 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5549 cat >conftest.$ac_ext <<_ACEOF
5552 cat confdefs.h >>conftest.$ac_ext
5553 cat >>conftest.$ac_ext <<_ACEOF
5554 /* end confdefs.h. */
5555 $ac_includes_default
5556 #include <$ac_header>
5558 rm -f conftest.$ac_objext
5559 if { (ac_try="$ac_compile"
5561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5562 *) ac_try_echo=$ac_try;;
5564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5565 (eval "$ac_compile") 2>conftest.er1
5567 grep -v '^ *+' conftest.er1 >conftest.err
5569 cat conftest.err >&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); } && {
5572 test -z "$ac_c_werror_flag" ||
5573 test ! -s conftest.err
5574 } && test -s conftest.$ac_objext; then
5575 ac_header_compiler=yes
5577 echo "$as_me: failed program was:" >&5
5578 sed 's/^/| /' conftest.$ac_ext >&5
5580 ac_header_compiler=no
5583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5585 echo "${ECHO_T}$ac_header_compiler" >&6; }
5587 # Is the header present?
5588 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5589 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5590 cat >conftest.$ac_ext <<_ACEOF
5593 cat confdefs.h >>conftest.$ac_ext
5594 cat >>conftest.$ac_ext <<_ACEOF
5595 /* end confdefs.h. */
5596 #include <$ac_header>
5598 if { (ac_try="$ac_cpp conftest.$ac_ext"
5600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5601 *) ac_try_echo=$ac_try;;
5603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5606 grep -v '^ *+' conftest.er1 >conftest.err
5608 cat conftest.err >&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); } >/dev/null && {
5611 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5612 test ! -s conftest.err
5614 ac_header_preproc=yes
5616 echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5619 ac_header_preproc=no
5622 rm -f conftest.err conftest.$ac_ext
5623 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5624 echo "${ECHO_T}$ac_header_preproc" >&6; }
5626 # So? What about this header?
5627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5629 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5630 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5632 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5633 ac_header_preproc=yes
5636 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5637 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5638 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5639 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5640 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5641 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5642 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5643 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5645 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5646 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5647 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5649 ## -------------------------------------------------- ##
5650 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
5651 ## -------------------------------------------------- ##
5653 ) | sed "s/^/$as_me: WARNING: /" >&2
5656 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5659 echo $ECHO_N "(cached) $ECHO_C" >&6
5661 eval "$as_ac_Header=\$ac_header_preproc"
5663 ac_res=`eval echo '${'$as_ac_Header'}'`
5664 { echo "$as_me:$LINENO: result: $ac_res" >&5
5665 echo "${ECHO_T}$ac_res" >&6; }
5668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5669 cat >>confdefs.h <<_ACEOF
5670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5678 ac_cpp='$CXXCPP $CPPFLAGS'
5679 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5680 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5681 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5682 if test -z "$CXX"; then
5683 if test -n "$CCC"; then
5686 if test -n "$ac_tool_prefix"; then
5687 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5689 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5690 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5693 if test "${ac_cv_prog_CXX+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5696 if test -n "$CXX"; then
5697 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703 test -z "$as_dir" && as_dir=.
5704 for ac_exec_ext in '' $ac_executable_extensions; do
5705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5706 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5717 if test -n "$CXX"; then
5718 { echo "$as_me:$LINENO: result: $CXX" >&5
5719 echo "${ECHO_T}$CXX" >&6; }
5721 { echo "$as_me:$LINENO: result: no" >&5
5722 echo "${ECHO_T}no" >&6; }
5726 test -n "$CXX" && break
5729 if test -z "$CXX"; then
5731 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5733 # Extract the first word of "$ac_prog", so it can be a program name with args.
5734 set dummy $ac_prog; ac_word=$2
5735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5737 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5738 echo $ECHO_N "(cached) $ECHO_C" >&6
5740 if test -n "$ac_ct_CXX"; then
5741 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747 test -z "$as_dir" && as_dir=.
5748 for ac_exec_ext in '' $ac_executable_extensions; do
5749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5750 ac_cv_prog_ac_ct_CXX="$ac_prog"
5751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5760 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5761 if test -n "$ac_ct_CXX"; then
5762 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5763 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5765 { echo "$as_me:$LINENO: result: no" >&5
5766 echo "${ECHO_T}no" >&6; }
5770 test -n "$ac_ct_CXX" && break
5773 if test "x$ac_ct_CXX" = x; then
5776 case $cross_compiling:$ac_tool_warned in
5778 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5779 whose name does not start with the host triplet. If you think this
5780 configuration is useful to you, please write to autoconf@gnu.org." >&5
5781 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5782 whose name does not start with the host triplet. If you think this
5783 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5784 ac_tool_warned=yes ;;
5792 # Provide some information about the compiler.
5793 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5794 ac_compiler=`set X $ac_compile; echo $2`
5795 { (ac_try="$ac_compiler --version >&5"
5797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798 *) ac_try_echo=$ac_try;;
5800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801 (eval "$ac_compiler --version >&5") 2>&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }
5805 { (ac_try="$ac_compiler -v >&5"
5807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5808 *) ac_try_echo=$ac_try;;
5810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5811 (eval "$ac_compiler -v >&5") 2>&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }
5815 { (ac_try="$ac_compiler -V >&5"
5817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818 *) ac_try_echo=$ac_try;;
5820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821 (eval "$ac_compiler -V >&5") 2>&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }
5826 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5827 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5828 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 cat >conftest.$ac_ext <<_ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h. */
5849 rm -f conftest.$ac_objext
5850 if { (ac_try="$ac_compile"
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_compile") 2>conftest.er1
5858 grep -v '^ *+' conftest.er1 >conftest.err
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } && {
5863 test -z "$ac_cxx_werror_flag" ||
5864 test ! -s conftest.err
5865 } && test -s conftest.$ac_objext; then
5868 echo "$as_me: failed program was:" >&5
5869 sed 's/^/| /' conftest.$ac_ext >&5
5874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5875 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5878 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5879 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5880 GXX=`test $ac_compiler_gnu = yes && echo yes`
5881 ac_test_CXXFLAGS=${CXXFLAGS+set}
5882 ac_save_CXXFLAGS=$CXXFLAGS
5883 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5884 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5885 if test "${ac_cv_prog_cxx_g+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5889 ac_cxx_werror_flag=yes
5892 cat >conftest.$ac_ext <<_ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5907 rm -f conftest.$ac_objext
5908 if { (ac_try="$ac_compile"
5910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5911 *) ac_try_echo=$ac_try;;
5913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5914 (eval "$ac_compile") 2>conftest.er1
5916 grep -v '^ *+' conftest.er1 >conftest.err
5918 cat conftest.err >&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); } && {
5921 test -z "$ac_cxx_werror_flag" ||
5922 test ! -s conftest.err
5923 } && test -s conftest.$ac_objext; then
5924 ac_cv_prog_cxx_g=yes
5926 echo "$as_me: failed program was:" >&5
5927 sed 's/^/| /' conftest.$ac_ext >&5
5930 cat >conftest.$ac_ext <<_ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h. */
5945 rm -f conftest.$ac_objext
5946 if { (ac_try="$ac_compile"
5948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949 *) ac_try_echo=$ac_try;;
5951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5952 (eval "$ac_compile") 2>conftest.er1
5954 grep -v '^ *+' conftest.er1 >conftest.err
5956 cat conftest.err >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } && {
5959 test -z "$ac_cxx_werror_flag" ||
5960 test ! -s conftest.err
5961 } && test -s conftest.$ac_objext; then
5964 echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5967 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5969 cat >conftest.$ac_ext <<_ACEOF
5972 cat confdefs.h >>conftest.$ac_ext
5973 cat >>conftest.$ac_ext <<_ACEOF
5974 /* end confdefs.h. */
5984 rm -f conftest.$ac_objext
5985 if { (ac_try="$ac_compile"
5987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5988 *) ac_try_echo=$ac_try;;
5990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5991 (eval "$ac_compile") 2>conftest.er1
5993 grep -v '^ *+' conftest.er1 >conftest.err
5995 cat conftest.err >&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); } && {
5998 test -z "$ac_cxx_werror_flag" ||
5999 test ! -s conftest.err
6000 } && test -s conftest.$ac_objext; then
6001 ac_cv_prog_cxx_g=yes
6003 echo "$as_me: failed program was:" >&5
6004 sed 's/^/| /' conftest.$ac_ext >&5
6009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6016 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6018 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6019 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6020 if test "$ac_test_CXXFLAGS" = set; then
6021 CXXFLAGS=$ac_save_CXXFLAGS
6022 elif test $ac_cv_prog_cxx_g = yes; then
6023 if test "$GXX" = yes; then
6029 if test "$GXX" = yes; then
6036 ac_cpp='$CXXCPP $CPPFLAGS'
6037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6041 depcc="$CXX" am_compiler_list=
6043 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6044 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6045 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6048 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6049 # We make a subdir and do the tests there. Otherwise we can end up
6050 # making bogus files that we don't know about and never remove. For
6051 # instance it was reported that on HP-UX the gcc test will end up
6052 # making a dummy file named `D' -- because `-MD' means `put the output
6055 # Copy depcomp to subdir because otherwise we won't find it if we're
6056 # using a relative directory.
6057 cp "$am_depcomp" conftest.dir
6059 # We will build objects and dependencies in a subdirectory because
6060 # it helps to detect inapplicable dependency modes. For instance
6061 # both Tru64's cc and ICC support -MD to output dependencies as a
6062 # side effect of compilation, but ICC will put the dependencies in
6063 # the current directory while Tru64 will put them in the object
6067 am_cv_CXX_dependencies_compiler_type=none
6068 if test "$am_compiler_list" = ""; then
6069 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6071 for depmode in $am_compiler_list; do
6072 # Setup a source with many dependencies, because some compilers
6073 # like to wrap large dependency lists on column 80 (with \), and
6074 # we should not choose a depcomp mode which is confused by this.
6076 # We need to recreate these files for each test, as the compiler may
6077 # overwrite some of them when testing with obscure command lines.
6078 # This happens at least with the AIX C compiler.
6080 for i in 1 2 3 4 5 6; do
6081 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6082 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6083 # Solaris 8's {/usr,}/bin/sh.
6084 touch sub/conftst$i.h
6086 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6090 # after this tag, mechanisms are not by side-effect, so they'll
6091 # only be used when explicitly requested
6092 if test "x$enable_dependency_tracking" = xyes; then
6100 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6101 # mode. It turns out that the SunPro C++ compiler does not properly
6102 # handle `-M -o', and we need to detect this.
6103 if depmode=$depmode \
6104 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6105 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6106 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6107 >/dev/null 2>conftest.err &&
6108 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6109 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6110 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6111 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6112 # icc doesn't choke on unknown options, it will just issue warnings
6113 # or remarks (even with -Werror). So we grep stderr for any message
6114 # that says an option was ignored or not supported.
6115 # When given -MP, icc 7.0 and 7.1 complain thusly:
6116 # icc: Command line warning: ignoring option '-M'; no argument required
6117 # The diagnosis changed in icc 8.0:
6118 # icc: Command line remark: option '-MP' not supported
6119 if (grep 'ignoring option' conftest.err ||
6120 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6121 am_cv_CXX_dependencies_compiler_type=$depmode
6130 am_cv_CXX_dependencies_compiler_type=none
6134 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6135 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6136 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6139 test "x$enable_dependency_tracking" != xno \
6140 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6141 am__fastdepCXX_TRUE=
6142 am__fastdepCXX_FALSE='#'
6144 am__fastdepCXX_TRUE='#'
6145 am__fastdepCXX_FALSE=
6151 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6152 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6153 (test "X$CXX" != "Xg++"))) ; then
6155 ac_cpp='$CXXCPP $CPPFLAGS'
6156 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6157 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6158 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6159 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6160 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6161 if test -z "$CXXCPP"; then
6162 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6165 # Double quotes because CXXCPP needs to be expanded
6166 for CXXCPP in "$CXX -E" "/lib/cpp"
6169 for ac_cxx_preproc_warn_flag in '' yes
6171 # Use a header file that comes with gcc, so configuring glibc
6172 # with a fresh cross-compiler works.
6173 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6174 # <limits.h> exists even on freestanding compilers.
6175 # On the NeXT, cc -E runs the code through the compiler's parser,
6176 # not just through cpp. "Syntax error" is here to catch this case.
6177 cat >conftest.$ac_ext <<_ACEOF
6180 cat confdefs.h >>conftest.$ac_ext
6181 cat >>conftest.$ac_ext <<_ACEOF
6182 /* end confdefs.h. */
6184 # include <limits.h>
6186 # include <assert.h>
6190 if { (ac_try="$ac_cpp conftest.$ac_ext"
6192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193 *) ac_try_echo=$ac_try;;
6195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6198 grep -v '^ *+' conftest.er1 >conftest.err
6200 cat conftest.err >&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } >/dev/null && {
6203 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6204 test ! -s conftest.err
6208 echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.$ac_ext >&5
6211 # Broken: fails on valid input.
6215 rm -f conftest.err conftest.$ac_ext
6217 # OK, works on sane cases. Now check whether nonexistent headers
6218 # can be detected and how.
6219 cat >conftest.$ac_ext <<_ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h. */
6225 #include <ac_nonexistent.h>
6227 if { (ac_try="$ac_cpp conftest.$ac_ext"
6229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6230 *) ac_try_echo=$ac_try;;
6232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6235 grep -v '^ *+' conftest.er1 >conftest.err
6237 cat conftest.err >&5
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } >/dev/null && {
6240 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6241 test ! -s conftest.err
6243 # Broken: success on invalid input.
6246 echo "$as_me: failed program was:" >&5
6247 sed 's/^/| /' conftest.$ac_ext >&5
6249 # Passes both tests.
6254 rm -f conftest.err conftest.$ac_ext
6257 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6258 rm -f conftest.err conftest.$ac_ext
6259 if $ac_preproc_ok; then
6264 ac_cv_prog_CXXCPP=$CXXCPP
6267 CXXCPP=$ac_cv_prog_CXXCPP
6269 ac_cv_prog_CXXCPP=$CXXCPP
6271 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6272 echo "${ECHO_T}$CXXCPP" >&6; }
6274 for ac_cxx_preproc_warn_flag in '' yes
6276 # Use a header file that comes with gcc, so configuring glibc
6277 # with a fresh cross-compiler works.
6278 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6279 # <limits.h> exists even on freestanding compilers.
6280 # On the NeXT, cc -E runs the code through the compiler's parser,
6281 # not just through cpp. "Syntax error" is here to catch this case.
6282 cat >conftest.$ac_ext <<_ACEOF
6285 cat confdefs.h >>conftest.$ac_ext
6286 cat >>conftest.$ac_ext <<_ACEOF
6287 /* end confdefs.h. */
6289 # include <limits.h>
6291 # include <assert.h>
6295 if { (ac_try="$ac_cpp conftest.$ac_ext"
6297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6298 *) ac_try_echo=$ac_try;;
6300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6303 grep -v '^ *+' conftest.er1 >conftest.err
6305 cat conftest.err >&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); } >/dev/null && {
6308 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6309 test ! -s conftest.err
6313 echo "$as_me: failed program was:" >&5
6314 sed 's/^/| /' conftest.$ac_ext >&5
6316 # Broken: fails on valid input.
6320 rm -f conftest.err conftest.$ac_ext
6322 # OK, works on sane cases. Now check whether nonexistent headers
6323 # can be detected and how.
6324 cat >conftest.$ac_ext <<_ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h. */
6330 #include <ac_nonexistent.h>
6332 if { (ac_try="$ac_cpp conftest.$ac_ext"
6334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6335 *) ac_try_echo=$ac_try;;
6337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6340 grep -v '^ *+' conftest.er1 >conftest.err
6342 cat conftest.err >&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); } >/dev/null && {
6345 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6346 test ! -s conftest.err
6348 # Broken: success on invalid input.
6351 echo "$as_me: failed program was:" >&5
6352 sed 's/^/| /' conftest.$ac_ext >&5
6354 # Passes both tests.
6359 rm -f conftest.err conftest.$ac_ext
6362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6363 rm -f conftest.err conftest.$ac_ext
6364 if $ac_preproc_ok; then
6367 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6368 See \`config.log' for more details." >&5
6369 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6370 See \`config.log' for more details." >&2;}
6371 { (exit 1); exit 1; }; }
6375 ac_cpp='$CXXCPP $CPPFLAGS'
6376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6386 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6388 # find the maximum length of command line arguments
6389 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6390 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6391 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6392 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 # On DJGPP, this test can blow up pretty badly due to problems in libc
6400 # (any single argument exceeding 2000 bytes causes a buffer overrun
6401 # during glob expansion). Even if it were fixed, the result of this
6402 # check would be larger than it should be.
6403 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6407 # Under GNU Hurd, this test is not required because there is
6408 # no limit to the length of command line arguments.
6409 # Libtool will interpret -1 as no limit whatsoever
6410 lt_cv_sys_max_cmd_len=-1;
6414 # On Win9x/ME, this test blows up -- it succeeds, but takes
6415 # about 5 minutes as the teststring grows exponentially.
6416 # Worse, since 9x/ME are not pre-emptively multitasking,
6417 # you end up with a "frozen" computer, even though with patience
6418 # the test eventually succeeds (with a max line length of 256k).
6419 # Instead, let's just punt: use the minimum linelength reported by
6420 # all of the supported platforms: 8192 (on NT/2K/XP).
6421 lt_cv_sys_max_cmd_len=8192;
6425 # On AmigaOS with pdksh, this test takes hours, literally.
6426 # So we just punt and use a minimum line length of 8192.
6427 lt_cv_sys_max_cmd_len=8192;
6430 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6431 # This has been around since 386BSD, at least. Likely further.
6432 if test -x /sbin/sysctl; then
6433 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6434 elif test -x /usr/sbin/sysctl; then
6435 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6437 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6439 # And add a safety zone
6440 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6441 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6445 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6446 lt_cv_sys_max_cmd_len=196608
6450 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6451 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6452 # nice to cause kernel panics so lets avoid the loop below.
6453 # First set a reasonable default.
6454 lt_cv_sys_max_cmd_len=16384
6456 if test -x /sbin/sysconfig; then
6457 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6458 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6463 lt_cv_sys_max_cmd_len=102400
6465 sysv5* | sco5v6* | sysv4.2uw2*)
6466 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6467 if test -n "$kargmax"; then
6468 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6470 lt_cv_sys_max_cmd_len=32768
6474 # If test is not a shell built-in, we'll probably end up computing a
6475 # maximum length that is only half of the actual maximum length, but
6477 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6478 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6479 = "XX$teststring") >/dev/null 2>&1 &&
6480 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6481 lt_cv_sys_max_cmd_len=$new_result &&
6482 test $i != 17 # 1/2 MB should be enough
6485 teststring=$teststring$teststring
6488 # Add a significant safety factor because C++ compilers can tack on massive
6489 # amounts of additional arguments before passing them to the linker.
6490 # It appears as though 1/2 is a usable value.
6491 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6497 if test -n $lt_cv_sys_max_cmd_len ; then
6498 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6499 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6501 { echo "$as_me:$LINENO: result: none" >&5
6502 echo "${ECHO_T}none" >&6; }
6508 # Check for command to grab the raw symbol name followed by C symbol from nm.
6509 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6510 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6511 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 # These are sane defaults that work on at least a few old systems.
6516 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6518 # Character class describing NM global symbol codes.
6519 symcode='[BCDEGRST]'
6521 # Regexp to match symbols that can be accessed directly from C.
6522 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6524 # Transform an extracted symbol line into a proper C declaration
6525 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6527 # Transform an extracted symbol line into symbol name and symbol address
6528 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'"
6530 # Define system-specific variables.
6535 cygwin* | mingw* | pw32*)
6536 symcode='[ABCDGISTW]'
6538 hpux*) # Its linker distinguishes data from code symbols
6539 if test "$host_cpu" = ia64; then
6540 symcode='[ABCDEGRST]'
6542 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6543 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'"
6545 linux* | k*bsd*-gnu)
6546 if test "$host_cpu" = ia64; then
6547 symcode='[ABCDGIRSTW]'
6548 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6549 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'"
6553 symcode='[BCDEGRST]'
6556 symcode='[BCDEGQRST]'
6567 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6575 # Handle CRLF in mingw tool chain
6579 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6583 # If we're using GNU nm, then use its standard symbol codes.
6584 case `$NM -V 2>&1` in
6585 *GNU* | *'with BFD'*)
6586 symcode='[ABCDGIRSTW]' ;;
6589 # Try without a prefix undercore, then with it.
6590 for ac_symprfx in "" "_"; do
6592 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6593 symxfrm="\\1 $ac_symprfx\\2 \\2"
6595 # Write the raw and C identifiers.
6596 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6598 # Check to see that the pipe works correctly.
6602 cat > conftest.$ac_ext <<EOF
6607 void nm_test_func(){}
6611 int main(){nm_test_var='a';nm_test_func();return(0);}
6614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6615 (eval $ac_compile) 2>&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); }; then
6619 # Now try to grab the symbols.
6621 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6622 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); } && test -s "$nlist"; then
6626 # Try sorting and uniquifying the output.
6627 if sort "$nlist" | uniq > "$nlist"T; then
6628 mv -f "$nlist"T "$nlist"
6633 # Make sure that we snagged all the symbols we need.
6634 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6635 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6636 cat <<EOF > conftest.$ac_ext
6642 # Now generate the symbol file.
6643 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6645 cat <<EOF >> conftest.$ac_ext
6646 #if defined (__STDC__) && __STDC__
6647 # define lt_ptr_t void *
6649 # define lt_ptr_t char *
6653 /* The mapping between symbol names and symbols. */
6658 lt_preloaded_symbols[] =
6661 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6662 cat <<\EOF >> conftest.$ac_ext
6670 # Now try linking the two files.
6671 mv conftest.$ac_objext conftstm.$ac_objext
6672 lt_save_LIBS="$LIBS"
6673 lt_save_CFLAGS="$CFLAGS"
6674 LIBS="conftstm.$ac_objext"
6675 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6677 (eval $ac_link) 2>&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6683 LIBS="$lt_save_LIBS"
6684 CFLAGS="$lt_save_CFLAGS"
6686 echo "cannot find nm_test_func in $nlist" >&5
6689 echo "cannot find nm_test_var in $nlist" >&5
6692 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6695 echo "$progname: failed program was:" >&5
6696 cat conftest.$ac_ext >&5
6698 rm -f conftest* conftst*
6700 # Do not use the global_symbol_pipe unless it works.
6701 if test "$pipe_works" = yes; then
6704 lt_cv_sys_global_symbol_pipe=
6710 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6711 lt_cv_sys_global_symbol_to_cdecl=
6713 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6714 { echo "$as_me:$LINENO: result: failed" >&5
6715 echo "${ECHO_T}failed" >&6; }
6717 { echo "$as_me:$LINENO: result: ok" >&5
6718 echo "${ECHO_T}ok" >&6; }
6721 { echo "$as_me:$LINENO: checking for objdir" >&5
6722 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6723 if test "${lt_cv_objdir+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 rm -f .libs 2>/dev/null
6727 mkdir .libs 2>/dev/null
6728 if test -d .libs; then
6731 # MS-DOS does not allow filenames that begin with a dot.
6734 rmdir .libs 2>/dev/null
6736 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6737 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6738 objdir=$lt_cv_objdir
6746 # AIX sometimes has problems with the GCC collect2 program. For some
6747 # reason, if we set the COLLECT_NAMES environment variable, the problems
6748 # vanish in a puff of smoke.
6749 if test "X${COLLECT_NAMES+set}" != Xset; then
6751 export COLLECT_NAMES
6756 # Sed substitution that helps us do robust quoting. It backslashifies
6757 # metacharacters that are still active within double-quoted strings.
6758 Xsed='sed -e 1s/^X//'
6759 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6761 # Same as above, but do not quote variable references.
6762 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6764 # Sed substitution to delay expansion of an escaped shell variable in a
6765 # double_quote_subst'ed string.
6766 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6768 # Sed substitution to avoid accidental globbing in evaled expressions
6769 no_glob_subst='s/\*/\\\*/g'
6775 default_ofile=libtool
6776 can_build_shared=yes
6778 # All known linkers require a `.a' archive for static linking (except MSVC,
6779 # which needs '.lib').
6781 ltmain="$ac_aux_dir/ltmain.sh"
6782 ofile="$default_ofile"
6783 with_gnu_ld="$lt_cv_prog_gnu_ld"
6785 if test -n "$ac_tool_prefix"; then
6786 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6787 set dummy ${ac_tool_prefix}ar; ac_word=$2
6788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790 if test "${ac_cv_prog_AR+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 if test -n "$AR"; then
6794 ac_cv_prog_AR="$AR" # Let the user override the test.
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800 test -z "$as_dir" && as_dir=.
6801 for ac_exec_ext in '' $ac_executable_extensions; do
6802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6803 ac_cv_prog_AR="${ac_tool_prefix}ar"
6804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6814 if test -n "$AR"; then
6815 { echo "$as_me:$LINENO: result: $AR" >&5
6816 echo "${ECHO_T}$AR" >&6; }
6818 { echo "$as_me:$LINENO: result: no" >&5
6819 echo "${ECHO_T}no" >&6; }
6824 if test -z "$ac_cv_prog_AR"; then
6826 # Extract the first word of "ar", so it can be a program name with args.
6827 set dummy ar; ac_word=$2
6828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6830 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6833 if test -n "$ac_ct_AR"; then
6834 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840 test -z "$as_dir" && as_dir=.
6841 for ac_exec_ext in '' $ac_executable_extensions; do
6842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6843 ac_cv_prog_ac_ct_AR="ar"
6844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6854 if test -n "$ac_ct_AR"; then
6855 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6856 echo "${ECHO_T}$ac_ct_AR" >&6; }
6858 { echo "$as_me:$LINENO: result: no" >&5
6859 echo "${ECHO_T}no" >&6; }
6862 if test "x$ac_ct_AR" = x; then
6865 case $cross_compiling:$ac_tool_warned in
6867 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6868 whose name does not start with the host triplet. If you think this
6869 configuration is useful to you, please write to autoconf@gnu.org." >&5
6870 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6871 whose name does not start with the host triplet. If you think this
6872 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6873 ac_tool_warned=yes ;;
6881 if test -n "$ac_tool_prefix"; then
6882 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6883 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6886 if test "${ac_cv_prog_RANLIB+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6889 if test -n "$RANLIB"; then
6890 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896 test -z "$as_dir" && as_dir=.
6897 for ac_exec_ext in '' $ac_executable_extensions; do
6898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6899 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6909 RANLIB=$ac_cv_prog_RANLIB
6910 if test -n "$RANLIB"; then
6911 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6912 echo "${ECHO_T}$RANLIB" >&6; }
6914 { echo "$as_me:$LINENO: result: no" >&5
6915 echo "${ECHO_T}no" >&6; }
6920 if test -z "$ac_cv_prog_RANLIB"; then
6921 ac_ct_RANLIB=$RANLIB
6922 # Extract the first word of "ranlib", so it can be a program name with args.
6923 set dummy ranlib; ac_word=$2
6924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6926 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6929 if test -n "$ac_ct_RANLIB"; then
6930 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 test -z "$as_dir" && as_dir=.
6937 for ac_exec_ext in '' $ac_executable_extensions; do
6938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6939 ac_cv_prog_ac_ct_RANLIB="ranlib"
6940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6949 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6950 if test -n "$ac_ct_RANLIB"; then
6951 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6952 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6954 { echo "$as_me:$LINENO: result: no" >&5
6955 echo "${ECHO_T}no" >&6; }
6958 if test "x$ac_ct_RANLIB" = x; then
6961 case $cross_compiling:$ac_tool_warned in
6963 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6964 whose name does not start with the host triplet. If you think this
6965 configuration is useful to you, please write to autoconf@gnu.org." >&5
6966 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6967 whose name does not start with the host triplet. If you think this
6968 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6969 ac_tool_warned=yes ;;
6971 RANLIB=$ac_ct_RANLIB
6974 RANLIB="$ac_cv_prog_RANLIB"
6977 if test -n "$ac_tool_prefix"; then
6978 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6979 set dummy ${ac_tool_prefix}strip; ac_word=$2
6980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6982 if test "${ac_cv_prog_STRIP+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6985 if test -n "$STRIP"; then
6986 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6995 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7005 STRIP=$ac_cv_prog_STRIP
7006 if test -n "$STRIP"; then
7007 { echo "$as_me:$LINENO: result: $STRIP" >&5
7008 echo "${ECHO_T}$STRIP" >&6; }
7010 { echo "$as_me:$LINENO: result: no" >&5
7011 echo "${ECHO_T}no" >&6; }
7016 if test -z "$ac_cv_prog_STRIP"; then
7018 # Extract the first word of "strip", so it can be a program name with args.
7019 set dummy strip; ac_word=$2
7020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7022 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7023 echo $ECHO_N "(cached) $ECHO_C" >&6
7025 if test -n "$ac_ct_STRIP"; then
7026 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032 test -z "$as_dir" && as_dir=.
7033 for ac_exec_ext in '' $ac_executable_extensions; do
7034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7035 ac_cv_prog_ac_ct_STRIP="strip"
7036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7045 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7046 if test -n "$ac_ct_STRIP"; then
7047 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7048 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7050 { echo "$as_me:$LINENO: result: no" >&5
7051 echo "${ECHO_T}no" >&6; }
7054 if test "x$ac_ct_STRIP" = x; then
7057 case $cross_compiling:$ac_tool_warned in
7059 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7060 whose name does not start with the host triplet. If you think this
7061 configuration is useful to you, please write to autoconf@gnu.org." >&5
7062 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7063 whose name does not start with the host triplet. If you think this
7064 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7065 ac_tool_warned=yes ;;
7070 STRIP="$ac_cv_prog_STRIP"
7075 old_CFLAGS="$CFLAGS"
7077 # Set sane defaults for various variables
7078 test -z "$AR" && AR=ar
7079 test -z "$AR_FLAGS" && AR_FLAGS=cru
7080 test -z "$AS" && AS=as
7081 test -z "$CC" && CC=cc
7082 test -z "$LTCC" && LTCC=$CC
7083 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7084 test -z "$DLLTOOL" && DLLTOOL=dlltool
7085 test -z "$LD" && LD=ld
7086 test -z "$LN_S" && LN_S="ln -s"
7087 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7088 test -z "$NM" && NM=nm
7089 test -z "$SED" && SED=sed
7090 test -z "$OBJDUMP" && OBJDUMP=objdump
7091 test -z "$RANLIB" && RANLIB=:
7092 test -z "$STRIP" && STRIP=:
7093 test -z "$ac_objext" && ac_objext=o
7095 # Determine commands to create old-style static archives.
7096 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7097 old_postinstall_cmds='chmod 644 $oldlib'
7098 old_postuninstall_cmds=
7100 if test -n "$RANLIB"; then
7103 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7106 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7109 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7112 for cc_temp in $compiler""; do
7114 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7115 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7120 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7123 # Only perform the check for file, if the check method requires it
7124 case $deplibs_check_method in
7126 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7127 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7128 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7129 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7134 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7137 lt_save_MAGIC_CMD="$MAGIC_CMD"
7138 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7139 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7140 for ac_dir in $ac_dummy; do
7142 test -z "$ac_dir" && ac_dir=.
7143 if test -f $ac_dir/${ac_tool_prefix}file; then
7144 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7145 if test -n "$file_magic_test_file"; then
7146 case $deplibs_check_method in
7148 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7149 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7150 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7151 $EGREP "$file_magic_regex" > /dev/null; then
7156 *** Warning: the command libtool uses to detect shared libraries,
7157 *** $file_magic_cmd, produces output that libtool cannot recognize.
7158 *** The result is that libtool may fail to recognize shared libraries
7159 *** as such. This will affect the creation of libtool libraries that
7160 *** depend on shared libraries, but programs linked with such libtool
7161 *** libraries will work regardless of this problem. Nevertheless, you
7162 *** may want to report the problem to your system manager and/or to
7163 *** bug-libtool@gnu.org
7173 MAGIC_CMD="$lt_save_MAGIC_CMD"
7178 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7179 if test -n "$MAGIC_CMD"; then
7180 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7181 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7183 { echo "$as_me:$LINENO: result: no" >&5
7184 echo "${ECHO_T}no" >&6; }
7187 if test -z "$lt_cv_path_MAGIC_CMD"; then
7188 if test -n "$ac_tool_prefix"; then
7189 { echo "$as_me:$LINENO: checking for file" >&5
7190 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7191 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7196 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7199 lt_save_MAGIC_CMD="$MAGIC_CMD"
7200 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7201 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7202 for ac_dir in $ac_dummy; do
7204 test -z "$ac_dir" && ac_dir=.
7205 if test -f $ac_dir/file; then
7206 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7207 if test -n "$file_magic_test_file"; then
7208 case $deplibs_check_method in
7210 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7211 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7212 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7213 $EGREP "$file_magic_regex" > /dev/null; then
7218 *** Warning: the command libtool uses to detect shared libraries,
7219 *** $file_magic_cmd, produces output that libtool cannot recognize.
7220 *** The result is that libtool may fail to recognize shared libraries
7221 *** as such. This will affect the creation of libtool libraries that
7222 *** depend on shared libraries, but programs linked with such libtool
7223 *** libraries will work regardless of this problem. Nevertheless, you
7224 *** may want to report the problem to your system manager and/or to
7225 *** bug-libtool@gnu.org
7235 MAGIC_CMD="$lt_save_MAGIC_CMD"
7240 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7241 if test -n "$MAGIC_CMD"; then
7242 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7243 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7245 { echo "$as_me:$LINENO: result: no" >&5
7246 echo "${ECHO_T}no" >&6; }
7259 enable_win32_dll=yes
7261 # Check whether --enable-libtool-lock was given.
7262 if test "${enable_libtool_lock+set}" = set; then
7263 enableval=$enable_libtool_lock;
7266 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7269 # Check whether --with-pic was given.
7270 if test "${with_pic+set}" = set; then
7271 withval=$with_pic; pic_mode="$withval"
7276 test -z "$pic_mode" && pic_mode=default
7278 # Use C for the default configuration in the libtool script
7282 ac_cpp='$CPP $CPPFLAGS'
7283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7288 # Source file extension for C test sources.
7291 # Object file extension for compiled C test sources.
7295 # Code to be used in simple compile tests
7296 lt_simple_compile_test_code="int some_variable = 0;\n"
7298 # Code to be used in simple link tests
7299 lt_simple_link_test_code='int main(){return(0);}\n'
7302 # If no C compiler was specified, use CC.
7305 # If no C compiler flags were specified, use CFLAGS.
7306 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7308 # Allow CC to be a program name with arguments.
7312 # save warnings/boilerplate of simple test code
7313 ac_outfile=conftest.$ac_objext
7314 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7315 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7316 _lt_compiler_boilerplate=`cat conftest.err`
7319 ac_outfile=conftest.$ac_objext
7320 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7321 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7322 _lt_linker_boilerplate=`cat conftest.err`
7327 lt_prog_compiler_no_builtin_flag=
7329 if test "$GCC" = yes; then
7330 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7333 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7334 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7335 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7338 lt_cv_prog_compiler_rtti_exceptions=no
7339 ac_outfile=conftest.$ac_objext
7340 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7341 lt_compiler_flag="-fno-rtti -fno-exceptions"
7342 # Insert the option either (1) after the last *FLAGS variable, or
7343 # (2) before a word containing "conftest.", or (3) at the end.
7344 # Note that $ac_compile itself does not contain backslashes and begins
7345 # with a dollar sign (not a hyphen), so the echo should work correctly.
7346 # The option is referenced via a variable to avoid confusing sed.
7347 lt_compile=`echo "$ac_compile" | $SED \
7348 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7349 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7350 -e 's:$: $lt_compiler_flag:'`
7351 (eval echo "\"\$as_me:7351: $lt_compile\"" >&5)
7352 (eval "$lt_compile" 2>conftest.err)
7354 cat conftest.err >&5
7355 echo "$as_me:7355: \$? = $ac_status" >&5
7356 if (exit $ac_status) && test -s "$ac_outfile"; then
7357 # The compiler can only warn and ignore the option if not recognized
7358 # So say no if there are warnings other than the usual output.
7359 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7360 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7361 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7362 lt_cv_prog_compiler_rtti_exceptions=yes
7368 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7369 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7371 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7372 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7379 lt_prog_compiler_wl=
7380 lt_prog_compiler_pic=
7381 lt_prog_compiler_static=
7383 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7384 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7386 if test "$GCC" = yes; then
7387 lt_prog_compiler_wl='-Wl,'
7388 lt_prog_compiler_static='-static'
7392 # All AIX code is PIC.
7393 if test "$host_cpu" = ia64; then
7394 # AIX 5 now supports IA64 processor
7395 lt_prog_compiler_static='-Bstatic'
7400 # FIXME: we need at least 68020 code to build shared libraries, but
7401 # adding the `-m68020' flag to GCC prevents building anything better,
7403 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7406 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7407 # PIC is the default for these OSes.
7410 mingw* | pw32* | os2*)
7411 # This hack is so that the source file can tell whether it is being
7412 # built for inclusion in a dll (and should export symbols for example).
7413 lt_prog_compiler_pic='-DDLL_EXPORT'
7416 darwin* | rhapsody*)
7417 # PIC is the default on this platform
7418 # Common symbols not allowed in MH_DYLIB files
7419 lt_prog_compiler_pic='-fno-common'
7423 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7424 # Instead, we relocate shared libraries at runtime.
7428 # Just because we use GCC doesn't mean we suddenly get shared libraries
7429 # on systems that don't support them.
7430 lt_prog_compiler_can_build_shared=no
7435 if test -d /usr/nec; then
7436 lt_prog_compiler_pic=-Kconform_pic
7441 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7448 lt_prog_compiler_pic='-fPIC'
7454 lt_prog_compiler_pic='-fPIC'
7458 # PORTME Check for flag to pass linker flags through the system compiler.
7461 lt_prog_compiler_wl='-Wl,'
7462 if test "$host_cpu" = ia64; then
7463 # AIX 5 now supports IA64 processor
7464 lt_prog_compiler_static='-Bstatic'
7466 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7470 # PIC is the default on this platform
7471 # Common symbols not allowed in MH_DYLIB files
7472 case $cc_basename in
7474 lt_prog_compiler_pic='-qnocommon'
7475 lt_prog_compiler_wl='-Wl,'
7480 mingw* | pw32* | os2*)
7481 # This hack is so that the source file can tell whether it is being
7482 # built for inclusion in a dll (and should export symbols for example).
7483 lt_prog_compiler_pic='-DDLL_EXPORT'
7486 hpux9* | hpux10* | hpux11*)
7487 lt_prog_compiler_wl='-Wl,'
7488 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7495 lt_prog_compiler_pic='+Z'
7498 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7499 lt_prog_compiler_static='${wl}-a ${wl}archive'
7502 irix5* | irix6* | nonstopux*)
7503 lt_prog_compiler_wl='-Wl,'
7504 # PIC (with -KPIC) is the default.
7505 lt_prog_compiler_static='-non_shared'
7509 lt_prog_compiler_pic='-KPIC'
7510 lt_prog_compiler_static='-Bstatic'
7513 linux* | k*bsd*-gnu)
7514 case $cc_basename in
7516 lt_prog_compiler_wl='-Wl,'
7517 lt_prog_compiler_pic='-KPIC'
7518 lt_prog_compiler_static='-static'
7520 pgcc* | pgf77* | pgf90* | pgf95*)
7521 # Portland Group compilers (*not* the Pentium gcc compiler,
7522 # which looks to be a dead project)
7523 lt_prog_compiler_wl='-Wl,'
7524 lt_prog_compiler_pic='-fpic'
7525 lt_prog_compiler_static='-Bstatic'
7528 lt_prog_compiler_wl='-Wl,'
7529 # All Alpha code is PIC.
7530 lt_prog_compiler_static='-non_shared'
7535 osf3* | osf4* | osf5*)
7536 lt_prog_compiler_wl='-Wl,'
7537 # All OSF/1 code is PIC.
7538 lt_prog_compiler_static='-non_shared'
7542 lt_prog_compiler_pic='-KPIC'
7543 lt_prog_compiler_static='-Bstatic'
7544 case $cc_basename in
7546 lt_prog_compiler_wl='-Qoption ld ';;
7548 lt_prog_compiler_wl='-Wl,';;
7553 lt_prog_compiler_wl='-Qoption ld '
7554 lt_prog_compiler_pic='-PIC'
7555 lt_prog_compiler_static='-Bstatic'
7558 sysv4 | sysv4.2uw2* | sysv4.3*)
7559 lt_prog_compiler_wl='-Wl,'
7560 lt_prog_compiler_pic='-KPIC'
7561 lt_prog_compiler_static='-Bstatic'
7565 if test -d /usr/nec ;then
7566 lt_prog_compiler_pic='-Kconform_pic'
7567 lt_prog_compiler_static='-Bstatic'
7571 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7572 lt_prog_compiler_wl='-Wl,'
7573 lt_prog_compiler_pic='-KPIC'
7574 lt_prog_compiler_static='-Bstatic'
7578 lt_prog_compiler_wl='-Wl,'
7579 lt_prog_compiler_can_build_shared=no
7583 lt_prog_compiler_pic='-pic'
7584 lt_prog_compiler_static='-Bstatic'
7588 lt_prog_compiler_can_build_shared=no
7593 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7594 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7597 # Check to make sure the PIC flag actually works.
7599 if test -n "$lt_prog_compiler_pic"; then
7601 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7602 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7603 if test "${lt_prog_compiler_pic_works+set}" = set; then
7604 echo $ECHO_N "(cached) $ECHO_C" >&6
7606 lt_prog_compiler_pic_works=no
7607 ac_outfile=conftest.$ac_objext
7608 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7609 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7610 # Insert the option either (1) after the last *FLAGS variable, or
7611 # (2) before a word containing "conftest.", or (3) at the end.
7612 # Note that $ac_compile itself does not contain backslashes and begins
7613 # with a dollar sign (not a hyphen), so the echo should work correctly.
7614 # The option is referenced via a variable to avoid confusing sed.
7615 lt_compile=`echo "$ac_compile" | $SED \
7616 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7617 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7618 -e 's:$: $lt_compiler_flag:'`
7619 (eval echo "\"\$as_me:7619: $lt_compile\"" >&5)
7620 (eval "$lt_compile" 2>conftest.err)
7622 cat conftest.err >&5
7623 echo "$as_me:7623: \$? = $ac_status" >&5
7624 if (exit $ac_status) && test -s "$ac_outfile"; then
7625 # The compiler can only warn and ignore the option if not recognized
7626 # So say no if there are warnings other than the usual output.
7627 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7628 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7629 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7630 lt_prog_compiler_pic_works=yes
7636 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7637 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7639 if test x"$lt_prog_compiler_pic_works" = xyes; then
7640 case $lt_prog_compiler_pic in
7642 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7645 lt_prog_compiler_pic=
7646 lt_prog_compiler_can_build_shared=no
7651 # For platforms which do not support PIC, -DPIC is meaningless:
7653 lt_prog_compiler_pic=
7656 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7661 # Check to make sure the static flag actually works.
7663 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7664 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7665 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7666 if test "${lt_prog_compiler_static_works+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 lt_prog_compiler_static_works=no
7670 save_LDFLAGS="$LDFLAGS"
7671 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7672 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7673 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7674 # The linker can only warn and ignore the option if not recognized
7675 # So say no if there are warnings
7676 if test -s conftest.err; then
7677 # Append any errors to the config.log.
7678 cat conftest.err 1>&5
7679 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7680 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7681 if diff conftest.exp conftest.er2 >/dev/null; then
7682 lt_prog_compiler_static_works=yes
7685 lt_prog_compiler_static_works=yes
7689 LDFLAGS="$save_LDFLAGS"
7692 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7693 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7695 if test x"$lt_prog_compiler_static_works" = xyes; then
7698 lt_prog_compiler_static=
7702 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7703 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7704 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 lt_cv_prog_compiler_c_o=no
7708 $rm -r conftest 2>/dev/null
7712 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7714 lt_compiler_flag="-o out/conftest2.$ac_objext"
7715 # Insert the option either (1) after the last *FLAGS variable, or
7716 # (2) before a word containing "conftest.", or (3) at the end.
7717 # Note that $ac_compile itself does not contain backslashes and begins
7718 # with a dollar sign (not a hyphen), so the echo should work correctly.
7719 lt_compile=`echo "$ac_compile" | $SED \
7720 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7722 -e 's:$: $lt_compiler_flag:'`
7723 (eval echo "\"\$as_me:7723: $lt_compile\"" >&5)
7724 (eval "$lt_compile" 2>out/conftest.err)
7726 cat out/conftest.err >&5
7727 echo "$as_me:7727: \$? = $ac_status" >&5
7728 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7730 # The compiler can only warn and ignore the option if not recognized
7731 # So say no if there are warnings
7732 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7733 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7734 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7735 lt_cv_prog_compiler_c_o=yes
7740 # SGI C++ compiler will create directory out/ii_files/ for
7741 # template instantiation
7742 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7743 $rm out/* && rmdir out
7749 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7750 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7753 hard_links="nottested"
7754 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7755 # do not overwrite the value of need_locks provided by the user
7756 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7757 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7760 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7762 ln conftest.a conftest.b 2>&5 || hard_links=no
7763 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7764 { echo "$as_me:$LINENO: result: $hard_links" >&5
7765 echo "${ECHO_T}$hard_links" >&6; }
7766 if test "$hard_links" = no; then
7767 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7768 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7775 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7776 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7779 allow_undefined_flag=
7780 enable_shared_with_static_runtimes=no
7782 archive_expsym_cmds=
7783 old_archive_From_new_cmds=
7784 old_archive_from_expsyms_cmds=
7785 export_dynamic_flag_spec=
7786 whole_archive_flag_spec=
7787 thread_safe_flag_spec=
7788 hardcode_libdir_flag_spec=
7789 hardcode_libdir_flag_spec_ld=
7790 hardcode_libdir_separator=
7793 hardcode_shlibpath_var=unsupported
7794 link_all_deplibs=unknown
7795 hardcode_automatic=no
7798 always_export_symbols=no
7799 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7800 # include_expsyms should be a list of space-separated symbols to be *always*
7801 # included in the symbol list
7803 # exclude_expsyms can be an extended regexp of symbols to exclude
7804 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7805 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7806 # as well as any symbol that contains `d'.
7807 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7808 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7809 # platforms (ab)use it in PIC code, but their linkers get confused if
7810 # the symbol is explicitly referenced. Since portable code cannot
7811 # rely on this symbol name, it's probably fine to never include it in
7812 # preloaded symbol tables.
7813 extract_expsyms_cmds=
7814 # Just being paranoid about ensuring that cc_basename is set.
7815 for cc_temp in $compiler""; do
7817 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7818 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7823 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7826 cygwin* | mingw* | pw32*)
7827 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7828 # When not using gcc, we currently assume that we are using
7829 # Microsoft Visual C++.
7830 if test "$GCC" != yes; then
7835 # we just hope/assume this is gcc and not c89 (= MSVC++)
7844 if test "$with_gnu_ld" = yes; then
7845 # If archive_cmds runs LD, not CC, wlarc should be empty
7848 # Set some defaults for GNU ld with shared library support. These
7849 # are reset later if shared libraries are not supported. Putting them
7850 # here allows them to be overridden if necessary.
7851 runpath_var=LD_RUN_PATH
7852 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7853 export_dynamic_flag_spec='${wl}--export-dynamic'
7854 # ancient GNU ld didn't support --whole-archive et. al.
7855 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7856 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7858 whole_archive_flag_spec=
7860 supports_anon_versioning=no
7861 case `$LD -v 2>/dev/null` in
7862 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7863 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7864 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7865 *\ 2.11.*) ;; # other 2.11 versions
7866 *) supports_anon_versioning=yes ;;
7869 # See if GNU ld supports shared libraries.
7871 aix3* | aix4* | aix5*)
7872 # On AIX/PPC, the GNU linker is very broken
7873 if test "$host_cpu" != ia64; then
7877 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7878 *** to be unable to reliably create shared libraries on AIX.
7879 *** Therefore, libtool is disabling shared libraries support. If you
7880 *** really care for shared libraries, you may want to modify your PATH
7881 *** so that a non-GNU linker is found, and then restart.
7888 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)'
7889 hardcode_libdir_flag_spec='-L$libdir'
7890 hardcode_minus_L=yes
7892 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7893 # that the semantics of dynamic libraries on AmigaOS, at least up
7894 # to version 4, is to share data among multiple programs linked
7895 # with the same dynamic library. Since this doesn't match the
7896 # behavior of shared libraries on other platforms, we can't use
7902 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7903 allow_undefined_flag=unsupported
7904 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7905 # support --undefined. This deserves some investigation. FIXME
7906 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7912 cygwin* | mingw* | pw32*)
7913 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7914 # as there is no search path for DLLs.
7915 hardcode_libdir_flag_spec='-L$libdir'
7916 allow_undefined_flag=unsupported
7917 always_export_symbols=no
7918 enable_shared_with_static_runtimes=yes
7919 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7921 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7922 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7923 # If the export-symbols file already is a .def file (1st line
7924 # is EXPORTS), use it as is; otherwise, prepend...
7925 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7926 cp $export_symbols $output_objdir/$soname.def;
7928 echo EXPORTS > $output_objdir/$soname.def;
7929 cat $export_symbols >> $output_objdir/$soname.def;
7931 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7939 hardcode_shlibpath_var=no
7940 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7941 export_dynamic_flag_spec='${wl}-E'
7942 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7943 # Instead, shared libraries are loaded at an image base (0x10000000 by
7944 # default) and relocated if they conflict, which is a slow very memory
7945 # consuming and fragmenting process. To avoid this, we pick a random,
7946 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7947 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7948 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7949 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'
7952 linux* | k*bsd*-gnu)
7953 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7955 case $cc_basename,$host_cpu in
7956 pgcc*) # Portland Group C compiler
7957 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'
7958 tmp_addflag=' $pic_flag'
7960 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7961 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'
7962 tmp_addflag=' $pic_flag -Mnomain' ;;
7963 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7964 tmp_addflag=' -i_dynamic' ;;
7965 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7966 tmp_addflag=' -i_dynamic -nofor_main' ;;
7967 ifc* | ifort*) # Intel Fortran compiler
7968 tmp_addflag=' -nofor_main' ;;
7970 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7972 if test $supports_anon_versioning = yes; then
7973 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7974 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7975 $echo "local: *; };" >> $output_objdir/$libname.ver~
7976 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7984 netbsd* | netbsdelf*-gnu)
7985 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7986 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7990 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7995 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7999 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8000 *** create shared libraries on Solaris systems. Therefore, libtool
8001 *** is disabling shared libraries support. We urge you to upgrade GNU
8002 *** binutils to release 2.9.1 or newer. Another option is to modify
8003 *** your PATH or compiler configuration so that the native linker is
8004 *** used, and then restart.
8007 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8009 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8015 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8016 case `$LD -v 2>&1` in
8017 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8021 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8022 *** reliably create shared libraries on SCO systems. Therefore, libtool
8023 *** is disabling shared libraries support. We urge you to upgrade GNU
8024 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8025 *** your PATH or compiler configuration so that the native linker is
8026 *** used, and then restart.
8031 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8032 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8033 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8034 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8043 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8046 hardcode_shlibpath_var=no
8050 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8051 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8052 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8059 if test "$ld_shlibs" = no; then
8061 hardcode_libdir_flag_spec=
8062 export_dynamic_flag_spec=
8063 whole_archive_flag_spec=
8066 # PORTME fill in a description of your system's linker (not GNU ld)
8069 allow_undefined_flag=unsupported
8070 always_export_symbols=yes
8071 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'
8072 # Note: this linker hardcodes the directories in LIBPATH if there
8073 # are no directories specified by -L.
8074 hardcode_minus_L=yes
8075 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8076 # Neither direct hardcoding nor static linking is supported with a
8078 hardcode_direct=unsupported
8083 if test "$host_cpu" = ia64; then
8084 # On IA64, the linker does run time linking by default, so we don't
8085 # have to do anything special.
8086 aix_use_runtimelinking=no
8087 exp_sym_flag='-Bexport'
8090 # If we're using GNU nm, then we don't want the "-C" option.
8091 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8092 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8093 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'
8095 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'
8097 aix_use_runtimelinking=no
8099 # Test if we are trying to use run time linking or normal
8100 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8101 # need to do runtime linking.
8102 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8103 for ld_flag in $LDFLAGS; do
8104 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8105 aix_use_runtimelinking=yes
8112 exp_sym_flag='-bexport'
8113 no_entry_flag='-bnoentry'
8116 # When large executables or shared objects are built, AIX ld can
8117 # have problems creating the table of contents. If linking a library
8118 # or program results in "error TOC overflow" add -mminimal-toc to
8119 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8120 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8124 hardcode_libdir_separator=':'
8125 link_all_deplibs=yes
8127 if test "$GCC" = yes; then
8128 case $host_os in aix4.[012]|aix4.[012].*)
8129 # We only want to do this on AIX 4.2 and lower, the check
8130 # below for broken collect2 doesn't work under 4.3+
8131 collect2name=`${CC} -print-prog-name=collect2`
8132 if test -f "$collect2name" && \
8133 strings "$collect2name" | grep resolve_lib_name >/dev/null
8135 # We have reworked collect2
8138 # We have old collect2
8139 hardcode_direct=unsupported
8140 # It fails to find uninstalled libraries when the uninstalled
8141 # path is not listed in the libpath. Setting hardcode_minus_L
8142 # to unsupported forces relinking
8143 hardcode_minus_L=yes
8144 hardcode_libdir_flag_spec='-L$libdir'
8145 hardcode_libdir_separator=
8149 shared_flag='-shared'
8150 if test "$aix_use_runtimelinking" = yes; then
8151 shared_flag="$shared_flag "'${wl}-G'
8155 if test "$host_cpu" = ia64; then
8156 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8157 # chokes on -Wl,-G. The following line is correct:
8160 if test "$aix_use_runtimelinking" = yes; then
8161 shared_flag='${wl}-G'
8163 shared_flag='${wl}-bM:SRE'
8168 # It seems that -bexpall does not export symbols beginning with
8169 # underscore (_), so it is better to generate a list of symbols to export.
8170 always_export_symbols=yes
8171 if test "$aix_use_runtimelinking" = yes; then
8172 # Warning - without using the other runtime loading flags (-brtl),
8173 # -berok will link without error, but may produce a broken library.
8174 allow_undefined_flag='-berok'
8175 # Determine the default libpath from the value encoded in an empty executable.
8176 cat >conftest.$ac_ext <<_ACEOF
8179 cat confdefs.h >>conftest.$ac_ext
8180 cat >>conftest.$ac_ext <<_ACEOF
8181 /* end confdefs.h. */
8191 rm -f conftest.$ac_objext conftest$ac_exeext
8192 if { (ac_try="$ac_link"
8194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8195 *) ac_try_echo=$ac_try;;
8197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8198 (eval "$ac_link") 2>conftest.er1
8200 grep -v '^ *+' conftest.er1 >conftest.err
8202 cat conftest.err >&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); } && {
8205 test -z "$ac_c_werror_flag" ||
8206 test ! -s conftest.err
8207 } && test -s conftest$ac_exeext &&
8208 $as_test_x conftest$ac_exeext; then
8210 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8212 # Check for a 64-bit object if we didn't find anything.
8213 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; }
8216 echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.$ac_ext >&5
8222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8223 conftest$ac_exeext conftest.$ac_ext
8224 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8226 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8227 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"
8229 if test "$host_cpu" = ia64; then
8230 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8231 allow_undefined_flag="-z nodefs"
8232 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"
8234 # Determine the default libpath from the value encoded in an empty executable.
8235 cat >conftest.$ac_ext <<_ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h. */
8250 rm -f conftest.$ac_objext conftest$ac_exeext
8251 if { (ac_try="$ac_link"
8253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8254 *) ac_try_echo=$ac_try;;
8256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8257 (eval "$ac_link") 2>conftest.er1
8259 grep -v '^ *+' conftest.er1 >conftest.err
8261 cat conftest.err >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); } && {
8264 test -z "$ac_c_werror_flag" ||
8265 test ! -s conftest.err
8266 } && test -s conftest$ac_exeext &&
8267 $as_test_x conftest$ac_exeext; then
8269 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8271 # Check for a 64-bit object if we didn't find anything.
8272 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; }
8275 echo "$as_me: failed program was:" >&5
8276 sed 's/^/| /' conftest.$ac_ext >&5
8281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8282 conftest$ac_exeext conftest.$ac_ext
8283 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8285 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8286 # Warning - without using the other run time loading flags,
8287 # -berok will link without error, but may produce a broken library.
8288 no_undefined_flag=' ${wl}-bernotok'
8289 allow_undefined_flag=' ${wl}-berok'
8290 # Exported symbols can be pulled into shared objects from archives
8291 whole_archive_flag_spec='$convenience'
8292 archive_cmds_need_lc=yes
8293 # This is similar to how AIX traditionally builds its shared libraries.
8294 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'
8300 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)'
8301 hardcode_libdir_flag_spec='-L$libdir'
8302 hardcode_minus_L=yes
8303 # see comment about different semantics on the GNU ld section
8308 export_dynamic_flag_spec=-rdynamic
8311 cygwin* | mingw* | pw32*)
8312 # When not using gcc, we currently assume that we are using
8313 # Microsoft Visual C++.
8314 # hardcode_libdir_flag_spec is actually meaningless, as there is
8315 # no search path for DLLs.
8316 hardcode_libdir_flag_spec=' '
8317 allow_undefined_flag=unsupported
8318 # Tell ltmain to make .lib files, not .a files.
8320 # Tell ltmain to make .dll files, not .so files.
8322 # FIXME: Setting linknames here is a bad hack.
8323 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8324 # The linker will automatically build a .lib file if we build a DLL.
8325 old_archive_From_new_cmds='true'
8326 # FIXME: Should let the user specify the lib program.
8327 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8328 fix_srcfile_path='`cygpath -w "$srcfile"`'
8329 enable_shared_with_static_runtimes=yes
8332 darwin* | rhapsody*)
8334 rhapsody* | darwin1.[012])
8335 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8338 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8339 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8341 case ${MACOSX_DEPLOYMENT_TARGET} in
8343 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8346 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8352 archive_cmds_need_lc=no
8354 hardcode_automatic=yes
8355 hardcode_shlibpath_var=unsupported
8356 whole_archive_flag_spec=''
8357 link_all_deplibs=yes
8358 if test "$GCC" = yes ; then
8359 output_verbose_link_cmd='echo'
8360 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8361 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8362 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8363 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}'
8364 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}'
8366 case $cc_basename in
8368 output_verbose_link_cmd='echo'
8369 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8370 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8371 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8372 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}'
8373 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}'
8383 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8384 hardcode_libdir_flag_spec='-L$libdir'
8385 hardcode_shlibpath_var=no
8392 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8393 # support. Future versions do this automatically, but an explicit c++rt0.o
8394 # does not break anything, and helps significantly (at the cost of a little
8397 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8398 hardcode_libdir_flag_spec='-R$libdir'
8400 hardcode_shlibpath_var=no
8403 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8405 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8407 hardcode_minus_L=yes
8408 hardcode_shlibpath_var=no
8411 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8412 freebsd* | dragonfly*)
8413 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8414 hardcode_libdir_flag_spec='-R$libdir'
8416 hardcode_shlibpath_var=no
8420 if test "$GCC" = yes; then
8421 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'
8423 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'
8425 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8426 hardcode_libdir_separator=:
8429 # hardcode_minus_L: Not really in the search PATH,
8430 # but as the default location of the library.
8431 hardcode_minus_L=yes
8432 export_dynamic_flag_spec='${wl}-E'
8436 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8437 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8439 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8441 if test "$with_gnu_ld" = no; then
8442 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8443 hardcode_libdir_separator=:
8446 export_dynamic_flag_spec='${wl}-E'
8448 # hardcode_minus_L: Not really in the search PATH,
8449 # but as the default location of the library.
8450 hardcode_minus_L=yes
8455 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8458 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8461 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8464 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8470 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8473 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8476 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8480 if test "$with_gnu_ld" = no; then
8481 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8482 hardcode_libdir_separator=:
8486 hardcode_libdir_flag_spec_ld='+b $libdir'
8488 hardcode_shlibpath_var=no
8492 export_dynamic_flag_spec='${wl}-E'
8494 # hardcode_minus_L: Not really in the search PATH,
8495 # but as the default location of the library.
8496 hardcode_minus_L=yes
8502 irix5* | irix6* | nonstopux*)
8503 if test "$GCC" = yes; then
8504 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'
8506 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'
8507 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8509 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8510 hardcode_libdir_separator=:
8511 link_all_deplibs=yes
8514 netbsd* | netbsdelf*-gnu)
8515 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8516 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8518 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8520 hardcode_libdir_flag_spec='-R$libdir'
8522 hardcode_shlibpath_var=no
8526 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8528 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8529 hardcode_libdir_separator=:
8530 hardcode_shlibpath_var=no
8535 hardcode_shlibpath_var=no
8536 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8537 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8538 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8539 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8540 export_dynamic_flag_spec='${wl}-E'
8543 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8544 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8545 hardcode_libdir_flag_spec='-R$libdir'
8548 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8549 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8556 hardcode_libdir_flag_spec='-L$libdir'
8557 hardcode_minus_L=yes
8558 allow_undefined_flag=unsupported
8559 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'
8560 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8564 if test "$GCC" = yes; then
8565 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8566 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'
8568 allow_undefined_flag=' -expect_unresolved \*'
8569 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'
8571 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8572 hardcode_libdir_separator=:
8575 osf4* | osf5*) # as osf3* with the addition of -msym flag
8576 if test "$GCC" = yes; then
8577 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8578 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'
8579 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8581 allow_undefined_flag=' -expect_unresolved \*'
8582 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'
8583 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8584 $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'
8586 # Both c and cxx compiler support -rpath directly
8587 hardcode_libdir_flag_spec='-rpath $libdir'
8589 hardcode_libdir_separator=:
8593 no_undefined_flag=' -z text'
8594 if test "$GCC" = yes; then
8596 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8597 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8598 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8601 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8602 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8603 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8605 hardcode_libdir_flag_spec='-R$libdir'
8606 hardcode_shlibpath_var=no
8608 solaris2.[0-5] | solaris2.[0-5].*) ;;
8610 # The compiler driver will combine linker options so we
8611 # cannot just pass the convience library names through
8612 # without $wl, iff we do not link with $LD.
8613 # Luckily, gcc supports the same syntax we need for Sun Studio.
8614 # Supported since Solaris 2.6 (maybe 2.5.1?)
8617 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8619 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' ;;
8622 link_all_deplibs=yes
8626 if test "x$host_vendor" = xsequent; then
8627 # Use $CC to link under sequent, because it throws in some extra .o
8628 # files that make .init and .fini sections work.
8629 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8631 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8633 hardcode_libdir_flag_spec='-L$libdir'
8635 hardcode_minus_L=yes
8636 hardcode_shlibpath_var=no
8640 case $host_vendor in
8642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8643 hardcode_direct=yes # is this really true???
8646 ## LD is ld it makes a PLAMLIB
8647 ## CC just makes a GrossModule.
8648 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8649 reload_cmds='$CC -r -o $output$reload_objs'
8653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8654 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8657 runpath_var='LD_RUN_PATH'
8658 hardcode_shlibpath_var=no
8662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8663 hardcode_shlibpath_var=no
8664 export_dynamic_flag_spec='-Bexport'
8668 if test -d /usr/nec; then
8669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8670 hardcode_shlibpath_var=no
8671 runpath_var=LD_RUN_PATH
8672 hardcode_runpath_var=yes
8677 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8678 no_undefined_flag='${wl}-z,text'
8679 archive_cmds_need_lc=no
8680 hardcode_shlibpath_var=no
8681 runpath_var='LD_RUN_PATH'
8683 if test "$GCC" = yes; then
8684 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8685 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8687 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8688 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8692 sysv5* | sco3.2v5* | sco5v6*)
8693 # Note: We can NOT use -z defs as we might desire, because we do not
8694 # link with -lc, and that would cause any symbols used from libc to
8695 # always be unresolved, which means just about no library would
8696 # ever link correctly. If we're not using GNU ld we use -z text
8697 # though, which does catch some bad symbols but isn't as heavy-handed
8699 no_undefined_flag='${wl}-z,text'
8700 allow_undefined_flag='${wl}-z,nodefs'
8701 archive_cmds_need_lc=no
8702 hardcode_shlibpath_var=no
8703 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8704 hardcode_libdir_separator=':'
8705 link_all_deplibs=yes
8706 export_dynamic_flag_spec='${wl}-Bexport'
8707 runpath_var='LD_RUN_PATH'
8709 if test "$GCC" = yes; then
8710 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8711 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8713 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8714 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8720 hardcode_libdir_flag_spec='-L$libdir'
8721 hardcode_shlibpath_var=no
8730 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8731 echo "${ECHO_T}$ld_shlibs" >&6; }
8732 test "$ld_shlibs" = no && can_build_shared=no
8735 # Do we need to explicitly link libc?
8737 case "x$archive_cmds_need_lc" in
8739 # Assume -lc should be added
8740 archive_cmds_need_lc=yes
8742 if test "$enable_shared" = yes && test "$GCC" = yes; then
8743 case $archive_cmds in
8745 # FIXME: we may have to deal with multi-command sequences.
8748 # Test whether the compiler implicitly links with -lc since on some
8749 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8750 # to ld, don't add -lc before -lgcc.
8751 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8752 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8754 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8757 (eval $ac_compile) 2>&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); } 2>conftest.err; then
8763 libobjs=conftest.$ac_objext
8765 wl=$lt_prog_compiler_wl
8766 pic_flag=$lt_prog_compiler_pic
8772 lt_save_allow_undefined_flag=$allow_undefined_flag
8773 allow_undefined_flag=
8774 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8775 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); }
8780 archive_cmds_need_lc=no
8782 archive_cmds_need_lc=yes
8784 allow_undefined_flag=$lt_save_allow_undefined_flag
8786 cat conftest.err 1>&5
8789 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8790 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8797 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8798 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8800 libname_spec='lib$name'
8808 shlibpath_overrides_runpath=unknown
8810 dynamic_linker="$host_os ld.so"
8811 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8812 if test "$GCC" = yes; then
8813 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8814 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8815 # if the path contains ";" then we assume it to be the separator
8816 # otherwise default to the standard path separator (i.e. ":") - it is
8817 # assumed that no part of a normal pathname contains ";" but that should
8818 # okay in the real world where ";" in dirpaths is itself problematic.
8819 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8821 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8824 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8826 need_lib_prefix=unknown
8827 hardcode_into_libs=no
8829 # when you set need_version to no, make sure it does not cause -set_version
8830 # flags to be left without arguments
8831 need_version=unknown
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8837 shlibpath_var=LIBPATH
8839 # AIX 3 has no versioning support, so we append a major version to the name.
8840 soname_spec='${libname}${release}${shared_ext}$major'
8847 hardcode_into_libs=yes
8848 if test "$host_cpu" = ia64; then
8849 # AIX 5 supports IA64
8850 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8851 shlibpath_var=LD_LIBRARY_PATH
8853 # With GCC up to 2.95.x, collect2 would create an import file
8854 # for dependence libraries. The import file would start with
8855 # the line `#! .'. This would cause the generated library to
8856 # depend on `.', always an invalid library. This was fixed in
8857 # development snapshots of GCC prior to 3.0.
8859 aix4 | aix4.[01] | aix4.[01].*)
8860 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8862 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8869 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8870 # soname into executable. Probably we can add versioning support to
8871 # collect2, so additional links can be useful in future.
8872 if test "$aix_use_runtimelinking" = yes; then
8873 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8874 # instead of lib<name>.a to let people know that these are not
8875 # typical AIX shared libraries.
8876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8878 # We preserve .a as extension for shared libraries through AIX4.2
8879 # and later when we are not doing run time linking.
8880 library_names_spec='${libname}${release}.a $libname.a'
8881 soname_spec='${libname}${release}${shared_ext}$major'
8883 shlibpath_var=LIBPATH
8888 library_names_spec='$libname.ixlibrary $libname.a'
8889 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8890 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'
8894 library_names_spec='${libname}${shared_ext}'
8895 dynamic_linker="$host_os ld.so"
8896 shlibpath_var=LIBRARY_PATH
8902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8903 soname_spec='${libname}${release}${shared_ext}$major'
8904 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8905 shlibpath_var=LD_LIBRARY_PATH
8906 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8907 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8908 # the default ld.so.conf also contains /usr/contrib/lib and
8909 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8910 # libtool to hard-code these into programs
8913 cygwin* | mingw* | pw32*)
8914 version_type=windows
8919 case $GCC,$host_os in
8920 yes,cygwin* | yes,mingw* | yes,pw32*)
8921 library_names_spec='$libname.dll.a'
8922 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8923 postinstall_cmds='base_file=`basename \${file}`~
8924 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8925 dldir=$destdir/`dirname \$dlpath`~
8926 test -d \$dldir || mkdir -p \$dldir~
8927 $install_prog $dir/$dlname \$dldir/$dlname~
8928 chmod a+x \$dldir/$dlname'
8929 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8930 dlpath=$dir/\$dldll~
8932 shlibpath_overrides_runpath=yes
8936 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8937 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8938 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8941 # MinGW DLLs use traditional 'lib' prefix
8942 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8943 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8944 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8945 # It is most probably a Windows format PATH printed by
8946 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8947 # path with ; separators, and with drive letters. We can handle the
8948 # drive letters (cygwin fileutils understands them), so leave them,
8949 # especially as we might pass files found there to a mingw objdump,
8950 # which wouldn't understand a cygwinified path. Ahh.
8951 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8953 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8957 # pw32 DLLs use 'pw' prefix rather than 'lib'
8958 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8964 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8967 dynamic_linker='Win32 ld.exe'
8968 # FIXME: first we should search . and the directory the executable is in
8972 darwin* | rhapsody*)
8973 dynamic_linker="$host_os dyld"
8977 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8978 soname_spec='${libname}${release}${major}$shared_ext'
8979 shlibpath_overrides_runpath=yes
8980 shlibpath_var=DYLD_LIBRARY_PATH
8981 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8982 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8983 if test "$GCC" = yes; then
8984 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"`
8986 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8988 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8996 soname_spec='${libname}${release}${shared_ext}$major'
8997 shlibpath_var=LD_LIBRARY_PATH
9004 freebsd* | dragonfly*)
9005 # DragonFly does not have aout. When/if they implement a new
9006 # versioning mechanism, adjust this.
9007 if test -x /usr/bin/objformat; then
9008 objformat=`/usr/bin/objformat`
9011 freebsd[123]*) objformat=aout ;;
9015 version_type=freebsd-$objformat
9016 case $version_type in
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9023 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9027 shlibpath_var=LD_LIBRARY_PATH
9030 shlibpath_overrides_runpath=yes
9032 freebsd3.[01]* | freebsdelf3.[01]*)
9033 shlibpath_overrides_runpath=yes
9034 hardcode_into_libs=yes
9036 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9037 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9038 shlibpath_overrides_runpath=no
9039 hardcode_into_libs=yes
9041 freebsd*) # from 4.6 on
9042 shlibpath_overrides_runpath=yes
9043 hardcode_into_libs=yes
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9053 soname_spec='${libname}${release}${shared_ext}$major'
9054 shlibpath_var=LD_LIBRARY_PATH
9055 hardcode_into_libs=yes
9058 hpux9* | hpux10* | hpux11*)
9059 # Give a soname corresponding to the major version so that dld.sl refuses to
9060 # link against other versions.
9067 hardcode_into_libs=yes
9068 dynamic_linker="$host_os dld.so"
9069 shlibpath_var=LD_LIBRARY_PATH
9070 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9072 soname_spec='${libname}${release}${shared_ext}$major'
9073 if test "X$HPUX_IA64_MODE" = X32; then
9074 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9076 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9078 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9082 hardcode_into_libs=yes
9083 dynamic_linker="$host_os dld.sl"
9084 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9085 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9087 soname_spec='${libname}${release}${shared_ext}$major'
9088 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9089 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9093 dynamic_linker="$host_os dld.sl"
9094 shlibpath_var=SHLIB_PATH
9095 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9097 soname_spec='${libname}${release}${shared_ext}$major'
9100 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9101 postinstall_cmds='chmod 555 $lib'
9108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9109 soname_spec='${libname}${release}${shared_ext}$major'
9110 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9111 shlibpath_var=LD_LIBRARY_PATH
9112 shlibpath_overrides_runpath=no
9113 hardcode_into_libs=yes
9116 irix5* | irix6* | nonstopux*)
9118 nonstopux*) version_type=nonstopux ;;
9120 if test "$lt_cv_prog_gnu_ld" = yes; then
9128 soname_spec='${libname}${release}${shared_ext}$major'
9129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9131 irix5* | nonstopux*)
9135 case $LD in # libtool.m4 will add one of these switches to LD
9136 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9137 libsuff= shlibsuff= libmagic=32-bit;;
9138 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9139 libsuff=32 shlibsuff=N32 libmagic=N32;;
9140 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9141 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9142 *) libsuff= shlibsuff= libmagic=never-match;;
9146 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9147 shlibpath_overrides_runpath=no
9148 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9149 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9150 hardcode_into_libs=yes
9153 # No shared lib support for Linux oldld, aout, or coff.
9154 linux*oldld* | linux*aout* | linux*coff*)
9158 # This must be Linux ELF.
9159 linux* | k*bsd*-gnu)
9163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9164 soname_spec='${libname}${release}${shared_ext}$major'
9165 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9166 shlibpath_var=LD_LIBRARY_PATH
9167 shlibpath_overrides_runpath=no
9168 # This implies no fast_install, which is unacceptable.
9169 # Some rework will be needed to allow for fast_install
9170 # before this can be enabled.
9171 hardcode_into_libs=yes
9173 # Append ld.so.conf contents to the search path
9174 if test -f /etc/ld.so.conf; then
9175 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' ' '`
9176 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9179 # We used to test for /lib/ld.so.1 and disable shared libraries on
9180 # powerpc, because MkLinux only supported shared libraries with the
9181 # GNU dynamic linker. Since this was broken with cross compilers,
9182 # most powerpc-linux boxes support dynamic linking these days and
9183 # people can always --disable-shared, the test was removed, and we
9184 # assume the GNU/Linux dynamic linker is in use.
9185 dynamic_linker='GNU/Linux ld.so'
9192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9193 soname_spec='${libname}${release}${shared_ext}$major'
9194 shlibpath_var=LD_LIBRARY_PATH
9195 shlibpath_overrides_runpath=no
9196 hardcode_into_libs=yes
9197 dynamic_linker='NetBSD ld.elf_so'
9204 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9206 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9207 dynamic_linker='NetBSD (a.out) ld.so'
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9210 soname_spec='${libname}${release}${shared_ext}$major'
9211 dynamic_linker='NetBSD ld.elf_so'
9213 shlibpath_var=LD_LIBRARY_PATH
9214 shlibpath_overrides_runpath=yes
9215 hardcode_into_libs=yes
9220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9221 shlibpath_var=LD_LIBRARY_PATH
9222 shlibpath_overrides_runpath=yes
9229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9230 soname_spec='${libname}${release}${shared_ext}$major'
9231 shlibpath_var=LD_LIBRARY_PATH
9232 shlibpath_overrides_runpath=yes
9237 sys_lib_dlsearch_path_spec="/usr/lib"
9239 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9241 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9242 *) need_version=no ;;
9244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9245 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9246 shlibpath_var=LD_LIBRARY_PATH
9247 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9249 openbsd2.[89] | openbsd2.[89].*)
9250 shlibpath_overrides_runpath=no
9253 shlibpath_overrides_runpath=yes
9257 shlibpath_overrides_runpath=yes
9262 libname_spec='$name'
9265 library_names_spec='$libname${shared_ext} $libname.a'
9266 dynamic_linker='OS/2 ld.exe'
9267 shlibpath_var=LIBPATH
9270 osf3* | osf4* | osf5*)
9274 soname_spec='${libname}${release}${shared_ext}$major'
9275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9276 shlibpath_var=LD_LIBRARY_PATH
9277 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9278 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9286 soname_spec='${libname}${release}${shared_ext}$major'
9287 shlibpath_var=LD_LIBRARY_PATH
9288 shlibpath_overrides_runpath=yes
9289 hardcode_into_libs=yes
9290 # ldd complains unless libraries are executable
9291 postinstall_cmds='chmod +x $lib'
9296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9297 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9298 shlibpath_var=LD_LIBRARY_PATH
9299 shlibpath_overrides_runpath=yes
9300 if test "$with_gnu_ld" = yes; then
9308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309 soname_spec='${libname}${release}${shared_ext}$major'
9310 shlibpath_var=LD_LIBRARY_PATH
9311 case $host_vendor in
9313 shlibpath_overrides_runpath=no
9315 export_dynamic_flag_spec='${wl}-Blargedynsym'
9316 runpath_var=LD_RUN_PATH
9324 shlibpath_overrides_runpath=no
9325 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9331 if test -d /usr/nec ;then
9333 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9334 soname_spec='$libname${shared_ext}.$major'
9335 shlibpath_var=LD_LIBRARY_PATH
9339 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9340 version_type=freebsd-elf
9343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9344 soname_spec='${libname}${release}${shared_ext}$major'
9345 shlibpath_var=LD_LIBRARY_PATH
9346 hardcode_into_libs=yes
9347 if test "$with_gnu_ld" = yes; then
9348 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9349 shlibpath_overrides_runpath=no
9351 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9352 shlibpath_overrides_runpath=yes
9355 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9359 sys_lib_dlsearch_path_spec='/usr/lib'
9364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9365 soname_spec='${libname}${release}${shared_ext}$major'
9366 shlibpath_var=LD_LIBRARY_PATH
9373 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9374 echo "${ECHO_T}$dynamic_linker" >&6; }
9375 test "$dynamic_linker" = no && can_build_shared=no
9377 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9378 if test "$GCC" = yes; then
9379 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9382 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9383 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9385 if test -n "$hardcode_libdir_flag_spec" || \
9386 test -n "$runpath_var" || \
9387 test "X$hardcode_automatic" = "Xyes" ; then
9389 # We can hardcode non-existant directories.
9390 if test "$hardcode_direct" != no &&
9391 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9392 # have to relink, otherwise we might link with an installed library
9393 # when we should be linking with a yet-to-be-installed one
9394 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9395 test "$hardcode_minus_L" != no; then
9396 # Linking always hardcodes the temporary library directory.
9397 hardcode_action=relink
9399 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9400 hardcode_action=immediate
9403 # We cannot hardcode anything, or else we can only hardcode existing
9405 hardcode_action=unsupported
9407 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9408 echo "${ECHO_T}$hardcode_action" >&6; }
9410 if test "$hardcode_action" = relink; then
9411 # Fast installation is not supported
9412 enable_fast_install=no
9413 elif test "$shlibpath_overrides_runpath" = yes ||
9414 test "$enable_shared" = no; then
9415 # Fast installation is not necessary
9416 enable_fast_install=needless
9421 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9422 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9423 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9424 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9425 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9426 { echo "$as_me:$LINENO: result: yes" >&5
9427 echo "${ECHO_T}yes" >&6; }
9429 # FIXME - insert some real tests, host_os isn't really good enough
9432 if test -n "$STRIP" ; then
9433 striplib="$STRIP -x"
9434 { echo "$as_me:$LINENO: result: yes" >&5
9435 echo "${ECHO_T}yes" >&6; }
9437 { echo "$as_me:$LINENO: result: no" >&5
9438 echo "${ECHO_T}no" >&6; }
9442 { echo "$as_me:$LINENO: result: no" >&5
9443 echo "${ECHO_T}no" >&6; }
9448 if test "x$enable_dlopen" != xyes; then
9449 enable_dlopen=unknown
9450 enable_dlopen_self=unknown
9451 enable_dlopen_self_static=unknown
9458 lt_cv_dlopen="load_add_on"
9460 lt_cv_dlopen_self=yes
9464 lt_cv_dlopen="LoadLibrary"
9469 lt_cv_dlopen="dlopen"
9474 # if libdl is installed we need to link against it
9475 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9476 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9477 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9478 echo $ECHO_N "(cached) $ECHO_C" >&6
9480 ac_check_lib_save_LIBS=$LIBS
9482 cat >conftest.$ac_ext <<_ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h. */
9489 /* Override any GCC internal prototype to avoid an error.
9490 Use char because int might match the return type of a GCC
9491 builtin and then its argument prototype would still apply. */
9504 rm -f conftest.$ac_objext conftest$ac_exeext
9505 if { (ac_try="$ac_link"
9507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9508 *) ac_try_echo=$ac_try;;
9510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9511 (eval "$ac_link") 2>conftest.er1
9513 grep -v '^ *+' conftest.er1 >conftest.err
9515 cat conftest.err >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); } && {
9518 test -z "$ac_c_werror_flag" ||
9519 test ! -s conftest.err
9520 } && test -s conftest$ac_exeext &&
9521 $as_test_x conftest$ac_exeext; then
9522 ac_cv_lib_dl_dlopen=yes
9524 echo "$as_me: failed program was:" >&5
9525 sed 's/^/| /' conftest.$ac_ext >&5
9527 ac_cv_lib_dl_dlopen=no
9530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9531 conftest$ac_exeext conftest.$ac_ext
9532 LIBS=$ac_check_lib_save_LIBS
9534 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9535 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9536 if test $ac_cv_lib_dl_dlopen = yes; then
9537 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9542 lt_cv_dlopen_self=yes
9549 { echo "$as_me:$LINENO: checking for shl_load" >&5
9550 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9551 if test "${ac_cv_func_shl_load+set}" = set; then
9552 echo $ECHO_N "(cached) $ECHO_C" >&6
9554 cat >conftest.$ac_ext <<_ACEOF
9557 cat confdefs.h >>conftest.$ac_ext
9558 cat >>conftest.$ac_ext <<_ACEOF
9559 /* end confdefs.h. */
9560 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9562 #define shl_load innocuous_shl_load
9564 /* System header to define __stub macros and hopefully few prototypes,
9565 which can conflict with char shl_load (); below.
9566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9567 <limits.h> exists even on freestanding compilers. */
9570 # include <limits.h>
9572 # include <assert.h>
9577 /* Override any GCC internal prototype to avoid an error.
9578 Use char because int might match the return type of a GCC
9579 builtin and then its argument prototype would still apply. */
9584 /* The GNU C library defines this for functions which it implements
9585 to always fail with ENOSYS. Some functions are actually named
9586 something starting with __ and the normal name is an alias. */
9587 #if defined __stub_shl_load || defined __stub___shl_load
9599 rm -f conftest.$ac_objext conftest$ac_exeext
9600 if { (ac_try="$ac_link"
9602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9603 *) ac_try_echo=$ac_try;;
9605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9606 (eval "$ac_link") 2>conftest.er1
9608 grep -v '^ *+' conftest.er1 >conftest.err
9610 cat conftest.err >&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); } && {
9613 test -z "$ac_c_werror_flag" ||
9614 test ! -s conftest.err
9615 } && test -s conftest$ac_exeext &&
9616 $as_test_x conftest$ac_exeext; then
9617 ac_cv_func_shl_load=yes
9619 echo "$as_me: failed program was:" >&5
9620 sed 's/^/| /' conftest.$ac_ext >&5
9622 ac_cv_func_shl_load=no
9625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9626 conftest$ac_exeext conftest.$ac_ext
9628 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9629 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9630 if test $ac_cv_func_shl_load = yes; then
9631 lt_cv_dlopen="shl_load"
9633 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9634 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9635 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
9638 ac_check_lib_save_LIBS=$LIBS
9640 cat >conftest.$ac_ext <<_ACEOF
9643 cat confdefs.h >>conftest.$ac_ext
9644 cat >>conftest.$ac_ext <<_ACEOF
9645 /* end confdefs.h. */
9647 /* Override any GCC internal prototype to avoid an error.
9648 Use char because int might match the return type of a GCC
9649 builtin and then its argument prototype would still apply. */
9662 rm -f conftest.$ac_objext conftest$ac_exeext
9663 if { (ac_try="$ac_link"
9665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9666 *) ac_try_echo=$ac_try;;
9668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9669 (eval "$ac_link") 2>conftest.er1
9671 grep -v '^ *+' conftest.er1 >conftest.err
9673 cat conftest.err >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); } && {
9676 test -z "$ac_c_werror_flag" ||
9677 test ! -s conftest.err
9678 } && test -s conftest$ac_exeext &&
9679 $as_test_x conftest$ac_exeext; then
9680 ac_cv_lib_dld_shl_load=yes
9682 echo "$as_me: failed program was:" >&5
9683 sed 's/^/| /' conftest.$ac_ext >&5
9685 ac_cv_lib_dld_shl_load=no
9688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9689 conftest$ac_exeext conftest.$ac_ext
9690 LIBS=$ac_check_lib_save_LIBS
9692 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9693 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9694 if test $ac_cv_lib_dld_shl_load = yes; then
9695 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9697 { echo "$as_me:$LINENO: checking for dlopen" >&5
9698 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9699 if test "${ac_cv_func_dlopen+set}" = set; then
9700 echo $ECHO_N "(cached) $ECHO_C" >&6
9702 cat >conftest.$ac_ext <<_ACEOF
9705 cat confdefs.h >>conftest.$ac_ext
9706 cat >>conftest.$ac_ext <<_ACEOF
9707 /* end confdefs.h. */
9708 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9710 #define dlopen innocuous_dlopen
9712 /* System header to define __stub macros and hopefully few prototypes,
9713 which can conflict with char dlopen (); below.
9714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9715 <limits.h> exists even on freestanding compilers. */
9718 # include <limits.h>
9720 # include <assert.h>
9725 /* Override any GCC internal prototype to avoid an error.
9726 Use char because int might match the return type of a GCC
9727 builtin and then its argument prototype would still apply. */
9732 /* The GNU C library defines this for functions which it implements
9733 to always fail with ENOSYS. Some functions are actually named
9734 something starting with __ and the normal name is an alias. */
9735 #if defined __stub_dlopen || defined __stub___dlopen
9747 rm -f conftest.$ac_objext conftest$ac_exeext
9748 if { (ac_try="$ac_link"
9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754 (eval "$ac_link") 2>conftest.er1
9756 grep -v '^ *+' conftest.er1 >conftest.err
9758 cat conftest.err >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } && {
9761 test -z "$ac_c_werror_flag" ||
9762 test ! -s conftest.err
9763 } && test -s conftest$ac_exeext &&
9764 $as_test_x conftest$ac_exeext; then
9765 ac_cv_func_dlopen=yes
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9770 ac_cv_func_dlopen=no
9773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9774 conftest$ac_exeext conftest.$ac_ext
9776 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9777 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9778 if test $ac_cv_func_dlopen = yes; then
9779 lt_cv_dlopen="dlopen"
9781 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9782 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9783 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
9786 ac_check_lib_save_LIBS=$LIBS
9788 cat >conftest.$ac_ext <<_ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9795 /* Override any GCC internal prototype to avoid an error.
9796 Use char because int might match the return type of a GCC
9797 builtin and then its argument prototype would still apply. */
9810 rm -f conftest.$ac_objext conftest$ac_exeext
9811 if { (ac_try="$ac_link"
9813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9814 *) ac_try_echo=$ac_try;;
9816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9817 (eval "$ac_link") 2>conftest.er1
9819 grep -v '^ *+' conftest.er1 >conftest.err
9821 cat conftest.err >&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); } && {
9824 test -z "$ac_c_werror_flag" ||
9825 test ! -s conftest.err
9826 } && test -s conftest$ac_exeext &&
9827 $as_test_x conftest$ac_exeext; then
9828 ac_cv_lib_dl_dlopen=yes
9830 echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9833 ac_cv_lib_dl_dlopen=no
9836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9837 conftest$ac_exeext conftest.$ac_ext
9838 LIBS=$ac_check_lib_save_LIBS
9840 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9841 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9842 if test $ac_cv_lib_dl_dlopen = yes; then
9843 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9845 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9846 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9847 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9848 echo $ECHO_N "(cached) $ECHO_C" >&6
9850 ac_check_lib_save_LIBS=$LIBS
9852 cat >conftest.$ac_ext <<_ACEOF
9855 cat confdefs.h >>conftest.$ac_ext
9856 cat >>conftest.$ac_ext <<_ACEOF
9857 /* end confdefs.h. */
9859 /* Override any GCC internal prototype to avoid an error.
9860 Use char because int might match the return type of a GCC
9861 builtin and then its argument prototype would still apply. */
9874 rm -f conftest.$ac_objext conftest$ac_exeext
9875 if { (ac_try="$ac_link"
9877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881 (eval "$ac_link") 2>conftest.er1
9883 grep -v '^ *+' conftest.er1 >conftest.err
9885 cat conftest.err >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); } && {
9888 test -z "$ac_c_werror_flag" ||
9889 test ! -s conftest.err
9890 } && test -s conftest$ac_exeext &&
9891 $as_test_x conftest$ac_exeext; then
9892 ac_cv_lib_svld_dlopen=yes
9894 echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9897 ac_cv_lib_svld_dlopen=no
9900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9901 conftest$ac_exeext conftest.$ac_ext
9902 LIBS=$ac_check_lib_save_LIBS
9904 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9905 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9906 if test $ac_cv_lib_svld_dlopen = yes; then
9907 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9909 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9910 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9911 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9914 ac_check_lib_save_LIBS=$LIBS
9916 cat >conftest.$ac_ext <<_ACEOF
9919 cat confdefs.h >>conftest.$ac_ext
9920 cat >>conftest.$ac_ext <<_ACEOF
9921 /* end confdefs.h. */
9923 /* Override any GCC internal prototype to avoid an error.
9924 Use char because int might match the return type of a GCC
9925 builtin and then its argument prototype would still apply. */
9938 rm -f conftest.$ac_objext conftest$ac_exeext
9939 if { (ac_try="$ac_link"
9941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942 *) ac_try_echo=$ac_try;;
9944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945 (eval "$ac_link") 2>conftest.er1
9947 grep -v '^ *+' conftest.er1 >conftest.err
9949 cat conftest.err >&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } && {
9952 test -z "$ac_c_werror_flag" ||
9953 test ! -s conftest.err
9954 } && test -s conftest$ac_exeext &&
9955 $as_test_x conftest$ac_exeext; then
9956 ac_cv_lib_dld_dld_link=yes
9958 echo "$as_me: failed program was:" >&5
9959 sed 's/^/| /' conftest.$ac_ext >&5
9961 ac_cv_lib_dld_dld_link=no
9964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9965 conftest$ac_exeext conftest.$ac_ext
9966 LIBS=$ac_check_lib_save_LIBS
9968 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9969 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9970 if test $ac_cv_lib_dld_dld_link = yes; then
9971 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9992 if test "x$lt_cv_dlopen" != xno; then
9998 case $lt_cv_dlopen in
10000 save_CPPFLAGS="$CPPFLAGS"
10001 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10003 save_LDFLAGS="$LDFLAGS"
10004 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10007 LIBS="$lt_cv_dlopen_libs $LIBS"
10009 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10010 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10011 if test "${lt_cv_dlopen_self+set}" = set; then
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
10014 if test "$cross_compiling" = yes; then :
10015 lt_cv_dlopen_self=cross
10017 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10018 lt_status=$lt_dlunknown
10019 cat > conftest.$ac_ext <<EOF
10020 #line 10020 "configure"
10021 #include "confdefs.h"
10030 # define LT_DLGLOBAL RTLD_GLOBAL
10033 # define LT_DLGLOBAL DL_GLOBAL
10035 # define LT_DLGLOBAL 0
10039 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10040 find out it does not work in some platform. */
10041 #ifndef LT_DLLAZY_OR_NOW
10043 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10046 # define LT_DLLAZY_OR_NOW DL_LAZY
10049 # define LT_DLLAZY_OR_NOW RTLD_NOW
10052 # define LT_DLLAZY_OR_NOW DL_NOW
10054 # define LT_DLLAZY_OR_NOW 0
10062 extern "C" void exit (int);
10065 void fnord() { int i=42;}
10068 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10069 int status = $lt_dlunknown;
10073 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10074 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10075 /* dlclose (self); */
10083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10084 (eval $ac_link) 2>&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10088 (./conftest; exit; ) >&5 2>/dev/null
10090 case x$lt_status in
10091 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10092 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10093 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10096 # compilation failed
10097 lt_cv_dlopen_self=no
10104 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10105 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10107 if test "x$lt_cv_dlopen_self" = xyes; then
10108 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10109 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10110 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10111 if test "${lt_cv_dlopen_self_static+set}" = set; then
10112 echo $ECHO_N "(cached) $ECHO_C" >&6
10114 if test "$cross_compiling" = yes; then :
10115 lt_cv_dlopen_self_static=cross
10117 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10118 lt_status=$lt_dlunknown
10119 cat > conftest.$ac_ext <<EOF
10120 #line 10120 "configure"
10121 #include "confdefs.h"
10130 # define LT_DLGLOBAL RTLD_GLOBAL
10133 # define LT_DLGLOBAL DL_GLOBAL
10135 # define LT_DLGLOBAL 0
10139 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10140 find out it does not work in some platform. */
10141 #ifndef LT_DLLAZY_OR_NOW
10143 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10146 # define LT_DLLAZY_OR_NOW DL_LAZY
10149 # define LT_DLLAZY_OR_NOW RTLD_NOW
10152 # define LT_DLLAZY_OR_NOW DL_NOW
10154 # define LT_DLLAZY_OR_NOW 0
10162 extern "C" void exit (int);
10165 void fnord() { int i=42;}
10168 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10169 int status = $lt_dlunknown;
10173 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10174 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10175 /* dlclose (self); */
10183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10184 (eval $ac_link) 2>&5
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10188 (./conftest; exit; ) >&5 2>/dev/null
10190 case x$lt_status in
10191 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10192 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10193 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10196 # compilation failed
10197 lt_cv_dlopen_self_static=no
10204 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10205 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10208 CPPFLAGS="$save_CPPFLAGS"
10209 LDFLAGS="$save_LDFLAGS"
10214 case $lt_cv_dlopen_self in
10215 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10216 *) enable_dlopen_self=unknown ;;
10219 case $lt_cv_dlopen_self_static in
10220 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10221 *) enable_dlopen_self_static=unknown ;;
10226 # Report which library types will actually be built
10227 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10228 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10229 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10230 echo "${ECHO_T}$can_build_shared" >&6; }
10232 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10233 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10234 test "$can_build_shared" = "no" && enable_shared=no
10236 # On AIX, shared libraries and static libraries use the same namespace, and
10237 # are all built from PIC.
10240 test "$enable_shared" = yes && enable_static=no
10241 if test -n "$RANLIB"; then
10242 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10243 postinstall_cmds='$RANLIB $lib'
10248 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10249 test "$enable_shared" = yes && enable_static=no
10253 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10254 echo "${ECHO_T}$enable_shared" >&6; }
10256 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10257 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10258 # Make sure either enable_shared or enable_static is yes.
10259 test "$enable_shared" = yes || enable_static=yes
10260 { echo "$as_me:$LINENO: result: $enable_static" >&5
10261 echo "${ECHO_T}$enable_static" >&6; }
10263 # The else clause should only fire when bootstrapping the
10264 # libtool distribution, otherwise you forgot to ship ltmain.sh
10265 # with your package, and you will get complaints that there are
10266 # no rules to generate ltmain.sh.
10267 if test -f "$ltmain"; then
10268 # See if we are running on zsh, and set the options which allow our commands through
10269 # without removal of \ escapes.
10270 if test -n "${ZSH_VERSION+set}" ; then
10271 setopt NO_GLOB_SUBST
10273 # Now quote all the things that may contain metacharacters while being
10274 # careful not to overquote the AC_SUBSTed values. We take copies of the
10275 # variables and quote the copies for generation of the libtool script.
10276 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10278 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10279 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10280 deplibs_check_method reload_flag reload_cmds need_locks \
10281 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10282 lt_cv_sys_global_symbol_to_c_name_address \
10283 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10284 old_postinstall_cmds old_postuninstall_cmds \
10288 lt_prog_compiler_wl \
10289 lt_prog_compiler_pic \
10290 lt_prog_compiler_static \
10291 lt_prog_compiler_no_builtin_flag \
10292 export_dynamic_flag_spec \
10293 thread_safe_flag_spec \
10294 whole_archive_flag_spec \
10295 enable_shared_with_static_runtimes \
10297 old_archive_from_new_cmds \
10302 compiler_lib_search_path \
10304 archive_expsym_cmds \
10306 postuninstall_cmds \
10307 old_archive_from_expsyms_cmds \
10308 allow_undefined_flag \
10309 no_undefined_flag \
10310 export_symbols_cmds \
10311 hardcode_libdir_flag_spec \
10312 hardcode_libdir_flag_spec_ld \
10313 hardcode_libdir_separator \
10314 hardcode_automatic \
10316 module_expsym_cmds \
10317 lt_cv_prog_compiler_c_o \
10319 include_expsyms; do
10322 old_archive_cmds | \
10323 old_archive_from_new_cmds | \
10325 archive_expsym_cmds | \
10327 module_expsym_cmds | \
10328 old_archive_from_expsyms_cmds | \
10329 export_symbols_cmds | \
10330 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10331 postinstall_cmds | postuninstall_cmds | \
10332 old_postinstall_cmds | old_postuninstall_cmds | \
10333 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10334 # Double-quote double-evaled strings.
10335 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10338 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10344 *'\$0 --fallback-echo"')
10345 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10349 cfgfile="${ofile}T"
10350 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10352 { echo "$as_me:$LINENO: creating $ofile" >&5
10353 echo "$as_me: creating $ofile" >&6;}
10355 cat <<__EOF__ >> "$cfgfile"
10358 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10359 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10360 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10362 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10363 # Free Software Foundation, Inc.
10365 # This file is part of GNU Libtool:
10366 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10368 # This program is free software; you can redistribute it and/or modify
10369 # it under the terms of the GNU General Public License as published by
10370 # the Free Software Foundation; either version 2 of the License, or
10371 # (at your option) any later version.
10373 # This program is distributed in the hope that it will be useful, but
10374 # WITHOUT ANY WARRANTY; without even the implied warranty of
10375 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10376 # General Public License for more details.
10378 # You should have received a copy of the GNU General Public License
10379 # along with this program; if not, write to the Free Software
10380 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10382 # As a special exception to the GNU General Public License, if you
10383 # distribute this file as part of a program that contains a
10384 # configuration script generated by Autoconf, you may include it under
10385 # the same distribution terms that you use for the rest of that program.
10387 # A sed program that does not truncate output.
10390 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10391 Xsed="$SED -e 1s/^X//"
10393 # The HP-UX ksh and POSIX shell print the target directory to stdout
10394 # if CDPATH is set.
10395 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10397 # The names of the tagged configurations supported by this script.
10400 # ### BEGIN LIBTOOL CONFIG
10402 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10404 # Shell to use when invoking shell scripts.
10407 # Whether or not to build shared libraries.
10408 build_libtool_libs=$enable_shared
10410 # Whether or not to build static libraries.
10411 build_old_libs=$enable_static
10413 # Whether or not to add -lc for building shared libraries.
10414 build_libtool_need_lc=$archive_cmds_need_lc
10416 # Whether or not to disallow shared libs when runtime libs are static
10417 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10419 # Whether or not to optimize for fast installation.
10420 fast_install=$enable_fast_install
10423 host_alias=$host_alias
10427 # The build system.
10428 build_alias=$build_alias
10432 # An echo program that does not interpret backslashes.
10437 AR_FLAGS=$lt_AR_FLAGS
10442 # LTCC compiler flags.
10443 LTCFLAGS=$lt_LTCFLAGS
10445 # A language-specific compiler.
10448 # Is the compiler the GNU C compiler?
10454 # The linker used to build libraries.
10457 # Whether we need hard or soft links.
10460 # A BSD-compatible nm program.
10463 # A symbol stripping program
10466 # Used to examine libraries when file_magic_cmd begins "file"
10467 MAGIC_CMD=$MAGIC_CMD
10469 # Used on cygwin: DLL creation program.
10472 # Used on cygwin: object dumper.
10475 # Used on cygwin: assembler.
10478 # The name of the directory that contains temporary libtool files.
10481 # How to create reloadable object files.
10482 reload_flag=$lt_reload_flag
10483 reload_cmds=$lt_reload_cmds
10485 # How to pass a linker flag through the compiler.
10486 wl=$lt_lt_prog_compiler_wl
10488 # Object file suffix (normally "o").
10489 objext="$ac_objext"
10491 # Old archive suffix (normally "a").
10494 # Shared library suffix (normally ".so").
10495 shrext_cmds='$shrext_cmds'
10497 # Executable file suffix (normally "").
10500 # Additional compiler flags for building library objects.
10501 pic_flag=$lt_lt_prog_compiler_pic
10504 # What is the maximum length of a command?
10505 max_cmd_len=$lt_cv_sys_max_cmd_len
10507 # Does compiler simultaneously support -c and -o options?
10508 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10510 # Must we lock files when doing compilation?
10511 need_locks=$lt_need_locks
10513 # Do we need the lib prefix for modules?
10514 need_lib_prefix=$need_lib_prefix
10516 # Do we need a version for libraries?
10517 need_version=$need_version
10519 # Whether dlopen is supported.
10520 dlopen_support=$enable_dlopen
10522 # Whether dlopen of programs is supported.
10523 dlopen_self=$enable_dlopen_self
10525 # Whether dlopen of statically linked programs is supported.
10526 dlopen_self_static=$enable_dlopen_self_static
10528 # Compiler flag to prevent dynamic linking.
10529 link_static_flag=$lt_lt_prog_compiler_static
10531 # Compiler flag to turn off builtin functions.
10532 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10534 # Compiler flag to allow reflexive dlopens.
10535 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10537 # Compiler flag to generate shared objects directly from archives.
10538 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10540 # Compiler flag to generate thread-safe objects.
10541 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10543 # Library versioning type.
10544 version_type=$version_type
10546 # Format of library name prefix.
10547 libname_spec=$lt_libname_spec
10549 # List of archive names. First name is the real one, the rest are links.
10550 # The last name is the one that the linker finds with -lNAME.
10551 library_names_spec=$lt_library_names_spec
10553 # The coded name of the library, if different from the real name.
10554 soname_spec=$lt_soname_spec
10556 # Commands used to build and install an old-style archive.
10558 old_archive_cmds=$lt_old_archive_cmds
10559 old_postinstall_cmds=$lt_old_postinstall_cmds
10560 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10562 # Create an old-style archive from a shared archive.
10563 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10565 # Create a temporary old-style archive to link instead of a shared archive.
10566 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10568 # Commands used to build and install a shared archive.
10569 archive_cmds=$lt_archive_cmds
10570 archive_expsym_cmds=$lt_archive_expsym_cmds
10571 postinstall_cmds=$lt_postinstall_cmds
10572 postuninstall_cmds=$lt_postuninstall_cmds
10574 # Commands used to build a loadable module (assumed same as above if empty)
10575 module_cmds=$lt_module_cmds
10576 module_expsym_cmds=$lt_module_expsym_cmds
10578 # Commands to strip libraries.
10579 old_striplib=$lt_old_striplib
10580 striplib=$lt_striplib
10582 # Dependencies to place before the objects being linked to create a
10584 predep_objects=$lt_predep_objects
10586 # Dependencies to place after the objects being linked to create a
10588 postdep_objects=$lt_postdep_objects
10590 # Dependencies to place before the objects being linked to create a
10592 predeps=$lt_predeps
10594 # Dependencies to place after the objects being linked to create a
10596 postdeps=$lt_postdeps
10598 # The library search path used internally by the compiler when linking
10599 # a shared library.
10600 compiler_lib_search_path=$lt_compiler_lib_search_path
10602 # Method to check whether dependent libraries are shared objects.
10603 deplibs_check_method=$lt_deplibs_check_method
10605 # Command to use when deplibs_check_method == file_magic.
10606 file_magic_cmd=$lt_file_magic_cmd
10608 # Flag that allows shared libraries with undefined symbols to be built.
10609 allow_undefined_flag=$lt_allow_undefined_flag
10611 # Flag that forces no undefined symbols.
10612 no_undefined_flag=$lt_no_undefined_flag
10614 # Commands used to finish a libtool library installation in a directory.
10615 finish_cmds=$lt_finish_cmds
10617 # Same as above, but a single script fragment to be evaled but not shown.
10618 finish_eval=$lt_finish_eval
10620 # Take the output of nm and produce a listing of raw symbols and C names.
10621 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10623 # Transform the output of nm in a proper C declaration
10624 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10626 # Transform the output of nm in a C name address pair
10627 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10629 # This is the shared library runtime path variable.
10630 runpath_var=$runpath_var
10632 # This is the shared library path variable.
10633 shlibpath_var=$shlibpath_var
10635 # Is shlibpath searched before the hard-coded library search path?
10636 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10638 # How to hardcode a shared library path into an executable.
10639 hardcode_action=$hardcode_action
10641 # Whether we should hardcode library paths into libraries.
10642 hardcode_into_libs=$hardcode_into_libs
10644 # Flag to hardcode \$libdir into a binary during linking.
10645 # This must work even if \$libdir does not exist.
10646 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10648 # If ld is used when linking, flag to hardcode \$libdir into
10649 # a binary during linking. This must work even if \$libdir does
10651 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10653 # Whether we need a single -rpath flag with a separated argument.
10654 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10656 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10657 # resulting binary.
10658 hardcode_direct=$hardcode_direct
10660 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10661 # resulting binary.
10662 hardcode_minus_L=$hardcode_minus_L
10664 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10665 # the resulting binary.
10666 hardcode_shlibpath_var=$hardcode_shlibpath_var
10668 # Set to yes if building a shared library automatically hardcodes DIR into the library
10669 # and all subsequent libraries and executables linked against it.
10670 hardcode_automatic=$hardcode_automatic
10672 # Variables whose values should be saved in libtool wrapper scripts and
10673 # restored at relink time.
10674 variables_saved_for_relink="$variables_saved_for_relink"
10676 # Whether libtool must link a program against all its dependency libraries.
10677 link_all_deplibs=$link_all_deplibs
10679 # Compile-time system search path for libraries
10680 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10682 # Run-time system search path for libraries
10683 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10685 # Fix the shell variable \$srcfile for the compiler.
10686 fix_srcfile_path="$fix_srcfile_path"
10688 # Set to yes if exported symbols are required.
10689 always_export_symbols=$always_export_symbols
10691 # The commands to list exported symbols.
10692 export_symbols_cmds=$lt_export_symbols_cmds
10694 # The commands to extract the exported symbol list from a shared archive.
10695 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10697 # Symbols that should not be listed in the preloaded symbols.
10698 exclude_expsyms=$lt_exclude_expsyms
10700 # Symbols that must always be exported.
10701 include_expsyms=$lt_include_expsyms
10703 # ### END LIBTOOL CONFIG
10710 cat <<\EOF >> "$cfgfile"
10712 # AIX sometimes has problems with the GCC collect2 program. For some
10713 # reason, if we set the COLLECT_NAMES environment variable, the problems
10714 # vanish in a puff of smoke.
10715 if test "X${COLLECT_NAMES+set}" != Xset; then
10717 export COLLECT_NAMES
10723 # We use sed instead of cat because bash on DJGPP gets confused if
10724 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10725 # text mode, it properly converts lines to CR/LF. This bash problem
10726 # is reportedly fixed, but why not run on old versions too?
10727 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10729 mv -f "$cfgfile" "$ofile" || \
10730 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10734 # If there is no Makefile yet, we rely on a make rule to execute
10735 # `config.status --recheck' to rerun these tests and create the
10736 # libtool script then.
10737 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10738 if test -f "$ltmain_in"; then
10739 test -f Makefile && make "$ltmain"
10745 ac_cpp='$CPP $CPPFLAGS'
10746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10753 # Check whether --with-tags was given.
10754 if test "${with_tags+set}" = set; then
10755 withval=$with_tags; tagnames="$withval"
10759 if test -f "$ltmain" && test -n "$tagnames"; then
10760 if test ! -f "${ofile}"; then
10761 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10762 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10765 if test -z "$LTCC"; then
10766 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10767 if test -z "$LTCC"; then
10768 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10769 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10771 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10772 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10775 if test -z "$LTCFLAGS"; then
10776 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10779 # Extract list of available tagged configurations in $ofile.
10780 # Note that this assumes the entire list is on one line.
10781 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10783 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10784 for tagname in $tagnames; do
10786 # Check whether tagname contains only valid characters
10787 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10789 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10790 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10791 { (exit 1); exit 1; }; }
10795 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10797 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10798 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10799 { (exit 1); exit 1; }; }
10802 # Update the list of available tags.
10803 if test -n "$tagname"; then
10804 echo appending configuration tag \"$tagname\" to $ofile
10808 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10809 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10810 (test "X$CXX" != "Xg++"))) ; then
10812 ac_cpp='$CXXCPP $CPPFLAGS'
10813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10820 archive_cmds_need_lc_CXX=no
10821 allow_undefined_flag_CXX=
10822 always_export_symbols_CXX=no
10823 archive_expsym_cmds_CXX=
10824 export_dynamic_flag_spec_CXX=
10825 hardcode_direct_CXX=no
10826 hardcode_libdir_flag_spec_CXX=
10827 hardcode_libdir_flag_spec_ld_CXX=
10828 hardcode_libdir_separator_CXX=
10829 hardcode_minus_L_CXX=no
10830 hardcode_shlibpath_var_CXX=unsupported
10831 hardcode_automatic_CXX=no
10833 module_expsym_cmds_CXX=
10834 link_all_deplibs_CXX=unknown
10835 old_archive_cmds_CXX=$old_archive_cmds
10836 no_undefined_flag_CXX=
10837 whole_archive_flag_spec_CXX=
10838 enable_shared_with_static_runtimes_CXX=no
10840 # Dependencies to place before and after the object being linked:
10841 predep_objects_CXX=
10842 postdep_objects_CXX=
10845 compiler_lib_search_path_CXX=
10847 # Source file extension for C++ test sources.
10850 # Object file extension for compiled C++ test sources.
10854 # Code to be used in simple compile tests
10855 lt_simple_compile_test_code="int some_variable = 0;\n"
10857 # Code to be used in simple link tests
10858 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10860 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10862 # If no C compiler was specified, use CC.
10865 # If no C compiler flags were specified, use CFLAGS.
10866 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10868 # Allow CC to be a program name with arguments.
10872 # save warnings/boilerplate of simple test code
10873 ac_outfile=conftest.$ac_objext
10874 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10875 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10876 _lt_compiler_boilerplate=`cat conftest.err`
10879 ac_outfile=conftest.$ac_objext
10880 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10881 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10882 _lt_linker_boilerplate=`cat conftest.err`
10886 # Allow CC to be a program name with arguments.
10891 lt_save_with_gnu_ld=$with_gnu_ld
10892 lt_save_path_LD=$lt_cv_path_LD
10893 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10894 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10896 $as_unset lt_cv_prog_gnu_ld
10898 if test -n "${lt_cv_path_LDCXX+set}"; then
10899 lt_cv_path_LD=$lt_cv_path_LDCXX
10901 $as_unset lt_cv_path_LD
10903 test -z "${LDCXX+set}" || LD=$LDCXX
10907 for cc_temp in $compiler""; do
10909 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10910 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10915 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10918 # We don't want -fno-exception wen compiling C++ code, so set the
10919 # no_builtin_flag separately
10920 if test "$GXX" = yes; then
10921 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10923 lt_prog_compiler_no_builtin_flag_CXX=
10926 if test "$GXX" = yes; then
10927 # Set up default GNU C++ configuration
10930 # Check whether --with-gnu-ld was given.
10931 if test "${with_gnu_ld+set}" = set; then
10932 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10938 if test "$GCC" = yes; then
10939 # Check if gcc -print-prog-name=ld gives a path.
10940 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10941 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10944 # gcc leaves a trailing carriage return which upsets mingw
10945 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10947 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10950 # Accept absolute paths.
10952 re_direlt='/[^/][^/]*/\.\./'
10953 # Canonicalize the pathname of ld
10954 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10955 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10956 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10958 test -z "$LD" && LD="$ac_prog"
10961 # If it fails, then pretend we aren't using GCC.
10965 # If it is relative, then search for the first ld in PATH.
10966 with_gnu_ld=unknown
10969 elif test "$with_gnu_ld" = yes; then
10970 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10971 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10973 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10974 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10976 if test "${lt_cv_path_LD+set}" = set; then
10977 echo $ECHO_N "(cached) $ECHO_C" >&6
10979 if test -z "$LD"; then
10980 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10981 for ac_dir in $PATH; do
10983 test -z "$ac_dir" && ac_dir=.
10984 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10985 lt_cv_path_LD="$ac_dir/$ac_prog"
10986 # Check to see if the program is GNU ld. I'd rather use --version,
10987 # but apparently some variants of GNU ld only accept -v.
10988 # Break only if it was the GNU/non-GNU ld that we prefer.
10989 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10990 *GNU* | *'with BFD'*)
10991 test "$with_gnu_ld" != no && break
10994 test "$with_gnu_ld" != yes && break
11001 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11005 LD="$lt_cv_path_LD"
11006 if test -n "$LD"; then
11007 { echo "$as_me:$LINENO: result: $LD" >&5
11008 echo "${ECHO_T}$LD" >&6; }
11010 { echo "$as_me:$LINENO: result: no" >&5
11011 echo "${ECHO_T}no" >&6; }
11013 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11014 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11015 { (exit 1); exit 1; }; }
11016 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11017 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11018 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11019 echo $ECHO_N "(cached) $ECHO_C" >&6
11021 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11022 case `$LD -v 2>&1 </dev/null` in
11023 *GNU* | *'with BFD'*)
11024 lt_cv_prog_gnu_ld=yes
11027 lt_cv_prog_gnu_ld=no
11031 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11032 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11033 with_gnu_ld=$lt_cv_prog_gnu_ld
11037 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11038 # archiving commands below assume that GNU ld is being used.
11039 if test "$with_gnu_ld" = yes; then
11040 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11041 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'
11043 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11044 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11046 # If archive_cmds runs LD, not CC, wlarc should be empty
11047 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11048 # investigate it a little bit more. (MM)
11051 # ancient GNU ld didn't support --whole-archive et. al.
11052 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11053 grep 'no-whole-archive' > /dev/null; then
11054 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11056 whole_archive_flag_spec_CXX=
11062 # A generic and very simple default shared library creation
11063 # command for GNU C++ for the case where it uses the native
11064 # linker, instead of GNU ld. If possible, this setting should
11065 # overridden to take advantage of the native linker features on
11066 # the platform it is being used on.
11067 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11070 # Commands to make compiler produce verbose output that lists
11071 # what "hidden" libraries, object files and flags are used when
11072 # linking a shared library.
11073 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11081 # PORTME: fill in a description of your system's C++ link characteristics
11082 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11083 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11087 # FIXME: insert proper C++ library support
11091 if test "$host_cpu" = ia64; then
11092 # On IA64, the linker does run time linking by default, so we don't
11093 # have to do anything special.
11094 aix_use_runtimelinking=no
11095 exp_sym_flag='-Bexport'
11098 aix_use_runtimelinking=no
11100 # Test if we are trying to use run time linking or normal
11101 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11102 # need to do runtime linking.
11103 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11104 for ld_flag in $LDFLAGS; do
11107 aix_use_runtimelinking=yes
11115 exp_sym_flag='-bexport'
11116 no_entry_flag='-bnoentry'
11119 # When large executables or shared objects are built, AIX ld can
11120 # have problems creating the table of contents. If linking a library
11121 # or program results in "error TOC overflow" add -mminimal-toc to
11122 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11123 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11125 archive_cmds_CXX=''
11126 hardcode_direct_CXX=yes
11127 hardcode_libdir_separator_CXX=':'
11128 link_all_deplibs_CXX=yes
11130 if test "$GXX" = yes; then
11131 case $host_os in aix4.[012]|aix4.[012].*)
11132 # We only want to do this on AIX 4.2 and lower, the check
11133 # below for broken collect2 doesn't work under 4.3+
11134 collect2name=`${CC} -print-prog-name=collect2`
11135 if test -f "$collect2name" && \
11136 strings "$collect2name" | grep resolve_lib_name >/dev/null
11138 # We have reworked collect2
11139 hardcode_direct_CXX=yes
11141 # We have old collect2
11142 hardcode_direct_CXX=unsupported
11143 # It fails to find uninstalled libraries when the uninstalled
11144 # path is not listed in the libpath. Setting hardcode_minus_L
11145 # to unsupported forces relinking
11146 hardcode_minus_L_CXX=yes
11147 hardcode_libdir_flag_spec_CXX='-L$libdir'
11148 hardcode_libdir_separator_CXX=
11152 shared_flag='-shared'
11153 if test "$aix_use_runtimelinking" = yes; then
11154 shared_flag="$shared_flag "'${wl}-G'
11158 if test "$host_cpu" = ia64; then
11159 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11160 # chokes on -Wl,-G. The following line is correct:
11163 if test "$aix_use_runtimelinking" = yes; then
11164 shared_flag='${wl}-G'
11166 shared_flag='${wl}-bM:SRE'
11171 # It seems that -bexpall does not export symbols beginning with
11172 # underscore (_), so it is better to generate a list of symbols to export.
11173 always_export_symbols_CXX=yes
11174 if test "$aix_use_runtimelinking" = yes; then
11175 # Warning - without using the other runtime loading flags (-brtl),
11176 # -berok will link without error, but may produce a broken library.
11177 allow_undefined_flag_CXX='-berok'
11178 # Determine the default libpath from the value encoded in an empty executable.
11179 cat >conftest.$ac_ext <<_ACEOF
11182 cat confdefs.h >>conftest.$ac_ext
11183 cat >>conftest.$ac_ext <<_ACEOF
11184 /* end confdefs.h. */
11194 rm -f conftest.$ac_objext conftest$ac_exeext
11195 if { (ac_try="$ac_link"
11196 case "(($ac_try" in
11197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11198 *) ac_try_echo=$ac_try;;
11200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11201 (eval "$ac_link") 2>conftest.er1
11203 grep -v '^ *+' conftest.er1 >conftest.err
11205 cat conftest.err >&5
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); } && {
11208 test -z "$ac_cxx_werror_flag" ||
11209 test ! -s conftest.err
11210 } && test -s conftest$ac_exeext &&
11211 $as_test_x conftest$ac_exeext; then
11213 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11215 # Check for a 64-bit object if we didn't find anything.
11216 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; }
11219 echo "$as_me: failed program was:" >&5
11220 sed 's/^/| /' conftest.$ac_ext >&5
11225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11226 conftest$ac_exeext conftest.$ac_ext
11227 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11229 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11231 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"
11233 if test "$host_cpu" = ia64; then
11234 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11235 allow_undefined_flag_CXX="-z nodefs"
11236 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"
11238 # Determine the default libpath from the value encoded in an empty executable.
11239 cat >conftest.$ac_ext <<_ACEOF
11242 cat confdefs.h >>conftest.$ac_ext
11243 cat >>conftest.$ac_ext <<_ACEOF
11244 /* end confdefs.h. */
11254 rm -f conftest.$ac_objext conftest$ac_exeext
11255 if { (ac_try="$ac_link"
11256 case "(($ac_try" in
11257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11258 *) ac_try_echo=$ac_try;;
11260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11261 (eval "$ac_link") 2>conftest.er1
11263 grep -v '^ *+' conftest.er1 >conftest.err
11265 cat conftest.err >&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); } && {
11268 test -z "$ac_cxx_werror_flag" ||
11269 test ! -s conftest.err
11270 } && test -s conftest$ac_exeext &&
11271 $as_test_x conftest$ac_exeext; then
11273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11275 # Check for a 64-bit object if we didn't find anything.
11276 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; }
11279 echo "$as_me: failed program was:" >&5
11280 sed 's/^/| /' conftest.$ac_ext >&5
11285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11286 conftest$ac_exeext conftest.$ac_ext
11287 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11289 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11290 # Warning - without using the other run time loading flags,
11291 # -berok will link without error, but may produce a broken library.
11292 no_undefined_flag_CXX=' ${wl}-bernotok'
11293 allow_undefined_flag_CXX=' ${wl}-berok'
11294 # Exported symbols can be pulled into shared objects from archives
11295 whole_archive_flag_spec_CXX='$convenience'
11296 archive_cmds_need_lc_CXX=yes
11297 # This is similar to how AIX traditionally builds its shared libraries.
11298 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'
11304 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11305 allow_undefined_flag_CXX=unsupported
11306 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11307 # support --undefined. This deserves some investigation. FIXME
11308 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11315 case $cc_basename in
11317 # FIXME: insert proper C++ library support
11323 cygwin* | mingw* | pw32*)
11324 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11325 # as there is no search path for DLLs.
11326 hardcode_libdir_flag_spec_CXX='-L$libdir'
11327 allow_undefined_flag_CXX=unsupported
11328 always_export_symbols_CXX=no
11329 enable_shared_with_static_runtimes_CXX=yes
11331 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11332 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'
11333 # If the export-symbols file already is a .def file (1st line
11334 # is EXPORTS), use it as is; otherwise, prepend...
11335 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11336 cp $export_symbols $output_objdir/$soname.def;
11338 echo EXPORTS > $output_objdir/$soname.def;
11339 cat $export_symbols >> $output_objdir/$soname.def;
11341 $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'
11346 darwin* | rhapsody*)
11348 rhapsody* | darwin1.[012])
11349 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11352 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11353 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11355 case ${MACOSX_DEPLOYMENT_TARGET} in
11357 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11360 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11366 archive_cmds_need_lc_CXX=no
11367 hardcode_direct_CXX=no
11368 hardcode_automatic_CXX=yes
11369 hardcode_shlibpath_var_CXX=unsupported
11370 whole_archive_flag_spec_CXX=''
11371 link_all_deplibs_CXX=yes
11373 if test "$GXX" = yes ; then
11374 lt_int_apple_cc_single_mod=no
11375 output_verbose_link_cmd='echo'
11376 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11377 lt_int_apple_cc_single_mod=yes
11379 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11380 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11382 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'
11384 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11385 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11386 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11387 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}'
11389 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}'
11391 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}'
11393 case $cc_basename in
11395 output_verbose_link_cmd='echo'
11396 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'
11397 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11398 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11399 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}'
11400 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}'
11410 case $cc_basename in
11412 # FIXME: insert proper C++ library support
11416 # Green Hills C++ Compiler
11417 # FIXME: insert proper C++ library support
11421 # FIXME: insert proper C++ library support
11427 # C++ shared libraries reported to be fairly broken before switch to ELF
11431 archive_cmds_need_lc_CXX=no
11433 freebsd* | dragonfly*)
11434 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11441 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11442 hardcode_libdir_separator_CXX=:
11443 export_dynamic_flag_spec_CXX='${wl}-E'
11444 hardcode_direct_CXX=yes
11445 hardcode_minus_L_CXX=yes # Not in the search PATH,
11446 # but as the default
11447 # location of the library.
11449 case $cc_basename in
11451 # FIXME: insert proper C++ library support
11455 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'
11456 # Commands to make compiler produce verbose output that lists
11457 # what "hidden" libraries, object files and flags are used when
11458 # linking a shared library.
11460 # There doesn't appear to be a way to prevent this compiler from
11461 # explicitly linking system object files so we need to strip them
11462 # from the output so that they don't get included in the library
11464 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'
11467 if test "$GXX" = yes; then
11468 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'
11470 # FIXME: insert proper C++ library support
11477 if test $with_gnu_ld = no; then
11478 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11479 hardcode_libdir_separator_CXX=:
11483 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11486 export_dynamic_flag_spec_CXX='${wl}-E'
11492 hardcode_direct_CXX=no
11493 hardcode_shlibpath_var_CXX=no
11496 hardcode_direct_CXX=yes
11497 hardcode_minus_L_CXX=yes # Not in the search PATH,
11498 # but as the default
11499 # location of the library.
11503 case $cc_basename in
11505 # FIXME: insert proper C++ library support
11511 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11514 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11517 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11520 # Commands to make compiler produce verbose output that lists
11521 # what "hidden" libraries, object files and flags are used when
11522 # linking a shared library.
11524 # There doesn't appear to be a way to prevent this compiler from
11525 # explicitly linking system object files so we need to strip them
11526 # from the output so that they don't get included in the library
11528 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'
11531 if test "$GXX" = yes; then
11532 if test $with_gnu_ld = no; then
11535 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11538 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11541 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'
11546 # FIXME: insert proper C++ library support
11553 hardcode_direct_CXX=no
11554 hardcode_shlibpath_var_CXX=no
11555 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11556 export_dynamic_flag_spec_CXX='${wl}-E'
11557 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11558 # Instead, shared libraries are loaded at an image base (0x10000000 by
11559 # default) and relocated if they conflict, which is a slow very memory
11560 # consuming and fragmenting process. To avoid this, we pick a random,
11561 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11562 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11563 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'
11564 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'
11567 case $cc_basename in
11570 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'
11572 # Archives containing C++ object files must be created using
11573 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11574 # necessary to make sure instantiated templates are included
11576 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11579 if test "$GXX" = yes; then
11580 if test "$with_gnu_ld" = no; then
11581 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'
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` -o $lib'
11586 link_all_deplibs_CXX=yes
11589 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11590 hardcode_libdir_separator_CXX=:
11592 linux* | k*bsd*-gnu)
11593 case $cc_basename in
11595 # Kuck and Associates, Inc. (KAI) C++ Compiler
11597 # KCC will only create a shared library if the output file
11598 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11599 # to its proper name (with version) after linking.
11600 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'
11601 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'
11602 # Commands to make compiler produce verbose output that lists
11603 # what "hidden" libraries, object files and flags are used when
11604 # linking a shared library.
11606 # There doesn't appear to be a way to prevent this compiler from
11607 # explicitly linking system object files so we need to strip them
11608 # from the output so that they don't get included in the library
11610 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'
11612 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11613 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11615 # Archives containing C++ object files must be created using
11616 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11617 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11622 # version 8.0 and above of icpc choke on multiply defined symbols
11623 # if we add $predep_objects and $postdep_objects, however 7.1 and
11624 # earlier do not add the objects themselves.
11625 case `$CC -V 2>&1` in
11627 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11628 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'
11630 *) # Version 8.0 or newer
11633 ia64*) tmp_idyn=' -i_dynamic';;
11635 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11636 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'
11639 archive_cmds_need_lc_CXX=no
11640 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11641 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11642 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11645 # Portland Group C++ compiler
11646 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11647 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'
11649 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11650 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11651 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'
11655 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11656 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'
11658 runpath_var=LD_RUN_PATH
11659 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11660 hardcode_libdir_separator_CXX=:
11662 # Commands to make compiler produce verbose output that lists
11663 # what "hidden" libraries, object files and flags are used when
11664 # linking a shared library.
11666 # There doesn't appear to be a way to prevent this compiler from
11667 # explicitly linking system object files so we need to strip them
11668 # from the output so that they don't get included in the library
11670 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'
11675 # FIXME: insert proper C++ library support
11679 # FIXME: insert proper C++ library support
11683 case $cc_basename in
11685 # FIXME: insert proper C++ library support
11689 # FIXME: insert proper C++ library support
11694 netbsd* | netbsdelf*-gnu)
11695 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11696 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11698 hardcode_libdir_flag_spec_CXX='-R$libdir'
11699 hardcode_direct_CXX=yes
11700 hardcode_shlibpath_var_CXX=no
11702 # Workaround some broken pre-1.5 toolchains
11703 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11706 # C++ shared libraries are fairly broken
11710 hardcode_direct_CXX=yes
11711 hardcode_shlibpath_var_CXX=no
11712 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11713 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11714 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11715 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11716 export_dynamic_flag_spec_CXX='${wl}-E'
11717 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11719 output_verbose_link_cmd='echo'
11722 case $cc_basename in
11724 # Kuck and Associates, Inc. (KAI) C++ Compiler
11726 # KCC will only create a shared library if the output file
11727 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11728 # to its proper name (with version) after linking.
11729 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'
11731 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11732 hardcode_libdir_separator_CXX=:
11734 # Archives containing C++ object files must be created using
11735 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11736 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11740 # Rational C++ 2.4.1
11741 # FIXME: insert proper C++ library support
11745 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11746 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'
11748 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11749 hardcode_libdir_separator_CXX=:
11751 # Commands to make compiler produce verbose output that lists
11752 # what "hidden" libraries, object files and flags are used when
11753 # linking a shared library.
11755 # There doesn't appear to be a way to prevent this compiler from
11756 # explicitly linking system object files so we need to strip them
11757 # from the output so that they don't get included in the library
11759 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'
11762 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11763 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11764 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'
11766 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11767 hardcode_libdir_separator_CXX=:
11769 # Commands to make compiler produce verbose output that lists
11770 # what "hidden" libraries, object files and flags are used when
11771 # linking a shared library.
11772 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11775 # FIXME: insert proper C++ library support
11782 case $cc_basename in
11784 # Kuck and Associates, Inc. (KAI) C++ Compiler
11786 # KCC will only create a shared library if the output file
11787 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11788 # to its proper name (with version) after linking.
11789 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11791 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11792 hardcode_libdir_separator_CXX=:
11794 # Archives containing C++ object files must be created using
11795 # the KAI C++ compiler.
11796 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11799 # Rational C++ 2.4.1
11800 # FIXME: insert proper C++ library support
11804 allow_undefined_flag_CXX=' -expect_unresolved \*'
11805 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'
11806 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11807 echo "-hidden">> $lib.exp~
11808 $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~
11811 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11812 hardcode_libdir_separator_CXX=:
11814 # Commands to make compiler produce verbose output that lists
11815 # what "hidden" libraries, object files and flags are used when
11816 # linking a shared library.
11818 # There doesn't appear to be a way to prevent this compiler from
11819 # explicitly linking system object files so we need to strip them
11820 # from the output so that they don't get included in the library
11822 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'
11825 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11826 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11827 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'
11829 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11830 hardcode_libdir_separator_CXX=:
11832 # Commands to make compiler produce verbose output that lists
11833 # what "hidden" libraries, object files and flags are used when
11834 # linking a shared library.
11835 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11838 # FIXME: insert proper C++ library support
11845 # FIXME: insert proper C++ library support
11849 case $cc_basename in
11852 # FIXME: insert proper C++ library support
11857 # FIXME: insert proper C++ library support
11861 # FIXME: insert proper C++ library support
11867 case $cc_basename in
11869 # Sun C++ 4.2, 5.x and Centerline C++
11870 archive_cmds_need_lc_CXX=yes
11871 no_undefined_flag_CXX=' -zdefs'
11872 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11873 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11874 $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'
11876 hardcode_libdir_flag_spec_CXX='-R$libdir'
11877 hardcode_shlibpath_var_CXX=no
11879 solaris2.[0-5] | solaris2.[0-5].*) ;;
11881 # The C++ compiler is used as linker so we must use $wl
11882 # flag to pass the commands to the underlying system
11883 # linker. We must also pass each convience library through
11884 # to the system linker between allextract/defaultextract.
11885 # The C++ compiler will combine linker options so we
11886 # cannot just pass the convience library names through
11888 # Supported since Solaris 2.6 (maybe 2.5.1?)
11889 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'
11892 link_all_deplibs_CXX=yes
11894 output_verbose_link_cmd='echo'
11896 # Archives containing C++ object files must be created using
11897 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11898 # necessary to make sure instantiated templates are included
11900 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11903 # Green Hills C++ Compiler
11904 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11906 # The C++ compiler must be used to create the archive.
11907 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11910 # GNU C++ compiler with Solaris linker
11911 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11912 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11913 if $CC --version | grep -v '^2\.7' > /dev/null; then
11914 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11915 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11916 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11918 # Commands to make compiler produce verbose output that lists
11919 # what "hidden" libraries, object files and flags are used when
11920 # linking a shared library.
11921 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11923 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11925 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11926 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11927 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11929 # Commands to make compiler produce verbose output that lists
11930 # what "hidden" libraries, object files and flags are used when
11931 # linking a shared library.
11932 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11935 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11940 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11941 no_undefined_flag_CXX='${wl}-z,text'
11942 archive_cmds_need_lc_CXX=no
11943 hardcode_shlibpath_var_CXX=no
11944 runpath_var='LD_RUN_PATH'
11946 case $cc_basename in
11948 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11949 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11952 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11953 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11957 sysv5* | sco3.2v5* | sco5v6*)
11958 # Note: We can NOT use -z defs as we might desire, because we do not
11959 # link with -lc, and that would cause any symbols used from libc to
11960 # always be unresolved, which means just about no library would
11961 # ever link correctly. If we're not using GNU ld we use -z text
11962 # though, which does catch some bad symbols but isn't as heavy-handed
11964 # For security reasons, it is highly recommended that you always
11965 # use absolute paths for naming shared libraries, and exclude the
11966 # DT_RUNPATH tag from executables and libraries. But doing so
11967 # requires that you compile everything twice, which is a pain.
11968 # So that behaviour is only enabled if SCOABSPATH is set to a
11969 # non-empty value in the environment. Most likely only useful for
11970 # creating official distributions of packages.
11971 # This is a hack until libtool officially supports absolute path
11972 # names for shared libraries.
11973 no_undefined_flag_CXX='${wl}-z,text'
11974 allow_undefined_flag_CXX='${wl}-z,nodefs'
11975 archive_cmds_need_lc_CXX=no
11976 hardcode_shlibpath_var_CXX=no
11977 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11978 hardcode_libdir_separator_CXX=':'
11979 link_all_deplibs_CXX=yes
11980 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11981 runpath_var='LD_RUN_PATH'
11983 case $cc_basename in
11985 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11986 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11989 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11990 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11995 case $cc_basename in
11997 # NonStop-UX NCC 3.20
11998 # FIXME: insert proper C++ library support
12002 # FIXME: insert proper C++ library support
12008 # FIXME: insert proper C++ library support
12012 # FIXME: insert proper C++ library support
12016 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12017 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12018 test "$ld_shlibs_CXX" = no && can_build_shared=no
12024 cat > conftest.$ac_ext <<EOF
12028 Foo (void) { a = 0; }
12034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12035 (eval $ac_compile) 2>&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; then
12039 # Parse the compiler output and extract the necessary
12040 # objects, libraries and library flags.
12042 # Sentinel used to keep track of whether or not we are before
12043 # the conftest object file.
12044 pre_test_object_deps_done=no
12046 # The `*' in the case matches for architectures that use `case' in
12047 # $output_verbose_cmd can trigger glob expansion during the loop
12048 # eval without this substitution.
12049 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12051 for p in `eval $output_verbose_link_cmd`; do
12055 # Some compilers place space between "-{L,R}" and the path.
12056 # Remove the space.
12057 if test $p = "-L" \
12058 || test $p = "-R"; then
12065 if test "$pre_test_object_deps_done" = no; then
12068 # Internal compiler library paths should come after those
12069 # provided the user. The postdeps already come after the
12070 # user supplied libs so there is no need to process them.
12071 if test -z "$compiler_lib_search_path_CXX"; then
12072 compiler_lib_search_path_CXX="${prev}${p}"
12074 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12077 # The "-l" case would never come before the object being
12078 # linked, so don't bother handling this case.
12081 if test -z "$postdeps_CXX"; then
12082 postdeps_CXX="${prev}${p}"
12084 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12090 # This assumes that the test object file only shows up
12091 # once in the compiler output.
12092 if test "$p" = "conftest.$objext"; then
12093 pre_test_object_deps_done=yes
12097 if test "$pre_test_object_deps_done" = no; then
12098 if test -z "$predep_objects_CXX"; then
12099 predep_objects_CXX="$p"
12101 predep_objects_CXX="$predep_objects_CXX $p"
12104 if test -z "$postdep_objects_CXX"; then
12105 postdep_objects_CXX="$p"
12107 postdep_objects_CXX="$postdep_objects_CXX $p"
12112 *) ;; # Ignore the rest.
12120 echo "libtool.m4: error: problem compiling CXX test program"
12123 $rm -f confest.$objext
12125 # PORTME: override above test on systems where it is broken
12128 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12129 # hack all around it, let's just trust "g++" to DTRT.
12130 predep_objects_CXX=
12131 postdep_objects_CXX=
12136 case $cc_basename in
12138 # Adding this requires a known-good setup of shared libraries for
12139 # Sun compiler versions before 5.6, else PIC objects from an old
12140 # archive will be linked into the output, leading to subtle bugs.
12141 postdeps_CXX='-lCstd -lCrun'
12148 case " $postdeps_CXX " in
12149 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12152 lt_prog_compiler_wl_CXX=
12153 lt_prog_compiler_pic_CXX=
12154 lt_prog_compiler_static_CXX=
12156 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12157 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12159 # C++ specific cases for pic, static, wl, etc.
12160 if test "$GXX" = yes; then
12161 lt_prog_compiler_wl_CXX='-Wl,'
12162 lt_prog_compiler_static_CXX='-static'
12166 # All AIX code is PIC.
12167 if test "$host_cpu" = ia64; then
12168 # AIX 5 now supports IA64 processor
12169 lt_prog_compiler_static_CXX='-Bstatic'
12173 # FIXME: we need at least 68020 code to build shared libraries, but
12174 # adding the `-m68020' flag to GCC prevents building anything better,
12176 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12178 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12179 # PIC is the default for these OSes.
12181 mingw* | os2* | pw32*)
12182 # This hack is so that the source file can tell whether it is being
12183 # built for inclusion in a dll (and should export symbols for example).
12184 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12186 darwin* | rhapsody*)
12187 # PIC is the default on this platform
12188 # Common symbols not allowed in MH_DYLIB files
12189 lt_prog_compiler_pic_CXX='-fno-common'
12192 # DJGPP does not support shared libraries at all
12193 lt_prog_compiler_pic_CXX=
12196 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12197 # Instead, we relocate shared libraries at runtime.
12200 if test -d /usr/nec; then
12201 lt_prog_compiler_pic_CXX=-Kconform_pic
12205 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12206 # not for PA HP-UX.
12211 lt_prog_compiler_pic_CXX='-fPIC'
12216 lt_prog_compiler_pic_CXX='-fPIC'
12222 # All AIX code is PIC.
12223 if test "$host_cpu" = ia64; then
12224 # AIX 5 now supports IA64 processor
12225 lt_prog_compiler_static_CXX='-Bstatic'
12227 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12231 case $cc_basename in
12233 # Green Hills C++ Compiler
12234 # _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"
12239 # PIC is the default on this platform
12240 # Common symbols not allowed in MH_DYLIB files
12241 case $cc_basename in
12243 lt_prog_compiler_pic_CXX='-qnocommon'
12244 lt_prog_compiler_wl_CXX='-Wl,'
12249 case $cc_basename in
12251 lt_prog_compiler_pic_CXX='-KPIC'
12254 # Green Hills C++ Compiler
12255 lt_prog_compiler_pic_CXX='-pic'
12261 freebsd* | dragonfly*)
12262 # FreeBSD uses GNU C++
12264 hpux9* | hpux10* | hpux11*)
12265 case $cc_basename in
12267 lt_prog_compiler_wl_CXX='-Wl,'
12268 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12269 if test "$host_cpu" != ia64; then
12270 lt_prog_compiler_pic_CXX='+Z'
12274 lt_prog_compiler_wl_CXX='-Wl,'
12275 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12281 lt_prog_compiler_pic_CXX='+Z'
12290 # This is c89, which is MS Visual C++ (no shared libs)
12291 # Anyone wants to do a port?
12293 irix5* | irix6* | nonstopux*)
12294 case $cc_basename in
12296 lt_prog_compiler_wl_CXX='-Wl,'
12297 lt_prog_compiler_static_CXX='-non_shared'
12298 # CC pic flag -KPIC is the default.
12304 linux* | k*bsd*-gnu)
12305 case $cc_basename in
12308 lt_prog_compiler_wl_CXX='--backend -Wl,'
12309 lt_prog_compiler_pic_CXX='-fPIC'
12313 lt_prog_compiler_wl_CXX='-Wl,'
12314 lt_prog_compiler_pic_CXX='-KPIC'
12315 lt_prog_compiler_static_CXX='-static'
12318 # Portland Group C++ compiler.
12319 lt_prog_compiler_wl_CXX='-Wl,'
12320 lt_prog_compiler_pic_CXX='-fpic'
12321 lt_prog_compiler_static_CXX='-Bstatic'
12325 # Make sure the PIC flag is empty. It appears that all Alpha
12326 # Linux and Compaq Tru64 Unix objects are PIC.
12327 lt_prog_compiler_pic_CXX=
12328 lt_prog_compiler_static_CXX='-non_shared'
12339 case $cc_basename in
12341 lt_prog_compiler_pic_CXX='-W c,exportall'
12347 netbsd* | netbsdelf*-gnu)
12349 osf3* | osf4* | osf5*)
12350 case $cc_basename in
12352 lt_prog_compiler_wl_CXX='--backend -Wl,'
12355 # Rational C++ 2.4.1
12356 lt_prog_compiler_pic_CXX='-pic'
12359 # Digital/Compaq C++
12360 lt_prog_compiler_wl_CXX='-Wl,'
12361 # Make sure the PIC flag is empty. It appears that all Alpha
12362 # Linux and Compaq Tru64 Unix objects are PIC.
12363 lt_prog_compiler_pic_CXX=
12364 lt_prog_compiler_static_CXX='-non_shared'
12373 case $cc_basename in
12375 # Sun C++ 4.2, 5.x and Centerline C++
12376 lt_prog_compiler_pic_CXX='-KPIC'
12377 lt_prog_compiler_static_CXX='-Bstatic'
12378 lt_prog_compiler_wl_CXX='-Qoption ld '
12381 # Green Hills C++ Compiler
12382 lt_prog_compiler_pic_CXX='-PIC'
12389 case $cc_basename in
12392 lt_prog_compiler_pic_CXX='-pic'
12393 lt_prog_compiler_static_CXX='-Bstatic'
12397 lt_prog_compiler_pic_CXX='-pic'
12404 case $cc_basename in
12406 # NonStop-UX NCC 3.20
12407 lt_prog_compiler_pic_CXX='-KPIC'
12413 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12414 case $cc_basename in
12416 lt_prog_compiler_wl_CXX='-Wl,'
12417 lt_prog_compiler_pic_CXX='-KPIC'
12418 lt_prog_compiler_static_CXX='-Bstatic'
12425 lt_prog_compiler_can_build_shared_CXX=no
12430 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12431 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12434 # Check to make sure the PIC flag actually works.
12436 if test -n "$lt_prog_compiler_pic_CXX"; then
12438 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12439 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12440 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12443 lt_prog_compiler_pic_works_CXX=no
12444 ac_outfile=conftest.$ac_objext
12445 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12446 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12447 # Insert the option either (1) after the last *FLAGS variable, or
12448 # (2) before a word containing "conftest.", or (3) at the end.
12449 # Note that $ac_compile itself does not contain backslashes and begins
12450 # with a dollar sign (not a hyphen), so the echo should work correctly.
12451 # The option is referenced via a variable to avoid confusing sed.
12452 lt_compile=`echo "$ac_compile" | $SED \
12453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12455 -e 's:$: $lt_compiler_flag:'`
12456 (eval echo "\"\$as_me:12456: $lt_compile\"" >&5)
12457 (eval "$lt_compile" 2>conftest.err)
12459 cat conftest.err >&5
12460 echo "$as_me:12460: \$? = $ac_status" >&5
12461 if (exit $ac_status) && test -s "$ac_outfile"; then
12462 # The compiler can only warn and ignore the option if not recognized
12463 # So say no if there are warnings other than the usual output.
12464 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12466 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12467 lt_prog_compiler_pic_works_CXX=yes
12473 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12474 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12476 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12477 case $lt_prog_compiler_pic_CXX in
12479 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12482 lt_prog_compiler_pic_CXX=
12483 lt_prog_compiler_can_build_shared_CXX=no
12488 # For platforms which do not support PIC, -DPIC is meaningless:
12490 lt_prog_compiler_pic_CXX=
12493 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12498 # Check to make sure the static flag actually works.
12500 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12501 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12502 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12503 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12506 lt_prog_compiler_static_works_CXX=no
12507 save_LDFLAGS="$LDFLAGS"
12508 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12509 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12510 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12511 # The linker can only warn and ignore the option if not recognized
12512 # So say no if there are warnings
12513 if test -s conftest.err; then
12514 # Append any errors to the config.log.
12515 cat conftest.err 1>&5
12516 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12517 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12518 if diff conftest.exp conftest.er2 >/dev/null; then
12519 lt_prog_compiler_static_works_CXX=yes
12522 lt_prog_compiler_static_works_CXX=yes
12526 LDFLAGS="$save_LDFLAGS"
12529 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12530 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12532 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12535 lt_prog_compiler_static_CXX=
12539 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12540 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12541 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12542 echo $ECHO_N "(cached) $ECHO_C" >&6
12544 lt_cv_prog_compiler_c_o_CXX=no
12545 $rm -r conftest 2>/dev/null
12549 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12551 lt_compiler_flag="-o out/conftest2.$ac_objext"
12552 # Insert the option either (1) after the last *FLAGS variable, or
12553 # (2) before a word containing "conftest.", or (3) at the end.
12554 # Note that $ac_compile itself does not contain backslashes and begins
12555 # with a dollar sign (not a hyphen), so the echo should work correctly.
12556 lt_compile=`echo "$ac_compile" | $SED \
12557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12559 -e 's:$: $lt_compiler_flag:'`
12560 (eval echo "\"\$as_me:12560: $lt_compile\"" >&5)
12561 (eval "$lt_compile" 2>out/conftest.err)
12563 cat out/conftest.err >&5
12564 echo "$as_me:12564: \$? = $ac_status" >&5
12565 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12567 # The compiler can only warn and ignore the option if not recognized
12568 # So say no if there are warnings
12569 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12570 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12571 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12572 lt_cv_prog_compiler_c_o_CXX=yes
12577 # SGI C++ compiler will create directory out/ii_files/ for
12578 # template instantiation
12579 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12580 $rm out/* && rmdir out
12586 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12587 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12590 hard_links="nottested"
12591 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12592 # do not overwrite the value of need_locks provided by the user
12593 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12594 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12597 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12599 ln conftest.a conftest.b 2>&5 || hard_links=no
12600 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12601 { echo "$as_me:$LINENO: result: $hard_links" >&5
12602 echo "${ECHO_T}$hard_links" >&6; }
12603 if test "$hard_links" = no; then
12604 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12605 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12612 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12613 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12615 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12618 # If we're using GNU nm, then we don't want the "-C" option.
12619 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12620 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12621 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'
12623 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'
12627 export_symbols_cmds_CXX="$ltdll_cmds"
12630 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'
12632 linux* | k*bsd*-gnu)
12633 link_all_deplibs_CXX=no
12636 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12640 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12641 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12642 test "$ld_shlibs_CXX" = no && can_build_shared=no
12645 # Do we need to explicitly link libc?
12647 case "x$archive_cmds_need_lc_CXX" in
12649 # Assume -lc should be added
12650 archive_cmds_need_lc_CXX=yes
12652 if test "$enable_shared" = yes && test "$GCC" = yes; then
12653 case $archive_cmds_CXX in
12655 # FIXME: we may have to deal with multi-command sequences.
12658 # Test whether the compiler implicitly links with -lc since on some
12659 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12660 # to ld, don't add -lc before -lgcc.
12661 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12662 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12664 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12667 (eval $ac_compile) 2>&5
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); } 2>conftest.err; then
12673 libobjs=conftest.$ac_objext
12675 wl=$lt_prog_compiler_wl_CXX
12676 pic_flag=$lt_prog_compiler_pic_CXX
12682 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12683 allow_undefined_flag_CXX=
12684 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12685 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); }
12690 archive_cmds_need_lc_CXX=no
12692 archive_cmds_need_lc_CXX=yes
12694 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12696 cat conftest.err 1>&5
12699 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12700 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12707 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12708 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12709 library_names_spec=
12710 libname_spec='lib$name'
12714 postuninstall_cmds=
12718 shlibpath_overrides_runpath=unknown
12720 dynamic_linker="$host_os ld.so"
12721 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12722 if test "$GCC" = yes; then
12723 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12724 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12725 # if the path contains ";" then we assume it to be the separator
12726 # otherwise default to the standard path separator (i.e. ":") - it is
12727 # assumed that no part of a normal pathname contains ";" but that should
12728 # okay in the real world where ";" in dirpaths is itself problematic.
12729 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12731 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12734 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12736 need_lib_prefix=unknown
12737 hardcode_into_libs=no
12739 # when you set need_version to no, make sure it does not cause -set_version
12740 # flags to be left without arguments
12741 need_version=unknown
12746 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12747 shlibpath_var=LIBPATH
12749 # AIX 3 has no versioning support, so we append a major version to the name.
12750 soname_spec='${libname}${release}${shared_ext}$major'
12757 hardcode_into_libs=yes
12758 if test "$host_cpu" = ia64; then
12759 # AIX 5 supports IA64
12760 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12761 shlibpath_var=LD_LIBRARY_PATH
12763 # With GCC up to 2.95.x, collect2 would create an import file
12764 # for dependence libraries. The import file would start with
12765 # the line `#! .'. This would cause the generated library to
12766 # depend on `.', always an invalid library. This was fixed in
12767 # development snapshots of GCC prior to 3.0.
12769 aix4 | aix4.[01] | aix4.[01].*)
12770 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12772 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12775 can_build_shared=no
12779 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12780 # soname into executable. Probably we can add versioning support to
12781 # collect2, so additional links can be useful in future.
12782 if test "$aix_use_runtimelinking" = yes; then
12783 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12784 # instead of lib<name>.a to let people know that these are not
12785 # typical AIX shared libraries.
12786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12788 # We preserve .a as extension for shared libraries through AIX4.2
12789 # and later when we are not doing run time linking.
12790 library_names_spec='${libname}${release}.a $libname.a'
12791 soname_spec='${libname}${release}${shared_ext}$major'
12793 shlibpath_var=LIBPATH
12798 library_names_spec='$libname.ixlibrary $libname.a'
12799 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12800 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'
12804 library_names_spec='${libname}${shared_ext}'
12805 dynamic_linker="$host_os ld.so"
12806 shlibpath_var=LIBRARY_PATH
12812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12813 soname_spec='${libname}${release}${shared_ext}$major'
12814 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12815 shlibpath_var=LD_LIBRARY_PATH
12816 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12817 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12818 # the default ld.so.conf also contains /usr/contrib/lib and
12819 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12820 # libtool to hard-code these into programs
12823 cygwin* | mingw* | pw32*)
12824 version_type=windows
12829 case $GCC,$host_os in
12830 yes,cygwin* | yes,mingw* | yes,pw32*)
12831 library_names_spec='$libname.dll.a'
12832 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12833 postinstall_cmds='base_file=`basename \${file}`~
12834 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12835 dldir=$destdir/`dirname \$dlpath`~
12836 test -d \$dldir || mkdir -p \$dldir~
12837 $install_prog $dir/$dlname \$dldir/$dlname~
12838 chmod a+x \$dldir/$dlname'
12839 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12840 dlpath=$dir/\$dldll~
12842 shlibpath_overrides_runpath=yes
12846 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12847 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12848 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12851 # MinGW DLLs use traditional 'lib' prefix
12852 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12853 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12854 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12855 # It is most probably a Windows format PATH printed by
12856 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12857 # path with ; separators, and with drive letters. We can handle the
12858 # drive letters (cygwin fileutils understands them), so leave them,
12859 # especially as we might pass files found there to a mingw objdump,
12860 # which wouldn't understand a cygwinified path. Ahh.
12861 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12867 # pw32 DLLs use 'pw' prefix rather than 'lib'
12868 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12874 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12877 dynamic_linker='Win32 ld.exe'
12878 # FIXME: first we should search . and the directory the executable is in
12882 darwin* | rhapsody*)
12883 dynamic_linker="$host_os dyld"
12884 version_type=darwin
12887 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12888 soname_spec='${libname}${release}${major}$shared_ext'
12889 shlibpath_overrides_runpath=yes
12890 shlibpath_var=DYLD_LIBRARY_PATH
12891 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12892 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12893 if test "$GCC" = yes; then
12894 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"`
12896 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12898 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12906 soname_spec='${libname}${release}${shared_ext}$major'
12907 shlibpath_var=LD_LIBRARY_PATH
12914 freebsd* | dragonfly*)
12915 # DragonFly does not have aout. When/if they implement a new
12916 # versioning mechanism, adjust this.
12917 if test -x /usr/bin/objformat; then
12918 objformat=`/usr/bin/objformat`
12921 freebsd[123]*) objformat=aout ;;
12922 *) objformat=elf ;;
12925 version_type=freebsd-$objformat
12926 case $version_type in
12928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12933 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12937 shlibpath_var=LD_LIBRARY_PATH
12940 shlibpath_overrides_runpath=yes
12942 freebsd3.[01]* | freebsdelf3.[01]*)
12943 shlibpath_overrides_runpath=yes
12944 hardcode_into_libs=yes
12946 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12947 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12948 shlibpath_overrides_runpath=no
12949 hardcode_into_libs=yes
12951 freebsd*) # from 4.6 on
12952 shlibpath_overrides_runpath=yes
12953 hardcode_into_libs=yes
12962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12963 soname_spec='${libname}${release}${shared_ext}$major'
12964 shlibpath_var=LD_LIBRARY_PATH
12965 hardcode_into_libs=yes
12968 hpux9* | hpux10* | hpux11*)
12969 # Give a soname corresponding to the major version so that dld.sl refuses to
12970 # link against other versions.
12977 hardcode_into_libs=yes
12978 dynamic_linker="$host_os dld.so"
12979 shlibpath_var=LD_LIBRARY_PATH
12980 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12982 soname_spec='${libname}${release}${shared_ext}$major'
12983 if test "X$HPUX_IA64_MODE" = X32; then
12984 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12986 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12988 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12992 hardcode_into_libs=yes
12993 dynamic_linker="$host_os dld.sl"
12994 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12995 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12997 soname_spec='${libname}${release}${shared_ext}$major'
12998 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13003 dynamic_linker="$host_os dld.sl"
13004 shlibpath_var=SHLIB_PATH
13005 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13007 soname_spec='${libname}${release}${shared_ext}$major'
13010 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13011 postinstall_cmds='chmod 555 $lib'
13018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13019 soname_spec='${libname}${release}${shared_ext}$major'
13020 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13021 shlibpath_var=LD_LIBRARY_PATH
13022 shlibpath_overrides_runpath=no
13023 hardcode_into_libs=yes
13026 irix5* | irix6* | nonstopux*)
13028 nonstopux*) version_type=nonstopux ;;
13030 if test "$lt_cv_prog_gnu_ld" = yes; then
13038 soname_spec='${libname}${release}${shared_ext}$major'
13039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13041 irix5* | nonstopux*)
13042 libsuff= shlibsuff=
13045 case $LD in # libtool.m4 will add one of these switches to LD
13046 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13047 libsuff= shlibsuff= libmagic=32-bit;;
13048 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13049 libsuff=32 shlibsuff=N32 libmagic=N32;;
13050 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13051 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13052 *) libsuff= shlibsuff= libmagic=never-match;;
13056 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13057 shlibpath_overrides_runpath=no
13058 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13059 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13060 hardcode_into_libs=yes
13063 # No shared lib support for Linux oldld, aout, or coff.
13064 linux*oldld* | linux*aout* | linux*coff*)
13068 # This must be Linux ELF.
13069 linux* | k*bsd*-gnu)
13073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13074 soname_spec='${libname}${release}${shared_ext}$major'
13075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13076 shlibpath_var=LD_LIBRARY_PATH
13077 shlibpath_overrides_runpath=no
13078 # This implies no fast_install, which is unacceptable.
13079 # Some rework will be needed to allow for fast_install
13080 # before this can be enabled.
13081 hardcode_into_libs=yes
13083 # Append ld.so.conf contents to the search path
13084 if test -f /etc/ld.so.conf; then
13085 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' ' '`
13086 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13089 # We used to test for /lib/ld.so.1 and disable shared libraries on
13090 # powerpc, because MkLinux only supported shared libraries with the
13091 # GNU dynamic linker. Since this was broken with cross compilers,
13092 # most powerpc-linux boxes support dynamic linking these days and
13093 # people can always --disable-shared, the test was removed, and we
13094 # assume the GNU/Linux dynamic linker is in use.
13095 dynamic_linker='GNU/Linux ld.so'
13102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13103 soname_spec='${libname}${release}${shared_ext}$major'
13104 shlibpath_var=LD_LIBRARY_PATH
13105 shlibpath_overrides_runpath=no
13106 hardcode_into_libs=yes
13107 dynamic_linker='NetBSD ld.elf_so'
13114 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13117 dynamic_linker='NetBSD (a.out) ld.so'
13119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13120 soname_spec='${libname}${release}${shared_ext}$major'
13121 dynamic_linker='NetBSD ld.elf_so'
13123 shlibpath_var=LD_LIBRARY_PATH
13124 shlibpath_overrides_runpath=yes
13125 hardcode_into_libs=yes
13130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13131 shlibpath_var=LD_LIBRARY_PATH
13132 shlibpath_overrides_runpath=yes
13139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13140 soname_spec='${libname}${release}${shared_ext}$major'
13141 shlibpath_var=LD_LIBRARY_PATH
13142 shlibpath_overrides_runpath=yes
13147 sys_lib_dlsearch_path_spec="/usr/lib"
13149 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13151 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13152 *) need_version=no ;;
13154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13156 shlibpath_var=LD_LIBRARY_PATH
13157 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13159 openbsd2.[89] | openbsd2.[89].*)
13160 shlibpath_overrides_runpath=no
13163 shlibpath_overrides_runpath=yes
13167 shlibpath_overrides_runpath=yes
13172 libname_spec='$name'
13175 library_names_spec='$libname${shared_ext} $libname.a'
13176 dynamic_linker='OS/2 ld.exe'
13177 shlibpath_var=LIBPATH
13180 osf3* | osf4* | osf5*)
13184 soname_spec='${libname}${release}${shared_ext}$major'
13185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13186 shlibpath_var=LD_LIBRARY_PATH
13187 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13188 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13196 soname_spec='${libname}${release}${shared_ext}$major'
13197 shlibpath_var=LD_LIBRARY_PATH
13198 shlibpath_overrides_runpath=yes
13199 hardcode_into_libs=yes
13200 # ldd complains unless libraries are executable
13201 postinstall_cmds='chmod +x $lib'
13206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13207 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13208 shlibpath_var=LD_LIBRARY_PATH
13209 shlibpath_overrides_runpath=yes
13210 if test "$with_gnu_ld" = yes; then
13218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13219 soname_spec='${libname}${release}${shared_ext}$major'
13220 shlibpath_var=LD_LIBRARY_PATH
13221 case $host_vendor in
13223 shlibpath_overrides_runpath=no
13225 export_dynamic_flag_spec='${wl}-Blargedynsym'
13226 runpath_var=LD_RUN_PATH
13234 shlibpath_overrides_runpath=no
13235 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13241 if test -d /usr/nec ;then
13243 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13244 soname_spec='$libname${shared_ext}.$major'
13245 shlibpath_var=LD_LIBRARY_PATH
13249 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13250 version_type=freebsd-elf
13253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13254 soname_spec='${libname}${release}${shared_ext}$major'
13255 shlibpath_var=LD_LIBRARY_PATH
13256 hardcode_into_libs=yes
13257 if test "$with_gnu_ld" = yes; then
13258 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13259 shlibpath_overrides_runpath=no
13261 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13262 shlibpath_overrides_runpath=yes
13265 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13269 sys_lib_dlsearch_path_spec='/usr/lib'
13274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13275 soname_spec='${libname}${release}${shared_ext}$major'
13276 shlibpath_var=LD_LIBRARY_PATH
13283 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13284 echo "${ECHO_T}$dynamic_linker" >&6; }
13285 test "$dynamic_linker" = no && can_build_shared=no
13287 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13288 if test "$GCC" = yes; then
13289 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13292 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13293 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13294 hardcode_action_CXX=
13295 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13296 test -n "$runpath_var_CXX" || \
13297 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13299 # We can hardcode non-existant directories.
13300 if test "$hardcode_direct_CXX" != no &&
13301 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13302 # have to relink, otherwise we might link with an installed library
13303 # when we should be linking with a yet-to-be-installed one
13304 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13305 test "$hardcode_minus_L_CXX" != no; then
13306 # Linking always hardcodes the temporary library directory.
13307 hardcode_action_CXX=relink
13309 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13310 hardcode_action_CXX=immediate
13313 # We cannot hardcode anything, or else we can only hardcode existing
13315 hardcode_action_CXX=unsupported
13317 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13318 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13320 if test "$hardcode_action_CXX" = relink; then
13321 # Fast installation is not supported
13322 enable_fast_install=no
13323 elif test "$shlibpath_overrides_runpath" = yes ||
13324 test "$enable_shared" = no; then
13325 # Fast installation is not necessary
13326 enable_fast_install=needless
13330 # The else clause should only fire when bootstrapping the
13331 # libtool distribution, otherwise you forgot to ship ltmain.sh
13332 # with your package, and you will get complaints that there are
13333 # no rules to generate ltmain.sh.
13334 if test -f "$ltmain"; then
13335 # See if we are running on zsh, and set the options which allow our commands through
13336 # without removal of \ escapes.
13337 if test -n "${ZSH_VERSION+set}" ; then
13338 setopt NO_GLOB_SUBST
13340 # Now quote all the things that may contain metacharacters while being
13341 # careful not to overquote the AC_SUBSTed values. We take copies of the
13342 # variables and quote the copies for generation of the libtool script.
13343 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13345 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13346 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13347 deplibs_check_method reload_flag reload_cmds need_locks \
13348 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13349 lt_cv_sys_global_symbol_to_c_name_address \
13350 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13351 old_postinstall_cmds old_postuninstall_cmds \
13355 lt_prog_compiler_wl_CXX \
13356 lt_prog_compiler_pic_CXX \
13357 lt_prog_compiler_static_CXX \
13358 lt_prog_compiler_no_builtin_flag_CXX \
13359 export_dynamic_flag_spec_CXX \
13360 thread_safe_flag_spec_CXX \
13361 whole_archive_flag_spec_CXX \
13362 enable_shared_with_static_runtimes_CXX \
13363 old_archive_cmds_CXX \
13364 old_archive_from_new_cmds_CXX \
13365 predep_objects_CXX \
13366 postdep_objects_CXX \
13369 compiler_lib_search_path_CXX \
13371 archive_expsym_cmds_CXX \
13372 postinstall_cmds_CXX \
13373 postuninstall_cmds_CXX \
13374 old_archive_from_expsyms_cmds_CXX \
13375 allow_undefined_flag_CXX \
13376 no_undefined_flag_CXX \
13377 export_symbols_cmds_CXX \
13378 hardcode_libdir_flag_spec_CXX \
13379 hardcode_libdir_flag_spec_ld_CXX \
13380 hardcode_libdir_separator_CXX \
13381 hardcode_automatic_CXX \
13383 module_expsym_cmds_CXX \
13384 lt_cv_prog_compiler_c_o_CXX \
13385 exclude_expsyms_CXX \
13386 include_expsyms_CXX; do
13389 old_archive_cmds_CXX | \
13390 old_archive_from_new_cmds_CXX | \
13391 archive_cmds_CXX | \
13392 archive_expsym_cmds_CXX | \
13393 module_cmds_CXX | \
13394 module_expsym_cmds_CXX | \
13395 old_archive_from_expsyms_cmds_CXX | \
13396 export_symbols_cmds_CXX | \
13397 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13398 postinstall_cmds | postuninstall_cmds | \
13399 old_postinstall_cmds | old_postuninstall_cmds | \
13400 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13401 # Double-quote double-evaled strings.
13402 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13405 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13411 *'\$0 --fallback-echo"')
13412 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13418 cat <<__EOF__ >> "$cfgfile"
13419 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13421 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13423 # Shell to use when invoking shell scripts.
13426 # Whether or not to build shared libraries.
13427 build_libtool_libs=$enable_shared
13429 # Whether or not to build static libraries.
13430 build_old_libs=$enable_static
13432 # Whether or not to add -lc for building shared libraries.
13433 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13435 # Whether or not to disallow shared libs when runtime libs are static
13436 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13438 # Whether or not to optimize for fast installation.
13439 fast_install=$enable_fast_install
13442 host_alias=$host_alias
13446 # The build system.
13447 build_alias=$build_alias
13451 # An echo program that does not interpret backslashes.
13456 AR_FLAGS=$lt_AR_FLAGS
13461 # LTCC compiler flags.
13462 LTCFLAGS=$lt_LTCFLAGS
13464 # A language-specific compiler.
13465 CC=$lt_compiler_CXX
13467 # Is the compiler the GNU C compiler?
13473 # The linker used to build libraries.
13476 # Whether we need hard or soft links.
13479 # A BSD-compatible nm program.
13482 # A symbol stripping program
13485 # Used to examine libraries when file_magic_cmd begins "file"
13486 MAGIC_CMD=$MAGIC_CMD
13488 # Used on cygwin: DLL creation program.
13491 # Used on cygwin: object dumper.
13494 # Used on cygwin: assembler.
13497 # The name of the directory that contains temporary libtool files.
13500 # How to create reloadable object files.
13501 reload_flag=$lt_reload_flag
13502 reload_cmds=$lt_reload_cmds
13504 # How to pass a linker flag through the compiler.
13505 wl=$lt_lt_prog_compiler_wl_CXX
13507 # Object file suffix (normally "o").
13508 objext="$ac_objext"
13510 # Old archive suffix (normally "a").
13513 # Shared library suffix (normally ".so").
13514 shrext_cmds='$shrext_cmds'
13516 # Executable file suffix (normally "").
13519 # Additional compiler flags for building library objects.
13520 pic_flag=$lt_lt_prog_compiler_pic_CXX
13523 # What is the maximum length of a command?
13524 max_cmd_len=$lt_cv_sys_max_cmd_len
13526 # Does compiler simultaneously support -c and -o options?
13527 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13529 # Must we lock files when doing compilation?
13530 need_locks=$lt_need_locks
13532 # Do we need the lib prefix for modules?
13533 need_lib_prefix=$need_lib_prefix
13535 # Do we need a version for libraries?
13536 need_version=$need_version
13538 # Whether dlopen is supported.
13539 dlopen_support=$enable_dlopen
13541 # Whether dlopen of programs is supported.
13542 dlopen_self=$enable_dlopen_self
13544 # Whether dlopen of statically linked programs is supported.
13545 dlopen_self_static=$enable_dlopen_self_static
13547 # Compiler flag to prevent dynamic linking.
13548 link_static_flag=$lt_lt_prog_compiler_static_CXX
13550 # Compiler flag to turn off builtin functions.
13551 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13553 # Compiler flag to allow reflexive dlopens.
13554 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13556 # Compiler flag to generate shared objects directly from archives.
13557 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13559 # Compiler flag to generate thread-safe objects.
13560 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13562 # Library versioning type.
13563 version_type=$version_type
13565 # Format of library name prefix.
13566 libname_spec=$lt_libname_spec
13568 # List of archive names. First name is the real one, the rest are links.
13569 # The last name is the one that the linker finds with -lNAME.
13570 library_names_spec=$lt_library_names_spec
13572 # The coded name of the library, if different from the real name.
13573 soname_spec=$lt_soname_spec
13575 # Commands used to build and install an old-style archive.
13577 old_archive_cmds=$lt_old_archive_cmds_CXX
13578 old_postinstall_cmds=$lt_old_postinstall_cmds
13579 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13581 # Create an old-style archive from a shared archive.
13582 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13584 # Create a temporary old-style archive to link instead of a shared archive.
13585 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13587 # Commands used to build and install a shared archive.
13588 archive_cmds=$lt_archive_cmds_CXX
13589 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13590 postinstall_cmds=$lt_postinstall_cmds
13591 postuninstall_cmds=$lt_postuninstall_cmds
13593 # Commands used to build a loadable module (assumed same as above if empty)
13594 module_cmds=$lt_module_cmds_CXX
13595 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13597 # Commands to strip libraries.
13598 old_striplib=$lt_old_striplib
13599 striplib=$lt_striplib
13601 # Dependencies to place before the objects being linked to create a
13603 predep_objects=$lt_predep_objects_CXX
13605 # Dependencies to place after the objects being linked to create a
13607 postdep_objects=$lt_postdep_objects_CXX
13609 # Dependencies to place before the objects being linked to create a
13611 predeps=$lt_predeps_CXX
13613 # Dependencies to place after the objects being linked to create a
13615 postdeps=$lt_postdeps_CXX
13617 # The library search path used internally by the compiler when linking
13618 # a shared library.
13619 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13621 # Method to check whether dependent libraries are shared objects.
13622 deplibs_check_method=$lt_deplibs_check_method
13624 # Command to use when deplibs_check_method == file_magic.
13625 file_magic_cmd=$lt_file_magic_cmd
13627 # Flag that allows shared libraries with undefined symbols to be built.
13628 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13630 # Flag that forces no undefined symbols.
13631 no_undefined_flag=$lt_no_undefined_flag_CXX
13633 # Commands used to finish a libtool library installation in a directory.
13634 finish_cmds=$lt_finish_cmds
13636 # Same as above, but a single script fragment to be evaled but not shown.
13637 finish_eval=$lt_finish_eval
13639 # Take the output of nm and produce a listing of raw symbols and C names.
13640 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13642 # Transform the output of nm in a proper C declaration
13643 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13645 # Transform the output of nm in a C name address pair
13646 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13648 # This is the shared library runtime path variable.
13649 runpath_var=$runpath_var
13651 # This is the shared library path variable.
13652 shlibpath_var=$shlibpath_var
13654 # Is shlibpath searched before the hard-coded library search path?
13655 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13657 # How to hardcode a shared library path into an executable.
13658 hardcode_action=$hardcode_action_CXX
13660 # Whether we should hardcode library paths into libraries.
13661 hardcode_into_libs=$hardcode_into_libs
13663 # Flag to hardcode \$libdir into a binary during linking.
13664 # This must work even if \$libdir does not exist.
13665 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13667 # If ld is used when linking, flag to hardcode \$libdir into
13668 # a binary during linking. This must work even if \$libdir does
13670 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13672 # Whether we need a single -rpath flag with a separated argument.
13673 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13675 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13676 # resulting binary.
13677 hardcode_direct=$hardcode_direct_CXX
13679 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13680 # resulting binary.
13681 hardcode_minus_L=$hardcode_minus_L_CXX
13683 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13684 # the resulting binary.
13685 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13687 # Set to yes if building a shared library automatically hardcodes DIR into the library
13688 # and all subsequent libraries and executables linked against it.
13689 hardcode_automatic=$hardcode_automatic_CXX
13691 # Variables whose values should be saved in libtool wrapper scripts and
13692 # restored at relink time.
13693 variables_saved_for_relink="$variables_saved_for_relink"
13695 # Whether libtool must link a program against all its dependency libraries.
13696 link_all_deplibs=$link_all_deplibs_CXX
13698 # Compile-time system search path for libraries
13699 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13701 # Run-time system search path for libraries
13702 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13704 # Fix the shell variable \$srcfile for the compiler.
13705 fix_srcfile_path="$fix_srcfile_path_CXX"
13707 # Set to yes if exported symbols are required.
13708 always_export_symbols=$always_export_symbols_CXX
13710 # The commands to list exported symbols.
13711 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13713 # The commands to extract the exported symbol list from a shared archive.
13714 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13716 # Symbols that should not be listed in the preloaded symbols.
13717 exclude_expsyms=$lt_exclude_expsyms_CXX
13719 # Symbols that must always be exported.
13720 include_expsyms=$lt_include_expsyms_CXX
13722 # ### END LIBTOOL TAG CONFIG: $tagname
13728 # If there is no Makefile yet, we rely on a make rule to execute
13729 # `config.status --recheck' to rerun these tests and create the
13730 # libtool script then.
13731 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13732 if test -f "$ltmain_in"; then
13733 test -f Makefile && make "$ltmain"
13739 ac_cpp='$CPP $CPPFLAGS'
13740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13748 with_gnu_ldcxx=$with_gnu_ld
13749 with_gnu_ld=$lt_save_with_gnu_ld
13750 lt_cv_path_LDCXX=$lt_cv_path_LD
13751 lt_cv_path_LD=$lt_save_path_LD
13752 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13753 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13761 if test -n "$F77" && test "X$F77" != "Xno"; then
13764 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13765 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13766 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13769 archive_cmds_need_lc_F77=no
13770 allow_undefined_flag_F77=
13771 always_export_symbols_F77=no
13772 archive_expsym_cmds_F77=
13773 export_dynamic_flag_spec_F77=
13774 hardcode_direct_F77=no
13775 hardcode_libdir_flag_spec_F77=
13776 hardcode_libdir_flag_spec_ld_F77=
13777 hardcode_libdir_separator_F77=
13778 hardcode_minus_L_F77=no
13779 hardcode_automatic_F77=no
13781 module_expsym_cmds_F77=
13782 link_all_deplibs_F77=unknown
13783 old_archive_cmds_F77=$old_archive_cmds
13784 no_undefined_flag_F77=
13785 whole_archive_flag_spec_F77=
13786 enable_shared_with_static_runtimes_F77=no
13788 # Source file extension for f77 test sources.
13791 # Object file extension for compiled f77 test sources.
13795 # Code to be used in simple compile tests
13796 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13798 # Code to be used in simple link tests
13799 lt_simple_link_test_code=" program t\n end\n"
13801 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13803 # If no C compiler was specified, use CC.
13806 # If no C compiler flags were specified, use CFLAGS.
13807 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13809 # Allow CC to be a program name with arguments.
13813 # save warnings/boilerplate of simple test code
13814 ac_outfile=conftest.$ac_objext
13815 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13816 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13817 _lt_compiler_boilerplate=`cat conftest.err`
13820 ac_outfile=conftest.$ac_objext
13821 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13822 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13823 _lt_linker_boilerplate=`cat conftest.err`
13827 # Allow CC to be a program name with arguments.
13832 for cc_temp in $compiler""; do
13834 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13835 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13840 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13843 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13844 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13845 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13846 echo "${ECHO_T}$can_build_shared" >&6; }
13848 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13849 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13850 test "$can_build_shared" = "no" && enable_shared=no
13852 # On AIX, shared libraries and static libraries use the same namespace, and
13853 # are all built from PIC.
13856 test "$enable_shared" = yes && enable_static=no
13857 if test -n "$RANLIB"; then
13858 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13859 postinstall_cmds='$RANLIB $lib'
13863 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13864 test "$enable_shared" = yes && enable_static=no
13868 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13869 echo "${ECHO_T}$enable_shared" >&6; }
13871 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13872 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13873 # Make sure either enable_shared or enable_static is yes.
13874 test "$enable_shared" = yes || enable_static=yes
13875 { echo "$as_me:$LINENO: result: $enable_static" >&5
13876 echo "${ECHO_T}$enable_static" >&6; }
13881 lt_prog_compiler_wl_F77=
13882 lt_prog_compiler_pic_F77=
13883 lt_prog_compiler_static_F77=
13885 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13886 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13888 if test "$GCC" = yes; then
13889 lt_prog_compiler_wl_F77='-Wl,'
13890 lt_prog_compiler_static_F77='-static'
13894 # All AIX code is PIC.
13895 if test "$host_cpu" = ia64; then
13896 # AIX 5 now supports IA64 processor
13897 lt_prog_compiler_static_F77='-Bstatic'
13902 # FIXME: we need at least 68020 code to build shared libraries, but
13903 # adding the `-m68020' flag to GCC prevents building anything better,
13905 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13908 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13909 # PIC is the default for these OSes.
13912 mingw* | pw32* | os2*)
13913 # This hack is so that the source file can tell whether it is being
13914 # built for inclusion in a dll (and should export symbols for example).
13915 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13918 darwin* | rhapsody*)
13919 # PIC is the default on this platform
13920 # Common symbols not allowed in MH_DYLIB files
13921 lt_prog_compiler_pic_F77='-fno-common'
13925 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13926 # Instead, we relocate shared libraries at runtime.
13930 # Just because we use GCC doesn't mean we suddenly get shared libraries
13931 # on systems that don't support them.
13932 lt_prog_compiler_can_build_shared_F77=no
13937 if test -d /usr/nec; then
13938 lt_prog_compiler_pic_F77=-Kconform_pic
13943 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13944 # not for PA HP-UX.
13950 lt_prog_compiler_pic_F77='-fPIC'
13956 lt_prog_compiler_pic_F77='-fPIC'
13960 # PORTME Check for flag to pass linker flags through the system compiler.
13963 lt_prog_compiler_wl_F77='-Wl,'
13964 if test "$host_cpu" = ia64; then
13965 # AIX 5 now supports IA64 processor
13966 lt_prog_compiler_static_F77='-Bstatic'
13968 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13972 # PIC is the default on this platform
13973 # Common symbols not allowed in MH_DYLIB files
13974 case $cc_basename in
13976 lt_prog_compiler_pic_F77='-qnocommon'
13977 lt_prog_compiler_wl_F77='-Wl,'
13982 mingw* | pw32* | os2*)
13983 # This hack is so that the source file can tell whether it is being
13984 # built for inclusion in a dll (and should export symbols for example).
13985 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13988 hpux9* | hpux10* | hpux11*)
13989 lt_prog_compiler_wl_F77='-Wl,'
13990 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13991 # not for PA HP-UX.
13997 lt_prog_compiler_pic_F77='+Z'
14000 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14001 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14004 irix5* | irix6* | nonstopux*)
14005 lt_prog_compiler_wl_F77='-Wl,'
14006 # PIC (with -KPIC) is the default.
14007 lt_prog_compiler_static_F77='-non_shared'
14011 lt_prog_compiler_pic_F77='-KPIC'
14012 lt_prog_compiler_static_F77='-Bstatic'
14015 linux* | k*bsd*-gnu)
14016 case $cc_basename in
14018 lt_prog_compiler_wl_F77='-Wl,'
14019 lt_prog_compiler_pic_F77='-KPIC'
14020 lt_prog_compiler_static_F77='-static'
14022 pgcc* | pgf77* | pgf90* | pgf95*)
14023 # Portland Group compilers (*not* the Pentium gcc compiler,
14024 # which looks to be a dead project)
14025 lt_prog_compiler_wl_F77='-Wl,'
14026 lt_prog_compiler_pic_F77='-fpic'
14027 lt_prog_compiler_static_F77='-Bstatic'
14030 lt_prog_compiler_wl_F77='-Wl,'
14031 # All Alpha code is PIC.
14032 lt_prog_compiler_static_F77='-non_shared'
14037 osf3* | osf4* | osf5*)
14038 lt_prog_compiler_wl_F77='-Wl,'
14039 # All OSF/1 code is PIC.
14040 lt_prog_compiler_static_F77='-non_shared'
14044 lt_prog_compiler_pic_F77='-KPIC'
14045 lt_prog_compiler_static_F77='-Bstatic'
14046 case $cc_basename in
14047 f77* | f90* | f95*)
14048 lt_prog_compiler_wl_F77='-Qoption ld ';;
14050 lt_prog_compiler_wl_F77='-Wl,';;
14055 lt_prog_compiler_wl_F77='-Qoption ld '
14056 lt_prog_compiler_pic_F77='-PIC'
14057 lt_prog_compiler_static_F77='-Bstatic'
14060 sysv4 | sysv4.2uw2* | sysv4.3*)
14061 lt_prog_compiler_wl_F77='-Wl,'
14062 lt_prog_compiler_pic_F77='-KPIC'
14063 lt_prog_compiler_static_F77='-Bstatic'
14067 if test -d /usr/nec ;then
14068 lt_prog_compiler_pic_F77='-Kconform_pic'
14069 lt_prog_compiler_static_F77='-Bstatic'
14073 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14074 lt_prog_compiler_wl_F77='-Wl,'
14075 lt_prog_compiler_pic_F77='-KPIC'
14076 lt_prog_compiler_static_F77='-Bstatic'
14080 lt_prog_compiler_wl_F77='-Wl,'
14081 lt_prog_compiler_can_build_shared_F77=no
14085 lt_prog_compiler_pic_F77='-pic'
14086 lt_prog_compiler_static_F77='-Bstatic'
14090 lt_prog_compiler_can_build_shared_F77=no
14095 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14096 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14099 # Check to make sure the PIC flag actually works.
14101 if test -n "$lt_prog_compiler_pic_F77"; then
14103 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14104 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14105 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14106 echo $ECHO_N "(cached) $ECHO_C" >&6
14108 lt_prog_compiler_pic_works_F77=no
14109 ac_outfile=conftest.$ac_objext
14110 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14111 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14112 # Insert the option either (1) after the last *FLAGS variable, or
14113 # (2) before a word containing "conftest.", or (3) at the end.
14114 # Note that $ac_compile itself does not contain backslashes and begins
14115 # with a dollar sign (not a hyphen), so the echo should work correctly.
14116 # The option is referenced via a variable to avoid confusing sed.
14117 lt_compile=`echo "$ac_compile" | $SED \
14118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14120 -e 's:$: $lt_compiler_flag:'`
14121 (eval echo "\"\$as_me:14121: $lt_compile\"" >&5)
14122 (eval "$lt_compile" 2>conftest.err)
14124 cat conftest.err >&5
14125 echo "$as_me:14125: \$? = $ac_status" >&5
14126 if (exit $ac_status) && test -s "$ac_outfile"; then
14127 # The compiler can only warn and ignore the option if not recognized
14128 # So say no if there are warnings other than the usual output.
14129 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14131 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14132 lt_prog_compiler_pic_works_F77=yes
14138 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14139 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14141 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14142 case $lt_prog_compiler_pic_F77 in
14144 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14147 lt_prog_compiler_pic_F77=
14148 lt_prog_compiler_can_build_shared_F77=no
14153 # For platforms which do not support PIC, -DPIC is meaningless:
14155 lt_prog_compiler_pic_F77=
14158 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14163 # Check to make sure the static flag actually works.
14165 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14166 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14167 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14168 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14169 echo $ECHO_N "(cached) $ECHO_C" >&6
14171 lt_prog_compiler_static_works_F77=no
14172 save_LDFLAGS="$LDFLAGS"
14173 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14174 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14175 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14176 # The linker can only warn and ignore the option if not recognized
14177 # So say no if there are warnings
14178 if test -s conftest.err; then
14179 # Append any errors to the config.log.
14180 cat conftest.err 1>&5
14181 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14182 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14183 if diff conftest.exp conftest.er2 >/dev/null; then
14184 lt_prog_compiler_static_works_F77=yes
14187 lt_prog_compiler_static_works_F77=yes
14191 LDFLAGS="$save_LDFLAGS"
14194 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14195 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14197 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14200 lt_prog_compiler_static_F77=
14204 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14205 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14206 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14207 echo $ECHO_N "(cached) $ECHO_C" >&6
14209 lt_cv_prog_compiler_c_o_F77=no
14210 $rm -r conftest 2>/dev/null
14214 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14216 lt_compiler_flag="-o out/conftest2.$ac_objext"
14217 # Insert the option either (1) after the last *FLAGS variable, or
14218 # (2) before a word containing "conftest.", or (3) at the end.
14219 # Note that $ac_compile itself does not contain backslashes and begins
14220 # with a dollar sign (not a hyphen), so the echo should work correctly.
14221 lt_compile=`echo "$ac_compile" | $SED \
14222 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14223 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14224 -e 's:$: $lt_compiler_flag:'`
14225 (eval echo "\"\$as_me:14225: $lt_compile\"" >&5)
14226 (eval "$lt_compile" 2>out/conftest.err)
14228 cat out/conftest.err >&5
14229 echo "$as_me:14229: \$? = $ac_status" >&5
14230 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14232 # The compiler can only warn and ignore the option if not recognized
14233 # So say no if there are warnings
14234 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14235 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14236 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14237 lt_cv_prog_compiler_c_o_F77=yes
14242 # SGI C++ compiler will create directory out/ii_files/ for
14243 # template instantiation
14244 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14245 $rm out/* && rmdir out
14251 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14252 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14255 hard_links="nottested"
14256 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14257 # do not overwrite the value of need_locks provided by the user
14258 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14259 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14262 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14264 ln conftest.a conftest.b 2>&5 || hard_links=no
14265 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14266 { echo "$as_me:$LINENO: result: $hard_links" >&5
14267 echo "${ECHO_T}$hard_links" >&6; }
14268 if test "$hard_links" = no; then
14269 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14270 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14277 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14278 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14281 allow_undefined_flag_F77=
14282 enable_shared_with_static_runtimes_F77=no
14284 archive_expsym_cmds_F77=
14285 old_archive_From_new_cmds_F77=
14286 old_archive_from_expsyms_cmds_F77=
14287 export_dynamic_flag_spec_F77=
14288 whole_archive_flag_spec_F77=
14289 thread_safe_flag_spec_F77=
14290 hardcode_libdir_flag_spec_F77=
14291 hardcode_libdir_flag_spec_ld_F77=
14292 hardcode_libdir_separator_F77=
14293 hardcode_direct_F77=no
14294 hardcode_minus_L_F77=no
14295 hardcode_shlibpath_var_F77=unsupported
14296 link_all_deplibs_F77=unknown
14297 hardcode_automatic_F77=no
14299 module_expsym_cmds_F77=
14300 always_export_symbols_F77=no
14301 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14302 # include_expsyms should be a list of space-separated symbols to be *always*
14303 # included in the symbol list
14304 include_expsyms_F77=
14305 # exclude_expsyms can be an extended regexp of symbols to exclude
14306 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14307 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14308 # as well as any symbol that contains `d'.
14309 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14310 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14311 # platforms (ab)use it in PIC code, but their linkers get confused if
14312 # the symbol is explicitly referenced. Since portable code cannot
14313 # rely on this symbol name, it's probably fine to never include it in
14314 # preloaded symbol tables.
14315 extract_expsyms_cmds=
14316 # Just being paranoid about ensuring that cc_basename is set.
14317 for cc_temp in $compiler""; do
14319 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14320 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14325 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14328 cygwin* | mingw* | pw32*)
14329 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14330 # When not using gcc, we currently assume that we are using
14331 # Microsoft Visual C++.
14332 if test "$GCC" != yes; then
14337 # we just hope/assume this is gcc and not c89 (= MSVC++)
14346 if test "$with_gnu_ld" = yes; then
14347 # If archive_cmds runs LD, not CC, wlarc should be empty
14350 # Set some defaults for GNU ld with shared library support. These
14351 # are reset later if shared libraries are not supported. Putting them
14352 # here allows them to be overridden if necessary.
14353 runpath_var=LD_RUN_PATH
14354 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14355 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14356 # ancient GNU ld didn't support --whole-archive et. al.
14357 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14358 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14360 whole_archive_flag_spec_F77=
14362 supports_anon_versioning=no
14363 case `$LD -v 2>/dev/null` in
14364 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14365 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14366 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14367 *\ 2.11.*) ;; # other 2.11 versions
14368 *) supports_anon_versioning=yes ;;
14371 # See if GNU ld supports shared libraries.
14373 aix3* | aix4* | aix5*)
14374 # On AIX/PPC, the GNU linker is very broken
14375 if test "$host_cpu" != ia64; then
14379 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14380 *** to be unable to reliably create shared libraries on AIX.
14381 *** Therefore, libtool is disabling shared libraries support. If you
14382 *** really care for shared libraries, you may want to modify your PATH
14383 *** so that a non-GNU linker is found, and then restart.
14390 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)'
14391 hardcode_libdir_flag_spec_F77='-L$libdir'
14392 hardcode_minus_L_F77=yes
14394 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14395 # that the semantics of dynamic libraries on AmigaOS, at least up
14396 # to version 4, is to share data among multiple programs linked
14397 # with the same dynamic library. Since this doesn't match the
14398 # behavior of shared libraries on other platforms, we can't use
14404 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14405 allow_undefined_flag_F77=unsupported
14406 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14407 # support --undefined. This deserves some investigation. FIXME
14408 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14414 cygwin* | mingw* | pw32*)
14415 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14416 # as there is no search path for DLLs.
14417 hardcode_libdir_flag_spec_F77='-L$libdir'
14418 allow_undefined_flag_F77=unsupported
14419 always_export_symbols_F77=no
14420 enable_shared_with_static_runtimes_F77=yes
14421 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14423 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14424 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14425 # If the export-symbols file already is a .def file (1st line
14426 # is EXPORTS), use it as is; otherwise, prepend...
14427 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14428 cp $export_symbols $output_objdir/$soname.def;
14430 echo EXPORTS > $output_objdir/$soname.def;
14431 cat $export_symbols >> $output_objdir/$soname.def;
14433 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14440 hardcode_direct_F77=no
14441 hardcode_shlibpath_var_F77=no
14442 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14443 export_dynamic_flag_spec_F77='${wl}-E'
14444 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14445 # Instead, shared libraries are loaded at an image base (0x10000000 by
14446 # default) and relocated if they conflict, which is a slow very memory
14447 # consuming and fragmenting process. To avoid this, we pick a random,
14448 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14449 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14450 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'
14451 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'
14454 linux* | k*bsd*-gnu)
14455 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14457 case $cc_basename,$host_cpu in
14458 pgcc*) # Portland Group C compiler
14459 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'
14460 tmp_addflag=' $pic_flag'
14462 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14463 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'
14464 tmp_addflag=' $pic_flag -Mnomain' ;;
14465 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14466 tmp_addflag=' -i_dynamic' ;;
14467 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14468 tmp_addflag=' -i_dynamic -nofor_main' ;;
14469 ifc* | ifort*) # Intel Fortran compiler
14470 tmp_addflag=' -nofor_main' ;;
14472 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14474 if test $supports_anon_versioning = yes; then
14475 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14476 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14477 $echo "local: *; };" >> $output_objdir/$libname.ver~
14478 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14480 link_all_deplibs_F77=no
14486 netbsd* | netbsdelf*-gnu)
14487 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14488 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14491 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14492 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14497 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14501 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14502 *** create shared libraries on Solaris systems. Therefore, libtool
14503 *** is disabling shared libraries support. We urge you to upgrade GNU
14504 *** binutils to release 2.9.1 or newer. Another option is to modify
14505 *** your PATH or compiler configuration so that the native linker is
14506 *** used, and then restart.
14509 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14510 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14511 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14517 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14518 case `$LD -v 2>&1` in
14519 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14523 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14524 *** reliably create shared libraries on SCO systems. Therefore, libtool
14525 *** is disabling shared libraries support. We urge you to upgrade GNU
14526 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14527 *** your PATH or compiler configuration so that the native linker is
14528 *** used, and then restart.
14533 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14534 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14535 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14536 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14545 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14547 hardcode_direct_F77=yes
14548 hardcode_shlibpath_var_F77=no
14552 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14553 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14554 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14561 if test "$ld_shlibs_F77" = no; then
14563 hardcode_libdir_flag_spec_F77=
14564 export_dynamic_flag_spec_F77=
14565 whole_archive_flag_spec_F77=
14568 # PORTME fill in a description of your system's linker (not GNU ld)
14571 allow_undefined_flag_F77=unsupported
14572 always_export_symbols_F77=yes
14573 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'
14574 # Note: this linker hardcodes the directories in LIBPATH if there
14575 # are no directories specified by -L.
14576 hardcode_minus_L_F77=yes
14577 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14578 # Neither direct hardcoding nor static linking is supported with a
14580 hardcode_direct_F77=unsupported
14585 if test "$host_cpu" = ia64; then
14586 # On IA64, the linker does run time linking by default, so we don't
14587 # have to do anything special.
14588 aix_use_runtimelinking=no
14589 exp_sym_flag='-Bexport'
14592 # If we're using GNU nm, then we don't want the "-C" option.
14593 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14594 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14595 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'
14597 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'
14599 aix_use_runtimelinking=no
14601 # Test if we are trying to use run time linking or normal
14602 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14603 # need to do runtime linking.
14604 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14605 for ld_flag in $LDFLAGS; do
14606 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14607 aix_use_runtimelinking=yes
14614 exp_sym_flag='-bexport'
14615 no_entry_flag='-bnoentry'
14618 # When large executables or shared objects are built, AIX ld can
14619 # have problems creating the table of contents. If linking a library
14620 # or program results in "error TOC overflow" add -mminimal-toc to
14621 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14622 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14624 archive_cmds_F77=''
14625 hardcode_direct_F77=yes
14626 hardcode_libdir_separator_F77=':'
14627 link_all_deplibs_F77=yes
14629 if test "$GCC" = yes; then
14630 case $host_os in aix4.[012]|aix4.[012].*)
14631 # We only want to do this on AIX 4.2 and lower, the check
14632 # below for broken collect2 doesn't work under 4.3+
14633 collect2name=`${CC} -print-prog-name=collect2`
14634 if test -f "$collect2name" && \
14635 strings "$collect2name" | grep resolve_lib_name >/dev/null
14637 # We have reworked collect2
14638 hardcode_direct_F77=yes
14640 # We have old collect2
14641 hardcode_direct_F77=unsupported
14642 # It fails to find uninstalled libraries when the uninstalled
14643 # path is not listed in the libpath. Setting hardcode_minus_L
14644 # to unsupported forces relinking
14645 hardcode_minus_L_F77=yes
14646 hardcode_libdir_flag_spec_F77='-L$libdir'
14647 hardcode_libdir_separator_F77=
14651 shared_flag='-shared'
14652 if test "$aix_use_runtimelinking" = yes; then
14653 shared_flag="$shared_flag "'${wl}-G'
14657 if test "$host_cpu" = ia64; then
14658 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14659 # chokes on -Wl,-G. The following line is correct:
14662 if test "$aix_use_runtimelinking" = yes; then
14663 shared_flag='${wl}-G'
14665 shared_flag='${wl}-bM:SRE'
14670 # It seems that -bexpall does not export symbols beginning with
14671 # underscore (_), so it is better to generate a list of symbols to export.
14672 always_export_symbols_F77=yes
14673 if test "$aix_use_runtimelinking" = yes; then
14674 # Warning - without using the other runtime loading flags (-brtl),
14675 # -berok will link without error, but may produce a broken library.
14676 allow_undefined_flag_F77='-berok'
14677 # Determine the default libpath from the value encoded in an empty executable.
14678 cat >conftest.$ac_ext <<_ACEOF
14683 rm -f conftest.$ac_objext conftest$ac_exeext
14684 if { (ac_try="$ac_link"
14685 case "(($ac_try" in
14686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14687 *) ac_try_echo=$ac_try;;
14689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14690 (eval "$ac_link") 2>conftest.er1
14692 grep -v '^ *+' conftest.er1 >conftest.err
14694 cat conftest.err >&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); } && {
14697 test -z "$ac_f77_werror_flag" ||
14698 test ! -s conftest.err
14699 } && test -s conftest$ac_exeext &&
14700 $as_test_x conftest$ac_exeext; then
14702 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14704 # Check for a 64-bit object if we didn't find anything.
14705 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; }
14708 echo "$as_me: failed program was:" >&5
14709 sed 's/^/| /' conftest.$ac_ext >&5
14714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14715 conftest$ac_exeext conftest.$ac_ext
14716 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14718 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14719 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"
14721 if test "$host_cpu" = ia64; then
14722 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14723 allow_undefined_flag_F77="-z nodefs"
14724 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"
14726 # Determine the default libpath from the value encoded in an empty executable.
14727 cat >conftest.$ac_ext <<_ACEOF
14732 rm -f conftest.$ac_objext conftest$ac_exeext
14733 if { (ac_try="$ac_link"
14734 case "(($ac_try" in
14735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736 *) ac_try_echo=$ac_try;;
14738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739 (eval "$ac_link") 2>conftest.er1
14741 grep -v '^ *+' conftest.er1 >conftest.err
14743 cat conftest.err >&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } && {
14746 test -z "$ac_f77_werror_flag" ||
14747 test ! -s conftest.err
14748 } && test -s conftest$ac_exeext &&
14749 $as_test_x conftest$ac_exeext; then
14751 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14753 # Check for a 64-bit object if we didn't find anything.
14754 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; }
14757 echo "$as_me: failed program was:" >&5
14758 sed 's/^/| /' conftest.$ac_ext >&5
14763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14764 conftest$ac_exeext conftest.$ac_ext
14765 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14767 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14768 # Warning - without using the other run time loading flags,
14769 # -berok will link without error, but may produce a broken library.
14770 no_undefined_flag_F77=' ${wl}-bernotok'
14771 allow_undefined_flag_F77=' ${wl}-berok'
14772 # Exported symbols can be pulled into shared objects from archives
14773 whole_archive_flag_spec_F77='$convenience'
14774 archive_cmds_need_lc_F77=yes
14775 # This is similar to how AIX traditionally builds its shared libraries.
14776 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'
14782 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)'
14783 hardcode_libdir_flag_spec_F77='-L$libdir'
14784 hardcode_minus_L_F77=yes
14785 # see comment about different semantics on the GNU ld section
14790 export_dynamic_flag_spec_F77=-rdynamic
14793 cygwin* | mingw* | pw32*)
14794 # When not using gcc, we currently assume that we are using
14795 # Microsoft Visual C++.
14796 # hardcode_libdir_flag_spec is actually meaningless, as there is
14797 # no search path for DLLs.
14798 hardcode_libdir_flag_spec_F77=' '
14799 allow_undefined_flag_F77=unsupported
14800 # Tell ltmain to make .lib files, not .a files.
14802 # Tell ltmain to make .dll files, not .so files.
14804 # FIXME: Setting linknames here is a bad hack.
14805 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14806 # The linker will automatically build a .lib file if we build a DLL.
14807 old_archive_From_new_cmds_F77='true'
14808 # FIXME: Should let the user specify the lib program.
14809 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14810 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14811 enable_shared_with_static_runtimes_F77=yes
14814 darwin* | rhapsody*)
14816 rhapsody* | darwin1.[012])
14817 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14820 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14821 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14823 case ${MACOSX_DEPLOYMENT_TARGET} in
14825 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14828 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14834 archive_cmds_need_lc_F77=no
14835 hardcode_direct_F77=no
14836 hardcode_automatic_F77=yes
14837 hardcode_shlibpath_var_F77=unsupported
14838 whole_archive_flag_spec_F77=''
14839 link_all_deplibs_F77=yes
14840 if test "$GCC" = yes ; then
14841 output_verbose_link_cmd='echo'
14842 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14843 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14844 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14845 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}'
14846 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}'
14848 case $cc_basename in
14850 output_verbose_link_cmd='echo'
14851 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14852 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14853 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14854 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}'
14855 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}'
14865 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14866 hardcode_libdir_flag_spec_F77='-L$libdir'
14867 hardcode_shlibpath_var_F77=no
14874 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14875 # support. Future versions do this automatically, but an explicit c++rt0.o
14876 # does not break anything, and helps significantly (at the cost of a little
14879 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14880 hardcode_libdir_flag_spec_F77='-R$libdir'
14881 hardcode_direct_F77=yes
14882 hardcode_shlibpath_var_F77=no
14885 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14887 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14888 hardcode_direct_F77=yes
14889 hardcode_minus_L_F77=yes
14890 hardcode_shlibpath_var_F77=no
14893 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14894 freebsd* | dragonfly*)
14895 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14896 hardcode_libdir_flag_spec_F77='-R$libdir'
14897 hardcode_direct_F77=yes
14898 hardcode_shlibpath_var_F77=no
14902 if test "$GCC" = yes; then
14903 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'
14905 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'
14907 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14908 hardcode_libdir_separator_F77=:
14909 hardcode_direct_F77=yes
14911 # hardcode_minus_L: Not really in the search PATH,
14912 # but as the default location of the library.
14913 hardcode_minus_L_F77=yes
14914 export_dynamic_flag_spec_F77='${wl}-E'
14918 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14919 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14921 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14923 if test "$with_gnu_ld" = no; then
14924 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14925 hardcode_libdir_separator_F77=:
14927 hardcode_direct_F77=yes
14928 export_dynamic_flag_spec_F77='${wl}-E'
14930 # hardcode_minus_L: Not really in the search PATH,
14931 # but as the default location of the library.
14932 hardcode_minus_L_F77=yes
14937 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14940 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14943 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14946 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14952 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14955 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14958 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14962 if test "$with_gnu_ld" = no; then
14963 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14964 hardcode_libdir_separator_F77=:
14968 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14969 hardcode_direct_F77=no
14970 hardcode_shlibpath_var_F77=no
14973 hardcode_direct_F77=yes
14974 export_dynamic_flag_spec_F77='${wl}-E'
14976 # hardcode_minus_L: Not really in the search PATH,
14977 # but as the default location of the library.
14978 hardcode_minus_L_F77=yes
14984 irix5* | irix6* | nonstopux*)
14985 if test "$GCC" = yes; then
14986 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'
14988 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'
14989 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14991 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14992 hardcode_libdir_separator_F77=:
14993 link_all_deplibs_F77=yes
14996 netbsd* | netbsdelf*-gnu)
14997 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14998 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15000 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15002 hardcode_libdir_flag_spec_F77='-R$libdir'
15003 hardcode_direct_F77=yes
15004 hardcode_shlibpath_var_F77=no
15008 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15009 hardcode_direct_F77=yes
15010 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15011 hardcode_libdir_separator_F77=:
15012 hardcode_shlibpath_var_F77=no
15016 hardcode_direct_F77=yes
15017 hardcode_shlibpath_var_F77=no
15018 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15019 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15020 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15021 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15022 export_dynamic_flag_spec_F77='${wl}-E'
15025 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15026 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15027 hardcode_libdir_flag_spec_F77='-R$libdir'
15030 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15031 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15038 hardcode_libdir_flag_spec_F77='-L$libdir'
15039 hardcode_minus_L_F77=yes
15040 allow_undefined_flag_F77=unsupported
15041 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'
15042 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15046 if test "$GCC" = yes; then
15047 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15048 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'
15050 allow_undefined_flag_F77=' -expect_unresolved \*'
15051 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'
15053 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15054 hardcode_libdir_separator_F77=:
15057 osf4* | osf5*) # as osf3* with the addition of -msym flag
15058 if test "$GCC" = yes; then
15059 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15060 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'
15061 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15063 allow_undefined_flag_F77=' -expect_unresolved \*'
15064 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'
15065 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~
15066 $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'
15068 # Both c and cxx compiler support -rpath directly
15069 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15071 hardcode_libdir_separator_F77=:
15075 no_undefined_flag_F77=' -z text'
15076 if test "$GCC" = yes; then
15078 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15079 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15080 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15083 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15084 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15085 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15087 hardcode_libdir_flag_spec_F77='-R$libdir'
15088 hardcode_shlibpath_var_F77=no
15090 solaris2.[0-5] | solaris2.[0-5].*) ;;
15092 # The compiler driver will combine linker options so we
15093 # cannot just pass the convience library names through
15094 # without $wl, iff we do not link with $LD.
15095 # Luckily, gcc supports the same syntax we need for Sun Studio.
15096 # Supported since Solaris 2.6 (maybe 2.5.1?)
15099 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15101 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' ;;
15104 link_all_deplibs_F77=yes
15108 if test "x$host_vendor" = xsequent; then
15109 # Use $CC to link under sequent, because it throws in some extra .o
15110 # files that make .init and .fini sections work.
15111 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15113 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15115 hardcode_libdir_flag_spec_F77='-L$libdir'
15116 hardcode_direct_F77=yes
15117 hardcode_minus_L_F77=yes
15118 hardcode_shlibpath_var_F77=no
15122 case $host_vendor in
15124 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15125 hardcode_direct_F77=yes # is this really true???
15128 ## LD is ld it makes a PLAMLIB
15129 ## CC just makes a GrossModule.
15130 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15131 reload_cmds_F77='$CC -r -o $output$reload_objs'
15132 hardcode_direct_F77=no
15135 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15136 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15139 runpath_var='LD_RUN_PATH'
15140 hardcode_shlibpath_var_F77=no
15144 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15145 hardcode_shlibpath_var_F77=no
15146 export_dynamic_flag_spec_F77='-Bexport'
15150 if test -d /usr/nec; then
15151 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15152 hardcode_shlibpath_var_F77=no
15153 runpath_var=LD_RUN_PATH
15154 hardcode_runpath_var=yes
15159 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15160 no_undefined_flag_F77='${wl}-z,text'
15161 archive_cmds_need_lc_F77=no
15162 hardcode_shlibpath_var_F77=no
15163 runpath_var='LD_RUN_PATH'
15165 if test "$GCC" = yes; then
15166 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15167 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15169 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15170 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15174 sysv5* | sco3.2v5* | sco5v6*)
15175 # Note: We can NOT use -z defs as we might desire, because we do not
15176 # link with -lc, and that would cause any symbols used from libc to
15177 # always be unresolved, which means just about no library would
15178 # ever link correctly. If we're not using GNU ld we use -z text
15179 # though, which does catch some bad symbols but isn't as heavy-handed
15181 no_undefined_flag_F77='${wl}-z,text'
15182 allow_undefined_flag_F77='${wl}-z,nodefs'
15183 archive_cmds_need_lc_F77=no
15184 hardcode_shlibpath_var_F77=no
15185 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15186 hardcode_libdir_separator_F77=':'
15187 link_all_deplibs_F77=yes
15188 export_dynamic_flag_spec_F77='${wl}-Bexport'
15189 runpath_var='LD_RUN_PATH'
15191 if test "$GCC" = yes; then
15192 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15193 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15195 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15196 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15201 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15202 hardcode_libdir_flag_spec_F77='-L$libdir'
15203 hardcode_shlibpath_var_F77=no
15212 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15213 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15214 test "$ld_shlibs_F77" = no && can_build_shared=no
15217 # Do we need to explicitly link libc?
15219 case "x$archive_cmds_need_lc_F77" in
15221 # Assume -lc should be added
15222 archive_cmds_need_lc_F77=yes
15224 if test "$enable_shared" = yes && test "$GCC" = yes; then
15225 case $archive_cmds_F77 in
15227 # FIXME: we may have to deal with multi-command sequences.
15230 # Test whether the compiler implicitly links with -lc since on some
15231 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15232 # to ld, don't add -lc before -lgcc.
15233 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15234 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15236 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15239 (eval $ac_compile) 2>&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); } 2>conftest.err; then
15245 libobjs=conftest.$ac_objext
15247 wl=$lt_prog_compiler_wl_F77
15248 pic_flag=$lt_prog_compiler_pic_F77
15254 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15255 allow_undefined_flag_F77=
15256 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15257 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }
15262 archive_cmds_need_lc_F77=no
15264 archive_cmds_need_lc_F77=yes
15266 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15268 cat conftest.err 1>&5
15271 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15272 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15279 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15280 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15281 library_names_spec=
15282 libname_spec='lib$name'
15286 postuninstall_cmds=
15290 shlibpath_overrides_runpath=unknown
15292 dynamic_linker="$host_os ld.so"
15293 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15294 if test "$GCC" = yes; then
15295 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15296 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15297 # if the path contains ";" then we assume it to be the separator
15298 # otherwise default to the standard path separator (i.e. ":") - it is
15299 # assumed that no part of a normal pathname contains ";" but that should
15300 # okay in the real world where ";" in dirpaths is itself problematic.
15301 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15303 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15306 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15308 need_lib_prefix=unknown
15309 hardcode_into_libs=no
15311 # when you set need_version to no, make sure it does not cause -set_version
15312 # flags to be left without arguments
15313 need_version=unknown
15318 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15319 shlibpath_var=LIBPATH
15321 # AIX 3 has no versioning support, so we append a major version to the name.
15322 soname_spec='${libname}${release}${shared_ext}$major'
15329 hardcode_into_libs=yes
15330 if test "$host_cpu" = ia64; then
15331 # AIX 5 supports IA64
15332 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15333 shlibpath_var=LD_LIBRARY_PATH
15335 # With GCC up to 2.95.x, collect2 would create an import file
15336 # for dependence libraries. The import file would start with
15337 # the line `#! .'. This would cause the generated library to
15338 # depend on `.', always an invalid library. This was fixed in
15339 # development snapshots of GCC prior to 3.0.
15341 aix4 | aix4.[01] | aix4.[01].*)
15342 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15344 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15347 can_build_shared=no
15351 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15352 # soname into executable. Probably we can add versioning support to
15353 # collect2, so additional links can be useful in future.
15354 if test "$aix_use_runtimelinking" = yes; then
15355 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15356 # instead of lib<name>.a to let people know that these are not
15357 # typical AIX shared libraries.
15358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15360 # We preserve .a as extension for shared libraries through AIX4.2
15361 # and later when we are not doing run time linking.
15362 library_names_spec='${libname}${release}.a $libname.a'
15363 soname_spec='${libname}${release}${shared_ext}$major'
15365 shlibpath_var=LIBPATH
15370 library_names_spec='$libname.ixlibrary $libname.a'
15371 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15372 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'
15376 library_names_spec='${libname}${shared_ext}'
15377 dynamic_linker="$host_os ld.so"
15378 shlibpath_var=LIBRARY_PATH
15384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15385 soname_spec='${libname}${release}${shared_ext}$major'
15386 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15387 shlibpath_var=LD_LIBRARY_PATH
15388 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15389 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15390 # the default ld.so.conf also contains /usr/contrib/lib and
15391 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15392 # libtool to hard-code these into programs
15395 cygwin* | mingw* | pw32*)
15396 version_type=windows
15401 case $GCC,$host_os in
15402 yes,cygwin* | yes,mingw* | yes,pw32*)
15403 library_names_spec='$libname.dll.a'
15404 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15405 postinstall_cmds='base_file=`basename \${file}`~
15406 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15407 dldir=$destdir/`dirname \$dlpath`~
15408 test -d \$dldir || mkdir -p \$dldir~
15409 $install_prog $dir/$dlname \$dldir/$dlname~
15410 chmod a+x \$dldir/$dlname'
15411 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15412 dlpath=$dir/\$dldll~
15414 shlibpath_overrides_runpath=yes
15418 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15419 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15420 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15423 # MinGW DLLs use traditional 'lib' prefix
15424 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15425 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15426 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15427 # It is most probably a Windows format PATH printed by
15428 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15429 # path with ; separators, and with drive letters. We can handle the
15430 # drive letters (cygwin fileutils understands them), so leave them,
15431 # especially as we might pass files found there to a mingw objdump,
15432 # which wouldn't understand a cygwinified path. Ahh.
15433 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15435 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15439 # pw32 DLLs use 'pw' prefix rather than 'lib'
15440 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15446 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15449 dynamic_linker='Win32 ld.exe'
15450 # FIXME: first we should search . and the directory the executable is in
15454 darwin* | rhapsody*)
15455 dynamic_linker="$host_os dyld"
15456 version_type=darwin
15459 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15460 soname_spec='${libname}${release}${major}$shared_ext'
15461 shlibpath_overrides_runpath=yes
15462 shlibpath_var=DYLD_LIBRARY_PATH
15463 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15464 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15465 if test "$GCC" = yes; then
15466 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"`
15468 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15470 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15478 soname_spec='${libname}${release}${shared_ext}$major'
15479 shlibpath_var=LD_LIBRARY_PATH
15486 freebsd* | dragonfly*)
15487 # DragonFly does not have aout. When/if they implement a new
15488 # versioning mechanism, adjust this.
15489 if test -x /usr/bin/objformat; then
15490 objformat=`/usr/bin/objformat`
15493 freebsd[123]*) objformat=aout ;;
15494 *) objformat=elf ;;
15497 version_type=freebsd-$objformat
15498 case $version_type in
15500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15505 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15509 shlibpath_var=LD_LIBRARY_PATH
15512 shlibpath_overrides_runpath=yes
15514 freebsd3.[01]* | freebsdelf3.[01]*)
15515 shlibpath_overrides_runpath=yes
15516 hardcode_into_libs=yes
15518 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15519 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15520 shlibpath_overrides_runpath=no
15521 hardcode_into_libs=yes
15523 freebsd*) # from 4.6 on
15524 shlibpath_overrides_runpath=yes
15525 hardcode_into_libs=yes
15534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15535 soname_spec='${libname}${release}${shared_ext}$major'
15536 shlibpath_var=LD_LIBRARY_PATH
15537 hardcode_into_libs=yes
15540 hpux9* | hpux10* | hpux11*)
15541 # Give a soname corresponding to the major version so that dld.sl refuses to
15542 # link against other versions.
15549 hardcode_into_libs=yes
15550 dynamic_linker="$host_os dld.so"
15551 shlibpath_var=LD_LIBRARY_PATH
15552 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15554 soname_spec='${libname}${release}${shared_ext}$major'
15555 if test "X$HPUX_IA64_MODE" = X32; then
15556 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15558 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15560 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15564 hardcode_into_libs=yes
15565 dynamic_linker="$host_os dld.sl"
15566 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15567 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15569 soname_spec='${libname}${release}${shared_ext}$major'
15570 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15575 dynamic_linker="$host_os dld.sl"
15576 shlibpath_var=SHLIB_PATH
15577 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15579 soname_spec='${libname}${release}${shared_ext}$major'
15582 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15583 postinstall_cmds='chmod 555 $lib'
15590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15591 soname_spec='${libname}${release}${shared_ext}$major'
15592 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15593 shlibpath_var=LD_LIBRARY_PATH
15594 shlibpath_overrides_runpath=no
15595 hardcode_into_libs=yes
15598 irix5* | irix6* | nonstopux*)
15600 nonstopux*) version_type=nonstopux ;;
15602 if test "$lt_cv_prog_gnu_ld" = yes; then
15610 soname_spec='${libname}${release}${shared_ext}$major'
15611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15613 irix5* | nonstopux*)
15614 libsuff= shlibsuff=
15617 case $LD in # libtool.m4 will add one of these switches to LD
15618 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15619 libsuff= shlibsuff= libmagic=32-bit;;
15620 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15621 libsuff=32 shlibsuff=N32 libmagic=N32;;
15622 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15623 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15624 *) libsuff= shlibsuff= libmagic=never-match;;
15628 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15629 shlibpath_overrides_runpath=no
15630 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15631 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15632 hardcode_into_libs=yes
15635 # No shared lib support for Linux oldld, aout, or coff.
15636 linux*oldld* | linux*aout* | linux*coff*)
15640 # This must be Linux ELF.
15641 linux* | k*bsd*-gnu)
15645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15646 soname_spec='${libname}${release}${shared_ext}$major'
15647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15648 shlibpath_var=LD_LIBRARY_PATH
15649 shlibpath_overrides_runpath=no
15650 # This implies no fast_install, which is unacceptable.
15651 # Some rework will be needed to allow for fast_install
15652 # before this can be enabled.
15653 hardcode_into_libs=yes
15655 # Append ld.so.conf contents to the search path
15656 if test -f /etc/ld.so.conf; then
15657 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' ' '`
15658 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15661 # We used to test for /lib/ld.so.1 and disable shared libraries on
15662 # powerpc, because MkLinux only supported shared libraries with the
15663 # GNU dynamic linker. Since this was broken with cross compilers,
15664 # most powerpc-linux boxes support dynamic linking these days and
15665 # people can always --disable-shared, the test was removed, and we
15666 # assume the GNU/Linux dynamic linker is in use.
15667 dynamic_linker='GNU/Linux ld.so'
15674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15675 soname_spec='${libname}${release}${shared_ext}$major'
15676 shlibpath_var=LD_LIBRARY_PATH
15677 shlibpath_overrides_runpath=no
15678 hardcode_into_libs=yes
15679 dynamic_linker='NetBSD ld.elf_so'
15686 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15689 dynamic_linker='NetBSD (a.out) ld.so'
15691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15692 soname_spec='${libname}${release}${shared_ext}$major'
15693 dynamic_linker='NetBSD ld.elf_so'
15695 shlibpath_var=LD_LIBRARY_PATH
15696 shlibpath_overrides_runpath=yes
15697 hardcode_into_libs=yes
15702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15703 shlibpath_var=LD_LIBRARY_PATH
15704 shlibpath_overrides_runpath=yes
15711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15712 soname_spec='${libname}${release}${shared_ext}$major'
15713 shlibpath_var=LD_LIBRARY_PATH
15714 shlibpath_overrides_runpath=yes
15719 sys_lib_dlsearch_path_spec="/usr/lib"
15721 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15723 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15724 *) need_version=no ;;
15726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15727 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15728 shlibpath_var=LD_LIBRARY_PATH
15729 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15731 openbsd2.[89] | openbsd2.[89].*)
15732 shlibpath_overrides_runpath=no
15735 shlibpath_overrides_runpath=yes
15739 shlibpath_overrides_runpath=yes
15744 libname_spec='$name'
15747 library_names_spec='$libname${shared_ext} $libname.a'
15748 dynamic_linker='OS/2 ld.exe'
15749 shlibpath_var=LIBPATH
15752 osf3* | osf4* | osf5*)
15756 soname_spec='${libname}${release}${shared_ext}$major'
15757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15758 shlibpath_var=LD_LIBRARY_PATH
15759 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15760 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15768 soname_spec='${libname}${release}${shared_ext}$major'
15769 shlibpath_var=LD_LIBRARY_PATH
15770 shlibpath_overrides_runpath=yes
15771 hardcode_into_libs=yes
15772 # ldd complains unless libraries are executable
15773 postinstall_cmds='chmod +x $lib'
15778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15779 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15780 shlibpath_var=LD_LIBRARY_PATH
15781 shlibpath_overrides_runpath=yes
15782 if test "$with_gnu_ld" = yes; then
15790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15791 soname_spec='${libname}${release}${shared_ext}$major'
15792 shlibpath_var=LD_LIBRARY_PATH
15793 case $host_vendor in
15795 shlibpath_overrides_runpath=no
15797 export_dynamic_flag_spec='${wl}-Blargedynsym'
15798 runpath_var=LD_RUN_PATH
15806 shlibpath_overrides_runpath=no
15807 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15813 if test -d /usr/nec ;then
15815 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15816 soname_spec='$libname${shared_ext}.$major'
15817 shlibpath_var=LD_LIBRARY_PATH
15821 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15822 version_type=freebsd-elf
15825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15826 soname_spec='${libname}${release}${shared_ext}$major'
15827 shlibpath_var=LD_LIBRARY_PATH
15828 hardcode_into_libs=yes
15829 if test "$with_gnu_ld" = yes; then
15830 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15831 shlibpath_overrides_runpath=no
15833 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15834 shlibpath_overrides_runpath=yes
15837 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15841 sys_lib_dlsearch_path_spec='/usr/lib'
15846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15847 soname_spec='${libname}${release}${shared_ext}$major'
15848 shlibpath_var=LD_LIBRARY_PATH
15855 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15856 echo "${ECHO_T}$dynamic_linker" >&6; }
15857 test "$dynamic_linker" = no && can_build_shared=no
15859 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15860 if test "$GCC" = yes; then
15861 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15864 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15865 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15866 hardcode_action_F77=
15867 if test -n "$hardcode_libdir_flag_spec_F77" || \
15868 test -n "$runpath_var_F77" || \
15869 test "X$hardcode_automatic_F77" = "Xyes" ; then
15871 # We can hardcode non-existant directories.
15872 if test "$hardcode_direct_F77" != no &&
15873 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15874 # have to relink, otherwise we might link with an installed library
15875 # when we should be linking with a yet-to-be-installed one
15876 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15877 test "$hardcode_minus_L_F77" != no; then
15878 # Linking always hardcodes the temporary library directory.
15879 hardcode_action_F77=relink
15881 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15882 hardcode_action_F77=immediate
15885 # We cannot hardcode anything, or else we can only hardcode existing
15887 hardcode_action_F77=unsupported
15889 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15890 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15892 if test "$hardcode_action_F77" = relink; then
15893 # Fast installation is not supported
15894 enable_fast_install=no
15895 elif test "$shlibpath_overrides_runpath" = yes ||
15896 test "$enable_shared" = no; then
15897 # Fast installation is not necessary
15898 enable_fast_install=needless
15902 # The else clause should only fire when bootstrapping the
15903 # libtool distribution, otherwise you forgot to ship ltmain.sh
15904 # with your package, and you will get complaints that there are
15905 # no rules to generate ltmain.sh.
15906 if test -f "$ltmain"; then
15907 # See if we are running on zsh, and set the options which allow our commands through
15908 # without removal of \ escapes.
15909 if test -n "${ZSH_VERSION+set}" ; then
15910 setopt NO_GLOB_SUBST
15912 # Now quote all the things that may contain metacharacters while being
15913 # careful not to overquote the AC_SUBSTed values. We take copies of the
15914 # variables and quote the copies for generation of the libtool script.
15915 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15917 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15918 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15919 deplibs_check_method reload_flag reload_cmds need_locks \
15920 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15921 lt_cv_sys_global_symbol_to_c_name_address \
15922 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15923 old_postinstall_cmds old_postuninstall_cmds \
15927 lt_prog_compiler_wl_F77 \
15928 lt_prog_compiler_pic_F77 \
15929 lt_prog_compiler_static_F77 \
15930 lt_prog_compiler_no_builtin_flag_F77 \
15931 export_dynamic_flag_spec_F77 \
15932 thread_safe_flag_spec_F77 \
15933 whole_archive_flag_spec_F77 \
15934 enable_shared_with_static_runtimes_F77 \
15935 old_archive_cmds_F77 \
15936 old_archive_from_new_cmds_F77 \
15937 predep_objects_F77 \
15938 postdep_objects_F77 \
15941 compiler_lib_search_path_F77 \
15943 archive_expsym_cmds_F77 \
15944 postinstall_cmds_F77 \
15945 postuninstall_cmds_F77 \
15946 old_archive_from_expsyms_cmds_F77 \
15947 allow_undefined_flag_F77 \
15948 no_undefined_flag_F77 \
15949 export_symbols_cmds_F77 \
15950 hardcode_libdir_flag_spec_F77 \
15951 hardcode_libdir_flag_spec_ld_F77 \
15952 hardcode_libdir_separator_F77 \
15953 hardcode_automatic_F77 \
15955 module_expsym_cmds_F77 \
15956 lt_cv_prog_compiler_c_o_F77 \
15957 exclude_expsyms_F77 \
15958 include_expsyms_F77; do
15961 old_archive_cmds_F77 | \
15962 old_archive_from_new_cmds_F77 | \
15963 archive_cmds_F77 | \
15964 archive_expsym_cmds_F77 | \
15965 module_cmds_F77 | \
15966 module_expsym_cmds_F77 | \
15967 old_archive_from_expsyms_cmds_F77 | \
15968 export_symbols_cmds_F77 | \
15969 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15970 postinstall_cmds | postuninstall_cmds | \
15971 old_postinstall_cmds | old_postuninstall_cmds | \
15972 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15973 # Double-quote double-evaled strings.
15974 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15977 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15983 *'\$0 --fallback-echo"')
15984 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15990 cat <<__EOF__ >> "$cfgfile"
15991 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15993 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15995 # Shell to use when invoking shell scripts.
15998 # Whether or not to build shared libraries.
15999 build_libtool_libs=$enable_shared
16001 # Whether or not to build static libraries.
16002 build_old_libs=$enable_static
16004 # Whether or not to add -lc for building shared libraries.
16005 build_libtool_need_lc=$archive_cmds_need_lc_F77
16007 # Whether or not to disallow shared libs when runtime libs are static
16008 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16010 # Whether or not to optimize for fast installation.
16011 fast_install=$enable_fast_install
16014 host_alias=$host_alias
16018 # The build system.
16019 build_alias=$build_alias
16023 # An echo program that does not interpret backslashes.
16028 AR_FLAGS=$lt_AR_FLAGS
16033 # LTCC compiler flags.
16034 LTCFLAGS=$lt_LTCFLAGS
16036 # A language-specific compiler.
16037 CC=$lt_compiler_F77
16039 # Is the compiler the GNU C compiler?
16045 # The linker used to build libraries.
16048 # Whether we need hard or soft links.
16051 # A BSD-compatible nm program.
16054 # A symbol stripping program
16057 # Used to examine libraries when file_magic_cmd begins "file"
16058 MAGIC_CMD=$MAGIC_CMD
16060 # Used on cygwin: DLL creation program.
16063 # Used on cygwin: object dumper.
16066 # Used on cygwin: assembler.
16069 # The name of the directory that contains temporary libtool files.
16072 # How to create reloadable object files.
16073 reload_flag=$lt_reload_flag
16074 reload_cmds=$lt_reload_cmds
16076 # How to pass a linker flag through the compiler.
16077 wl=$lt_lt_prog_compiler_wl_F77
16079 # Object file suffix (normally "o").
16080 objext="$ac_objext"
16082 # Old archive suffix (normally "a").
16085 # Shared library suffix (normally ".so").
16086 shrext_cmds='$shrext_cmds'
16088 # Executable file suffix (normally "").
16091 # Additional compiler flags for building library objects.
16092 pic_flag=$lt_lt_prog_compiler_pic_F77
16095 # What is the maximum length of a command?
16096 max_cmd_len=$lt_cv_sys_max_cmd_len
16098 # Does compiler simultaneously support -c and -o options?
16099 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16101 # Must we lock files when doing compilation?
16102 need_locks=$lt_need_locks
16104 # Do we need the lib prefix for modules?
16105 need_lib_prefix=$need_lib_prefix
16107 # Do we need a version for libraries?
16108 need_version=$need_version
16110 # Whether dlopen is supported.
16111 dlopen_support=$enable_dlopen
16113 # Whether dlopen of programs is supported.
16114 dlopen_self=$enable_dlopen_self
16116 # Whether dlopen of statically linked programs is supported.
16117 dlopen_self_static=$enable_dlopen_self_static
16119 # Compiler flag to prevent dynamic linking.
16120 link_static_flag=$lt_lt_prog_compiler_static_F77
16122 # Compiler flag to turn off builtin functions.
16123 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16125 # Compiler flag to allow reflexive dlopens.
16126 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16128 # Compiler flag to generate shared objects directly from archives.
16129 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16131 # Compiler flag to generate thread-safe objects.
16132 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16134 # Library versioning type.
16135 version_type=$version_type
16137 # Format of library name prefix.
16138 libname_spec=$lt_libname_spec
16140 # List of archive names. First name is the real one, the rest are links.
16141 # The last name is the one that the linker finds with -lNAME.
16142 library_names_spec=$lt_library_names_spec
16144 # The coded name of the library, if different from the real name.
16145 soname_spec=$lt_soname_spec
16147 # Commands used to build and install an old-style archive.
16149 old_archive_cmds=$lt_old_archive_cmds_F77
16150 old_postinstall_cmds=$lt_old_postinstall_cmds
16151 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16153 # Create an old-style archive from a shared archive.
16154 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16156 # Create a temporary old-style archive to link instead of a shared archive.
16157 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16159 # Commands used to build and install a shared archive.
16160 archive_cmds=$lt_archive_cmds_F77
16161 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16162 postinstall_cmds=$lt_postinstall_cmds
16163 postuninstall_cmds=$lt_postuninstall_cmds
16165 # Commands used to build a loadable module (assumed same as above if empty)
16166 module_cmds=$lt_module_cmds_F77
16167 module_expsym_cmds=$lt_module_expsym_cmds_F77
16169 # Commands to strip libraries.
16170 old_striplib=$lt_old_striplib
16171 striplib=$lt_striplib
16173 # Dependencies to place before the objects being linked to create a
16175 predep_objects=$lt_predep_objects_F77
16177 # Dependencies to place after the objects being linked to create a
16179 postdep_objects=$lt_postdep_objects_F77
16181 # Dependencies to place before the objects being linked to create a
16183 predeps=$lt_predeps_F77
16185 # Dependencies to place after the objects being linked to create a
16187 postdeps=$lt_postdeps_F77
16189 # The library search path used internally by the compiler when linking
16190 # a shared library.
16191 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16193 # Method to check whether dependent libraries are shared objects.
16194 deplibs_check_method=$lt_deplibs_check_method
16196 # Command to use when deplibs_check_method == file_magic.
16197 file_magic_cmd=$lt_file_magic_cmd
16199 # Flag that allows shared libraries with undefined symbols to be built.
16200 allow_undefined_flag=$lt_allow_undefined_flag_F77
16202 # Flag that forces no undefined symbols.
16203 no_undefined_flag=$lt_no_undefined_flag_F77
16205 # Commands used to finish a libtool library installation in a directory.
16206 finish_cmds=$lt_finish_cmds
16208 # Same as above, but a single script fragment to be evaled but not shown.
16209 finish_eval=$lt_finish_eval
16211 # Take the output of nm and produce a listing of raw symbols and C names.
16212 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16214 # Transform the output of nm in a proper C declaration
16215 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16217 # Transform the output of nm in a C name address pair
16218 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16220 # This is the shared library runtime path variable.
16221 runpath_var=$runpath_var
16223 # This is the shared library path variable.
16224 shlibpath_var=$shlibpath_var
16226 # Is shlibpath searched before the hard-coded library search path?
16227 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16229 # How to hardcode a shared library path into an executable.
16230 hardcode_action=$hardcode_action_F77
16232 # Whether we should hardcode library paths into libraries.
16233 hardcode_into_libs=$hardcode_into_libs
16235 # Flag to hardcode \$libdir into a binary during linking.
16236 # This must work even if \$libdir does not exist.
16237 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16239 # If ld is used when linking, flag to hardcode \$libdir into
16240 # a binary during linking. This must work even if \$libdir does
16242 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16244 # Whether we need a single -rpath flag with a separated argument.
16245 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16247 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16248 # resulting binary.
16249 hardcode_direct=$hardcode_direct_F77
16251 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16252 # resulting binary.
16253 hardcode_minus_L=$hardcode_minus_L_F77
16255 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16256 # the resulting binary.
16257 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16259 # Set to yes if building a shared library automatically hardcodes DIR into the library
16260 # and all subsequent libraries and executables linked against it.
16261 hardcode_automatic=$hardcode_automatic_F77
16263 # Variables whose values should be saved in libtool wrapper scripts and
16264 # restored at relink time.
16265 variables_saved_for_relink="$variables_saved_for_relink"
16267 # Whether libtool must link a program against all its dependency libraries.
16268 link_all_deplibs=$link_all_deplibs_F77
16270 # Compile-time system search path for libraries
16271 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16273 # Run-time system search path for libraries
16274 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16276 # Fix the shell variable \$srcfile for the compiler.
16277 fix_srcfile_path="$fix_srcfile_path_F77"
16279 # Set to yes if exported symbols are required.
16280 always_export_symbols=$always_export_symbols_F77
16282 # The commands to list exported symbols.
16283 export_symbols_cmds=$lt_export_symbols_cmds_F77
16285 # The commands to extract the exported symbol list from a shared archive.
16286 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16288 # Symbols that should not be listed in the preloaded symbols.
16289 exclude_expsyms=$lt_exclude_expsyms_F77
16291 # Symbols that must always be exported.
16292 include_expsyms=$lt_include_expsyms_F77
16294 # ### END LIBTOOL TAG CONFIG: $tagname
16300 # If there is no Makefile yet, we rely on a make rule to execute
16301 # `config.status --recheck' to rerun these tests and create the
16302 # libtool script then.
16303 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16304 if test -f "$ltmain_in"; then
16305 test -f Makefile && make "$ltmain"
16311 ac_cpp='$CPP $CPPFLAGS'
16312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16324 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16327 # Source file extension for Java test sources.
16330 # Object file extension for compiled Java test sources.
16334 # Code to be used in simple compile tests
16335 lt_simple_compile_test_code="class foo {}\n"
16337 # Code to be used in simple link tests
16338 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16340 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16342 # If no C compiler was specified, use CC.
16345 # If no C compiler flags were specified, use CFLAGS.
16346 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16348 # Allow CC to be a program name with arguments.
16352 # save warnings/boilerplate of simple test code
16353 ac_outfile=conftest.$ac_objext
16354 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16355 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16356 _lt_compiler_boilerplate=`cat conftest.err`
16359 ac_outfile=conftest.$ac_objext
16360 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16361 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16362 _lt_linker_boilerplate=`cat conftest.err`
16366 # Allow CC to be a program name with arguments.
16371 for cc_temp in $compiler""; do
16373 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16374 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16379 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16382 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16383 archive_cmds_need_lc_GCJ=no
16385 old_archive_cmds_GCJ=$old_archive_cmds
16388 lt_prog_compiler_no_builtin_flag_GCJ=
16390 if test "$GCC" = yes; then
16391 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16394 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16395 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16396 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16397 echo $ECHO_N "(cached) $ECHO_C" >&6
16399 lt_cv_prog_compiler_rtti_exceptions=no
16400 ac_outfile=conftest.$ac_objext
16401 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16402 lt_compiler_flag="-fno-rtti -fno-exceptions"
16403 # Insert the option either (1) after the last *FLAGS variable, or
16404 # (2) before a word containing "conftest.", or (3) at the end.
16405 # Note that $ac_compile itself does not contain backslashes and begins
16406 # with a dollar sign (not a hyphen), so the echo should work correctly.
16407 # The option is referenced via a variable to avoid confusing sed.
16408 lt_compile=`echo "$ac_compile" | $SED \
16409 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16410 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16411 -e 's:$: $lt_compiler_flag:'`
16412 (eval echo "\"\$as_me:16412: $lt_compile\"" >&5)
16413 (eval "$lt_compile" 2>conftest.err)
16415 cat conftest.err >&5
16416 echo "$as_me:16416: \$? = $ac_status" >&5
16417 if (exit $ac_status) && test -s "$ac_outfile"; then
16418 # The compiler can only warn and ignore the option if not recognized
16419 # So say no if there are warnings other than the usual output.
16420 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16421 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16422 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16423 lt_cv_prog_compiler_rtti_exceptions=yes
16429 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16430 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16432 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16433 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16440 lt_prog_compiler_wl_GCJ=
16441 lt_prog_compiler_pic_GCJ=
16442 lt_prog_compiler_static_GCJ=
16444 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16445 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16447 if test "$GCC" = yes; then
16448 lt_prog_compiler_wl_GCJ='-Wl,'
16449 lt_prog_compiler_static_GCJ='-static'
16453 # All AIX code is PIC.
16454 if test "$host_cpu" = ia64; then
16455 # AIX 5 now supports IA64 processor
16456 lt_prog_compiler_static_GCJ='-Bstatic'
16461 # FIXME: we need at least 68020 code to build shared libraries, but
16462 # adding the `-m68020' flag to GCC prevents building anything better,
16464 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16467 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16468 # PIC is the default for these OSes.
16471 mingw* | pw32* | os2*)
16472 # This hack is so that the source file can tell whether it is being
16473 # built for inclusion in a dll (and should export symbols for example).
16474 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16477 darwin* | rhapsody*)
16478 # PIC is the default on this platform
16479 # Common symbols not allowed in MH_DYLIB files
16480 lt_prog_compiler_pic_GCJ='-fno-common'
16484 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16485 # Instead, we relocate shared libraries at runtime.
16489 # Just because we use GCC doesn't mean we suddenly get shared libraries
16490 # on systems that don't support them.
16491 lt_prog_compiler_can_build_shared_GCJ=no
16496 if test -d /usr/nec; then
16497 lt_prog_compiler_pic_GCJ=-Kconform_pic
16502 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16503 # not for PA HP-UX.
16509 lt_prog_compiler_pic_GCJ='-fPIC'
16515 lt_prog_compiler_pic_GCJ='-fPIC'
16519 # PORTME Check for flag to pass linker flags through the system compiler.
16522 lt_prog_compiler_wl_GCJ='-Wl,'
16523 if test "$host_cpu" = ia64; then
16524 # AIX 5 now supports IA64 processor
16525 lt_prog_compiler_static_GCJ='-Bstatic'
16527 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16531 # PIC is the default on this platform
16532 # Common symbols not allowed in MH_DYLIB files
16533 case $cc_basename in
16535 lt_prog_compiler_pic_GCJ='-qnocommon'
16536 lt_prog_compiler_wl_GCJ='-Wl,'
16541 mingw* | pw32* | os2*)
16542 # This hack is so that the source file can tell whether it is being
16543 # built for inclusion in a dll (and should export symbols for example).
16544 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16547 hpux9* | hpux10* | hpux11*)
16548 lt_prog_compiler_wl_GCJ='-Wl,'
16549 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16550 # not for PA HP-UX.
16556 lt_prog_compiler_pic_GCJ='+Z'
16559 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16560 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16563 irix5* | irix6* | nonstopux*)
16564 lt_prog_compiler_wl_GCJ='-Wl,'
16565 # PIC (with -KPIC) is the default.
16566 lt_prog_compiler_static_GCJ='-non_shared'
16570 lt_prog_compiler_pic_GCJ='-KPIC'
16571 lt_prog_compiler_static_GCJ='-Bstatic'
16574 linux* | k*bsd*-gnu)
16575 case $cc_basename in
16577 lt_prog_compiler_wl_GCJ='-Wl,'
16578 lt_prog_compiler_pic_GCJ='-KPIC'
16579 lt_prog_compiler_static_GCJ='-static'
16581 pgcc* | pgf77* | pgf90* | pgf95*)
16582 # Portland Group compilers (*not* the Pentium gcc compiler,
16583 # which looks to be a dead project)
16584 lt_prog_compiler_wl_GCJ='-Wl,'
16585 lt_prog_compiler_pic_GCJ='-fpic'
16586 lt_prog_compiler_static_GCJ='-Bstatic'
16589 lt_prog_compiler_wl_GCJ='-Wl,'
16590 # All Alpha code is PIC.
16591 lt_prog_compiler_static_GCJ='-non_shared'
16596 osf3* | osf4* | osf5*)
16597 lt_prog_compiler_wl_GCJ='-Wl,'
16598 # All OSF/1 code is PIC.
16599 lt_prog_compiler_static_GCJ='-non_shared'
16603 lt_prog_compiler_pic_GCJ='-KPIC'
16604 lt_prog_compiler_static_GCJ='-Bstatic'
16605 case $cc_basename in
16606 f77* | f90* | f95*)
16607 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16609 lt_prog_compiler_wl_GCJ='-Wl,';;
16614 lt_prog_compiler_wl_GCJ='-Qoption ld '
16615 lt_prog_compiler_pic_GCJ='-PIC'
16616 lt_prog_compiler_static_GCJ='-Bstatic'
16619 sysv4 | sysv4.2uw2* | sysv4.3*)
16620 lt_prog_compiler_wl_GCJ='-Wl,'
16621 lt_prog_compiler_pic_GCJ='-KPIC'
16622 lt_prog_compiler_static_GCJ='-Bstatic'
16626 if test -d /usr/nec ;then
16627 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16628 lt_prog_compiler_static_GCJ='-Bstatic'
16632 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16633 lt_prog_compiler_wl_GCJ='-Wl,'
16634 lt_prog_compiler_pic_GCJ='-KPIC'
16635 lt_prog_compiler_static_GCJ='-Bstatic'
16639 lt_prog_compiler_wl_GCJ='-Wl,'
16640 lt_prog_compiler_can_build_shared_GCJ=no
16644 lt_prog_compiler_pic_GCJ='-pic'
16645 lt_prog_compiler_static_GCJ='-Bstatic'
16649 lt_prog_compiler_can_build_shared_GCJ=no
16654 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16655 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16658 # Check to make sure the PIC flag actually works.
16660 if test -n "$lt_prog_compiler_pic_GCJ"; then
16662 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16663 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16664 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16665 echo $ECHO_N "(cached) $ECHO_C" >&6
16667 lt_prog_compiler_pic_works_GCJ=no
16668 ac_outfile=conftest.$ac_objext
16669 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16670 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16671 # Insert the option either (1) after the last *FLAGS variable, or
16672 # (2) before a word containing "conftest.", or (3) at the end.
16673 # Note that $ac_compile itself does not contain backslashes and begins
16674 # with a dollar sign (not a hyphen), so the echo should work correctly.
16675 # The option is referenced via a variable to avoid confusing sed.
16676 lt_compile=`echo "$ac_compile" | $SED \
16677 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16678 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16679 -e 's:$: $lt_compiler_flag:'`
16680 (eval echo "\"\$as_me:16680: $lt_compile\"" >&5)
16681 (eval "$lt_compile" 2>conftest.err)
16683 cat conftest.err >&5
16684 echo "$as_me:16684: \$? = $ac_status" >&5
16685 if (exit $ac_status) && test -s "$ac_outfile"; then
16686 # The compiler can only warn and ignore the option if not recognized
16687 # So say no if there are warnings other than the usual output.
16688 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16689 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16690 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16691 lt_prog_compiler_pic_works_GCJ=yes
16697 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16698 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16700 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16701 case $lt_prog_compiler_pic_GCJ in
16703 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16706 lt_prog_compiler_pic_GCJ=
16707 lt_prog_compiler_can_build_shared_GCJ=no
16712 # For platforms which do not support PIC, -DPIC is meaningless:
16714 lt_prog_compiler_pic_GCJ=
16717 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16722 # Check to make sure the static flag actually works.
16724 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16725 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16726 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16727 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16728 echo $ECHO_N "(cached) $ECHO_C" >&6
16730 lt_prog_compiler_static_works_GCJ=no
16731 save_LDFLAGS="$LDFLAGS"
16732 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16733 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16734 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16735 # The linker can only warn and ignore the option if not recognized
16736 # So say no if there are warnings
16737 if test -s conftest.err; then
16738 # Append any errors to the config.log.
16739 cat conftest.err 1>&5
16740 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16741 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16742 if diff conftest.exp conftest.er2 >/dev/null; then
16743 lt_prog_compiler_static_works_GCJ=yes
16746 lt_prog_compiler_static_works_GCJ=yes
16750 LDFLAGS="$save_LDFLAGS"
16753 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16754 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16756 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16759 lt_prog_compiler_static_GCJ=
16763 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16764 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16765 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16766 echo $ECHO_N "(cached) $ECHO_C" >&6
16768 lt_cv_prog_compiler_c_o_GCJ=no
16769 $rm -r conftest 2>/dev/null
16773 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16775 lt_compiler_flag="-o out/conftest2.$ac_objext"
16776 # Insert the option either (1) after the last *FLAGS variable, or
16777 # (2) before a word containing "conftest.", or (3) at the end.
16778 # Note that $ac_compile itself does not contain backslashes and begins
16779 # with a dollar sign (not a hyphen), so the echo should work correctly.
16780 lt_compile=`echo "$ac_compile" | $SED \
16781 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16782 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16783 -e 's:$: $lt_compiler_flag:'`
16784 (eval echo "\"\$as_me:16784: $lt_compile\"" >&5)
16785 (eval "$lt_compile" 2>out/conftest.err)
16787 cat out/conftest.err >&5
16788 echo "$as_me:16788: \$? = $ac_status" >&5
16789 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16791 # The compiler can only warn and ignore the option if not recognized
16792 # So say no if there are warnings
16793 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16794 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16795 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16796 lt_cv_prog_compiler_c_o_GCJ=yes
16801 # SGI C++ compiler will create directory out/ii_files/ for
16802 # template instantiation
16803 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16804 $rm out/* && rmdir out
16810 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16811 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16814 hard_links="nottested"
16815 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16816 # do not overwrite the value of need_locks provided by the user
16817 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16818 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16821 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16823 ln conftest.a conftest.b 2>&5 || hard_links=no
16824 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16825 { echo "$as_me:$LINENO: result: $hard_links" >&5
16826 echo "${ECHO_T}$hard_links" >&6; }
16827 if test "$hard_links" = no; then
16828 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16829 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16836 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16837 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16840 allow_undefined_flag_GCJ=
16841 enable_shared_with_static_runtimes_GCJ=no
16843 archive_expsym_cmds_GCJ=
16844 old_archive_From_new_cmds_GCJ=
16845 old_archive_from_expsyms_cmds_GCJ=
16846 export_dynamic_flag_spec_GCJ=
16847 whole_archive_flag_spec_GCJ=
16848 thread_safe_flag_spec_GCJ=
16849 hardcode_libdir_flag_spec_GCJ=
16850 hardcode_libdir_flag_spec_ld_GCJ=
16851 hardcode_libdir_separator_GCJ=
16852 hardcode_direct_GCJ=no
16853 hardcode_minus_L_GCJ=no
16854 hardcode_shlibpath_var_GCJ=unsupported
16855 link_all_deplibs_GCJ=unknown
16856 hardcode_automatic_GCJ=no
16858 module_expsym_cmds_GCJ=
16859 always_export_symbols_GCJ=no
16860 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16861 # include_expsyms should be a list of space-separated symbols to be *always*
16862 # included in the symbol list
16863 include_expsyms_GCJ=
16864 # exclude_expsyms can be an extended regexp of symbols to exclude
16865 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16866 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16867 # as well as any symbol that contains `d'.
16868 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16869 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16870 # platforms (ab)use it in PIC code, but their linkers get confused if
16871 # the symbol is explicitly referenced. Since portable code cannot
16872 # rely on this symbol name, it's probably fine to never include it in
16873 # preloaded symbol tables.
16874 extract_expsyms_cmds=
16875 # Just being paranoid about ensuring that cc_basename is set.
16876 for cc_temp in $compiler""; do
16878 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16879 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16884 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16887 cygwin* | mingw* | pw32*)
16888 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16889 # When not using gcc, we currently assume that we are using
16890 # Microsoft Visual C++.
16891 if test "$GCC" != yes; then
16896 # we just hope/assume this is gcc and not c89 (= MSVC++)
16905 if test "$with_gnu_ld" = yes; then
16906 # If archive_cmds runs LD, not CC, wlarc should be empty
16909 # Set some defaults for GNU ld with shared library support. These
16910 # are reset later if shared libraries are not supported. Putting them
16911 # here allows them to be overridden if necessary.
16912 runpath_var=LD_RUN_PATH
16913 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16914 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16915 # ancient GNU ld didn't support --whole-archive et. al.
16916 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16917 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16919 whole_archive_flag_spec_GCJ=
16921 supports_anon_versioning=no
16922 case `$LD -v 2>/dev/null` in
16923 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16924 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16925 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16926 *\ 2.11.*) ;; # other 2.11 versions
16927 *) supports_anon_versioning=yes ;;
16930 # See if GNU ld supports shared libraries.
16932 aix3* | aix4* | aix5*)
16933 # On AIX/PPC, the GNU linker is very broken
16934 if test "$host_cpu" != ia64; then
16938 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16939 *** to be unable to reliably create shared libraries on AIX.
16940 *** Therefore, libtool is disabling shared libraries support. If you
16941 *** really care for shared libraries, you may want to modify your PATH
16942 *** so that a non-GNU linker is found, and then restart.
16949 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)'
16950 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16951 hardcode_minus_L_GCJ=yes
16953 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16954 # that the semantics of dynamic libraries on AmigaOS, at least up
16955 # to version 4, is to share data among multiple programs linked
16956 # with the same dynamic library. Since this doesn't match the
16957 # behavior of shared libraries on other platforms, we can't use
16963 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16964 allow_undefined_flag_GCJ=unsupported
16965 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16966 # support --undefined. This deserves some investigation. FIXME
16967 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16973 cygwin* | mingw* | pw32*)
16974 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16975 # as there is no search path for DLLs.
16976 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16977 allow_undefined_flag_GCJ=unsupported
16978 always_export_symbols_GCJ=no
16979 enable_shared_with_static_runtimes_GCJ=yes
16980 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16982 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16983 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16984 # If the export-symbols file already is a .def file (1st line
16985 # is EXPORTS), use it as is; otherwise, prepend...
16986 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16987 cp $export_symbols $output_objdir/$soname.def;
16989 echo EXPORTS > $output_objdir/$soname.def;
16990 cat $export_symbols >> $output_objdir/$soname.def;
16992 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16999 hardcode_direct_GCJ=no
17000 hardcode_shlibpath_var_GCJ=no
17001 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17002 export_dynamic_flag_spec_GCJ='${wl}-E'
17003 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17004 # Instead, shared libraries are loaded at an image base (0x10000000 by
17005 # default) and relocated if they conflict, which is a slow very memory
17006 # consuming and fragmenting process. To avoid this, we pick a random,
17007 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17008 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17009 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'
17010 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'
17013 linux* | k*bsd*-gnu)
17014 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17016 case $cc_basename,$host_cpu in
17017 pgcc*) # Portland Group C compiler
17018 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'
17019 tmp_addflag=' $pic_flag'
17021 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17022 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'
17023 tmp_addflag=' $pic_flag -Mnomain' ;;
17024 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17025 tmp_addflag=' -i_dynamic' ;;
17026 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17027 tmp_addflag=' -i_dynamic -nofor_main' ;;
17028 ifc* | ifort*) # Intel Fortran compiler
17029 tmp_addflag=' -nofor_main' ;;
17031 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17033 if test $supports_anon_versioning = yes; then
17034 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17035 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17036 $echo "local: *; };" >> $output_objdir/$libname.ver~
17037 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17039 link_all_deplibs_GCJ=no
17045 netbsd* | netbsdelf*-gnu)
17046 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17047 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17050 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17051 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17056 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17060 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17061 *** create shared libraries on Solaris systems. Therefore, libtool
17062 *** is disabling shared libraries support. We urge you to upgrade GNU
17063 *** binutils to release 2.9.1 or newer. Another option is to modify
17064 *** your PATH or compiler configuration so that the native linker is
17065 *** used, and then restart.
17068 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17069 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17070 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17076 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17077 case `$LD -v 2>&1` in
17078 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17082 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17083 *** reliably create shared libraries on SCO systems. Therefore, libtool
17084 *** is disabling shared libraries support. We urge you to upgrade GNU
17085 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17086 *** your PATH or compiler configuration so that the native linker is
17087 *** used, and then restart.
17092 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17093 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17094 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17095 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17104 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17106 hardcode_direct_GCJ=yes
17107 hardcode_shlibpath_var_GCJ=no
17111 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17112 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17113 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17120 if test "$ld_shlibs_GCJ" = no; then
17122 hardcode_libdir_flag_spec_GCJ=
17123 export_dynamic_flag_spec_GCJ=
17124 whole_archive_flag_spec_GCJ=
17127 # PORTME fill in a description of your system's linker (not GNU ld)
17130 allow_undefined_flag_GCJ=unsupported
17131 always_export_symbols_GCJ=yes
17132 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'
17133 # Note: this linker hardcodes the directories in LIBPATH if there
17134 # are no directories specified by -L.
17135 hardcode_minus_L_GCJ=yes
17136 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17137 # Neither direct hardcoding nor static linking is supported with a
17139 hardcode_direct_GCJ=unsupported
17144 if test "$host_cpu" = ia64; then
17145 # On IA64, the linker does run time linking by default, so we don't
17146 # have to do anything special.
17147 aix_use_runtimelinking=no
17148 exp_sym_flag='-Bexport'
17151 # If we're using GNU nm, then we don't want the "-C" option.
17152 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17153 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17154 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'
17156 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'
17158 aix_use_runtimelinking=no
17160 # Test if we are trying to use run time linking or normal
17161 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17162 # need to do runtime linking.
17163 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17164 for ld_flag in $LDFLAGS; do
17165 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17166 aix_use_runtimelinking=yes
17173 exp_sym_flag='-bexport'
17174 no_entry_flag='-bnoentry'
17177 # When large executables or shared objects are built, AIX ld can
17178 # have problems creating the table of contents. If linking a library
17179 # or program results in "error TOC overflow" add -mminimal-toc to
17180 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17181 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17183 archive_cmds_GCJ=''
17184 hardcode_direct_GCJ=yes
17185 hardcode_libdir_separator_GCJ=':'
17186 link_all_deplibs_GCJ=yes
17188 if test "$GCC" = yes; then
17189 case $host_os in aix4.[012]|aix4.[012].*)
17190 # We only want to do this on AIX 4.2 and lower, the check
17191 # below for broken collect2 doesn't work under 4.3+
17192 collect2name=`${CC} -print-prog-name=collect2`
17193 if test -f "$collect2name" && \
17194 strings "$collect2name" | grep resolve_lib_name >/dev/null
17196 # We have reworked collect2
17197 hardcode_direct_GCJ=yes
17199 # We have old collect2
17200 hardcode_direct_GCJ=unsupported
17201 # It fails to find uninstalled libraries when the uninstalled
17202 # path is not listed in the libpath. Setting hardcode_minus_L
17203 # to unsupported forces relinking
17204 hardcode_minus_L_GCJ=yes
17205 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17206 hardcode_libdir_separator_GCJ=
17210 shared_flag='-shared'
17211 if test "$aix_use_runtimelinking" = yes; then
17212 shared_flag="$shared_flag "'${wl}-G'
17216 if test "$host_cpu" = ia64; then
17217 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17218 # chokes on -Wl,-G. The following line is correct:
17221 if test "$aix_use_runtimelinking" = yes; then
17222 shared_flag='${wl}-G'
17224 shared_flag='${wl}-bM:SRE'
17229 # It seems that -bexpall does not export symbols beginning with
17230 # underscore (_), so it is better to generate a list of symbols to export.
17231 always_export_symbols_GCJ=yes
17232 if test "$aix_use_runtimelinking" = yes; then
17233 # Warning - without using the other runtime loading flags (-brtl),
17234 # -berok will link without error, but may produce a broken library.
17235 allow_undefined_flag_GCJ='-berok'
17236 # Determine the default libpath from the value encoded in an empty executable.
17237 cat >conftest.$ac_ext <<_ACEOF
17240 cat confdefs.h >>conftest.$ac_ext
17241 cat >>conftest.$ac_ext <<_ACEOF
17242 /* end confdefs.h. */
17252 rm -f conftest.$ac_objext conftest$ac_exeext
17253 if { (ac_try="$ac_link"
17254 case "(($ac_try" in
17255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256 *) ac_try_echo=$ac_try;;
17258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259 (eval "$ac_link") 2>conftest.er1
17261 grep -v '^ *+' conftest.er1 >conftest.err
17263 cat conftest.err >&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } && {
17266 test -z "$ac_c_werror_flag" ||
17267 test ! -s conftest.err
17268 } && test -s conftest$ac_exeext &&
17269 $as_test_x conftest$ac_exeext; then
17271 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17273 # Check for a 64-bit object if we didn't find anything.
17274 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; }
17277 echo "$as_me: failed program was:" >&5
17278 sed 's/^/| /' conftest.$ac_ext >&5
17283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17284 conftest$ac_exeext conftest.$ac_ext
17285 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17287 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17288 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"
17290 if test "$host_cpu" = ia64; then
17291 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17292 allow_undefined_flag_GCJ="-z nodefs"
17293 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"
17295 # Determine the default libpath from the value encoded in an empty executable.
17296 cat >conftest.$ac_ext <<_ACEOF
17299 cat confdefs.h >>conftest.$ac_ext
17300 cat >>conftest.$ac_ext <<_ACEOF
17301 /* end confdefs.h. */
17311 rm -f conftest.$ac_objext conftest$ac_exeext
17312 if { (ac_try="$ac_link"
17313 case "(($ac_try" in
17314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17315 *) ac_try_echo=$ac_try;;
17317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17318 (eval "$ac_link") 2>conftest.er1
17320 grep -v '^ *+' conftest.er1 >conftest.err
17322 cat conftest.err >&5
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); } && {
17325 test -z "$ac_c_werror_flag" ||
17326 test ! -s conftest.err
17327 } && test -s conftest$ac_exeext &&
17328 $as_test_x conftest$ac_exeext; then
17330 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17332 # Check for a 64-bit object if we didn't find anything.
17333 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; }
17336 echo "$as_me: failed program was:" >&5
17337 sed 's/^/| /' conftest.$ac_ext >&5
17342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17343 conftest$ac_exeext conftest.$ac_ext
17344 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17346 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17347 # Warning - without using the other run time loading flags,
17348 # -berok will link without error, but may produce a broken library.
17349 no_undefined_flag_GCJ=' ${wl}-bernotok'
17350 allow_undefined_flag_GCJ=' ${wl}-berok'
17351 # Exported symbols can be pulled into shared objects from archives
17352 whole_archive_flag_spec_GCJ='$convenience'
17353 archive_cmds_need_lc_GCJ=yes
17354 # This is similar to how AIX traditionally builds its shared libraries.
17355 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'
17361 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)'
17362 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17363 hardcode_minus_L_GCJ=yes
17364 # see comment about different semantics on the GNU ld section
17369 export_dynamic_flag_spec_GCJ=-rdynamic
17372 cygwin* | mingw* | pw32*)
17373 # When not using gcc, we currently assume that we are using
17374 # Microsoft Visual C++.
17375 # hardcode_libdir_flag_spec is actually meaningless, as there is
17376 # no search path for DLLs.
17377 hardcode_libdir_flag_spec_GCJ=' '
17378 allow_undefined_flag_GCJ=unsupported
17379 # Tell ltmain to make .lib files, not .a files.
17381 # Tell ltmain to make .dll files, not .so files.
17383 # FIXME: Setting linknames here is a bad hack.
17384 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17385 # The linker will automatically build a .lib file if we build a DLL.
17386 old_archive_From_new_cmds_GCJ='true'
17387 # FIXME: Should let the user specify the lib program.
17388 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17389 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17390 enable_shared_with_static_runtimes_GCJ=yes
17393 darwin* | rhapsody*)
17395 rhapsody* | darwin1.[012])
17396 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17399 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17400 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17402 case ${MACOSX_DEPLOYMENT_TARGET} in
17404 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17407 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17413 archive_cmds_need_lc_GCJ=no
17414 hardcode_direct_GCJ=no
17415 hardcode_automatic_GCJ=yes
17416 hardcode_shlibpath_var_GCJ=unsupported
17417 whole_archive_flag_spec_GCJ=''
17418 link_all_deplibs_GCJ=yes
17419 if test "$GCC" = yes ; then
17420 output_verbose_link_cmd='echo'
17421 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17422 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17423 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17424 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}'
17425 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}'
17427 case $cc_basename in
17429 output_verbose_link_cmd='echo'
17430 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17431 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17432 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17433 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}'
17434 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}'
17444 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17445 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17446 hardcode_shlibpath_var_GCJ=no
17453 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17454 # support. Future versions do this automatically, but an explicit c++rt0.o
17455 # does not break anything, and helps significantly (at the cost of a little
17458 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17459 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17460 hardcode_direct_GCJ=yes
17461 hardcode_shlibpath_var_GCJ=no
17464 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17466 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17467 hardcode_direct_GCJ=yes
17468 hardcode_minus_L_GCJ=yes
17469 hardcode_shlibpath_var_GCJ=no
17472 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17473 freebsd* | dragonfly*)
17474 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17475 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17476 hardcode_direct_GCJ=yes
17477 hardcode_shlibpath_var_GCJ=no
17481 if test "$GCC" = yes; then
17482 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'
17484 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'
17486 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17487 hardcode_libdir_separator_GCJ=:
17488 hardcode_direct_GCJ=yes
17490 # hardcode_minus_L: Not really in the search PATH,
17491 # but as the default location of the library.
17492 hardcode_minus_L_GCJ=yes
17493 export_dynamic_flag_spec_GCJ='${wl}-E'
17497 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17498 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17500 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17502 if test "$with_gnu_ld" = no; then
17503 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17504 hardcode_libdir_separator_GCJ=:
17506 hardcode_direct_GCJ=yes
17507 export_dynamic_flag_spec_GCJ='${wl}-E'
17509 # hardcode_minus_L: Not really in the search PATH,
17510 # but as the default location of the library.
17511 hardcode_minus_L_GCJ=yes
17516 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17519 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17522 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17525 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17531 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17534 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17537 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17541 if test "$with_gnu_ld" = no; then
17542 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17543 hardcode_libdir_separator_GCJ=:
17547 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17548 hardcode_direct_GCJ=no
17549 hardcode_shlibpath_var_GCJ=no
17552 hardcode_direct_GCJ=yes
17553 export_dynamic_flag_spec_GCJ='${wl}-E'
17555 # hardcode_minus_L: Not really in the search PATH,
17556 # but as the default location of the library.
17557 hardcode_minus_L_GCJ=yes
17563 irix5* | irix6* | nonstopux*)
17564 if test "$GCC" = yes; then
17565 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'
17567 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'
17568 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17570 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17571 hardcode_libdir_separator_GCJ=:
17572 link_all_deplibs_GCJ=yes
17575 netbsd* | netbsdelf*-gnu)
17576 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17577 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17579 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17581 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17582 hardcode_direct_GCJ=yes
17583 hardcode_shlibpath_var_GCJ=no
17587 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17588 hardcode_direct_GCJ=yes
17589 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17590 hardcode_libdir_separator_GCJ=:
17591 hardcode_shlibpath_var_GCJ=no
17595 hardcode_direct_GCJ=yes
17596 hardcode_shlibpath_var_GCJ=no
17597 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17598 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17599 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17600 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17601 export_dynamic_flag_spec_GCJ='${wl}-E'
17604 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17605 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17606 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17609 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17610 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17617 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17618 hardcode_minus_L_GCJ=yes
17619 allow_undefined_flag_GCJ=unsupported
17620 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'
17621 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17625 if test "$GCC" = yes; then
17626 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17627 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'
17629 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17630 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'
17632 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17633 hardcode_libdir_separator_GCJ=:
17636 osf4* | osf5*) # as osf3* with the addition of -msym flag
17637 if test "$GCC" = yes; then
17638 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17639 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'
17640 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17642 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17643 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'
17644 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~
17645 $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'
17647 # Both c and cxx compiler support -rpath directly
17648 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17650 hardcode_libdir_separator_GCJ=:
17654 no_undefined_flag_GCJ=' -z text'
17655 if test "$GCC" = yes; then
17657 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17658 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17659 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17662 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17663 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17664 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17666 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17667 hardcode_shlibpath_var_GCJ=no
17669 solaris2.[0-5] | solaris2.[0-5].*) ;;
17671 # The compiler driver will combine linker options so we
17672 # cannot just pass the convience library names through
17673 # without $wl, iff we do not link with $LD.
17674 # Luckily, gcc supports the same syntax we need for Sun Studio.
17675 # Supported since Solaris 2.6 (maybe 2.5.1?)
17678 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17680 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' ;;
17683 link_all_deplibs_GCJ=yes
17687 if test "x$host_vendor" = xsequent; then
17688 # Use $CC to link under sequent, because it throws in some extra .o
17689 # files that make .init and .fini sections work.
17690 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17692 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17694 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17695 hardcode_direct_GCJ=yes
17696 hardcode_minus_L_GCJ=yes
17697 hardcode_shlibpath_var_GCJ=no
17701 case $host_vendor in
17703 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17704 hardcode_direct_GCJ=yes # is this really true???
17707 ## LD is ld it makes a PLAMLIB
17708 ## CC just makes a GrossModule.
17709 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17710 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17711 hardcode_direct_GCJ=no
17714 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17715 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17718 runpath_var='LD_RUN_PATH'
17719 hardcode_shlibpath_var_GCJ=no
17723 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17724 hardcode_shlibpath_var_GCJ=no
17725 export_dynamic_flag_spec_GCJ='-Bexport'
17729 if test -d /usr/nec; then
17730 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17731 hardcode_shlibpath_var_GCJ=no
17732 runpath_var=LD_RUN_PATH
17733 hardcode_runpath_var=yes
17738 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17739 no_undefined_flag_GCJ='${wl}-z,text'
17740 archive_cmds_need_lc_GCJ=no
17741 hardcode_shlibpath_var_GCJ=no
17742 runpath_var='LD_RUN_PATH'
17744 if test "$GCC" = yes; then
17745 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17746 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17748 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17749 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17753 sysv5* | sco3.2v5* | sco5v6*)
17754 # Note: We can NOT use -z defs as we might desire, because we do not
17755 # link with -lc, and that would cause any symbols used from libc to
17756 # always be unresolved, which means just about no library would
17757 # ever link correctly. If we're not using GNU ld we use -z text
17758 # though, which does catch some bad symbols but isn't as heavy-handed
17760 no_undefined_flag_GCJ='${wl}-z,text'
17761 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17762 archive_cmds_need_lc_GCJ=no
17763 hardcode_shlibpath_var_GCJ=no
17764 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17765 hardcode_libdir_separator_GCJ=':'
17766 link_all_deplibs_GCJ=yes
17767 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17768 runpath_var='LD_RUN_PATH'
17770 if test "$GCC" = yes; then
17771 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17772 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17774 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17775 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17780 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17781 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17782 hardcode_shlibpath_var_GCJ=no
17791 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17792 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17793 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17796 # Do we need to explicitly link libc?
17798 case "x$archive_cmds_need_lc_GCJ" in
17800 # Assume -lc should be added
17801 archive_cmds_need_lc_GCJ=yes
17803 if test "$enable_shared" = yes && test "$GCC" = yes; then
17804 case $archive_cmds_GCJ in
17806 # FIXME: we may have to deal with multi-command sequences.
17809 # Test whether the compiler implicitly links with -lc since on some
17810 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17811 # to ld, don't add -lc before -lgcc.
17812 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17813 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17815 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17818 (eval $ac_compile) 2>&5
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); } 2>conftest.err; then
17824 libobjs=conftest.$ac_objext
17826 wl=$lt_prog_compiler_wl_GCJ
17827 pic_flag=$lt_prog_compiler_pic_GCJ
17833 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17834 allow_undefined_flag_GCJ=
17835 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17836 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); }
17841 archive_cmds_need_lc_GCJ=no
17843 archive_cmds_need_lc_GCJ=yes
17845 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17847 cat conftest.err 1>&5
17850 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17851 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17858 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17859 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17860 library_names_spec=
17861 libname_spec='lib$name'
17865 postuninstall_cmds=
17869 shlibpath_overrides_runpath=unknown
17871 dynamic_linker="$host_os ld.so"
17872 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17873 if test "$GCC" = yes; then
17874 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17875 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17876 # if the path contains ";" then we assume it to be the separator
17877 # otherwise default to the standard path separator (i.e. ":") - it is
17878 # assumed that no part of a normal pathname contains ";" but that should
17879 # okay in the real world where ";" in dirpaths is itself problematic.
17880 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17882 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17885 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17887 need_lib_prefix=unknown
17888 hardcode_into_libs=no
17890 # when you set need_version to no, make sure it does not cause -set_version
17891 # flags to be left without arguments
17892 need_version=unknown
17897 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17898 shlibpath_var=LIBPATH
17900 # AIX 3 has no versioning support, so we append a major version to the name.
17901 soname_spec='${libname}${release}${shared_ext}$major'
17908 hardcode_into_libs=yes
17909 if test "$host_cpu" = ia64; then
17910 # AIX 5 supports IA64
17911 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17912 shlibpath_var=LD_LIBRARY_PATH
17914 # With GCC up to 2.95.x, collect2 would create an import file
17915 # for dependence libraries. The import file would start with
17916 # the line `#! .'. This would cause the generated library to
17917 # depend on `.', always an invalid library. This was fixed in
17918 # development snapshots of GCC prior to 3.0.
17920 aix4 | aix4.[01] | aix4.[01].*)
17921 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17923 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17926 can_build_shared=no
17930 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17931 # soname into executable. Probably we can add versioning support to
17932 # collect2, so additional links can be useful in future.
17933 if test "$aix_use_runtimelinking" = yes; then
17934 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17935 # instead of lib<name>.a to let people know that these are not
17936 # typical AIX shared libraries.
17937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17939 # We preserve .a as extension for shared libraries through AIX4.2
17940 # and later when we are not doing run time linking.
17941 library_names_spec='${libname}${release}.a $libname.a'
17942 soname_spec='${libname}${release}${shared_ext}$major'
17944 shlibpath_var=LIBPATH
17949 library_names_spec='$libname.ixlibrary $libname.a'
17950 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17951 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'
17955 library_names_spec='${libname}${shared_ext}'
17956 dynamic_linker="$host_os ld.so"
17957 shlibpath_var=LIBRARY_PATH
17963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17964 soname_spec='${libname}${release}${shared_ext}$major'
17965 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17966 shlibpath_var=LD_LIBRARY_PATH
17967 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17968 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17969 # the default ld.so.conf also contains /usr/contrib/lib and
17970 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17971 # libtool to hard-code these into programs
17974 cygwin* | mingw* | pw32*)
17975 version_type=windows
17980 case $GCC,$host_os in
17981 yes,cygwin* | yes,mingw* | yes,pw32*)
17982 library_names_spec='$libname.dll.a'
17983 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17984 postinstall_cmds='base_file=`basename \${file}`~
17985 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17986 dldir=$destdir/`dirname \$dlpath`~
17987 test -d \$dldir || mkdir -p \$dldir~
17988 $install_prog $dir/$dlname \$dldir/$dlname~
17989 chmod a+x \$dldir/$dlname'
17990 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17991 dlpath=$dir/\$dldll~
17993 shlibpath_overrides_runpath=yes
17997 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17998 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17999 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18002 # MinGW DLLs use traditional 'lib' prefix
18003 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18004 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18005 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18006 # It is most probably a Windows format PATH printed by
18007 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18008 # path with ; separators, and with drive letters. We can handle the
18009 # drive letters (cygwin fileutils understands them), so leave them,
18010 # especially as we might pass files found there to a mingw objdump,
18011 # which wouldn't understand a cygwinified path. Ahh.
18012 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18014 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18018 # pw32 DLLs use 'pw' prefix rather than 'lib'
18019 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18025 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18028 dynamic_linker='Win32 ld.exe'
18029 # FIXME: first we should search . and the directory the executable is in
18033 darwin* | rhapsody*)
18034 dynamic_linker="$host_os dyld"
18035 version_type=darwin
18038 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18039 soname_spec='${libname}${release}${major}$shared_ext'
18040 shlibpath_overrides_runpath=yes
18041 shlibpath_var=DYLD_LIBRARY_PATH
18042 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18043 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18044 if test "$GCC" = yes; then
18045 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"`
18047 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18049 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18057 soname_spec='${libname}${release}${shared_ext}$major'
18058 shlibpath_var=LD_LIBRARY_PATH
18065 freebsd* | dragonfly*)
18066 # DragonFly does not have aout. When/if they implement a new
18067 # versioning mechanism, adjust this.
18068 if test -x /usr/bin/objformat; then
18069 objformat=`/usr/bin/objformat`
18072 freebsd[123]*) objformat=aout ;;
18073 *) objformat=elf ;;
18076 version_type=freebsd-$objformat
18077 case $version_type in
18079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18084 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18088 shlibpath_var=LD_LIBRARY_PATH
18091 shlibpath_overrides_runpath=yes
18093 freebsd3.[01]* | freebsdelf3.[01]*)
18094 shlibpath_overrides_runpath=yes
18095 hardcode_into_libs=yes
18097 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18098 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18099 shlibpath_overrides_runpath=no
18100 hardcode_into_libs=yes
18102 freebsd*) # from 4.6 on
18103 shlibpath_overrides_runpath=yes
18104 hardcode_into_libs=yes
18113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18114 soname_spec='${libname}${release}${shared_ext}$major'
18115 shlibpath_var=LD_LIBRARY_PATH
18116 hardcode_into_libs=yes
18119 hpux9* | hpux10* | hpux11*)
18120 # Give a soname corresponding to the major version so that dld.sl refuses to
18121 # link against other versions.
18128 hardcode_into_libs=yes
18129 dynamic_linker="$host_os dld.so"
18130 shlibpath_var=LD_LIBRARY_PATH
18131 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18133 soname_spec='${libname}${release}${shared_ext}$major'
18134 if test "X$HPUX_IA64_MODE" = X32; then
18135 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18137 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18139 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18143 hardcode_into_libs=yes
18144 dynamic_linker="$host_os dld.sl"
18145 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18146 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18148 soname_spec='${libname}${release}${shared_ext}$major'
18149 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18150 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18154 dynamic_linker="$host_os dld.sl"
18155 shlibpath_var=SHLIB_PATH
18156 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18158 soname_spec='${libname}${release}${shared_ext}$major'
18161 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18162 postinstall_cmds='chmod 555 $lib'
18169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18170 soname_spec='${libname}${release}${shared_ext}$major'
18171 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18172 shlibpath_var=LD_LIBRARY_PATH
18173 shlibpath_overrides_runpath=no
18174 hardcode_into_libs=yes
18177 irix5* | irix6* | nonstopux*)
18179 nonstopux*) version_type=nonstopux ;;
18181 if test "$lt_cv_prog_gnu_ld" = yes; then
18189 soname_spec='${libname}${release}${shared_ext}$major'
18190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18192 irix5* | nonstopux*)
18193 libsuff= shlibsuff=
18196 case $LD in # libtool.m4 will add one of these switches to LD
18197 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18198 libsuff= shlibsuff= libmagic=32-bit;;
18199 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18200 libsuff=32 shlibsuff=N32 libmagic=N32;;
18201 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18202 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18203 *) libsuff= shlibsuff= libmagic=never-match;;
18207 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18208 shlibpath_overrides_runpath=no
18209 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18210 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18211 hardcode_into_libs=yes
18214 # No shared lib support for Linux oldld, aout, or coff.
18215 linux*oldld* | linux*aout* | linux*coff*)
18219 # This must be Linux ELF.
18220 linux* | k*bsd*-gnu)
18224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18225 soname_spec='${libname}${release}${shared_ext}$major'
18226 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18227 shlibpath_var=LD_LIBRARY_PATH
18228 shlibpath_overrides_runpath=no
18229 # This implies no fast_install, which is unacceptable.
18230 # Some rework will be needed to allow for fast_install
18231 # before this can be enabled.
18232 hardcode_into_libs=yes
18234 # Append ld.so.conf contents to the search path
18235 if test -f /etc/ld.so.conf; then
18236 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' ' '`
18237 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18240 # We used to test for /lib/ld.so.1 and disable shared libraries on
18241 # powerpc, because MkLinux only supported shared libraries with the
18242 # GNU dynamic linker. Since this was broken with cross compilers,
18243 # most powerpc-linux boxes support dynamic linking these days and
18244 # people can always --disable-shared, the test was removed, and we
18245 # assume the GNU/Linux dynamic linker is in use.
18246 dynamic_linker='GNU/Linux ld.so'
18253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18254 soname_spec='${libname}${release}${shared_ext}$major'
18255 shlibpath_var=LD_LIBRARY_PATH
18256 shlibpath_overrides_runpath=no
18257 hardcode_into_libs=yes
18258 dynamic_linker='NetBSD ld.elf_so'
18265 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18267 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18268 dynamic_linker='NetBSD (a.out) ld.so'
18270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18271 soname_spec='${libname}${release}${shared_ext}$major'
18272 dynamic_linker='NetBSD ld.elf_so'
18274 shlibpath_var=LD_LIBRARY_PATH
18275 shlibpath_overrides_runpath=yes
18276 hardcode_into_libs=yes
18281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18282 shlibpath_var=LD_LIBRARY_PATH
18283 shlibpath_overrides_runpath=yes
18290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18291 soname_spec='${libname}${release}${shared_ext}$major'
18292 shlibpath_var=LD_LIBRARY_PATH
18293 shlibpath_overrides_runpath=yes
18298 sys_lib_dlsearch_path_spec="/usr/lib"
18300 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18302 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18303 *) need_version=no ;;
18305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18306 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18307 shlibpath_var=LD_LIBRARY_PATH
18308 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18310 openbsd2.[89] | openbsd2.[89].*)
18311 shlibpath_overrides_runpath=no
18314 shlibpath_overrides_runpath=yes
18318 shlibpath_overrides_runpath=yes
18323 libname_spec='$name'
18326 library_names_spec='$libname${shared_ext} $libname.a'
18327 dynamic_linker='OS/2 ld.exe'
18328 shlibpath_var=LIBPATH
18331 osf3* | osf4* | osf5*)
18335 soname_spec='${libname}${release}${shared_ext}$major'
18336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18337 shlibpath_var=LD_LIBRARY_PATH
18338 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18339 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18347 soname_spec='${libname}${release}${shared_ext}$major'
18348 shlibpath_var=LD_LIBRARY_PATH
18349 shlibpath_overrides_runpath=yes
18350 hardcode_into_libs=yes
18351 # ldd complains unless libraries are executable
18352 postinstall_cmds='chmod +x $lib'
18357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18358 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18359 shlibpath_var=LD_LIBRARY_PATH
18360 shlibpath_overrides_runpath=yes
18361 if test "$with_gnu_ld" = yes; then
18369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18370 soname_spec='${libname}${release}${shared_ext}$major'
18371 shlibpath_var=LD_LIBRARY_PATH
18372 case $host_vendor in
18374 shlibpath_overrides_runpath=no
18376 export_dynamic_flag_spec='${wl}-Blargedynsym'
18377 runpath_var=LD_RUN_PATH
18385 shlibpath_overrides_runpath=no
18386 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18392 if test -d /usr/nec ;then
18394 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18395 soname_spec='$libname${shared_ext}.$major'
18396 shlibpath_var=LD_LIBRARY_PATH
18400 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18401 version_type=freebsd-elf
18404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18405 soname_spec='${libname}${release}${shared_ext}$major'
18406 shlibpath_var=LD_LIBRARY_PATH
18407 hardcode_into_libs=yes
18408 if test "$with_gnu_ld" = yes; then
18409 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18410 shlibpath_overrides_runpath=no
18412 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18413 shlibpath_overrides_runpath=yes
18416 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18420 sys_lib_dlsearch_path_spec='/usr/lib'
18425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18426 soname_spec='${libname}${release}${shared_ext}$major'
18427 shlibpath_var=LD_LIBRARY_PATH
18434 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18435 echo "${ECHO_T}$dynamic_linker" >&6; }
18436 test "$dynamic_linker" = no && can_build_shared=no
18438 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18439 if test "$GCC" = yes; then
18440 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18443 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18444 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18445 hardcode_action_GCJ=
18446 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18447 test -n "$runpath_var_GCJ" || \
18448 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18450 # We can hardcode non-existant directories.
18451 if test "$hardcode_direct_GCJ" != no &&
18452 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18453 # have to relink, otherwise we might link with an installed library
18454 # when we should be linking with a yet-to-be-installed one
18455 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18456 test "$hardcode_minus_L_GCJ" != no; then
18457 # Linking always hardcodes the temporary library directory.
18458 hardcode_action_GCJ=relink
18460 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18461 hardcode_action_GCJ=immediate
18464 # We cannot hardcode anything, or else we can only hardcode existing
18466 hardcode_action_GCJ=unsupported
18468 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18469 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18471 if test "$hardcode_action_GCJ" = relink; then
18472 # Fast installation is not supported
18473 enable_fast_install=no
18474 elif test "$shlibpath_overrides_runpath" = yes ||
18475 test "$enable_shared" = no; then
18476 # Fast installation is not necessary
18477 enable_fast_install=needless
18481 # The else clause should only fire when bootstrapping the
18482 # libtool distribution, otherwise you forgot to ship ltmain.sh
18483 # with your package, and you will get complaints that there are
18484 # no rules to generate ltmain.sh.
18485 if test -f "$ltmain"; then
18486 # See if we are running on zsh, and set the options which allow our commands through
18487 # without removal of \ escapes.
18488 if test -n "${ZSH_VERSION+set}" ; then
18489 setopt NO_GLOB_SUBST
18491 # Now quote all the things that may contain metacharacters while being
18492 # careful not to overquote the AC_SUBSTed values. We take copies of the
18493 # variables and quote the copies for generation of the libtool script.
18494 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18496 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18497 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18498 deplibs_check_method reload_flag reload_cmds need_locks \
18499 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18500 lt_cv_sys_global_symbol_to_c_name_address \
18501 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18502 old_postinstall_cmds old_postuninstall_cmds \
18506 lt_prog_compiler_wl_GCJ \
18507 lt_prog_compiler_pic_GCJ \
18508 lt_prog_compiler_static_GCJ \
18509 lt_prog_compiler_no_builtin_flag_GCJ \
18510 export_dynamic_flag_spec_GCJ \
18511 thread_safe_flag_spec_GCJ \
18512 whole_archive_flag_spec_GCJ \
18513 enable_shared_with_static_runtimes_GCJ \
18514 old_archive_cmds_GCJ \
18515 old_archive_from_new_cmds_GCJ \
18516 predep_objects_GCJ \
18517 postdep_objects_GCJ \
18520 compiler_lib_search_path_GCJ \
18522 archive_expsym_cmds_GCJ \
18523 postinstall_cmds_GCJ \
18524 postuninstall_cmds_GCJ \
18525 old_archive_from_expsyms_cmds_GCJ \
18526 allow_undefined_flag_GCJ \
18527 no_undefined_flag_GCJ \
18528 export_symbols_cmds_GCJ \
18529 hardcode_libdir_flag_spec_GCJ \
18530 hardcode_libdir_flag_spec_ld_GCJ \
18531 hardcode_libdir_separator_GCJ \
18532 hardcode_automatic_GCJ \
18534 module_expsym_cmds_GCJ \
18535 lt_cv_prog_compiler_c_o_GCJ \
18536 exclude_expsyms_GCJ \
18537 include_expsyms_GCJ; do
18540 old_archive_cmds_GCJ | \
18541 old_archive_from_new_cmds_GCJ | \
18542 archive_cmds_GCJ | \
18543 archive_expsym_cmds_GCJ | \
18544 module_cmds_GCJ | \
18545 module_expsym_cmds_GCJ | \
18546 old_archive_from_expsyms_cmds_GCJ | \
18547 export_symbols_cmds_GCJ | \
18548 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18549 postinstall_cmds | postuninstall_cmds | \
18550 old_postinstall_cmds | old_postuninstall_cmds | \
18551 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18552 # Double-quote double-evaled strings.
18553 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18556 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18562 *'\$0 --fallback-echo"')
18563 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18569 cat <<__EOF__ >> "$cfgfile"
18570 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18572 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18574 # Shell to use when invoking shell scripts.
18577 # Whether or not to build shared libraries.
18578 build_libtool_libs=$enable_shared
18580 # Whether or not to build static libraries.
18581 build_old_libs=$enable_static
18583 # Whether or not to add -lc for building shared libraries.
18584 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18586 # Whether or not to disallow shared libs when runtime libs are static
18587 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18589 # Whether or not to optimize for fast installation.
18590 fast_install=$enable_fast_install
18593 host_alias=$host_alias
18597 # The build system.
18598 build_alias=$build_alias
18602 # An echo program that does not interpret backslashes.
18607 AR_FLAGS=$lt_AR_FLAGS
18612 # LTCC compiler flags.
18613 LTCFLAGS=$lt_LTCFLAGS
18615 # A language-specific compiler.
18616 CC=$lt_compiler_GCJ
18618 # Is the compiler the GNU C compiler?
18624 # The linker used to build libraries.
18627 # Whether we need hard or soft links.
18630 # A BSD-compatible nm program.
18633 # A symbol stripping program
18636 # Used to examine libraries when file_magic_cmd begins "file"
18637 MAGIC_CMD=$MAGIC_CMD
18639 # Used on cygwin: DLL creation program.
18642 # Used on cygwin: object dumper.
18645 # Used on cygwin: assembler.
18648 # The name of the directory that contains temporary libtool files.
18651 # How to create reloadable object files.
18652 reload_flag=$lt_reload_flag
18653 reload_cmds=$lt_reload_cmds
18655 # How to pass a linker flag through the compiler.
18656 wl=$lt_lt_prog_compiler_wl_GCJ
18658 # Object file suffix (normally "o").
18659 objext="$ac_objext"
18661 # Old archive suffix (normally "a").
18664 # Shared library suffix (normally ".so").
18665 shrext_cmds='$shrext_cmds'
18667 # Executable file suffix (normally "").
18670 # Additional compiler flags for building library objects.
18671 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18674 # What is the maximum length of a command?
18675 max_cmd_len=$lt_cv_sys_max_cmd_len
18677 # Does compiler simultaneously support -c and -o options?
18678 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18680 # Must we lock files when doing compilation?
18681 need_locks=$lt_need_locks
18683 # Do we need the lib prefix for modules?
18684 need_lib_prefix=$need_lib_prefix
18686 # Do we need a version for libraries?
18687 need_version=$need_version
18689 # Whether dlopen is supported.
18690 dlopen_support=$enable_dlopen
18692 # Whether dlopen of programs is supported.
18693 dlopen_self=$enable_dlopen_self
18695 # Whether dlopen of statically linked programs is supported.
18696 dlopen_self_static=$enable_dlopen_self_static
18698 # Compiler flag to prevent dynamic linking.
18699 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18701 # Compiler flag to turn off builtin functions.
18702 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18704 # Compiler flag to allow reflexive dlopens.
18705 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18707 # Compiler flag to generate shared objects directly from archives.
18708 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18710 # Compiler flag to generate thread-safe objects.
18711 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18713 # Library versioning type.
18714 version_type=$version_type
18716 # Format of library name prefix.
18717 libname_spec=$lt_libname_spec
18719 # List of archive names. First name is the real one, the rest are links.
18720 # The last name is the one that the linker finds with -lNAME.
18721 library_names_spec=$lt_library_names_spec
18723 # The coded name of the library, if different from the real name.
18724 soname_spec=$lt_soname_spec
18726 # Commands used to build and install an old-style archive.
18728 old_archive_cmds=$lt_old_archive_cmds_GCJ
18729 old_postinstall_cmds=$lt_old_postinstall_cmds
18730 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18732 # Create an old-style archive from a shared archive.
18733 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18735 # Create a temporary old-style archive to link instead of a shared archive.
18736 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18738 # Commands used to build and install a shared archive.
18739 archive_cmds=$lt_archive_cmds_GCJ
18740 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18741 postinstall_cmds=$lt_postinstall_cmds
18742 postuninstall_cmds=$lt_postuninstall_cmds
18744 # Commands used to build a loadable module (assumed same as above if empty)
18745 module_cmds=$lt_module_cmds_GCJ
18746 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18748 # Commands to strip libraries.
18749 old_striplib=$lt_old_striplib
18750 striplib=$lt_striplib
18752 # Dependencies to place before the objects being linked to create a
18754 predep_objects=$lt_predep_objects_GCJ
18756 # Dependencies to place after the objects being linked to create a
18758 postdep_objects=$lt_postdep_objects_GCJ
18760 # Dependencies to place before the objects being linked to create a
18762 predeps=$lt_predeps_GCJ
18764 # Dependencies to place after the objects being linked to create a
18766 postdeps=$lt_postdeps_GCJ
18768 # The library search path used internally by the compiler when linking
18769 # a shared library.
18770 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18772 # Method to check whether dependent libraries are shared objects.
18773 deplibs_check_method=$lt_deplibs_check_method
18775 # Command to use when deplibs_check_method == file_magic.
18776 file_magic_cmd=$lt_file_magic_cmd
18778 # Flag that allows shared libraries with undefined symbols to be built.
18779 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18781 # Flag that forces no undefined symbols.
18782 no_undefined_flag=$lt_no_undefined_flag_GCJ
18784 # Commands used to finish a libtool library installation in a directory.
18785 finish_cmds=$lt_finish_cmds
18787 # Same as above, but a single script fragment to be evaled but not shown.
18788 finish_eval=$lt_finish_eval
18790 # Take the output of nm and produce a listing of raw symbols and C names.
18791 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18793 # Transform the output of nm in a proper C declaration
18794 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18796 # Transform the output of nm in a C name address pair
18797 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18799 # This is the shared library runtime path variable.
18800 runpath_var=$runpath_var
18802 # This is the shared library path variable.
18803 shlibpath_var=$shlibpath_var
18805 # Is shlibpath searched before the hard-coded library search path?
18806 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18808 # How to hardcode a shared library path into an executable.
18809 hardcode_action=$hardcode_action_GCJ
18811 # Whether we should hardcode library paths into libraries.
18812 hardcode_into_libs=$hardcode_into_libs
18814 # Flag to hardcode \$libdir into a binary during linking.
18815 # This must work even if \$libdir does not exist.
18816 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18818 # If ld is used when linking, flag to hardcode \$libdir into
18819 # a binary during linking. This must work even if \$libdir does
18821 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18823 # Whether we need a single -rpath flag with a separated argument.
18824 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18826 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18827 # resulting binary.
18828 hardcode_direct=$hardcode_direct_GCJ
18830 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18831 # resulting binary.
18832 hardcode_minus_L=$hardcode_minus_L_GCJ
18834 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18835 # the resulting binary.
18836 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18838 # Set to yes if building a shared library automatically hardcodes DIR into the library
18839 # and all subsequent libraries and executables linked against it.
18840 hardcode_automatic=$hardcode_automatic_GCJ
18842 # Variables whose values should be saved in libtool wrapper scripts and
18843 # restored at relink time.
18844 variables_saved_for_relink="$variables_saved_for_relink"
18846 # Whether libtool must link a program against all its dependency libraries.
18847 link_all_deplibs=$link_all_deplibs_GCJ
18849 # Compile-time system search path for libraries
18850 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18852 # Run-time system search path for libraries
18853 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18855 # Fix the shell variable \$srcfile for the compiler.
18856 fix_srcfile_path="$fix_srcfile_path_GCJ"
18858 # Set to yes if exported symbols are required.
18859 always_export_symbols=$always_export_symbols_GCJ
18861 # The commands to list exported symbols.
18862 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18864 # The commands to extract the exported symbol list from a shared archive.
18865 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18867 # Symbols that should not be listed in the preloaded symbols.
18868 exclude_expsyms=$lt_exclude_expsyms_GCJ
18870 # Symbols that must always be exported.
18871 include_expsyms=$lt_include_expsyms_GCJ
18873 # ### END LIBTOOL TAG CONFIG: $tagname
18879 # If there is no Makefile yet, we rely on a make rule to execute
18880 # `config.status --recheck' to rerun these tests and create the
18881 # libtool script then.
18882 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18883 if test -f "$ltmain_in"; then
18884 test -f Makefile && make "$ltmain"
18890 ac_cpp='$CPP $CPPFLAGS'
18891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18905 # Source file extension for RC test sources.
18908 # Object file extension for compiled RC test sources.
18912 # Code to be used in simple compile tests
18913 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18915 # Code to be used in simple link tests
18916 lt_simple_link_test_code="$lt_simple_compile_test_code"
18918 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18920 # If no C compiler was specified, use CC.
18923 # If no C compiler flags were specified, use CFLAGS.
18924 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18926 # Allow CC to be a program name with arguments.
18930 # save warnings/boilerplate of simple test code
18931 ac_outfile=conftest.$ac_objext
18932 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18933 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18934 _lt_compiler_boilerplate=`cat conftest.err`
18937 ac_outfile=conftest.$ac_objext
18938 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18939 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18940 _lt_linker_boilerplate=`cat conftest.err`
18944 # Allow CC to be a program name with arguments.
18949 for cc_temp in $compiler""; do
18951 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18952 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18957 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18959 lt_cv_prog_compiler_c_o_RC=yes
18961 # The else clause should only fire when bootstrapping the
18962 # libtool distribution, otherwise you forgot to ship ltmain.sh
18963 # with your package, and you will get complaints that there are
18964 # no rules to generate ltmain.sh.
18965 if test -f "$ltmain"; then
18966 # See if we are running on zsh, and set the options which allow our commands through
18967 # without removal of \ escapes.
18968 if test -n "${ZSH_VERSION+set}" ; then
18969 setopt NO_GLOB_SUBST
18971 # Now quote all the things that may contain metacharacters while being
18972 # careful not to overquote the AC_SUBSTed values. We take copies of the
18973 # variables and quote the copies for generation of the libtool script.
18974 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18976 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18977 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18978 deplibs_check_method reload_flag reload_cmds need_locks \
18979 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18980 lt_cv_sys_global_symbol_to_c_name_address \
18981 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18982 old_postinstall_cmds old_postuninstall_cmds \
18986 lt_prog_compiler_wl_RC \
18987 lt_prog_compiler_pic_RC \
18988 lt_prog_compiler_static_RC \
18989 lt_prog_compiler_no_builtin_flag_RC \
18990 export_dynamic_flag_spec_RC \
18991 thread_safe_flag_spec_RC \
18992 whole_archive_flag_spec_RC \
18993 enable_shared_with_static_runtimes_RC \
18994 old_archive_cmds_RC \
18995 old_archive_from_new_cmds_RC \
18996 predep_objects_RC \
18997 postdep_objects_RC \
19000 compiler_lib_search_path_RC \
19002 archive_expsym_cmds_RC \
19003 postinstall_cmds_RC \
19004 postuninstall_cmds_RC \
19005 old_archive_from_expsyms_cmds_RC \
19006 allow_undefined_flag_RC \
19007 no_undefined_flag_RC \
19008 export_symbols_cmds_RC \
19009 hardcode_libdir_flag_spec_RC \
19010 hardcode_libdir_flag_spec_ld_RC \
19011 hardcode_libdir_separator_RC \
19012 hardcode_automatic_RC \
19014 module_expsym_cmds_RC \
19015 lt_cv_prog_compiler_c_o_RC \
19016 exclude_expsyms_RC \
19017 include_expsyms_RC; do
19020 old_archive_cmds_RC | \
19021 old_archive_from_new_cmds_RC | \
19022 archive_cmds_RC | \
19023 archive_expsym_cmds_RC | \
19025 module_expsym_cmds_RC | \
19026 old_archive_from_expsyms_cmds_RC | \
19027 export_symbols_cmds_RC | \
19028 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19029 postinstall_cmds | postuninstall_cmds | \
19030 old_postinstall_cmds | old_postuninstall_cmds | \
19031 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19032 # Double-quote double-evaled strings.
19033 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19036 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19042 *'\$0 --fallback-echo"')
19043 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19049 cat <<__EOF__ >> "$cfgfile"
19050 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19052 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19054 # Shell to use when invoking shell scripts.
19057 # Whether or not to build shared libraries.
19058 build_libtool_libs=$enable_shared
19060 # Whether or not to build static libraries.
19061 build_old_libs=$enable_static
19063 # Whether or not to add -lc for building shared libraries.
19064 build_libtool_need_lc=$archive_cmds_need_lc_RC
19066 # Whether or not to disallow shared libs when runtime libs are static
19067 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19069 # Whether or not to optimize for fast installation.
19070 fast_install=$enable_fast_install
19073 host_alias=$host_alias
19077 # The build system.
19078 build_alias=$build_alias
19082 # An echo program that does not interpret backslashes.
19087 AR_FLAGS=$lt_AR_FLAGS
19092 # LTCC compiler flags.
19093 LTCFLAGS=$lt_LTCFLAGS
19095 # A language-specific compiler.
19098 # Is the compiler the GNU C compiler?
19104 # The linker used to build libraries.
19107 # Whether we need hard or soft links.
19110 # A BSD-compatible nm program.
19113 # A symbol stripping program
19116 # Used to examine libraries when file_magic_cmd begins "file"
19117 MAGIC_CMD=$MAGIC_CMD
19119 # Used on cygwin: DLL creation program.
19122 # Used on cygwin: object dumper.
19125 # Used on cygwin: assembler.
19128 # The name of the directory that contains temporary libtool files.
19131 # How to create reloadable object files.
19132 reload_flag=$lt_reload_flag
19133 reload_cmds=$lt_reload_cmds
19135 # How to pass a linker flag through the compiler.
19136 wl=$lt_lt_prog_compiler_wl_RC
19138 # Object file suffix (normally "o").
19139 objext="$ac_objext"
19141 # Old archive suffix (normally "a").
19144 # Shared library suffix (normally ".so").
19145 shrext_cmds='$shrext_cmds'
19147 # Executable file suffix (normally "").
19150 # Additional compiler flags for building library objects.
19151 pic_flag=$lt_lt_prog_compiler_pic_RC
19154 # What is the maximum length of a command?
19155 max_cmd_len=$lt_cv_sys_max_cmd_len
19157 # Does compiler simultaneously support -c and -o options?
19158 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19160 # Must we lock files when doing compilation?
19161 need_locks=$lt_need_locks
19163 # Do we need the lib prefix for modules?
19164 need_lib_prefix=$need_lib_prefix
19166 # Do we need a version for libraries?
19167 need_version=$need_version
19169 # Whether dlopen is supported.
19170 dlopen_support=$enable_dlopen
19172 # Whether dlopen of programs is supported.
19173 dlopen_self=$enable_dlopen_self
19175 # Whether dlopen of statically linked programs is supported.
19176 dlopen_self_static=$enable_dlopen_self_static
19178 # Compiler flag to prevent dynamic linking.
19179 link_static_flag=$lt_lt_prog_compiler_static_RC
19181 # Compiler flag to turn off builtin functions.
19182 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19184 # Compiler flag to allow reflexive dlopens.
19185 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19187 # Compiler flag to generate shared objects directly from archives.
19188 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19190 # Compiler flag to generate thread-safe objects.
19191 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19193 # Library versioning type.
19194 version_type=$version_type
19196 # Format of library name prefix.
19197 libname_spec=$lt_libname_spec
19199 # List of archive names. First name is the real one, the rest are links.
19200 # The last name is the one that the linker finds with -lNAME.
19201 library_names_spec=$lt_library_names_spec
19203 # The coded name of the library, if different from the real name.
19204 soname_spec=$lt_soname_spec
19206 # Commands used to build and install an old-style archive.
19208 old_archive_cmds=$lt_old_archive_cmds_RC
19209 old_postinstall_cmds=$lt_old_postinstall_cmds
19210 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19212 # Create an old-style archive from a shared archive.
19213 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19215 # Create a temporary old-style archive to link instead of a shared archive.
19216 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19218 # Commands used to build and install a shared archive.
19219 archive_cmds=$lt_archive_cmds_RC
19220 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19221 postinstall_cmds=$lt_postinstall_cmds
19222 postuninstall_cmds=$lt_postuninstall_cmds
19224 # Commands used to build a loadable module (assumed same as above if empty)
19225 module_cmds=$lt_module_cmds_RC
19226 module_expsym_cmds=$lt_module_expsym_cmds_RC
19228 # Commands to strip libraries.
19229 old_striplib=$lt_old_striplib
19230 striplib=$lt_striplib
19232 # Dependencies to place before the objects being linked to create a
19234 predep_objects=$lt_predep_objects_RC
19236 # Dependencies to place after the objects being linked to create a
19238 postdep_objects=$lt_postdep_objects_RC
19240 # Dependencies to place before the objects being linked to create a
19242 predeps=$lt_predeps_RC
19244 # Dependencies to place after the objects being linked to create a
19246 postdeps=$lt_postdeps_RC
19248 # The library search path used internally by the compiler when linking
19249 # a shared library.
19250 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19252 # Method to check whether dependent libraries are shared objects.
19253 deplibs_check_method=$lt_deplibs_check_method
19255 # Command to use when deplibs_check_method == file_magic.
19256 file_magic_cmd=$lt_file_magic_cmd
19258 # Flag that allows shared libraries with undefined symbols to be built.
19259 allow_undefined_flag=$lt_allow_undefined_flag_RC
19261 # Flag that forces no undefined symbols.
19262 no_undefined_flag=$lt_no_undefined_flag_RC
19264 # Commands used to finish a libtool library installation in a directory.
19265 finish_cmds=$lt_finish_cmds
19267 # Same as above, but a single script fragment to be evaled but not shown.
19268 finish_eval=$lt_finish_eval
19270 # Take the output of nm and produce a listing of raw symbols and C names.
19271 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19273 # Transform the output of nm in a proper C declaration
19274 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19276 # Transform the output of nm in a C name address pair
19277 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19279 # This is the shared library runtime path variable.
19280 runpath_var=$runpath_var
19282 # This is the shared library path variable.
19283 shlibpath_var=$shlibpath_var
19285 # Is shlibpath searched before the hard-coded library search path?
19286 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19288 # How to hardcode a shared library path into an executable.
19289 hardcode_action=$hardcode_action_RC
19291 # Whether we should hardcode library paths into libraries.
19292 hardcode_into_libs=$hardcode_into_libs
19294 # Flag to hardcode \$libdir into a binary during linking.
19295 # This must work even if \$libdir does not exist.
19296 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19298 # If ld is used when linking, flag to hardcode \$libdir into
19299 # a binary during linking. This must work even if \$libdir does
19301 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19303 # Whether we need a single -rpath flag with a separated argument.
19304 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19306 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19307 # resulting binary.
19308 hardcode_direct=$hardcode_direct_RC
19310 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19311 # resulting binary.
19312 hardcode_minus_L=$hardcode_minus_L_RC
19314 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19315 # the resulting binary.
19316 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19318 # Set to yes if building a shared library automatically hardcodes DIR into the library
19319 # and all subsequent libraries and executables linked against it.
19320 hardcode_automatic=$hardcode_automatic_RC
19322 # Variables whose values should be saved in libtool wrapper scripts and
19323 # restored at relink time.
19324 variables_saved_for_relink="$variables_saved_for_relink"
19326 # Whether libtool must link a program against all its dependency libraries.
19327 link_all_deplibs=$link_all_deplibs_RC
19329 # Compile-time system search path for libraries
19330 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19332 # Run-time system search path for libraries
19333 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19335 # Fix the shell variable \$srcfile for the compiler.
19336 fix_srcfile_path="$fix_srcfile_path_RC"
19338 # Set to yes if exported symbols are required.
19339 always_export_symbols=$always_export_symbols_RC
19341 # The commands to list exported symbols.
19342 export_symbols_cmds=$lt_export_symbols_cmds_RC
19344 # The commands to extract the exported symbol list from a shared archive.
19345 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19347 # Symbols that should not be listed in the preloaded symbols.
19348 exclude_expsyms=$lt_exclude_expsyms_RC
19350 # Symbols that must always be exported.
19351 include_expsyms=$lt_include_expsyms_RC
19353 # ### END LIBTOOL TAG CONFIG: $tagname
19359 # If there is no Makefile yet, we rely on a make rule to execute
19360 # `config.status --recheck' to rerun these tests and create the
19361 # libtool script then.
19362 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19363 if test -f "$ltmain_in"; then
19364 test -f Makefile && make "$ltmain"
19370 ac_cpp='$CPP $CPPFLAGS'
19371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19380 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19381 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19382 { (exit 1); exit 1; }; }
19386 # Append the new tag name to the list of available tags.
19387 if test -n "$tagname" ; then
19388 available_tags="$available_tags $tagname"
19394 # Now substitute the updated list of available tags.
19395 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19396 mv "${ofile}T" "$ofile"
19400 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19401 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19402 { (exit 1); exit 1; }; }
19408 # This can be used to rebuild libtool when needed
19409 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19411 # Always use our own libtool.
19412 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19414 # Prevent multiple expansion
19443 { echo "$as_me:$LINENO: result: " >&5
19444 echo "${ECHO_T}" >&6; }
19445 { echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
19446 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6; }
19449 ac_cpp='$CPP $CPPFLAGS'
19450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19453 if test -n "$ac_tool_prefix"; then
19454 for ac_prog in xlC gcc cc
19456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19460 if test "${ac_cv_prog_CC+set}" = set; then
19461 echo $ECHO_N "(cached) $ECHO_C" >&6
19463 if test -n "$CC"; then
19464 ac_cv_prog_CC="$CC" # Let the user override the test.
19466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19467 for as_dir in $PATH
19470 test -z "$as_dir" && as_dir=.
19471 for ac_exec_ext in '' $ac_executable_extensions; do
19472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19473 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19484 if test -n "$CC"; then
19485 { echo "$as_me:$LINENO: result: $CC" >&5
19486 echo "${ECHO_T}$CC" >&6; }
19488 { echo "$as_me:$LINENO: result: no" >&5
19489 echo "${ECHO_T}no" >&6; }
19493 test -n "$CC" && break
19496 if test -z "$CC"; then
19498 for ac_prog in xlC gcc cc
19500 # Extract the first word of "$ac_prog", so it can be a program name with args.
19501 set dummy $ac_prog; ac_word=$2
19502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19504 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19505 echo $ECHO_N "(cached) $ECHO_C" >&6
19507 if test -n "$ac_ct_CC"; then
19508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19511 for as_dir in $PATH
19514 test -z "$as_dir" && as_dir=.
19515 for ac_exec_ext in '' $ac_executable_extensions; do
19516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19517 ac_cv_prog_ac_ct_CC="$ac_prog"
19518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19527 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19528 if test -n "$ac_ct_CC"; then
19529 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19530 echo "${ECHO_T}$ac_ct_CC" >&6; }
19532 { echo "$as_me:$LINENO: result: no" >&5
19533 echo "${ECHO_T}no" >&6; }
19537 test -n "$ac_ct_CC" && break
19540 if test "x$ac_ct_CC" = x; then
19543 case $cross_compiling:$ac_tool_warned in
19545 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19546 whose name does not start with the host triplet. If you think this
19547 configuration is useful to you, please write to autoconf@gnu.org." >&5
19548 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19549 whose name does not start with the host triplet. If you think this
19550 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19551 ac_tool_warned=yes ;;
19558 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19559 See \`config.log' for more details." >&5
19560 echo "$as_me: error: no acceptable C compiler found in \$PATH
19561 See \`config.log' for more details." >&2;}
19562 { (exit 1); exit 1; }; }
19564 # Provide some information about the compiler.
19565 echo "$as_me:$LINENO: checking for C compiler version" >&5
19566 ac_compiler=`set X $ac_compile; echo $2`
19567 { (ac_try="$ac_compiler --version >&5"
19568 case "(($ac_try" in
19569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19570 *) ac_try_echo=$ac_try;;
19572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19573 (eval "$ac_compiler --version >&5") 2>&5
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); }
19577 { (ac_try="$ac_compiler -v >&5"
19578 case "(($ac_try" in
19579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19580 *) ac_try_echo=$ac_try;;
19582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19583 (eval "$ac_compiler -v >&5") 2>&5
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); }
19587 { (ac_try="$ac_compiler -V >&5"
19588 case "(($ac_try" in
19589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590 *) ac_try_echo=$ac_try;;
19592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19593 (eval "$ac_compiler -V >&5") 2>&5
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); }
19598 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19599 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19600 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19601 echo $ECHO_N "(cached) $ECHO_C" >&6
19603 cat >conftest.$ac_ext <<_ACEOF
19606 cat confdefs.h >>conftest.$ac_ext
19607 cat >>conftest.$ac_ext <<_ACEOF
19608 /* end confdefs.h. */
19621 rm -f conftest.$ac_objext
19622 if { (ac_try="$ac_compile"
19623 case "(($ac_try" in
19624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19625 *) ac_try_echo=$ac_try;;
19627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19628 (eval "$ac_compile") 2>conftest.er1
19630 grep -v '^ *+' conftest.er1 >conftest.err
19632 cat conftest.err >&5
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); } && {
19635 test -z "$ac_c_werror_flag" ||
19636 test ! -s conftest.err
19637 } && test -s conftest.$ac_objext; then
19638 ac_compiler_gnu=yes
19640 echo "$as_me: failed program was:" >&5
19641 sed 's/^/| /' conftest.$ac_ext >&5
19646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19647 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19650 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19651 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19652 GCC=`test $ac_compiler_gnu = yes && echo yes`
19653 ac_test_CFLAGS=${CFLAGS+set}
19654 ac_save_CFLAGS=$CFLAGS
19655 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19656 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19657 if test "${ac_cv_prog_cc_g+set}" = set; then
19658 echo $ECHO_N "(cached) $ECHO_C" >&6
19660 ac_save_c_werror_flag=$ac_c_werror_flag
19661 ac_c_werror_flag=yes
19664 cat >conftest.$ac_ext <<_ACEOF
19667 cat confdefs.h >>conftest.$ac_ext
19668 cat >>conftest.$ac_ext <<_ACEOF
19669 /* end confdefs.h. */
19679 rm -f conftest.$ac_objext
19680 if { (ac_try="$ac_compile"
19681 case "(($ac_try" in
19682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19683 *) ac_try_echo=$ac_try;;
19685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19686 (eval "$ac_compile") 2>conftest.er1
19688 grep -v '^ *+' conftest.er1 >conftest.err
19690 cat conftest.err >&5
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); } && {
19693 test -z "$ac_c_werror_flag" ||
19694 test ! -s conftest.err
19695 } && test -s conftest.$ac_objext; then
19696 ac_cv_prog_cc_g=yes
19698 echo "$as_me: failed program was:" >&5
19699 sed 's/^/| /' conftest.$ac_ext >&5
19702 cat >conftest.$ac_ext <<_ACEOF
19705 cat confdefs.h >>conftest.$ac_ext
19706 cat >>conftest.$ac_ext <<_ACEOF
19707 /* end confdefs.h. */
19717 rm -f conftest.$ac_objext
19718 if { (ac_try="$ac_compile"
19719 case "(($ac_try" in
19720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19721 *) ac_try_echo=$ac_try;;
19723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19724 (eval "$ac_compile") 2>conftest.er1
19726 grep -v '^ *+' conftest.er1 >conftest.err
19728 cat conftest.err >&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); } && {
19731 test -z "$ac_c_werror_flag" ||
19732 test ! -s conftest.err
19733 } && test -s conftest.$ac_objext; then
19736 echo "$as_me: failed program was:" >&5
19737 sed 's/^/| /' conftest.$ac_ext >&5
19739 ac_c_werror_flag=$ac_save_c_werror_flag
19741 cat >conftest.$ac_ext <<_ACEOF
19744 cat confdefs.h >>conftest.$ac_ext
19745 cat >>conftest.$ac_ext <<_ACEOF
19746 /* end confdefs.h. */
19756 rm -f conftest.$ac_objext
19757 if { (ac_try="$ac_compile"
19758 case "(($ac_try" in
19759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19760 *) ac_try_echo=$ac_try;;
19762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19763 (eval "$ac_compile") 2>conftest.er1
19765 grep -v '^ *+' conftest.er1 >conftest.err
19767 cat conftest.err >&5
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); } && {
19770 test -z "$ac_c_werror_flag" ||
19771 test ! -s conftest.err
19772 } && test -s conftest.$ac_objext; then
19773 ac_cv_prog_cc_g=yes
19775 echo "$as_me: failed program was:" >&5
19776 sed 's/^/| /' conftest.$ac_ext >&5
19781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19788 ac_c_werror_flag=$ac_save_c_werror_flag
19790 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19791 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19792 if test "$ac_test_CFLAGS" = set; then
19793 CFLAGS=$ac_save_CFLAGS
19794 elif test $ac_cv_prog_cc_g = yes; then
19795 if test "$GCC" = yes; then
19801 if test "$GCC" = yes; then
19807 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19808 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19809 if test "${ac_cv_prog_cc_c89+set}" = set; then
19810 echo $ECHO_N "(cached) $ECHO_C" >&6
19812 ac_cv_prog_cc_c89=no
19814 cat >conftest.$ac_ext <<_ACEOF
19817 cat confdefs.h >>conftest.$ac_ext
19818 cat >>conftest.$ac_ext <<_ACEOF
19819 /* end confdefs.h. */
19820 #include <stdarg.h>
19822 #include <sys/types.h>
19823 #include <sys/stat.h>
19824 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19825 struct buf { int x; };
19826 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19827 static char *e (p, i)
19833 static char *f (char * (*g) (char **, int), char **p, ...)
19838 s = g (p, va_arg (v,int));
19843 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19844 function prototypes and stuff, but not '\xHH' hex character constants.
19845 These don't provoke an error unfortunately, instead are silently treated
19846 as 'x'. The following induces an error, until -std is added to get
19847 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19848 array size at least. It's necessary to write '\x00'==0 to get something
19849 that's true only with -std. */
19850 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19852 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19853 inside strings and character constants. */
19855 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19857 int test (int i, double x);
19858 struct s1 {int (*f) (int a);};
19859 struct s2 {int (*f) (double a);};
19860 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19866 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19871 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19872 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19874 CC="$ac_save_CC $ac_arg"
19875 rm -f conftest.$ac_objext
19876 if { (ac_try="$ac_compile"
19877 case "(($ac_try" in
19878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19879 *) ac_try_echo=$ac_try;;
19881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19882 (eval "$ac_compile") 2>conftest.er1
19884 grep -v '^ *+' conftest.er1 >conftest.err
19886 cat conftest.err >&5
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); } && {
19889 test -z "$ac_c_werror_flag" ||
19890 test ! -s conftest.err
19891 } && test -s conftest.$ac_objext; then
19892 ac_cv_prog_cc_c89=$ac_arg
19894 echo "$as_me: failed program was:" >&5
19895 sed 's/^/| /' conftest.$ac_ext >&5
19900 rm -f core conftest.err conftest.$ac_objext
19901 test "x$ac_cv_prog_cc_c89" != "xno" && break
19903 rm -f conftest.$ac_ext
19908 case "x$ac_cv_prog_cc_c89" in
19910 { echo "$as_me:$LINENO: result: none needed" >&5
19911 echo "${ECHO_T}none needed" >&6; } ;;
19913 { echo "$as_me:$LINENO: result: unsupported" >&5
19914 echo "${ECHO_T}unsupported" >&6; } ;;
19916 CC="$CC $ac_cv_prog_cc_c89"
19917 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19918 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19923 ac_cpp='$CPP $CPPFLAGS'
19924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19928 depcc="$CC" am_compiler_list=
19930 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19931 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19932 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19933 echo $ECHO_N "(cached) $ECHO_C" >&6
19935 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19936 # We make a subdir and do the tests there. Otherwise we can end up
19937 # making bogus files that we don't know about and never remove. For
19938 # instance it was reported that on HP-UX the gcc test will end up
19939 # making a dummy file named `D' -- because `-MD' means `put the output
19942 # Copy depcomp to subdir because otherwise we won't find it if we're
19943 # using a relative directory.
19944 cp "$am_depcomp" conftest.dir
19946 # We will build objects and dependencies in a subdirectory because
19947 # it helps to detect inapplicable dependency modes. For instance
19948 # both Tru64's cc and ICC support -MD to output dependencies as a
19949 # side effect of compilation, but ICC will put the dependencies in
19950 # the current directory while Tru64 will put them in the object
19954 am_cv_CC_dependencies_compiler_type=none
19955 if test "$am_compiler_list" = ""; then
19956 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19958 for depmode in $am_compiler_list; do
19959 # Setup a source with many dependencies, because some compilers
19960 # like to wrap large dependency lists on column 80 (with \), and
19961 # we should not choose a depcomp mode which is confused by this.
19963 # We need to recreate these files for each test, as the compiler may
19964 # overwrite some of them when testing with obscure command lines.
19965 # This happens at least with the AIX C compiler.
19967 for i in 1 2 3 4 5 6; do
19968 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19969 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19970 # Solaris 8's {/usr,}/bin/sh.
19971 touch sub/conftst$i.h
19973 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19977 # after this tag, mechanisms are not by side-effect, so they'll
19978 # only be used when explicitly requested
19979 if test "x$enable_dependency_tracking" = xyes; then
19987 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19988 # mode. It turns out that the SunPro C++ compiler does not properly
19989 # handle `-M -o', and we need to detect this.
19990 if depmode=$depmode \
19991 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19992 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19993 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19994 >/dev/null 2>conftest.err &&
19995 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19996 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19997 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19998 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19999 # icc doesn't choke on unknown options, it will just issue warnings
20000 # or remarks (even with -Werror). So we grep stderr for any message
20001 # that says an option was ignored or not supported.
20002 # When given -MP, icc 7.0 and 7.1 complain thusly:
20003 # icc: Command line warning: ignoring option '-M'; no argument required
20004 # The diagnosis changed in icc 8.0:
20005 # icc: Command line remark: option '-MP' not supported
20006 if (grep 'ignoring option' conftest.err ||
20007 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20008 am_cv_CC_dependencies_compiler_type=$depmode
20015 rm -rf conftest.dir
20017 am_cv_CC_dependencies_compiler_type=none
20021 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20022 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20023 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20026 test "x$enable_dependency_tracking" != xno \
20027 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20028 am__fastdepCC_TRUE=
20029 am__fastdepCC_FALSE='#'
20031 am__fastdepCC_TRUE='#'
20032 am__fastdepCC_FALSE=
20036 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20037 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
20040 echo timestamp > conftest.file
20041 # Do `set' in a subshell so we don't clobber the current shell's
20042 # arguments. Must try -L first in case configure is actually a
20043 # symlink; some systems play weird games with the mod time of symlinks
20044 # (eg FreeBSD returns the mod time of the symlink's containing
20047 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
20048 if test "$*" = "X"; then
20050 set X `ls -t $srcdir/configure conftest.file`
20052 rm -f conftest.file
20053 if test "$*" != "X $srcdir/configure conftest.file" \
20054 && test "$*" != "X conftest.file $srcdir/configure"; then
20056 # If neither matched, then we have a broken ls. This can happen
20057 # if, for instance, CONFIG_SHELL is bash and it inherits a
20058 # broken ls alias from the environment. This has actually
20059 # happened. Such a system could not be considered "sane".
20060 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
20061 alias in your environment" >&5
20062 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
20063 alias in your environment" >&2;}
20064 { (exit 1); exit 1; }; }
20067 test "$2" = conftest.file
20073 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20074 Check your system clock" >&5
20075 echo "$as_me: error: newly created file is older than distributed files!
20076 Check your system clock" >&2;}
20077 { (exit 1); exit 1; }; }
20079 { echo "$as_me:$LINENO: result: yes" >&5
20080 echo "${ECHO_T}yes" >&6; }
20081 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20082 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20083 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20084 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20085 echo $ECHO_N "(cached) $ECHO_C" >&6
20087 cat >conftest.make <<\_ACEOF
20090 @echo '@@@%%%=$(MAKE)=@@@%%%'
20092 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20093 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20094 *@@@%%%=?*=@@@%%%*)
20095 eval ac_cv_prog_make_${ac_make}_set=yes;;
20097 eval ac_cv_prog_make_${ac_make}_set=no;;
20099 rm -f conftest.make
20101 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20102 { echo "$as_me:$LINENO: result: yes" >&5
20103 echo "${ECHO_T}yes" >&6; }
20106 { echo "$as_me:$LINENO: result: no" >&5
20107 echo "${ECHO_T}no" >&6; }
20108 SET_MAKE="MAKE=${MAKE-make}"
20112 { echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
20113 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6; }
20114 if test "$cross_compiling" = yes; then
20115 { echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
20116 echo "${ECHO_T}assuming the worse in cross-compilation" >&6; }
20118 cat >conftest.$ac_ext <<_ACEOF
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h. */
20133 rm -f conftest$ac_exeext
20134 if { (ac_try="$ac_link"
20135 case "(($ac_try" in
20136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20137 *) ac_try_echo=$ac_try;;
20139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20140 (eval "$ac_link") 2>&5
20142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20144 { (case "(($ac_try" in
20145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20146 *) ac_try_echo=$ac_try;;
20148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20149 (eval "$ac_try") 2>&5
20151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); }; }; then
20154 cat >>confdefs.h <<\_ACEOF
20155 #define PRINTF_NULL_WORKING 1
20158 { echo "$as_me:$LINENO: result: yes" >&5
20159 echo "${ECHO_T}yes" >&6; }
20161 echo "$as_me: program exited with status $ac_status" >&5
20162 echo "$as_me: failed program was:" >&5
20163 sed 's/^/| /' conftest.$ac_ext >&5
20165 ( exit $ac_status )
20166 { echo "$as_me:$LINENO: result: no" >&5
20167 echo "${ECHO_T}no" >&6; }
20169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20175 { echo "$as_me:$LINENO: checking for va_copy() function" >&5
20176 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6; }
20177 if test "${ac_cv_va_copy+set}" = set; then
20178 echo $ECHO_N "(cached) $ECHO_C" >&6
20185 if test ".$ac_cv_va_copy" = .; then
20186 if test "$cross_compiling" = yes; then
20187 ac_cv_va_copy="C99"
20189 cat >conftest.$ac_ext <<_ACEOF
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h. */
20196 #include <stdlib.h>
20197 #include <stdarg.h>
20198 #include <string.h>
20199 #define DO_VA_COPY(d, s) va_copy((d), (s))
20200 void test(char *str, ...)
20205 DO_VA_COPY(ap2, ap);
20206 for (i = 1; i <= 9; i++) {
20207 int k = (int)va_arg(ap, int);
20211 DO_VA_COPY(ap, ap2);
20212 for (i = 1; i <= 9; i++) {
20213 int k = (int)va_arg(ap, int);
20219 int main(int argc, char *argv[])
20221 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20226 rm -f conftest$ac_exeext
20227 if { (ac_try="$ac_link"
20228 case "(($ac_try" in
20229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20230 *) ac_try_echo=$ac_try;;
20232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20233 (eval "$ac_link") 2>&5
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20237 { (case "(($ac_try" in
20238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20239 *) ac_try_echo=$ac_try;;
20241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20242 (eval "$ac_try") 2>&5
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; }; then
20246 ac_cv_va_copy="C99"
20248 echo "$as_me: program exited with status $ac_status" >&5
20249 echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.$ac_ext >&5
20253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20262 if test ".$ac_cv_va_copy" = .; then
20263 if test "$cross_compiling" = yes; then
20264 ac_cv_va_copy="GCM"
20266 cat >conftest.$ac_ext <<_ACEOF
20269 cat confdefs.h >>conftest.$ac_ext
20270 cat >>conftest.$ac_ext <<_ACEOF
20271 /* end confdefs.h. */
20273 #include <stdlib.h>
20274 #include <stdarg.h>
20275 #include <string.h>
20276 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
20277 void test(char *str, ...)
20282 DO_VA_COPY(ap2, ap);
20283 for (i = 1; i <= 9; i++) {
20284 int k = (int)va_arg(ap, int);
20288 DO_VA_COPY(ap, ap2);
20289 for (i = 1; i <= 9; i++) {
20290 int k = (int)va_arg(ap, int);
20296 int main(int argc, char *argv[])
20298 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20303 rm -f conftest$ac_exeext
20304 if { (ac_try="$ac_link"
20305 case "(($ac_try" in
20306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20307 *) ac_try_echo=$ac_try;;
20309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20310 (eval "$ac_link") 2>&5
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20314 { (case "(($ac_try" in
20315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20316 *) ac_try_echo=$ac_try;;
20318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20319 (eval "$ac_try") 2>&5
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); }; }; then
20323 ac_cv_va_copy="GCM"
20325 echo "$as_me: program exited with status $ac_status" >&5
20326 echo "$as_me: failed program was:" >&5
20327 sed 's/^/| /' conftest.$ac_ext >&5
20330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20339 if test ".$ac_cv_va_copy" = .; then
20340 if test "$cross_compiling" = yes; then
20341 ac_cv_va_copy="GCH"
20343 cat >conftest.$ac_ext <<_ACEOF
20346 cat confdefs.h >>conftest.$ac_ext
20347 cat >>conftest.$ac_ext <<_ACEOF
20348 /* end confdefs.h. */
20350 #include <stdlib.h>
20351 #include <stdarg.h>
20352 #include <string.h>
20353 #define DO_VA_COPY(d, s) __va_copy((d), (s))
20354 void test(char *str, ...)
20359 DO_VA_COPY(ap2, ap);
20360 for (i = 1; i <= 9; i++) {
20361 int k = (int)va_arg(ap, int);
20365 DO_VA_COPY(ap, ap2);
20366 for (i = 1; i <= 9; i++) {
20367 int k = (int)va_arg(ap, int);
20373 int main(int argc, char *argv[])
20375 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20380 rm -f conftest$ac_exeext
20381 if { (ac_try="$ac_link"
20382 case "(($ac_try" in
20383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20384 *) ac_try_echo=$ac_try;;
20386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20387 (eval "$ac_link") 2>&5
20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20391 { (case "(($ac_try" in
20392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20393 *) ac_try_echo=$ac_try;;
20395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20396 (eval "$ac_try") 2>&5
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); }; }; then
20400 ac_cv_va_copy="GCH"
20402 echo "$as_me: program exited with status $ac_status" >&5
20403 echo "$as_me: failed program was:" >&5
20404 sed 's/^/| /' conftest.$ac_ext >&5
20407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20416 if test ".$ac_cv_va_copy" = .; then
20417 if test "$cross_compiling" = yes; then
20418 ac_cv_va_copy="GCB"
20420 cat >conftest.$ac_ext <<_ACEOF
20423 cat confdefs.h >>conftest.$ac_ext
20424 cat >>conftest.$ac_ext <<_ACEOF
20425 /* end confdefs.h. */
20427 #include <stdlib.h>
20428 #include <stdarg.h>
20429 #include <string.h>
20430 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
20431 void test(char *str, ...)
20436 DO_VA_COPY(ap2, ap);
20437 for (i = 1; i <= 9; i++) {
20438 int k = (int)va_arg(ap, int);
20442 DO_VA_COPY(ap, ap2);
20443 for (i = 1; i <= 9; i++) {
20444 int k = (int)va_arg(ap, int);
20450 int main(int argc, char *argv[])
20452 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20457 rm -f conftest$ac_exeext
20458 if { (ac_try="$ac_link"
20459 case "(($ac_try" in
20460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461 *) ac_try_echo=$ac_try;;
20463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20464 (eval "$ac_link") 2>&5
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20468 { (case "(($ac_try" in
20469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20470 *) ac_try_echo=$ac_try;;
20472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20473 (eval "$ac_try") 2>&5
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); }; }; then
20477 ac_cv_va_copy="GCB"
20479 echo "$as_me: program exited with status $ac_status" >&5
20480 echo "$as_me: failed program was:" >&5
20481 sed 's/^/| /' conftest.$ac_ext >&5
20484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20493 if test ".$ac_cv_va_copy" = .; then
20494 if test "$cross_compiling" = yes; then
20495 ac_cv_va_copy="ASS"
20497 cat >conftest.$ac_ext <<_ACEOF
20500 cat confdefs.h >>conftest.$ac_ext
20501 cat >>conftest.$ac_ext <<_ACEOF
20502 /* end confdefs.h. */
20504 #include <stdlib.h>
20505 #include <stdarg.h>
20506 #include <string.h>
20507 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
20508 void test(char *str, ...)
20513 DO_VA_COPY(ap2, ap);
20514 for (i = 1; i <= 9; i++) {
20515 int k = (int)va_arg(ap, int);
20519 DO_VA_COPY(ap, ap2);
20520 for (i = 1; i <= 9; i++) {
20521 int k = (int)va_arg(ap, int);
20527 int main(int argc, char *argv[])
20529 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20534 rm -f conftest$ac_exeext
20535 if { (ac_try="$ac_link"
20536 case "(($ac_try" in
20537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20538 *) ac_try_echo=$ac_try;;
20540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20541 (eval "$ac_link") 2>&5
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20545 { (case "(($ac_try" in
20546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547 *) ac_try_echo=$ac_try;;
20549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550 (eval "$ac_try") 2>&5
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; }; then
20554 ac_cv_va_copy="ASS"
20556 echo "$as_me: program exited with status $ac_status" >&5
20557 echo "$as_me: failed program was:" >&5
20558 sed 's/^/| /' conftest.$ac_ext >&5
20561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20570 if test ".$ac_cv_va_copy" = .; then
20571 if test "$cross_compiling" = yes; then
20572 ac_cv_va_copy="ASP"
20574 cat >conftest.$ac_ext <<_ACEOF
20577 cat confdefs.h >>conftest.$ac_ext
20578 cat >>conftest.$ac_ext <<_ACEOF
20579 /* end confdefs.h. */
20581 #include <stdlib.h>
20582 #include <stdarg.h>
20583 #include <string.h>
20584 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
20585 void test(char *str, ...)
20590 DO_VA_COPY(ap2, ap);
20591 for (i = 1; i <= 9; i++) {
20592 int k = (int)va_arg(ap, int);
20596 DO_VA_COPY(ap, ap2);
20597 for (i = 1; i <= 9; i++) {
20598 int k = (int)va_arg(ap, int);
20604 int main(int argc, char *argv[])
20606 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20611 rm -f conftest$ac_exeext
20612 if { (ac_try="$ac_link"
20613 case "(($ac_try" in
20614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20615 *) ac_try_echo=$ac_try;;
20617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20618 (eval "$ac_link") 2>&5
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20622 { (case "(($ac_try" in
20623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20624 *) ac_try_echo=$ac_try;;
20626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20627 (eval "$ac_try") 2>&5
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); }; }; then
20631 ac_cv_va_copy="ASP"
20633 echo "$as_me: program exited with status $ac_status" >&5
20634 echo "$as_me: failed program was:" >&5
20635 sed 's/^/| /' conftest.$ac_ext >&5
20638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20647 if test ".$ac_cv_va_copy" = .; then
20648 if test "$cross_compiling" = yes; then
20649 ac_cv_va_copy="CPS"
20651 cat >conftest.$ac_ext <<_ACEOF
20654 cat confdefs.h >>conftest.$ac_ext
20655 cat >>conftest.$ac_ext <<_ACEOF
20656 /* end confdefs.h. */
20658 #include <stdlib.h>
20659 #include <stdarg.h>
20660 #include <string.h>
20661 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
20662 void test(char *str, ...)
20667 DO_VA_COPY(ap2, ap);
20668 for (i = 1; i <= 9; i++) {
20669 int k = (int)va_arg(ap, int);
20673 DO_VA_COPY(ap, ap2);
20674 for (i = 1; i <= 9; i++) {
20675 int k = (int)va_arg(ap, int);
20681 int main(int argc, char *argv[])
20683 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20688 rm -f conftest$ac_exeext
20689 if { (ac_try="$ac_link"
20690 case "(($ac_try" in
20691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20692 *) ac_try_echo=$ac_try;;
20694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20695 (eval "$ac_link") 2>&5
20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20699 { (case "(($ac_try" in
20700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20701 *) ac_try_echo=$ac_try;;
20703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20704 (eval "$ac_try") 2>&5
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); }; }; then
20708 ac_cv_va_copy="CPS"
20710 echo "$as_me: program exited with status $ac_status" >&5
20711 echo "$as_me: failed program was:" >&5
20712 sed 's/^/| /' conftest.$ac_ext >&5
20715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20724 if test ".$ac_cv_va_copy" = .; then
20725 if test "$cross_compiling" = yes; then
20726 ac_cv_va_copy="CPP"
20728 cat >conftest.$ac_ext <<_ACEOF
20731 cat confdefs.h >>conftest.$ac_ext
20732 cat >>conftest.$ac_ext <<_ACEOF
20733 /* end confdefs.h. */
20735 #include <stdlib.h>
20736 #include <stdarg.h>
20737 #include <string.h>
20738 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
20739 void test(char *str, ...)
20744 DO_VA_COPY(ap2, ap);
20745 for (i = 1; i <= 9; i++) {
20746 int k = (int)va_arg(ap, int);
20750 DO_VA_COPY(ap, ap2);
20751 for (i = 1; i <= 9; i++) {
20752 int k = (int)va_arg(ap, int);
20758 int main(int argc, char *argv[])
20760 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20765 rm -f conftest$ac_exeext
20766 if { (ac_try="$ac_link"
20767 case "(($ac_try" in
20768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20769 *) ac_try_echo=$ac_try;;
20771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20772 (eval "$ac_link") 2>&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20776 { (case "(($ac_try" in
20777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778 *) ac_try_echo=$ac_try;;
20780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781 (eval "$ac_try") 2>&5
20783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784 (exit $ac_status); }; }; then
20785 ac_cv_va_copy="CPP"
20787 echo "$as_me: program exited with status $ac_status" >&5
20788 echo "$as_me: failed program was:" >&5
20789 sed 's/^/| /' conftest.$ac_ext >&5
20792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20798 if test ".$ac_cv_va_copy" = .; then
20799 { { echo "$as_me:$LINENO: error: no working implementation found" >&5
20800 echo "$as_me: error: no working implementation found" >&2;}
20801 { (exit 1); exit 1; }; }
20806 if test ".$ac_cv_va_copy" = ".C99"; then
20808 cat >>confdefs.h <<\_ACEOF
20809 #define HAVE_VA_COPY 1
20814 cat >>confdefs.h <<_ACEOF
20815 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
20820 if test ".$ac_cv_va_copy" = ".C99"; then
20821 { echo "$as_me:$LINENO: result: yes" >&5
20822 echo "${ECHO_T}yes" >&6; }
20824 { echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
20825 echo "${ECHO_T}no (using fallback implementation)" >&6; }
20829 # Checks for header files.
20830 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20831 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20832 if test "${ac_cv_header_stdc+set}" = set; then
20833 echo $ECHO_N "(cached) $ECHO_C" >&6
20835 cat >conftest.$ac_ext <<_ACEOF
20838 cat confdefs.h >>conftest.$ac_ext
20839 cat >>conftest.$ac_ext <<_ACEOF
20840 /* end confdefs.h. */
20841 #include <stdlib.h>
20842 #include <stdarg.h>
20843 #include <string.h>
20854 rm -f conftest.$ac_objext
20855 if { (ac_try="$ac_compile"
20856 case "(($ac_try" in
20857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20858 *) ac_try_echo=$ac_try;;
20860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20861 (eval "$ac_compile") 2>conftest.er1
20863 grep -v '^ *+' conftest.er1 >conftest.err
20865 cat conftest.err >&5
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); } && {
20868 test -z "$ac_c_werror_flag" ||
20869 test ! -s conftest.err
20870 } && test -s conftest.$ac_objext; then
20871 ac_cv_header_stdc=yes
20873 echo "$as_me: failed program was:" >&5
20874 sed 's/^/| /' conftest.$ac_ext >&5
20876 ac_cv_header_stdc=no
20879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20881 if test $ac_cv_header_stdc = yes; then
20882 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20883 cat >conftest.$ac_ext <<_ACEOF
20886 cat confdefs.h >>conftest.$ac_ext
20887 cat >>conftest.$ac_ext <<_ACEOF
20888 /* end confdefs.h. */
20889 #include <string.h>
20892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20893 $EGREP "memchr" >/dev/null 2>&1; then
20896 ac_cv_header_stdc=no
20902 if test $ac_cv_header_stdc = yes; then
20903 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20904 cat >conftest.$ac_ext <<_ACEOF
20907 cat confdefs.h >>conftest.$ac_ext
20908 cat >>conftest.$ac_ext <<_ACEOF
20909 /* end confdefs.h. */
20910 #include <stdlib.h>
20913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20914 $EGREP "free" >/dev/null 2>&1; then
20917 ac_cv_header_stdc=no
20923 if test $ac_cv_header_stdc = yes; then
20924 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20925 if test "$cross_compiling" = yes; then
20928 cat >conftest.$ac_ext <<_ACEOF
20931 cat confdefs.h >>conftest.$ac_ext
20932 cat >>conftest.$ac_ext <<_ACEOF
20933 /* end confdefs.h. */
20935 #include <stdlib.h>
20936 #if ((' ' & 0x0FF) == 0x020)
20937 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20938 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20940 # define ISLOWER(c) \
20941 (('a' <= (c) && (c) <= 'i') \
20942 || ('j' <= (c) && (c) <= 'r') \
20943 || ('s' <= (c) && (c) <= 'z'))
20944 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20947 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20952 for (i = 0; i < 256; i++)
20953 if (XOR (islower (i), ISLOWER (i))
20954 || toupper (i) != TOUPPER (i))
20959 rm -f conftest$ac_exeext
20960 if { (ac_try="$ac_link"
20961 case "(($ac_try" in
20962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20963 *) ac_try_echo=$ac_try;;
20965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20966 (eval "$ac_link") 2>&5
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20970 { (case "(($ac_try" in
20971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20972 *) ac_try_echo=$ac_try;;
20974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20975 (eval "$ac_try") 2>&5
20977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); }; }; then
20981 echo "$as_me: program exited with status $ac_status" >&5
20982 echo "$as_me: failed program was:" >&5
20983 sed 's/^/| /' conftest.$ac_ext >&5
20985 ( exit $ac_status )
20986 ac_cv_header_stdc=no
20988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20994 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20995 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20996 if test $ac_cv_header_stdc = yes; then
20998 cat >>confdefs.h <<\_ACEOF
20999 #define STDC_HEADERS 1
21004 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21005 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21006 if test "${ac_cv_header_time+set}" = set; then
21007 echo $ECHO_N "(cached) $ECHO_C" >&6
21009 cat >conftest.$ac_ext <<_ACEOF
21012 cat confdefs.h >>conftest.$ac_ext
21013 cat >>conftest.$ac_ext <<_ACEOF
21014 /* end confdefs.h. */
21015 #include <sys/types.h>
21016 #include <sys/time.h>
21022 if ((struct tm *) 0)
21028 rm -f conftest.$ac_objext
21029 if { (ac_try="$ac_compile"
21030 case "(($ac_try" in
21031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21032 *) ac_try_echo=$ac_try;;
21034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21035 (eval "$ac_compile") 2>conftest.er1
21037 grep -v '^ *+' conftest.er1 >conftest.err
21039 cat conftest.err >&5
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); } && {
21042 test -z "$ac_c_werror_flag" ||
21043 test ! -s conftest.err
21044 } && test -s conftest.$ac_objext; then
21045 ac_cv_header_time=yes
21047 echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21050 ac_cv_header_time=no
21053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21055 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21056 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21057 if test $ac_cv_header_time = yes; then
21059 cat >>confdefs.h <<\_ACEOF
21060 #define TIME_WITH_SYS_TIME 1
21075 for ac_header in sys/socket.h \
21077 windows.h winsock.h winsock2.h \
21083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21088 echo $ECHO_N "(cached) $ECHO_C" >&6
21090 ac_res=`eval echo '${'$as_ac_Header'}'`
21091 { echo "$as_me:$LINENO: result: $ac_res" >&5
21092 echo "${ECHO_T}$ac_res" >&6; }
21094 # Is the header compilable?
21095 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21097 cat >conftest.$ac_ext <<_ACEOF
21100 cat confdefs.h >>conftest.$ac_ext
21101 cat >>conftest.$ac_ext <<_ACEOF
21102 /* end confdefs.h. */
21103 $ac_includes_default
21104 #include <$ac_header>
21106 rm -f conftest.$ac_objext
21107 if { (ac_try="$ac_compile"
21108 case "(($ac_try" in
21109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21110 *) ac_try_echo=$ac_try;;
21112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21113 (eval "$ac_compile") 2>conftest.er1
21115 grep -v '^ *+' conftest.er1 >conftest.err
21117 cat conftest.err >&5
21118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119 (exit $ac_status); } && {
21120 test -z "$ac_c_werror_flag" ||
21121 test ! -s conftest.err
21122 } && test -s conftest.$ac_objext; then
21123 ac_header_compiler=yes
21125 echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21128 ac_header_compiler=no
21131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21133 echo "${ECHO_T}$ac_header_compiler" >&6; }
21135 # Is the header present?
21136 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21138 cat >conftest.$ac_ext <<_ACEOF
21141 cat confdefs.h >>conftest.$ac_ext
21142 cat >>conftest.$ac_ext <<_ACEOF
21143 /* end confdefs.h. */
21144 #include <$ac_header>
21146 if { (ac_try="$ac_cpp conftest.$ac_ext"
21147 case "(($ac_try" in
21148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21149 *) ac_try_echo=$ac_try;;
21151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21154 grep -v '^ *+' conftest.er1 >conftest.err
21156 cat conftest.err >&5
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); } >/dev/null && {
21159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21160 test ! -s conftest.err
21162 ac_header_preproc=yes
21164 echo "$as_me: failed program was:" >&5
21165 sed 's/^/| /' conftest.$ac_ext >&5
21167 ac_header_preproc=no
21170 rm -f conftest.err conftest.$ac_ext
21171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21172 echo "${ECHO_T}$ac_header_preproc" >&6; }
21174 # So? What about this header?
21175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21181 ac_header_preproc=yes
21184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21187 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21191 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21197 ## -------------------------------------------------- ##
21198 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
21199 ## -------------------------------------------------- ##
21201 ) | sed "s/^/$as_me: WARNING: /" >&2
21204 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21207 echo $ECHO_N "(cached) $ECHO_C" >&6
21209 eval "$as_ac_Header=\$ac_header_preproc"
21211 ac_res=`eval echo '${'$as_ac_Header'}'`
21212 { echo "$as_me:$LINENO: result: $ac_res" >&5
21213 echo "${ECHO_T}$ac_res" >&6; }
21216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21217 cat >>confdefs.h <<_ACEOF
21218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21233 for ac_func in gettimeofday usleep \
21241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21242 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21244 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21245 echo $ECHO_N "(cached) $ECHO_C" >&6
21247 cat >conftest.$ac_ext <<_ACEOF
21250 cat confdefs.h >>conftest.$ac_ext
21251 cat >>conftest.$ac_ext <<_ACEOF
21252 /* end confdefs.h. */
21253 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21255 #define $ac_func innocuous_$ac_func
21257 /* System header to define __stub macros and hopefully few prototypes,
21258 which can conflict with char $ac_func (); below.
21259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21260 <limits.h> exists even on freestanding compilers. */
21263 # include <limits.h>
21265 # include <assert.h>
21270 /* Override any GCC internal prototype to avoid an error.
21271 Use char because int might match the return type of a GCC
21272 builtin and then its argument prototype would still apply. */
21277 /* The GNU C library defines this for functions which it implements
21278 to always fail with ENOSYS. Some functions are actually named
21279 something starting with __ and the normal name is an alias. */
21280 #if defined __stub_$ac_func || defined __stub___$ac_func
21287 return $ac_func ();
21292 rm -f conftest.$ac_objext conftest$ac_exeext
21293 if { (ac_try="$ac_link"
21294 case "(($ac_try" in
21295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21296 *) ac_try_echo=$ac_try;;
21298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21299 (eval "$ac_link") 2>conftest.er1
21301 grep -v '^ *+' conftest.er1 >conftest.err
21303 cat conftest.err >&5
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); } && {
21306 test -z "$ac_c_werror_flag" ||
21307 test ! -s conftest.err
21308 } && test -s conftest$ac_exeext &&
21309 $as_test_x conftest$ac_exeext; then
21310 eval "$as_ac_var=yes"
21312 echo "$as_me: failed program was:" >&5
21313 sed 's/^/| /' conftest.$ac_ext >&5
21315 eval "$as_ac_var=no"
21318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21319 conftest$ac_exeext conftest.$ac_ext
21321 ac_res=`eval echo '${'$as_ac_var'}'`
21322 { echo "$as_me:$LINENO: result: $ac_res" >&5
21323 echo "${ECHO_T}$ac_res" >&6; }
21324 if test `eval echo '${'$as_ac_var'}'` = yes; then
21325 cat >>confdefs.h <<_ACEOF
21326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21333 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
21336 for ac_func in snprintf vsnprintf
21338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21339 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21342 echo $ECHO_N "(cached) $ECHO_C" >&6
21344 cat >conftest.$ac_ext <<_ACEOF
21347 cat confdefs.h >>conftest.$ac_ext
21348 cat >>conftest.$ac_ext <<_ACEOF
21349 /* end confdefs.h. */
21350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21352 #define $ac_func innocuous_$ac_func
21354 /* System header to define __stub macros and hopefully few prototypes,
21355 which can conflict with char $ac_func (); below.
21356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21357 <limits.h> exists even on freestanding compilers. */
21360 # include <limits.h>
21362 # include <assert.h>
21367 /* Override any GCC internal prototype to avoid an error.
21368 Use char because int might match the return type of a GCC
21369 builtin and then its argument prototype would still apply. */
21374 /* The GNU C library defines this for functions which it implements
21375 to always fail with ENOSYS. Some functions are actually named
21376 something starting with __ and the normal name is an alias. */
21377 #if defined __stub_$ac_func || defined __stub___$ac_func
21384 return $ac_func ();
21389 rm -f conftest.$ac_objext conftest$ac_exeext
21390 if { (ac_try="$ac_link"
21391 case "(($ac_try" in
21392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21393 *) ac_try_echo=$ac_try;;
21395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21396 (eval "$ac_link") 2>conftest.er1
21398 grep -v '^ *+' conftest.er1 >conftest.err
21400 cat conftest.err >&5
21401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402 (exit $ac_status); } && {
21403 test -z "$ac_c_werror_flag" ||
21404 test ! -s conftest.err
21405 } && test -s conftest$ac_exeext &&
21406 $as_test_x conftest$ac_exeext; then
21407 eval "$as_ac_var=yes"
21409 echo "$as_me: failed program was:" >&5
21410 sed 's/^/| /' conftest.$ac_ext >&5
21412 eval "$as_ac_var=no"
21415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21416 conftest$ac_exeext conftest.$ac_ext
21418 ac_res=`eval echo '${'$as_ac_var'}'`
21419 { echo "$as_me:$LINENO: result: $ac_res" >&5
21420 echo "${ECHO_T}$ac_res" >&6; }
21421 if test `eval echo '${'$as_ac_var'}'` = yes; then
21422 cat >>confdefs.h <<_ACEOF
21423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21429 { echo "$as_me:$LINENO: checking for working snprintf" >&5
21430 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
21431 if test "${ac_cv_have_working_snprintf+set}" = set; then
21432 echo $ECHO_N "(cached) $ECHO_C" >&6
21434 if test "$cross_compiling" = yes; then
21435 ac_cv_have_working_snprintf=cross
21437 cat >conftest.$ac_ext <<_ACEOF
21440 cat confdefs.h >>conftest.$ac_ext
21441 cat >>conftest.$ac_ext <<_ACEOF
21442 /* end confdefs.h. */
21447 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21448 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21450 i = snprintf (bufs, 2, "%s", "111");
21451 if (strcmp (bufs, "1")) exit (1);
21452 if (i != 3) exit (1);
21453 i = snprintf (bufd, 2, "%d", 111);
21454 if (strcmp (bufd, "1")) exit (1);
21455 if (i != 3) exit (1);
21459 rm -f conftest$ac_exeext
21460 if { (ac_try="$ac_link"
21461 case "(($ac_try" in
21462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21463 *) ac_try_echo=$ac_try;;
21465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21466 (eval "$ac_link") 2>&5
21468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21470 { (case "(($ac_try" in
21471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21472 *) ac_try_echo=$ac_try;;
21474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21475 (eval "$ac_try") 2>&5
21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); }; }; then
21479 ac_cv_have_working_snprintf=yes
21481 echo "$as_me: program exited with status $ac_status" >&5
21482 echo "$as_me: failed program was:" >&5
21483 sed 's/^/| /' conftest.$ac_ext >&5
21485 ( exit $ac_status )
21486 ac_cv_have_working_snprintf=no
21488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21494 { echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
21495 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; }
21496 { echo "$as_me:$LINENO: checking for working vsnprintf" >&5
21497 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
21498 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
21499 echo $ECHO_N "(cached) $ECHO_C" >&6
21501 if test "$cross_compiling" = yes; then
21502 ac_cv_have_working_vsnprintf=cross
21504 cat >conftest.$ac_ext <<_ACEOF
21507 cat confdefs.h >>conftest.$ac_ext
21508 cat >>conftest.$ac_ext <<_ACEOF
21509 /* end confdefs.h. */
21511 #include <stdarg.h>
21513 int my_vsnprintf (char *buf, const char *tmpl, ...)
21517 va_start (args, tmpl);
21518 i = vsnprintf (buf, 2, tmpl, args);
21525 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21526 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21528 i = my_vsnprintf (bufs, "%s", "111");
21529 if (strcmp (bufs, "1")) exit (1);
21530 if (i != 3) exit (1);
21531 i = my_vsnprintf (bufd, "%d", 111);
21532 if (strcmp (bufd, "1")) exit (1);
21533 if (i != 3) exit (1);
21537 rm -f conftest$ac_exeext
21538 if { (ac_try="$ac_link"
21539 case "(($ac_try" in
21540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21541 *) ac_try_echo=$ac_try;;
21543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21544 (eval "$ac_link") 2>&5
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21548 { (case "(($ac_try" in
21549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21550 *) ac_try_echo=$ac_try;;
21552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21553 (eval "$ac_try") 2>&5
21555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); }; }; then
21557 ac_cv_have_working_vsnprintf=yes
21559 echo "$as_me: program exited with status $ac_status" >&5
21560 echo "$as_me: failed program was:" >&5
21561 sed 's/^/| /' conftest.$ac_ext >&5
21563 ( exit $ac_status )
21564 ac_cv_have_working_vsnprintf=no
21566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21572 { echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
21573 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; }
21574 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
21575 case " $LIBOBJS " in
21576 *" snprintf.$ac_objext "* ) ;;
21577 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21581 { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
21582 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
21584 cat >>confdefs.h <<\_ACEOF
21585 #define PREFER_PORTABLE_SNPRINTF 1
21589 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
21590 { echo "$as_me:$LINENO: checking for asprintf" >&5
21591 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6; }
21592 if test "${ac_cv_func_asprintf+set}" = set; then
21593 echo $ECHO_N "(cached) $ECHO_C" >&6
21595 cat >conftest.$ac_ext <<_ACEOF
21598 cat confdefs.h >>conftest.$ac_ext
21599 cat >>conftest.$ac_ext <<_ACEOF
21600 /* end confdefs.h. */
21601 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
21602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21603 #define asprintf innocuous_asprintf
21605 /* System header to define __stub macros and hopefully few prototypes,
21606 which can conflict with char asprintf (); below.
21607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21608 <limits.h> exists even on freestanding compilers. */
21611 # include <limits.h>
21613 # include <assert.h>
21618 /* Override any GCC internal prototype to avoid an error.
21619 Use char because int might match the return type of a GCC
21620 builtin and then its argument prototype would still apply. */
21625 /* The GNU C library defines this for functions which it implements
21626 to always fail with ENOSYS. Some functions are actually named
21627 something starting with __ and the normal name is an alias. */
21628 #if defined __stub_asprintf || defined __stub___asprintf
21635 return asprintf ();
21640 rm -f conftest.$ac_objext conftest$ac_exeext
21641 if { (ac_try="$ac_link"
21642 case "(($ac_try" in
21643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21644 *) ac_try_echo=$ac_try;;
21646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21647 (eval "$ac_link") 2>conftest.er1
21649 grep -v '^ *+' conftest.er1 >conftest.err
21651 cat conftest.err >&5
21652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653 (exit $ac_status); } && {
21654 test -z "$ac_c_werror_flag" ||
21655 test ! -s conftest.err
21656 } && test -s conftest$ac_exeext &&
21657 $as_test_x conftest$ac_exeext; then
21658 ac_cv_func_asprintf=yes
21660 echo "$as_me: failed program was:" >&5
21661 sed 's/^/| /' conftest.$ac_ext >&5
21663 ac_cv_func_asprintf=no
21666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21667 conftest$ac_exeext conftest.$ac_ext
21669 { echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
21670 echo "${ECHO_T}$ac_cv_func_asprintf" >&6; }
21671 if test $ac_cv_func_asprintf = yes; then
21675 cat >>confdefs.h <<\_ACEOF
21676 #define NEED_ASPRINTF 1
21681 { echo "$as_me:$LINENO: checking for vasprintf" >&5
21682 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6; }
21683 if test "${ac_cv_func_vasprintf+set}" = set; then
21684 echo $ECHO_N "(cached) $ECHO_C" >&6
21686 cat >conftest.$ac_ext <<_ACEOF
21689 cat confdefs.h >>conftest.$ac_ext
21690 cat >>conftest.$ac_ext <<_ACEOF
21691 /* end confdefs.h. */
21692 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
21693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21694 #define vasprintf innocuous_vasprintf
21696 /* System header to define __stub macros and hopefully few prototypes,
21697 which can conflict with char vasprintf (); below.
21698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21699 <limits.h> exists even on freestanding compilers. */
21702 # include <limits.h>
21704 # include <assert.h>
21709 /* Override any GCC internal prototype to avoid an error.
21710 Use char because int might match the return type of a GCC
21711 builtin and then its argument prototype would still apply. */
21716 /* The GNU C library defines this for functions which it implements
21717 to always fail with ENOSYS. Some functions are actually named
21718 something starting with __ and the normal name is an alias. */
21719 #if defined __stub_vasprintf || defined __stub___vasprintf
21726 return vasprintf ();
21731 rm -f conftest.$ac_objext conftest$ac_exeext
21732 if { (ac_try="$ac_link"
21733 case "(($ac_try" in
21734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21735 *) ac_try_echo=$ac_try;;
21737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21738 (eval "$ac_link") 2>conftest.er1
21740 grep -v '^ *+' conftest.er1 >conftest.err
21742 cat conftest.err >&5
21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); } && {
21745 test -z "$ac_c_werror_flag" ||
21746 test ! -s conftest.err
21747 } && test -s conftest$ac_exeext &&
21748 $as_test_x conftest$ac_exeext; then
21749 ac_cv_func_vasprintf=yes
21751 echo "$as_me: failed program was:" >&5
21752 sed 's/^/| /' conftest.$ac_ext >&5
21754 ac_cv_func_vasprintf=no
21757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21758 conftest$ac_exeext conftest.$ac_ext
21760 { echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
21761 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6; }
21762 if test $ac_cv_func_vasprintf = yes; then
21766 cat >>confdefs.h <<\_ACEOF
21767 #define NEED_VASPRINTF 1
21773 # Checks for typedefs, structures, and compiler characteristics.
21774 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21775 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21776 if test "${ac_cv_c_const+set}" = set; then
21777 echo $ECHO_N "(cached) $ECHO_C" >&6
21779 cat >conftest.$ac_ext <<_ACEOF
21782 cat confdefs.h >>conftest.$ac_ext
21783 cat >>conftest.$ac_ext <<_ACEOF
21784 /* end confdefs.h. */
21789 /* FIXME: Include the comments suggested by Paul. */
21790 #ifndef __cplusplus
21791 /* Ultrix mips cc rejects this. */
21792 typedef int charset[2];
21794 /* SunOS 4.1.1 cc rejects this. */
21795 char const *const *pcpcc;
21797 /* NEC SVR4.0.2 mips cc rejects this. */
21798 struct point {int x, y;};
21799 static struct point const zero = {0,0};
21800 /* AIX XL C 1.02.0.0 rejects this.
21801 It does not let you subtract one const X* pointer from another in
21802 an arm of an if-expression whose if-part is not a constant
21804 const char *g = "string";
21805 pcpcc = &g + (g ? g-g : 0);
21806 /* HPUX 7.0 cc rejects these. */
21808 ppc = (char**) pcpcc;
21809 pcpcc = (char const *const *) ppc;
21810 { /* SCO 3.2v4 cc rejects this. */
21812 char const *s = 0 ? (char *) 0 : (char const *) 0;
21817 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21818 int x[] = {25, 17};
21819 const int *foo = &x[0];
21822 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21823 typedef const int *iptr;
21827 { /* AIX XL C 1.02.0.0 rejects this saying
21828 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21829 struct s { int j; const int *ap[3]; };
21830 struct s *b; b->j = 5;
21832 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21833 const int foo = 10;
21834 if (!foo) return 0;
21836 return !cs[0] && !zero.x;
21843 rm -f conftest.$ac_objext
21844 if { (ac_try="$ac_compile"
21845 case "(($ac_try" in
21846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21847 *) ac_try_echo=$ac_try;;
21849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21850 (eval "$ac_compile") 2>conftest.er1
21852 grep -v '^ *+' conftest.er1 >conftest.err
21854 cat conftest.err >&5
21855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856 (exit $ac_status); } && {
21857 test -z "$ac_c_werror_flag" ||
21858 test ! -s conftest.err
21859 } && test -s conftest.$ac_objext; then
21862 echo "$as_me: failed program was:" >&5
21863 sed 's/^/| /' conftest.$ac_ext >&5
21868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21870 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21871 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21872 if test $ac_cv_c_const = no; then
21874 cat >>confdefs.h <<\_ACEOF
21880 { echo "$as_me:$LINENO: checking for inline" >&5
21881 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21882 if test "${ac_cv_c_inline+set}" = set; then
21883 echo $ECHO_N "(cached) $ECHO_C" >&6
21886 for ac_kw in inline __inline__ __inline; do
21887 cat >conftest.$ac_ext <<_ACEOF
21890 cat confdefs.h >>conftest.$ac_ext
21891 cat >>conftest.$ac_ext <<_ACEOF
21892 /* end confdefs.h. */
21893 #ifndef __cplusplus
21895 static $ac_kw foo_t static_foo () {return 0; }
21896 $ac_kw foo_t foo () {return 0; }
21900 rm -f conftest.$ac_objext
21901 if { (ac_try="$ac_compile"
21902 case "(($ac_try" in
21903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21904 *) ac_try_echo=$ac_try;;
21906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21907 (eval "$ac_compile") 2>conftest.er1
21909 grep -v '^ *+' conftest.er1 >conftest.err
21911 cat conftest.err >&5
21912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913 (exit $ac_status); } && {
21914 test -z "$ac_c_werror_flag" ||
21915 test ! -s conftest.err
21916 } && test -s conftest.$ac_objext; then
21917 ac_cv_c_inline=$ac_kw
21919 echo "$as_me: failed program was:" >&5
21920 sed 's/^/| /' conftest.$ac_ext >&5
21925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21926 test "$ac_cv_c_inline" != no && break
21930 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21931 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21934 case $ac_cv_c_inline in
21937 case $ac_cv_c_inline in
21939 *) ac_val=$ac_cv_c_inline;;
21941 cat >>confdefs.h <<_ACEOF
21942 #ifndef __cplusplus
21943 #define inline $ac_val
21949 { echo "$as_me:$LINENO: checking for size_t" >&5
21950 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21951 if test "${ac_cv_type_size_t+set}" = set; then
21952 echo $ECHO_N "(cached) $ECHO_C" >&6
21954 cat >conftest.$ac_ext <<_ACEOF
21957 cat confdefs.h >>conftest.$ac_ext
21958 cat >>conftest.$ac_ext <<_ACEOF
21959 /* end confdefs.h. */
21960 $ac_includes_default
21961 typedef size_t ac__type_new_;
21965 if ((ac__type_new_ *) 0)
21967 if (sizeof (ac__type_new_))
21973 rm -f conftest.$ac_objext
21974 if { (ac_try="$ac_compile"
21975 case "(($ac_try" in
21976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21977 *) ac_try_echo=$ac_try;;
21979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21980 (eval "$ac_compile") 2>conftest.er1
21982 grep -v '^ *+' conftest.er1 >conftest.err
21984 cat conftest.err >&5
21985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986 (exit $ac_status); } && {
21987 test -z "$ac_c_werror_flag" ||
21988 test ! -s conftest.err
21989 } && test -s conftest.$ac_objext; then
21990 ac_cv_type_size_t=yes
21992 echo "$as_me: failed program was:" >&5
21993 sed 's/^/| /' conftest.$ac_ext >&5
21995 ac_cv_type_size_t=no
21998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22000 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22001 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22002 if test $ac_cv_type_size_t = yes; then
22006 cat >>confdefs.h <<_ACEOF
22007 #define size_t unsigned int
22013 ###################################
22014 ## SimGrid and GRAS specific checks
22018 { echo "$as_me:$LINENO: result: " >&5
22019 echo "${ECHO_T}" >&6; }
22020 { echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
22021 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6; }
22023 # Check architecture signature begin
22025 # Check for the architecture
22026 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22027 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22028 if test "${ac_cv_c_bigendian+set}" = set; then
22029 echo $ECHO_N "(cached) $ECHO_C" >&6
22031 # See if sys/param.h defines the BYTE_ORDER macro.
22032 cat >conftest.$ac_ext <<_ACEOF
22035 cat confdefs.h >>conftest.$ac_ext
22036 cat >>conftest.$ac_ext <<_ACEOF
22037 /* end confdefs.h. */
22038 #include <sys/types.h>
22039 #include <sys/param.h>
22044 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22045 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22046 bogus endian macros
22053 rm -f conftest.$ac_objext
22054 if { (ac_try="$ac_compile"
22055 case "(($ac_try" in
22056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22057 *) ac_try_echo=$ac_try;;
22059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22060 (eval "$ac_compile") 2>conftest.er1
22062 grep -v '^ *+' conftest.er1 >conftest.err
22064 cat conftest.err >&5
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); } && {
22067 test -z "$ac_c_werror_flag" ||
22068 test ! -s conftest.err
22069 } && test -s conftest.$ac_objext; then
22070 # It does; now see whether it defined to BIG_ENDIAN or not.
22071 cat >conftest.$ac_ext <<_ACEOF
22074 cat confdefs.h >>conftest.$ac_ext
22075 cat >>conftest.$ac_ext <<_ACEOF
22076 /* end confdefs.h. */
22077 #include <sys/types.h>
22078 #include <sys/param.h>
22083 #if BYTE_ORDER != BIG_ENDIAN
22091 rm -f conftest.$ac_objext
22092 if { (ac_try="$ac_compile"
22093 case "(($ac_try" in
22094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22095 *) ac_try_echo=$ac_try;;
22097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22098 (eval "$ac_compile") 2>conftest.er1
22100 grep -v '^ *+' conftest.er1 >conftest.err
22102 cat conftest.err >&5
22103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104 (exit $ac_status); } && {
22105 test -z "$ac_c_werror_flag" ||
22106 test ! -s conftest.err
22107 } && test -s conftest.$ac_objext; then
22108 ac_cv_c_bigendian=yes
22110 echo "$as_me: failed program was:" >&5
22111 sed 's/^/| /' conftest.$ac_ext >&5
22113 ac_cv_c_bigendian=no
22116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22118 echo "$as_me: failed program was:" >&5
22119 sed 's/^/| /' conftest.$ac_ext >&5
22121 # It does not; compile a test program.
22122 if test "$cross_compiling" = yes; then
22123 # try to guess the endianness by grepping values into an object file
22124 ac_cv_c_bigendian=unknown
22125 cat >conftest.$ac_ext <<_ACEOF
22128 cat confdefs.h >>conftest.$ac_ext
22129 cat >>conftest.$ac_ext <<_ACEOF
22130 /* end confdefs.h. */
22131 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22132 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22133 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22134 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22135 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22136 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22140 _ascii (); _ebcdic ();
22145 rm -f conftest.$ac_objext
22146 if { (ac_try="$ac_compile"
22147 case "(($ac_try" in
22148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22149 *) ac_try_echo=$ac_try;;
22151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22152 (eval "$ac_compile") 2>conftest.er1
22154 grep -v '^ *+' conftest.er1 >conftest.err
22156 cat conftest.err >&5
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); } && {
22159 test -z "$ac_c_werror_flag" ||
22160 test ! -s conftest.err
22161 } && test -s conftest.$ac_objext; then
22162 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22163 ac_cv_c_bigendian=yes
22165 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22166 if test "$ac_cv_c_bigendian" = unknown; then
22167 ac_cv_c_bigendian=no
22169 # finding both strings is unlikely to happen, but who knows?
22170 ac_cv_c_bigendian=unknown
22174 echo "$as_me: failed program was:" >&5
22175 sed 's/^/| /' conftest.$ac_ext >&5
22180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22182 cat >conftest.$ac_ext <<_ACEOF
22185 cat confdefs.h >>conftest.$ac_ext
22186 cat >>conftest.$ac_ext <<_ACEOF
22187 /* end confdefs.h. */
22188 $ac_includes_default
22193 /* Are we little or big endian? From Harbison&Steele. */
22197 char c[sizeof (long int)];
22200 return u.c[sizeof (long int) - 1] == 1;
22206 rm -f conftest$ac_exeext
22207 if { (ac_try="$ac_link"
22208 case "(($ac_try" in
22209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22210 *) ac_try_echo=$ac_try;;
22212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22213 (eval "$ac_link") 2>&5
22215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22217 { (case "(($ac_try" in
22218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22219 *) ac_try_echo=$ac_try;;
22221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22222 (eval "$ac_try") 2>&5
22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); }; }; then
22226 ac_cv_c_bigendian=no
22228 echo "$as_me: program exited with status $ac_status" >&5
22229 echo "$as_me: failed program was:" >&5
22230 sed 's/^/| /' conftest.$ac_ext >&5
22232 ( exit $ac_status )
22233 ac_cv_c_bigendian=yes
22235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22243 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22244 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22245 case $ac_cv_c_bigendian in
22251 { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
22252 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
22253 { (exit 1); exit 1; }; } ;;
22257 cat >>confdefs.h <<_ACEOF
22258 #define GRAS_BIGENDIAN $endian
22262 { echo "$as_me:$LINENO: checking size of char" >&5
22263 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22264 if test "${ac_cv_sizeof_char+set}" = set; then
22265 echo $ECHO_N "(cached) $ECHO_C" >&6
22267 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22268 cat >conftest.$ac_ext <<_ACEOF
22271 cat confdefs.h >>conftest.$ac_ext
22272 cat >>conftest.$ac_ext <<_ACEOF
22273 /* end confdefs.h. */
22274 #include "confdefs.h"
22275 #include <sys/types.h>
22281 switch (0) case 0: case (sizeof (char) == $ac_size):;
22286 rm -f conftest.$ac_objext
22287 if { (ac_try="$ac_compile"
22288 case "(($ac_try" in
22289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22290 *) ac_try_echo=$ac_try;;
22292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22293 (eval "$ac_compile") 2>conftest.er1
22295 grep -v '^ *+' conftest.er1 >conftest.err
22297 cat conftest.err >&5
22298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); } && {
22300 test -z "$ac_c_werror_flag" ||
22301 test ! -s conftest.err
22302 } && test -s conftest.$ac_objext; then
22303 ac_cv_sizeof_char=$ac_size
22305 echo "$as_me: failed program was:" >&5
22306 sed 's/^/| /' conftest.$ac_ext >&5
22311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22312 if test x$ac_cv_sizeof_char != x ; then break; fi
22318 unspecif=$ac_cv_sizeof_char
22319 if test x$unspecif = x ; then
22320 { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
22321 echo "$as_me: error: cannot determine a size for char" >&2;}
22322 { (exit 1); exit 1; }; }
22325 if test "${ac_cv_sizeof_signed_char+set}" = set; then
22326 echo $ECHO_N "(cached) $ECHO_C" >&6
22328 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22329 cat >conftest.$ac_ext <<_ACEOF
22332 cat confdefs.h >>conftest.$ac_ext
22333 cat >>conftest.$ac_ext <<_ACEOF
22334 /* end confdefs.h. */
22335 #include "confdefs.h"
22336 #include <sys/types.h>
22342 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
22347 rm -f conftest.$ac_objext
22348 if { (ac_try="$ac_compile"
22349 case "(($ac_try" in
22350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22351 *) ac_try_echo=$ac_try;;
22353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22354 (eval "$ac_compile") 2>conftest.er1
22356 grep -v '^ *+' conftest.er1 >conftest.err
22358 cat conftest.err >&5
22359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360 (exit $ac_status); } && {
22361 test -z "$ac_c_werror_flag" ||
22362 test ! -s conftest.err
22363 } && test -s conftest.$ac_objext; then
22364 ac_cv_sizeof_signed_char=$ac_size
22366 echo "$as_me: failed program was:" >&5
22367 sed 's/^/| /' conftest.$ac_ext >&5
22372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22373 if test x$ac_cv_sizeof_signed_char != x ; then break; fi
22379 signed=$ac_cv_sizeof_signed_char
22380 if test x$signed = x ; then
22381 { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
22382 echo "$as_me: error: cannot determine a size for signed char" >&2;}
22383 { (exit 1); exit 1; }; }
22385 if test x$unspecif != x$signed ; then
22386 { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
22387 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
22388 { (exit 1); exit 1; }; }
22391 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
22392 echo $ECHO_N "(cached) $ECHO_C" >&6
22394 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22395 cat >conftest.$ac_ext <<_ACEOF
22398 cat confdefs.h >>conftest.$ac_ext
22399 cat >>conftest.$ac_ext <<_ACEOF
22400 /* end confdefs.h. */
22401 #include "confdefs.h"
22402 #include <sys/types.h>
22408 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
22413 rm -f conftest.$ac_objext
22414 if { (ac_try="$ac_compile"
22415 case "(($ac_try" in
22416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22417 *) ac_try_echo=$ac_try;;
22419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22420 (eval "$ac_compile") 2>conftest.er1
22422 grep -v '^ *+' conftest.er1 >conftest.err
22424 cat conftest.err >&5
22425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426 (exit $ac_status); } && {
22427 test -z "$ac_c_werror_flag" ||
22428 test ! -s conftest.err
22429 } && test -s conftest.$ac_objext; then
22430 ac_cv_sizeof_unsigned_char=$ac_size
22432 echo "$as_me: failed program was:" >&5
22433 sed 's/^/| /' conftest.$ac_ext >&5
22438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22439 if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
22445 unsigned=$ac_cv_sizeof_unsigned_char
22446 if test x$unsigned = x ; then
22447 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
22448 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
22449 { (exit 1); exit 1; }; }
22451 if test x$unsigned != x$signed ; then
22452 { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
22453 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
22454 { (exit 1); exit 1; }; }
22457 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
22458 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
22459 { echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
22460 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6; }
22462 if test "${ac_cv_struct_boundary_char+set}" = set; then
22463 echo $ECHO_N "(cached) $ECHO_C" >&6
22465 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22466 cat >conftest.$ac_ext <<_ACEOF
22469 cat confdefs.h >>conftest.$ac_ext
22470 cat >>conftest.$ac_ext <<_ACEOF
22471 /* end confdefs.h. */
22472 #include "confdefs.h"
22473 #include <sys/types.h>
22474 struct s { char c; char i; };
22479 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
22484 rm -f conftest.$ac_objext
22485 if { (ac_try="$ac_compile"
22486 case "(($ac_try" in
22487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22488 *) ac_try_echo=$ac_try;;
22490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22491 (eval "$ac_compile") 2>conftest.er1
22493 grep -v '^ *+' conftest.er1 >conftest.err
22495 cat conftest.err >&5
22496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497 (exit $ac_status); } && {
22498 test -z "$ac_c_werror_flag" ||
22499 test ! -s conftest.err
22500 } && test -s conftest.$ac_objext; then
22501 ac_cv_struct_boundary_char=$ac_size
22503 echo "$as_me: failed program was:" >&5
22504 sed 's/^/| /' conftest.$ac_ext >&5
22509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22510 if test x$ac_cv_struct_boundary_char != x ; then break; fi
22515 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
22516 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6; }
22517 if test x$ac_cv_struct_boundary_char = x ; then
22518 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
22519 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
22520 { (exit 1); exit 1; }; }
22523 { echo "$as_me:$LINENO: checking size of short int" >&5
22524 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
22525 if test "${ac_cv_sizeof_short_int+set}" = set; then
22526 echo $ECHO_N "(cached) $ECHO_C" >&6
22528 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22529 cat >conftest.$ac_ext <<_ACEOF
22532 cat confdefs.h >>conftest.$ac_ext
22533 cat >>conftest.$ac_ext <<_ACEOF
22534 /* end confdefs.h. */
22535 #include "confdefs.h"
22536 #include <sys/types.h>
22542 switch (0) case 0: case (sizeof (short int) == $ac_size):;
22547 rm -f conftest.$ac_objext
22548 if { (ac_try="$ac_compile"
22549 case "(($ac_try" in
22550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22551 *) ac_try_echo=$ac_try;;
22553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22554 (eval "$ac_compile") 2>conftest.er1
22556 grep -v '^ *+' conftest.er1 >conftest.err
22558 cat conftest.err >&5
22559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560 (exit $ac_status); } && {
22561 test -z "$ac_c_werror_flag" ||
22562 test ! -s conftest.err
22563 } && test -s conftest.$ac_objext; then
22564 ac_cv_sizeof_short_int=$ac_size
22566 echo "$as_me: failed program was:" >&5
22567 sed 's/^/| /' conftest.$ac_ext >&5
22572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22573 if test x$ac_cv_sizeof_short_int != x ; then break; fi
22579 unspecif=$ac_cv_sizeof_short_int
22580 if test x$unspecif = x ; then
22581 { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
22582 echo "$as_me: error: cannot determine a size for short int" >&2;}
22583 { (exit 1); exit 1; }; }
22586 if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
22587 echo $ECHO_N "(cached) $ECHO_C" >&6
22589 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22590 cat >conftest.$ac_ext <<_ACEOF
22593 cat confdefs.h >>conftest.$ac_ext
22594 cat >>conftest.$ac_ext <<_ACEOF
22595 /* end confdefs.h. */
22596 #include "confdefs.h"
22597 #include <sys/types.h>
22603 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
22608 rm -f conftest.$ac_objext
22609 if { (ac_try="$ac_compile"
22610 case "(($ac_try" in
22611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22612 *) ac_try_echo=$ac_try;;
22614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22615 (eval "$ac_compile") 2>conftest.er1
22617 grep -v '^ *+' conftest.er1 >conftest.err
22619 cat conftest.err >&5
22620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621 (exit $ac_status); } && {
22622 test -z "$ac_c_werror_flag" ||
22623 test ! -s conftest.err
22624 } && test -s conftest.$ac_objext; then
22625 ac_cv_sizeof_signed_short_int=$ac_size
22627 echo "$as_me: failed program was:" >&5
22628 sed 's/^/| /' conftest.$ac_ext >&5
22633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22634 if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
22640 signed=$ac_cv_sizeof_signed_short_int
22641 if test x$signed = x ; then
22642 { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
22643 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
22644 { (exit 1); exit 1; }; }
22646 if test x$unspecif != x$signed ; then
22647 { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
22648 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
22649 { (exit 1); exit 1; }; }
22652 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
22653 echo $ECHO_N "(cached) $ECHO_C" >&6
22655 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22656 cat >conftest.$ac_ext <<_ACEOF
22659 cat confdefs.h >>conftest.$ac_ext
22660 cat >>conftest.$ac_ext <<_ACEOF
22661 /* end confdefs.h. */
22662 #include "confdefs.h"
22663 #include <sys/types.h>
22669 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
22674 rm -f conftest.$ac_objext
22675 if { (ac_try="$ac_compile"
22676 case "(($ac_try" in
22677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22678 *) ac_try_echo=$ac_try;;
22680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22681 (eval "$ac_compile") 2>conftest.er1
22683 grep -v '^ *+' conftest.er1 >conftest.err
22685 cat conftest.err >&5
22686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687 (exit $ac_status); } && {
22688 test -z "$ac_c_werror_flag" ||
22689 test ! -s conftest.err
22690 } && test -s conftest.$ac_objext; then
22691 ac_cv_sizeof_unsigned_short_int=$ac_size
22693 echo "$as_me: failed program was:" >&5
22694 sed 's/^/| /' conftest.$ac_ext >&5
22699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22700 if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
22706 unsigned=$ac_cv_sizeof_unsigned_short_int
22707 if test x$unsigned = x ; then
22708 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
22709 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
22710 { (exit 1); exit 1; }; }
22712 if test x$unsigned != x$signed ; then
22713 { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
22714 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
22715 { (exit 1); exit 1; }; }
22718 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
22719 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
22720 { echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
22721 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6; }
22723 if test "${ac_cv_struct_boundary_short_int+set}" = set; then
22724 echo $ECHO_N "(cached) $ECHO_C" >&6
22726 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22727 cat >conftest.$ac_ext <<_ACEOF
22730 cat confdefs.h >>conftest.$ac_ext
22731 cat >>conftest.$ac_ext <<_ACEOF
22732 /* end confdefs.h. */
22733 #include "confdefs.h"
22734 #include <sys/types.h>
22735 struct s { char c; short int i; };
22740 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
22745 rm -f conftest.$ac_objext
22746 if { (ac_try="$ac_compile"
22747 case "(($ac_try" in
22748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22749 *) ac_try_echo=$ac_try;;
22751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22752 (eval "$ac_compile") 2>conftest.er1
22754 grep -v '^ *+' conftest.er1 >conftest.err
22756 cat conftest.err >&5
22757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758 (exit $ac_status); } && {
22759 test -z "$ac_c_werror_flag" ||
22760 test ! -s conftest.err
22761 } && test -s conftest.$ac_objext; then
22762 ac_cv_struct_boundary_short_int=$ac_size
22764 echo "$as_me: failed program was:" >&5
22765 sed 's/^/| /' conftest.$ac_ext >&5
22770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22771 if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
22776 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
22777 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6; }
22778 if test x$ac_cv_struct_boundary_short_int = x ; then
22779 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
22780 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
22781 { (exit 1); exit 1; }; }
22784 { echo "$as_me:$LINENO: checking size of int" >&5
22785 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22786 if test "${ac_cv_sizeof_int+set}" = set; then
22787 echo $ECHO_N "(cached) $ECHO_C" >&6
22789 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22790 cat >conftest.$ac_ext <<_ACEOF
22793 cat confdefs.h >>conftest.$ac_ext
22794 cat >>conftest.$ac_ext <<_ACEOF
22795 /* end confdefs.h. */
22796 #include "confdefs.h"
22797 #include <sys/types.h>
22803 switch (0) case 0: case (sizeof (int) == $ac_size):;
22808 rm -f conftest.$ac_objext
22809 if { (ac_try="$ac_compile"
22810 case "(($ac_try" in
22811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22812 *) ac_try_echo=$ac_try;;
22814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22815 (eval "$ac_compile") 2>conftest.er1
22817 grep -v '^ *+' conftest.er1 >conftest.err
22819 cat conftest.err >&5
22820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821 (exit $ac_status); } && {
22822 test -z "$ac_c_werror_flag" ||
22823 test ! -s conftest.err
22824 } && test -s conftest.$ac_objext; then
22825 ac_cv_sizeof_int=$ac_size
22827 echo "$as_me: failed program was:" >&5
22828 sed 's/^/| /' conftest.$ac_ext >&5
22833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22834 if test x$ac_cv_sizeof_int != x ; then break; fi
22840 unspecif=$ac_cv_sizeof_int
22841 if test x$unspecif = x ; then
22842 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
22843 echo "$as_me: error: cannot determine a size for int" >&2;}
22844 { (exit 1); exit 1; }; }
22847 if test "${ac_cv_sizeof_signed_int+set}" = set; then
22848 echo $ECHO_N "(cached) $ECHO_C" >&6
22850 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22851 cat >conftest.$ac_ext <<_ACEOF
22854 cat confdefs.h >>conftest.$ac_ext
22855 cat >>conftest.$ac_ext <<_ACEOF
22856 /* end confdefs.h. */
22857 #include "confdefs.h"
22858 #include <sys/types.h>
22864 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
22869 rm -f conftest.$ac_objext
22870 if { (ac_try="$ac_compile"
22871 case "(($ac_try" in
22872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22873 *) ac_try_echo=$ac_try;;
22875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22876 (eval "$ac_compile") 2>conftest.er1
22878 grep -v '^ *+' conftest.er1 >conftest.err
22880 cat conftest.err >&5
22881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882 (exit $ac_status); } && {
22883 test -z "$ac_c_werror_flag" ||
22884 test ! -s conftest.err
22885 } && test -s conftest.$ac_objext; then
22886 ac_cv_sizeof_signed_int=$ac_size
22888 echo "$as_me: failed program was:" >&5
22889 sed 's/^/| /' conftest.$ac_ext >&5
22894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22895 if test x$ac_cv_sizeof_signed_int != x ; then break; fi
22901 signed=$ac_cv_sizeof_signed_int
22902 if test x$signed = x ; then
22903 { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
22904 echo "$as_me: error: cannot determine a size for signed int" >&2;}
22905 { (exit 1); exit 1; }; }
22907 if test x$unspecif != x$signed ; then
22908 { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
22909 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
22910 { (exit 1); exit 1; }; }
22913 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
22914 echo $ECHO_N "(cached) $ECHO_C" >&6
22916 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22917 cat >conftest.$ac_ext <<_ACEOF
22920 cat confdefs.h >>conftest.$ac_ext
22921 cat >>conftest.$ac_ext <<_ACEOF
22922 /* end confdefs.h. */
22923 #include "confdefs.h"
22924 #include <sys/types.h>
22930 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
22935 rm -f conftest.$ac_objext
22936 if { (ac_try="$ac_compile"
22937 case "(($ac_try" in
22938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22939 *) ac_try_echo=$ac_try;;
22941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22942 (eval "$ac_compile") 2>conftest.er1
22944 grep -v '^ *+' conftest.er1 >conftest.err
22946 cat conftest.err >&5
22947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948 (exit $ac_status); } && {
22949 test -z "$ac_c_werror_flag" ||
22950 test ! -s conftest.err
22951 } && test -s conftest.$ac_objext; then
22952 ac_cv_sizeof_unsigned_int=$ac_size
22954 echo "$as_me: failed program was:" >&5
22955 sed 's/^/| /' conftest.$ac_ext >&5
22960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22961 if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
22967 unsigned=$ac_cv_sizeof_unsigned_int
22968 if test x$unsigned = x ; then
22969 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
22970 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
22971 { (exit 1); exit 1; }; }
22973 if test x$unsigned != x$signed ; then
22974 { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
22975 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
22976 { (exit 1); exit 1; }; }
22979 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
22980 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
22981 { echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
22982 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6; }
22984 if test "${ac_cv_struct_boundary_int+set}" = set; then
22985 echo $ECHO_N "(cached) $ECHO_C" >&6
22987 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22988 cat >conftest.$ac_ext <<_ACEOF
22991 cat confdefs.h >>conftest.$ac_ext
22992 cat >>conftest.$ac_ext <<_ACEOF
22993 /* end confdefs.h. */
22994 #include "confdefs.h"
22995 #include <sys/types.h>
22996 struct s { char c; int i; };
23001 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
23006 rm -f conftest.$ac_objext
23007 if { (ac_try="$ac_compile"
23008 case "(($ac_try" in
23009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23010 *) ac_try_echo=$ac_try;;
23012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23013 (eval "$ac_compile") 2>conftest.er1
23015 grep -v '^ *+' conftest.er1 >conftest.err
23017 cat conftest.err >&5
23018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019 (exit $ac_status); } && {
23020 test -z "$ac_c_werror_flag" ||
23021 test ! -s conftest.err
23022 } && test -s conftest.$ac_objext; then
23023 ac_cv_struct_boundary_int=$ac_size
23025 echo "$as_me: failed program was:" >&5
23026 sed 's/^/| /' conftest.$ac_ext >&5
23031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23032 if test x$ac_cv_struct_boundary_int != x ; then break; fi
23037 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
23038 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6; }
23039 if test x$ac_cv_struct_boundary_int = x ; then
23040 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
23041 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
23042 { (exit 1); exit 1; }; }
23045 { echo "$as_me:$LINENO: checking size of long int" >&5
23046 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
23047 if test "${ac_cv_sizeof_long_int+set}" = set; then
23048 echo $ECHO_N "(cached) $ECHO_C" >&6
23050 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23051 cat >conftest.$ac_ext <<_ACEOF
23054 cat confdefs.h >>conftest.$ac_ext
23055 cat >>conftest.$ac_ext <<_ACEOF
23056 /* end confdefs.h. */
23057 #include "confdefs.h"
23058 #include <sys/types.h>
23064 switch (0) case 0: case (sizeof (long int) == $ac_size):;
23069 rm -f conftest.$ac_objext
23070 if { (ac_try="$ac_compile"
23071 case "(($ac_try" in
23072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23073 *) ac_try_echo=$ac_try;;
23075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23076 (eval "$ac_compile") 2>conftest.er1
23078 grep -v '^ *+' conftest.er1 >conftest.err
23080 cat conftest.err >&5
23081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082 (exit $ac_status); } && {
23083 test -z "$ac_c_werror_flag" ||
23084 test ! -s conftest.err
23085 } && test -s conftest.$ac_objext; then
23086 ac_cv_sizeof_long_int=$ac_size
23088 echo "$as_me: failed program was:" >&5
23089 sed 's/^/| /' conftest.$ac_ext >&5
23094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23095 if test x$ac_cv_sizeof_long_int != x ; then break; fi
23101 unspecif=$ac_cv_sizeof_long_int
23102 if test x$unspecif = x ; then
23103 { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
23104 echo "$as_me: error: cannot determine a size for long int" >&2;}
23105 { (exit 1); exit 1; }; }
23108 if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
23109 echo $ECHO_N "(cached) $ECHO_C" >&6
23111 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23112 cat >conftest.$ac_ext <<_ACEOF
23115 cat confdefs.h >>conftest.$ac_ext
23116 cat >>conftest.$ac_ext <<_ACEOF
23117 /* end confdefs.h. */
23118 #include "confdefs.h"
23119 #include <sys/types.h>
23125 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
23130 rm -f conftest.$ac_objext
23131 if { (ac_try="$ac_compile"
23132 case "(($ac_try" in
23133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23134 *) ac_try_echo=$ac_try;;
23136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23137 (eval "$ac_compile") 2>conftest.er1
23139 grep -v '^ *+' conftest.er1 >conftest.err
23141 cat conftest.err >&5
23142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143 (exit $ac_status); } && {
23144 test -z "$ac_c_werror_flag" ||
23145 test ! -s conftest.err
23146 } && test -s conftest.$ac_objext; then
23147 ac_cv_sizeof_signed_long_int=$ac_size
23149 echo "$as_me: failed program was:" >&5
23150 sed 's/^/| /' conftest.$ac_ext >&5
23155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23156 if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
23162 signed=$ac_cv_sizeof_signed_long_int
23163 if test x$signed = x ; then
23164 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
23165 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
23166 { (exit 1); exit 1; }; }
23168 if test x$unspecif != x$signed ; then
23169 { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
23170 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
23171 { (exit 1); exit 1; }; }
23174 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
23175 echo $ECHO_N "(cached) $ECHO_C" >&6
23177 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23178 cat >conftest.$ac_ext <<_ACEOF
23181 cat confdefs.h >>conftest.$ac_ext
23182 cat >>conftest.$ac_ext <<_ACEOF
23183 /* end confdefs.h. */
23184 #include "confdefs.h"
23185 #include <sys/types.h>
23191 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
23196 rm -f conftest.$ac_objext
23197 if { (ac_try="$ac_compile"
23198 case "(($ac_try" in
23199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23200 *) ac_try_echo=$ac_try;;
23202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23203 (eval "$ac_compile") 2>conftest.er1
23205 grep -v '^ *+' conftest.er1 >conftest.err
23207 cat conftest.err >&5
23208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23209 (exit $ac_status); } && {
23210 test -z "$ac_c_werror_flag" ||
23211 test ! -s conftest.err
23212 } && test -s conftest.$ac_objext; then
23213 ac_cv_sizeof_unsigned_long_int=$ac_size
23215 echo "$as_me: failed program was:" >&5
23216 sed 's/^/| /' conftest.$ac_ext >&5
23221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23222 if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
23228 unsigned=$ac_cv_sizeof_unsigned_long_int
23229 if test x$unsigned = x ; then
23230 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
23231 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
23232 { (exit 1); exit 1; }; }
23234 if test x$unsigned != x$signed ; then
23235 { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
23236 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
23237 { (exit 1); exit 1; }; }
23240 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
23241 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
23242 { echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
23243 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6; }
23245 if test "${ac_cv_struct_boundary_long_int+set}" = set; then
23246 echo $ECHO_N "(cached) $ECHO_C" >&6
23248 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23249 cat >conftest.$ac_ext <<_ACEOF
23252 cat confdefs.h >>conftest.$ac_ext
23253 cat >>conftest.$ac_ext <<_ACEOF
23254 /* end confdefs.h. */
23255 #include "confdefs.h"
23256 #include <sys/types.h>
23257 struct s { char c; long int i; };
23262 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
23267 rm -f conftest.$ac_objext
23268 if { (ac_try="$ac_compile"
23269 case "(($ac_try" in
23270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23271 *) ac_try_echo=$ac_try;;
23273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23274 (eval "$ac_compile") 2>conftest.er1
23276 grep -v '^ *+' conftest.er1 >conftest.err
23278 cat conftest.err >&5
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); } && {
23281 test -z "$ac_c_werror_flag" ||
23282 test ! -s conftest.err
23283 } && test -s conftest.$ac_objext; then
23284 ac_cv_struct_boundary_long_int=$ac_size
23286 echo "$as_me: failed program was:" >&5
23287 sed 's/^/| /' conftest.$ac_ext >&5
23292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23293 if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
23298 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
23299 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6; }
23300 if test x$ac_cv_struct_boundary_long_int = x ; then
23301 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
23302 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
23303 { (exit 1); exit 1; }; }
23306 { echo "$as_me:$LINENO: checking size of long long int" >&5
23307 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
23308 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
23309 echo $ECHO_N "(cached) $ECHO_C" >&6
23311 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23312 cat >conftest.$ac_ext <<_ACEOF
23315 cat confdefs.h >>conftest.$ac_ext
23316 cat >>conftest.$ac_ext <<_ACEOF
23317 /* end confdefs.h. */
23318 #include "confdefs.h"
23319 #include <sys/types.h>
23325 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
23330 rm -f conftest.$ac_objext
23331 if { (ac_try="$ac_compile"
23332 case "(($ac_try" in
23333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23334 *) ac_try_echo=$ac_try;;
23336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23337 (eval "$ac_compile") 2>conftest.er1
23339 grep -v '^ *+' conftest.er1 >conftest.err
23341 cat conftest.err >&5
23342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343 (exit $ac_status); } && {
23344 test -z "$ac_c_werror_flag" ||
23345 test ! -s conftest.err
23346 } && test -s conftest.$ac_objext; then
23347 ac_cv_sizeof_long_long_int=$ac_size
23349 echo "$as_me: failed program was:" >&5
23350 sed 's/^/| /' conftest.$ac_ext >&5
23355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23356 if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
23362 unspecif=$ac_cv_sizeof_long_long_int
23363 if test x$unspecif = x ; then
23364 { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
23365 echo "$as_me: error: cannot determine a size for long long int" >&2;}
23366 { (exit 1); exit 1; }; }
23369 if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
23370 echo $ECHO_N "(cached) $ECHO_C" >&6
23372 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23373 cat >conftest.$ac_ext <<_ACEOF
23376 cat confdefs.h >>conftest.$ac_ext
23377 cat >>conftest.$ac_ext <<_ACEOF
23378 /* end confdefs.h. */
23379 #include "confdefs.h"
23380 #include <sys/types.h>
23386 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
23391 rm -f conftest.$ac_objext
23392 if { (ac_try="$ac_compile"
23393 case "(($ac_try" in
23394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23395 *) ac_try_echo=$ac_try;;
23397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23398 (eval "$ac_compile") 2>conftest.er1
23400 grep -v '^ *+' conftest.er1 >conftest.err
23402 cat conftest.err >&5
23403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404 (exit $ac_status); } && {
23405 test -z "$ac_c_werror_flag" ||
23406 test ! -s conftest.err
23407 } && test -s conftest.$ac_objext; then
23408 ac_cv_sizeof_signed_long_long_int=$ac_size
23410 echo "$as_me: failed program was:" >&5
23411 sed 's/^/| /' conftest.$ac_ext >&5
23416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23417 if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
23423 signed=$ac_cv_sizeof_signed_long_long_int
23424 if test x$signed = x ; then
23425 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
23426 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
23427 { (exit 1); exit 1; }; }
23429 if test x$unspecif != x$signed ; then
23430 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
23431 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
23432 { (exit 1); exit 1; }; }
23435 if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
23436 echo $ECHO_N "(cached) $ECHO_C" >&6
23438 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23439 cat >conftest.$ac_ext <<_ACEOF
23442 cat confdefs.h >>conftest.$ac_ext
23443 cat >>conftest.$ac_ext <<_ACEOF
23444 /* end confdefs.h. */
23445 #include "confdefs.h"
23446 #include <sys/types.h>
23452 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
23457 rm -f conftest.$ac_objext
23458 if { (ac_try="$ac_compile"
23459 case "(($ac_try" in
23460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23461 *) ac_try_echo=$ac_try;;
23463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23464 (eval "$ac_compile") 2>conftest.er1
23466 grep -v '^ *+' conftest.er1 >conftest.err
23468 cat conftest.err >&5
23469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470 (exit $ac_status); } && {
23471 test -z "$ac_c_werror_flag" ||
23472 test ! -s conftest.err
23473 } && test -s conftest.$ac_objext; then
23474 ac_cv_sizeof_unsigned_long_long_int=$ac_size
23476 echo "$as_me: failed program was:" >&5
23477 sed 's/^/| /' conftest.$ac_ext >&5
23482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23483 if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
23489 unsigned=$ac_cv_sizeof_unsigned_long_long_int
23490 if test x$unsigned = x ; then
23491 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
23492 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
23493 { (exit 1); exit 1; }; }
23495 if test x$unsigned != x$signed ; then
23496 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
23497 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
23498 { (exit 1); exit 1; }; }
23501 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
23502 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6; }
23503 { echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
23504 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6; }
23506 if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
23507 echo $ECHO_N "(cached) $ECHO_C" >&6
23509 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23510 cat >conftest.$ac_ext <<_ACEOF
23513 cat confdefs.h >>conftest.$ac_ext
23514 cat >>conftest.$ac_ext <<_ACEOF
23515 /* end confdefs.h. */
23516 #include "confdefs.h"
23517 #include <sys/types.h>
23518 struct s { char c; long long int i; };
23523 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
23528 rm -f conftest.$ac_objext
23529 if { (ac_try="$ac_compile"
23530 case "(($ac_try" in
23531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23532 *) ac_try_echo=$ac_try;;
23534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23535 (eval "$ac_compile") 2>conftest.er1
23537 grep -v '^ *+' conftest.er1 >conftest.err
23539 cat conftest.err >&5
23540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541 (exit $ac_status); } && {
23542 test -z "$ac_c_werror_flag" ||
23543 test ! -s conftest.err
23544 } && test -s conftest.$ac_objext; then
23545 ac_cv_struct_boundary_long_long_int=$ac_size
23547 echo "$as_me: failed program was:" >&5
23548 sed 's/^/| /' conftest.$ac_ext >&5
23553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23554 if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
23559 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
23560 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6; }
23561 if test x$ac_cv_struct_boundary_long_long_int = x ; then
23562 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
23563 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
23564 { (exit 1); exit 1; }; }
23568 { echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
23569 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6; }
23571 if test "${ac_cv_struct_boundary_float+set}" = set; then
23572 echo $ECHO_N "(cached) $ECHO_C" >&6
23574 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23575 cat >conftest.$ac_ext <<_ACEOF
23578 cat confdefs.h >>conftest.$ac_ext
23579 cat >>conftest.$ac_ext <<_ACEOF
23580 /* end confdefs.h. */
23581 #include "confdefs.h"
23582 #include <sys/types.h>
23583 struct s { char c; float i; };
23588 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
23593 rm -f conftest.$ac_objext
23594 if { (ac_try="$ac_compile"
23595 case "(($ac_try" in
23596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23597 *) ac_try_echo=$ac_try;;
23599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23600 (eval "$ac_compile") 2>conftest.er1
23602 grep -v '^ *+' conftest.er1 >conftest.err
23604 cat conftest.err >&5
23605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606 (exit $ac_status); } && {
23607 test -z "$ac_c_werror_flag" ||
23608 test ! -s conftest.err
23609 } && test -s conftest.$ac_objext; then
23610 ac_cv_struct_boundary_float=$ac_size
23612 echo "$as_me: failed program was:" >&5
23613 sed 's/^/| /' conftest.$ac_ext >&5
23618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23619 if test x$ac_cv_struct_boundary_float != x ; then break; fi
23624 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
23625 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6; }
23626 if test x$ac_cv_struct_boundary_float = x ; then
23627 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
23628 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
23629 { (exit 1); exit 1; }; }
23631 { echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
23632 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6; }
23634 if test "${ac_cv_struct_boundary_double+set}" = set; then
23635 echo $ECHO_N "(cached) $ECHO_C" >&6
23637 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23638 cat >conftest.$ac_ext <<_ACEOF
23641 cat confdefs.h >>conftest.$ac_ext
23642 cat >>conftest.$ac_ext <<_ACEOF
23643 /* end confdefs.h. */
23644 #include "confdefs.h"
23645 #include <sys/types.h>
23646 struct s { char c; double i; };
23651 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
23656 rm -f conftest.$ac_objext
23657 if { (ac_try="$ac_compile"
23658 case "(($ac_try" in
23659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23660 *) ac_try_echo=$ac_try;;
23662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23663 (eval "$ac_compile") 2>conftest.er1
23665 grep -v '^ *+' conftest.er1 >conftest.err
23667 cat conftest.err >&5
23668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669 (exit $ac_status); } && {
23670 test -z "$ac_c_werror_flag" ||
23671 test ! -s conftest.err
23672 } && test -s conftest.$ac_objext; then
23673 ac_cv_struct_boundary_double=$ac_size
23675 echo "$as_me: failed program was:" >&5
23676 sed 's/^/| /' conftest.$ac_ext >&5
23681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23682 if test x$ac_cv_struct_boundary_double != x ; then break; fi
23687 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
23688 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6; }
23689 if test x$ac_cv_struct_boundary_double = x ; then
23690 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
23691 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
23692 { (exit 1); exit 1; }; }
23696 { echo "$as_me:$LINENO: checking size of void *" >&5
23697 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
23698 if test "${ac_cv_sizeof_void_p+set}" = set; then
23699 echo $ECHO_N "(cached) $ECHO_C" >&6
23701 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23702 cat >conftest.$ac_ext <<_ACEOF
23705 cat confdefs.h >>conftest.$ac_ext
23706 cat >>conftest.$ac_ext <<_ACEOF
23707 /* end confdefs.h. */
23708 #include "confdefs.h"
23709 #include <sys/types.h>
23715 switch (0) case 0: case (sizeof (void *) == $ac_size):;
23720 rm -f conftest.$ac_objext
23721 if { (ac_try="$ac_compile"
23722 case "(($ac_try" in
23723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23724 *) ac_try_echo=$ac_try;;
23726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23727 (eval "$ac_compile") 2>conftest.er1
23729 grep -v '^ *+' conftest.er1 >conftest.err
23731 cat conftest.err >&5
23732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733 (exit $ac_status); } && {
23734 test -z "$ac_c_werror_flag" ||
23735 test ! -s conftest.err
23736 } && test -s conftest.$ac_objext; then
23737 ac_cv_sizeof_void_p=$ac_size
23739 echo "$as_me: failed program was:" >&5
23740 sed 's/^/| /' conftest.$ac_ext >&5
23745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23746 if test x$ac_cv_sizeof_void_p != x ; then break; fi
23752 if test x$ac_cv_sizeof_void_p = x ; then
23753 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
23754 echo "$as_me: error: cannot determine a size for void *" >&2;}
23755 { (exit 1); exit 1; }; }
23757 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23758 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
23759 { echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
23760 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6; }
23762 if test "${ac_cv_struct_boundary_void_p+set}" = set; then
23763 echo $ECHO_N "(cached) $ECHO_C" >&6
23765 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23766 cat >conftest.$ac_ext <<_ACEOF
23769 cat confdefs.h >>conftest.$ac_ext
23770 cat >>conftest.$ac_ext <<_ACEOF
23771 /* end confdefs.h. */
23772 #include "confdefs.h"
23773 #include <sys/types.h>
23774 struct s { char c; void * i; };
23779 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
23784 rm -f conftest.$ac_objext
23785 if { (ac_try="$ac_compile"
23786 case "(($ac_try" in
23787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23788 *) ac_try_echo=$ac_try;;
23790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23791 (eval "$ac_compile") 2>conftest.er1
23793 grep -v '^ *+' conftest.er1 >conftest.err
23795 cat conftest.err >&5
23796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797 (exit $ac_status); } && {
23798 test -z "$ac_c_werror_flag" ||
23799 test ! -s conftest.err
23800 } && test -s conftest.$ac_objext; then
23801 ac_cv_struct_boundary_void_p=$ac_size
23803 echo "$as_me: failed program was:" >&5
23804 sed 's/^/| /' conftest.$ac_ext >&5
23809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23810 if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
23815 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
23816 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6; }
23817 if test x$ac_cv_struct_boundary_void_p = x ; then
23818 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
23819 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
23820 { (exit 1); exit 1; }; }
23823 { echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
23824 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6; }
23825 if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
23826 echo $ECHO_N "(cached) $ECHO_C" >&6
23828 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23829 cat >conftest.$ac_ext <<_ACEOF
23832 cat confdefs.h >>conftest.$ac_ext
23833 cat >>conftest.$ac_ext <<_ACEOF
23834 /* end confdefs.h. */
23835 #include "confdefs.h"
23836 #include <sys/types.h>
23842 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
23847 rm -f conftest.$ac_objext
23848 if { (ac_try="$ac_compile"
23849 case "(($ac_try" in
23850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23851 *) ac_try_echo=$ac_try;;
23853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23854 (eval "$ac_compile") 2>conftest.er1
23856 grep -v '^ *+' conftest.er1 >conftest.err
23858 cat conftest.err >&5
23859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860 (exit $ac_status); } && {
23861 test -z "$ac_c_werror_flag" ||
23862 test ! -s conftest.err
23863 } && test -s conftest.$ac_objext; then
23864 ac_cv_sizeof_void_LpR_LvoidR=$ac_size
23866 echo "$as_me: failed program was:" >&5
23867 sed 's/^/| /' conftest.$ac_ext >&5
23872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23873 if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
23879 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
23880 { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
23881 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
23882 { (exit 1); exit 1; }; }
23884 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
23885 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6; }
23889 { echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
23890 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6; }
23891 if test x$endian = x1 ; then
23897 trace="$trace_endian"
23899 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
23901 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
23902 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
23903 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
23904 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
23906 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
23907 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
23909 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
23911 # sizeof float/double are not tested since IEEE 754 is assumed.
23912 # Check README.IEEE for rational.
23914 # The numbers after the _ in the arch name are the maximal packing boundary.
23915 # big32_2 means that all data are aligned on a 2 bytes boundary. (ARM)
23916 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
23918 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;;
23919 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;;
23920 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;;
23921 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;;
23923 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;;
23925 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;;
23926 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;;
23927 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;;
23928 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;;
23930 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;;
23931 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;;
23933 if test x$gras_arch = xunknown ; then
23934 { echo "$as_me:$LINENO: result: damnit ($trace)" >&5
23935 echo "${ECHO_T}damnit ($trace)" >&6; }
23936 { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
23937 Please report this architecture trace ($trace) and what it corresponds to." >&5
23938 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
23939 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
23940 { (exit 1); exit 1; }; }
23942 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
23944 cat >>confdefs.h <<_ACEOF
23945 #define GRAS_THISARCH $gras_arch
23948 { echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
23949 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6; }
23951 if test "$gras_size" = 32; then
23952 GRAS_ARCH_32_BITS_TRUE=
23953 GRAS_ARCH_32_BITS_FALSE='#'
23955 GRAS_ARCH_32_BITS_TRUE='#'
23956 GRAS_ARCH_32_BITS_FALSE=
23960 { echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
23961 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6; }
23963 for s in $ac_cv_sizeof_char \
23964 $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
23965 $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
23968 if test $ac_cv_sizeof_max -lt $s ; then
23969 ac_cv_sizeof_max=$s
23972 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
23973 echo "${ECHO_T}$ac_cv_sizeof_max" >&6; }
23975 cat >>confdefs.h <<_ACEOF
23976 #define SIZEOF_MAX $ac_cv_sizeof_max
23981 # Check architecture signature end
23982 { echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
23983 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6; }
23984 cat >conftest.$ac_ext <<_ACEOF
23987 cat confdefs.h >>conftest.$ac_ext
23988 cat >>conftest.$ac_ext <<_ACEOF
23989 /* end confdefs.h. */
23990 #include "confdefs.h"
23991 #include <sys/types.h>
23992 #include <stddef.h> /* offsetof() */
23993 struct s {char c; double d;};
24000 case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
24006 rm -f conftest.$ac_objext
24007 if { (ac_try="$ac_compile"
24008 case "(($ac_try" in
24009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24010 *) ac_try_echo=$ac_try;;
24012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24013 (eval "$ac_compile") 2>conftest.er1
24015 grep -v '^ *+' conftest.er1 >conftest.err
24017 cat conftest.err >&5
24018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24019 (exit $ac_status); } && {
24020 test -z "$ac_c_werror_flag" ||
24021 test ! -s conftest.err
24022 } && test -s conftest.$ac_objext; then
24023 gras_struct_packed=yes
24025 echo "$as_me: failed program was:" >&5
24026 sed 's/^/| /' conftest.$ac_ext >&5
24028 gras_struct_packed=no
24031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24033 { echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
24034 echo "${ECHO_T}$gras_struct_packed" >&6; }
24035 if test x$gras_struct_packed = "xyes" ; then
24036 { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
24037 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
24038 { (exit 1); exit 1; }; }
24041 { echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
24042 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6; }
24043 cat >conftest.$ac_ext <<_ACEOF
24046 cat confdefs.h >>conftest.$ac_ext
24047 cat >>conftest.$ac_ext <<_ACEOF
24048 /* end confdefs.h. */
24049 #include "confdefs.h"
24050 #include <sys/types.h>
24051 #include <stddef.h> /* offsetof() */
24052 struct s {double d; int i; char c;};
24059 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24065 rm -f conftest.$ac_objext
24066 if { (ac_try="$ac_compile"
24067 case "(($ac_try" in
24068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24069 *) ac_try_echo=$ac_try;;
24071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24072 (eval "$ac_compile") 2>conftest.er1
24074 grep -v '^ *+' conftest.er1 >conftest.err
24076 cat conftest.err >&5
24077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24078 (exit $ac_status); } && {
24079 test -z "$ac_c_werror_flag" ||
24080 test ! -s conftest.err
24081 } && test -s conftest.$ac_objext; then
24082 gras_struct_compact=yes
24084 echo "$as_me: failed program was:" >&5
24085 sed 's/^/| /' conftest.$ac_ext >&5
24087 gras_struct_compact=no
24090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24092 { echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
24093 echo "${ECHO_T}$gras_struct_compact" >&6; }
24095 if test x$gras_struct_compact != xyes ; then
24096 { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
24097 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
24098 { (exit 1); exit 1; }; }
24101 cat >>confdefs.h <<_ACEOF
24102 #define GRAS_STRUCT_COMPACT 1
24105 { echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
24106 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6; }
24108 cat >conftest.$ac_ext <<_ACEOF
24111 cat confdefs.h >>conftest.$ac_ext
24112 cat >>conftest.$ac_ext <<_ACEOF
24113 /* end confdefs.h. */
24114 #include "confdefs.h"
24115 #include <sys/types.h>
24116 #include <stddef.h> /* offsetof() */
24117 struct s { double d; int i; char c[6]; };
24124 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24130 rm -f conftest.$ac_objext
24131 if { (ac_try="$ac_compile"
24132 case "(($ac_try" in
24133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24134 *) ac_try_echo=$ac_try;;
24136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24137 (eval "$ac_compile") 2>conftest.er1
24139 grep -v '^ *+' conftest.er1 >conftest.err
24141 cat conftest.err >&5
24142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24143 (exit $ac_status); } && {
24144 test -z "$ac_c_werror_flag" ||
24145 test ! -s conftest.err
24146 } && test -s conftest.$ac_objext; then
24147 gras_array_straddle_struct=yes
24149 echo "$as_me: failed program was:" >&5
24150 sed 's/^/| /' conftest.$ac_ext >&5
24152 gras_array_straddle_struct=no
24155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24157 { echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
24158 echo "${ECHO_T}$gras_array_straddle_struct" >&6; }
24160 if test x$gras_array_straddle_struct = xyes ; then
24162 cat >>confdefs.h <<_ACEOF
24163 #define GRAS_ARRAY_STRADDLE_STRUCT 1
24167 { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
24168 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
24169 { (exit 1); exit 1; }; }
24176 { echo "$as_me:$LINENO: result: " >&5
24177 echo "${ECHO_T}" >&6; }
24178 { echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
24179 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6; }
24184 { echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
24185 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6; }
24186 if test "${ac_cv_check_mcsc+set}" = set; then
24187 echo $ECHO_N "(cached) $ECHO_C" >&6
24190 if test "$cross_compiling" = yes; then
24191 ac_cv_check_mcsc=no
24194 cat >conftest.$ac_ext <<_ACEOF
24197 cat confdefs.h >>conftest.$ac_ext
24198 cat >>conftest.$ac_ext <<_ACEOF
24199 /* end confdefs.h. */
24203 #include <stdlib.h>
24204 #include <ucontext.h>
24206 ucontext_t uc_child;
24207 ucontext_t uc_main;
24209 void child(void *arg)
24211 if (arg != (void *)12345)
24213 if (swapcontext(&uc_child, &uc_main) != 0)
24217 int main(int argc, char *argv[])
24222 /* the default is that it fails */
24223 if ((fp = fopen("conftestval", "w")) == NULL)
24225 fprintf(fp, "no\n");
24228 /* configure a child user-space context */
24229 if ((stack = malloc(64*1024)) == NULL)
24231 if (getcontext(&uc_child) != 0)
24233 uc_child.uc_link = NULL;
24234 uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
24235 uc_child.uc_stack.ss_size = 32*1024;
24236 uc_child.uc_stack.ss_flags = 0;
24237 makecontext(&uc_child, child, 2, (void *)12345);
24239 /* switch into the user context */
24240 if (swapcontext(&uc_main, &uc_child) != 0)
24243 /* Fine, child came home */
24244 if ((fp = fopen("conftestval", "w")) == NULL)
24246 fprintf(fp, "yes\n");
24249 /* die successfully */
24254 rm -f conftest$ac_exeext
24255 if { (ac_try="$ac_link"
24256 case "(($ac_try" in
24257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24258 *) ac_try_echo=$ac_try;;
24260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24261 (eval "$ac_link") 2>&5
24263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24265 { (case "(($ac_try" in
24266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24267 *) ac_try_echo=$ac_try;;
24269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24270 (eval "$ac_try") 2>&5
24272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24273 (exit $ac_status); }; }; then
24274 ac_cv_check_mcsc=`cat conftestval`
24276 echo "$as_me: program exited with status $ac_status" >&5
24277 echo "$as_me: failed program was:" >&5
24278 sed 's/^/| /' conftest.$ac_ext >&5
24280 ( exit $ac_status )
24281 ac_cv_check_mcsc=no
24283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24288 { echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
24289 echo "${ECHO_T}$ac_cv_check_mcsc" >&6; }
24290 if test ".$ac_cv_check_mcsc" = .yes; then
24298 for ac_header in pthread.h
24300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24305 echo $ECHO_N "(cached) $ECHO_C" >&6
24307 ac_res=`eval echo '${'$as_ac_Header'}'`
24308 { echo "$as_me:$LINENO: result: $ac_res" >&5
24309 echo "${ECHO_T}$ac_res" >&6; }
24311 # Is the header compilable?
24312 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24314 cat >conftest.$ac_ext <<_ACEOF
24317 cat confdefs.h >>conftest.$ac_ext
24318 cat >>conftest.$ac_ext <<_ACEOF
24319 /* end confdefs.h. */
24320 $ac_includes_default
24321 #include <$ac_header>
24323 rm -f conftest.$ac_objext
24324 if { (ac_try="$ac_compile"
24325 case "(($ac_try" in
24326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24327 *) ac_try_echo=$ac_try;;
24329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24330 (eval "$ac_compile") 2>conftest.er1
24332 grep -v '^ *+' conftest.er1 >conftest.err
24334 cat conftest.err >&5
24335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24336 (exit $ac_status); } && {
24337 test -z "$ac_c_werror_flag" ||
24338 test ! -s conftest.err
24339 } && test -s conftest.$ac_objext; then
24340 ac_header_compiler=yes
24342 echo "$as_me: failed program was:" >&5
24343 sed 's/^/| /' conftest.$ac_ext >&5
24345 ac_header_compiler=no
24348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24349 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24350 echo "${ECHO_T}$ac_header_compiler" >&6; }
24352 # Is the header present?
24353 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24355 cat >conftest.$ac_ext <<_ACEOF
24358 cat confdefs.h >>conftest.$ac_ext
24359 cat >>conftest.$ac_ext <<_ACEOF
24360 /* end confdefs.h. */
24361 #include <$ac_header>
24363 if { (ac_try="$ac_cpp conftest.$ac_ext"
24364 case "(($ac_try" in
24365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24366 *) ac_try_echo=$ac_try;;
24368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24371 grep -v '^ *+' conftest.er1 >conftest.err
24373 cat conftest.err >&5
24374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24375 (exit $ac_status); } >/dev/null && {
24376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24377 test ! -s conftest.err
24379 ac_header_preproc=yes
24381 echo "$as_me: failed program was:" >&5
24382 sed 's/^/| /' conftest.$ac_ext >&5
24384 ac_header_preproc=no
24387 rm -f conftest.err conftest.$ac_ext
24388 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24389 echo "${ECHO_T}$ac_header_preproc" >&6; }
24391 # So? What about this header?
24392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24398 ac_header_preproc=yes
24401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24408 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24414 ## -------------------------------------------------- ##
24415 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24416 ## -------------------------------------------------- ##
24418 ) | sed "s/^/$as_me: WARNING: /" >&2
24421 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24424 echo $ECHO_N "(cached) $ECHO_C" >&6
24426 eval "$as_ac_Header=\$ac_header_preproc"
24428 ac_res=`eval echo '${'$as_ac_Header'}'`
24429 { echo "$as_me:$LINENO: result: $ac_res" >&5
24430 echo "${ECHO_T}$ac_res" >&6; }
24433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24434 cat >>confdefs.h <<_ACEOF
24435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24442 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24443 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24444 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24445 echo $ECHO_N "(cached) $ECHO_C" >&6
24447 ac_check_lib_save_LIBS=$LIBS
24448 LIBS="-lpthread $LIBS"
24449 cat >conftest.$ac_ext <<_ACEOF
24452 cat confdefs.h >>conftest.$ac_ext
24453 cat >>conftest.$ac_ext <<_ACEOF
24454 /* end confdefs.h. */
24456 /* Override any GCC internal prototype to avoid an error.
24457 Use char because int might match the return type of a GCC
24458 builtin and then its argument prototype would still apply. */
24462 char pthread_create ();
24466 return pthread_create ();
24471 rm -f conftest.$ac_objext conftest$ac_exeext
24472 if { (ac_try="$ac_link"
24473 case "(($ac_try" in
24474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24475 *) ac_try_echo=$ac_try;;
24477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24478 (eval "$ac_link") 2>conftest.er1
24480 grep -v '^ *+' conftest.er1 >conftest.err
24482 cat conftest.err >&5
24483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24484 (exit $ac_status); } && {
24485 test -z "$ac_c_werror_flag" ||
24486 test ! -s conftest.err
24487 } && test -s conftest$ac_exeext &&
24488 $as_test_x conftest$ac_exeext; then
24489 ac_cv_lib_pthread_pthread_create=yes
24491 echo "$as_me: failed program was:" >&5
24492 sed 's/^/| /' conftest.$ac_ext >&5
24494 ac_cv_lib_pthread_pthread_create=no
24497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24498 conftest$ac_exeext conftest.$ac_ext
24499 LIBS=$ac_check_lib_save_LIBS
24501 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24502 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24503 if test $ac_cv_lib_pthread_pthread_create = yes; then
24511 if test ".$mcsc" = .yes; then
24513 elif test ".$pthread" = .yes; then
24516 ac_header=windows.h
24517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24519 windows_context=yes
24521 { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
24522 echo "$as_me: error: no appropriate backend found" >&2;}
24523 { (exit 1); exit 1; }; }
24528 { echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
24529 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6; }
24532 # Check whether --with-pthread was given.
24533 if test "${with_pthread+set}" = set; then
24534 withval=$with_pthread; with_context=pthread
24538 # Check whether --with-pthread was given.
24539 if test "${with_pthread+set}" = set; then
24540 withval=$with_pthread; with_context=pthread
24545 # Check whether --with-context was given.
24546 if test "${with_context+set}" = set; then
24547 withval=$with_context;
24553 if test "x$with_context$mcsc" = "xucontextno" ; then
24554 { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
24555 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
24556 { (exit 77); exit 77; }; }
24559 case $with_context in
24564 auto) with_context=ucontext;;
24565 *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
24566 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
24567 { (exit 1); exit 1; }; } ;;
24570 if test "x$with_context" = "xucontext" ; then
24571 if test ".$mcsc" = .yes; then
24572 { echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
24573 echo "${ECHO_T}found working ucontext. Great!" >&6; }
24575 cat >>confdefs.h <<\_ACEOF
24576 #define CONTEXT_UCONTEXT 1
24580 if test ".$windows_context" = .yes ; then
24581 { echo "$as_me:$LINENO: result: use windows context portability layer." >&5
24582 echo "${ECHO_T}use windows context portability layer." >&6; }
24583 with_context=windows
24585 { echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
24586 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6; }
24587 with_context=pthread
24592 if test "x$with_context" = "xpthreads"; then
24593 with_context=pthread
24595 if test "x$with_context" = "xpthread"; then
24597 for ac_header in pthread.h
24599 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24601 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24604 echo $ECHO_N "(cached) $ECHO_C" >&6
24606 ac_res=`eval echo '${'$as_ac_Header'}'`
24607 { echo "$as_me:$LINENO: result: $ac_res" >&5
24608 echo "${ECHO_T}$ac_res" >&6; }
24610 # Is the header compilable?
24611 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24612 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24613 cat >conftest.$ac_ext <<_ACEOF
24616 cat confdefs.h >>conftest.$ac_ext
24617 cat >>conftest.$ac_ext <<_ACEOF
24618 /* end confdefs.h. */
24619 $ac_includes_default
24620 #include <$ac_header>
24622 rm -f conftest.$ac_objext
24623 if { (ac_try="$ac_compile"
24624 case "(($ac_try" in
24625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24626 *) ac_try_echo=$ac_try;;
24628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24629 (eval "$ac_compile") 2>conftest.er1
24631 grep -v '^ *+' conftest.er1 >conftest.err
24633 cat conftest.err >&5
24634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24635 (exit $ac_status); } && {
24636 test -z "$ac_c_werror_flag" ||
24637 test ! -s conftest.err
24638 } && test -s conftest.$ac_objext; then
24639 ac_header_compiler=yes
24641 echo "$as_me: failed program was:" >&5
24642 sed 's/^/| /' conftest.$ac_ext >&5
24644 ac_header_compiler=no
24647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24648 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24649 echo "${ECHO_T}$ac_header_compiler" >&6; }
24651 # Is the header present?
24652 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24654 cat >conftest.$ac_ext <<_ACEOF
24657 cat confdefs.h >>conftest.$ac_ext
24658 cat >>conftest.$ac_ext <<_ACEOF
24659 /* end confdefs.h. */
24660 #include <$ac_header>
24662 if { (ac_try="$ac_cpp conftest.$ac_ext"
24663 case "(($ac_try" in
24664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24665 *) ac_try_echo=$ac_try;;
24667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24670 grep -v '^ *+' conftest.er1 >conftest.err
24672 cat conftest.err >&5
24673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674 (exit $ac_status); } >/dev/null && {
24675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24676 test ! -s conftest.err
24678 ac_header_preproc=yes
24680 echo "$as_me: failed program was:" >&5
24681 sed 's/^/| /' conftest.$ac_ext >&5
24683 ac_header_preproc=no
24686 rm -f conftest.err conftest.$ac_ext
24687 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24688 echo "${ECHO_T}$ac_header_preproc" >&6; }
24690 # So? What about this header?
24691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24693 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24694 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24696 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24697 ac_header_preproc=yes
24700 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24702 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24703 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24704 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24705 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24706 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24707 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24709 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24710 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24711 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24713 ## -------------------------------------------------- ##
24714 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24715 ## -------------------------------------------------- ##
24717 ) | sed "s/^/$as_me: WARNING: /" >&2
24720 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24723 echo $ECHO_N "(cached) $ECHO_C" >&6
24725 eval "$as_ac_Header=\$ac_header_preproc"
24727 ac_res=`eval echo '${'$as_ac_Header'}'`
24728 { echo "$as_me:$LINENO: result: $ac_res" >&5
24729 echo "${ECHO_T}$ac_res" >&6; }
24732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24733 cat >>confdefs.h <<_ACEOF
24734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24742 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24743 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24744 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24745 echo $ECHO_N "(cached) $ECHO_C" >&6
24747 ac_check_lib_save_LIBS=$LIBS
24748 LIBS="-lpthread $LIBS"
24749 cat >conftest.$ac_ext <<_ACEOF
24752 cat confdefs.h >>conftest.$ac_ext
24753 cat >>conftest.$ac_ext <<_ACEOF
24754 /* end confdefs.h. */
24756 /* Override any GCC internal prototype to avoid an error.
24757 Use char because int might match the return type of a GCC
24758 builtin and then its argument prototype would still apply. */
24762 char pthread_create ();
24766 return pthread_create ();
24771 rm -f conftest.$ac_objext conftest$ac_exeext
24772 if { (ac_try="$ac_link"
24773 case "(($ac_try" in
24774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24775 *) ac_try_echo=$ac_try;;
24777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24778 (eval "$ac_link") 2>conftest.er1
24780 grep -v '^ *+' conftest.er1 >conftest.err
24782 cat conftest.err >&5
24783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784 (exit $ac_status); } && {
24785 test -z "$ac_c_werror_flag" ||
24786 test ! -s conftest.err
24787 } && test -s conftest$ac_exeext &&
24788 $as_test_x conftest$ac_exeext; then
24789 ac_cv_lib_pthread_pthread_create=yes
24791 echo "$as_me: failed program was:" >&5
24792 sed 's/^/| /' conftest.$ac_ext >&5
24794 ac_cv_lib_pthread_pthread_create=no
24797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24798 conftest$ac_exeext conftest.$ac_ext
24799 LIBS=$ac_check_lib_save_LIBS
24801 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24802 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24803 if test $ac_cv_lib_pthread_pthread_create = yes; then
24804 cat >>confdefs.h <<_ACEOF
24805 #define HAVE_LIBPTHREAD 1
24808 LIBS="-lpthread $LIBS"
24811 { { echo "$as_me:$LINENO: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&5
24812 echo "$as_me: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&2;}
24813 { (exit 1); exit 1; }; }
24817 cat >>confdefs.h <<\_ACEOF
24818 #define CONTEXT_THREADS 1
24821 { echo "$as_me:$LINENO: result: You have pthreads. Let's use them." >&5
24822 echo "${ECHO_T}You have pthreads. Let's use them." >&6; }
24826 if test "x$with_context" = "xucontext" ; then
24827 { echo "$as_me:$LINENO: checking for direction of stack growth" >&5
24828 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6; }
24829 if test "${ac_cv_check_stackgrowth+set}" = set; then
24830 echo $ECHO_N "(cached) $ECHO_C" >&6
24834 if test "$cross_compiling" = yes; then
24835 ac_cv_check_stackgrowth=down
24838 cat >conftest.$ac_ext <<_ACEOF
24841 cat confdefs.h >>conftest.$ac_ext
24842 cat >>conftest.$ac_ext <<_ACEOF
24843 /* end confdefs.h. */
24846 #include <stdlib.h>
24847 static int iterate = 10;
24848 static int growsdown(int *x)
24858 int main(int argc, char *argv[])
24862 if ((f = fopen("conftestval", "w")) == NULL)
24864 fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
24871 rm -f conftest$ac_exeext
24872 if { (ac_try="$ac_link"
24873 case "(($ac_try" in
24874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24875 *) ac_try_echo=$ac_try;;
24877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24878 (eval "$ac_link") 2>&5
24880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24882 { (case "(($ac_try" in
24883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24884 *) ac_try_echo=$ac_try;;
24886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24887 (eval "$ac_try") 2>&5
24889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890 (exit $ac_status); }; }; then
24891 ac_cv_check_stackgrowth=`cat conftestval`
24893 echo "$as_me: program exited with status $ac_status" >&5
24894 echo "$as_me: failed program was:" >&5
24895 sed 's/^/| /' conftest.$ac_ext >&5
24897 ( exit $ac_status )
24898 ac_cv_check_stackgrowth=down
24900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24905 { echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
24906 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6; }
24907 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24913 cat >>confdefs.h <<_ACEOF
24914 #define PTH_STACKGROWTH $val
24918 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24919 PTH_STACK_GROWTH="down"
24921 PTH_STACK_GROWTH="up"
24929 for ac_func in makecontext
24931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24932 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24934 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24935 echo $ECHO_N "(cached) $ECHO_C" >&6
24937 cat >conftest.$ac_ext <<_ACEOF
24940 cat confdefs.h >>conftest.$ac_ext
24941 cat >>conftest.$ac_ext <<_ACEOF
24942 /* end confdefs.h. */
24943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24945 #define $ac_func innocuous_$ac_func
24947 /* System header to define __stub macros and hopefully few prototypes,
24948 which can conflict with char $ac_func (); below.
24949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24950 <limits.h> exists even on freestanding compilers. */
24953 # include <limits.h>
24955 # include <assert.h>
24960 /* Override any GCC internal prototype to avoid an error.
24961 Use char because int might match the return type of a GCC
24962 builtin and then its argument prototype would still apply. */
24967 /* The GNU C library defines this for functions which it implements
24968 to always fail with ENOSYS. Some functions are actually named
24969 something starting with __ and the normal name is an alias. */
24970 #if defined __stub_$ac_func || defined __stub___$ac_func
24977 return $ac_func ();
24982 rm -f conftest.$ac_objext conftest$ac_exeext
24983 if { (ac_try="$ac_link"
24984 case "(($ac_try" in
24985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24986 *) ac_try_echo=$ac_try;;
24988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24989 (eval "$ac_link") 2>conftest.er1
24991 grep -v '^ *+' conftest.er1 >conftest.err
24993 cat conftest.err >&5
24994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24995 (exit $ac_status); } && {
24996 test -z "$ac_c_werror_flag" ||
24997 test ! -s conftest.err
24998 } && test -s conftest$ac_exeext &&
24999 $as_test_x conftest$ac_exeext; then
25000 eval "$as_ac_var=yes"
25002 echo "$as_me: failed program was:" >&5
25003 sed 's/^/| /' conftest.$ac_ext >&5
25005 eval "$as_ac_var=no"
25008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25009 conftest$ac_exeext conftest.$ac_ext
25011 ac_res=`eval echo '${'$as_ac_var'}'`
25012 { echo "$as_me:$LINENO: result: $ac_res" >&5
25013 echo "${ECHO_T}$ac_res" >&6; }
25014 if test `eval echo '${'$as_ac_var'}'` = yes; then
25015 cat >>confdefs.h <<_ACEOF
25016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25023 { echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
25024 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6; }
25025 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
25026 echo $ECHO_N "(cached) $ECHO_C" >&6
25029 if test ".$ac_cv_func_makecontext" = .no; then
25030 ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
25033 CFLAGS="$CFLAGS -DTEST_makecontext"
25035 if test "$cross_compiling" = yes; then
25037 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25040 cat >conftest.$ac_ext <<_ACEOF
25043 cat confdefs.h >>conftest.$ac_ext
25044 cat >>conftest.$ac_ext <<_ACEOF
25045 /* end confdefs.h. */
25048 #include <stdlib.h>
25049 #include <string.h>
25050 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25051 #include <sys/types.h>
25052 #include <signal.h>
25053 #include <unistd.h>
25055 #if defined(TEST_makecontext)
25056 #include <ucontext.h>
25065 static volatile char *handler_addr = (char *)0xDEAD;
25066 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25067 static volatile int handler_done = 0;
25068 void handler(int sig)
25070 char garbage[1024];
25073 for (i = 0; i < 1024; i++)
25075 handler_addr = (char *)&dummy;
25080 #if defined(TEST_makecontext)
25081 static ucontext_t uc_handler;
25082 static ucontext_t uc_main;
25085 char garbage[1024];
25088 for (i = 0; i < 1024; i++)
25090 handler_addr = (char *)&dummy;
25091 swapcontext(&uc_handler, &uc_main);
25095 int main(int argc, char *argv[])
25104 skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
25107 for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
25109 skaddr = skbuf+sizeof(union alltypes);
25110 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25112 struct sigaction sa;
25113 #if defined(TEST_sigstack)
25114 struct sigstack ss;
25115 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
25118 struct sigaltstack ss;
25120 #if defined(TEST_sigstack)
25121 ss.ss_sp = (void *)(skaddr + sksize);
25123 if (sigstack(&ss, NULL) < 0)
25125 #elif defined(TEST_sigaltstack)
25126 ss.ss_sp = (void *)(skaddr + sksize);
25127 ss.ss_size = sksize;
25129 if (sigaltstack(&ss, NULL) < 0)
25132 memset((void *)&sa, 0, sizeof(struct sigaction));
25133 sa.sa_handler = handler;
25134 sa.sa_flags = SA_ONSTACK;
25135 sigemptyset(&sa.sa_mask);
25136 sigaction(SIGUSR1, &sa, NULL);
25137 kill(getpid(), SIGUSR1);
25138 while (!handler_done)
25142 #if defined(TEST_makecontext)
25144 if (getcontext(&uc_handler) != 0)
25146 uc_handler.uc_link = NULL;
25147 uc_handler.uc_stack.ss_sp = (void *)(skaddr + sksize);
25148 uc_handler.uc_stack.ss_size = sksize;
25149 uc_handler.uc_stack.ss_flags = 0;
25150 makecontext(&uc_handler, handler, 1);
25151 swapcontext(&uc_main, &uc_handler);
25154 if (handler_addr == (char *)0xDEAD)
25156 if (handler_addr < skaddr+sksize) {
25157 /* stack was placed into lower area */
25158 if (*(skaddr+sksize) != 'A')
25159 sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
25160 sizeof(union alltypes), sizeof(union alltypes));
25162 strcpy(result, "(skaddr)+(sksize),(sksize)");
25165 /* stack was placed into higher area */
25166 if (*(skaddr+sksize*2) != 'A')
25167 sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
25169 strcpy(result, "(skaddr),(sksize)");
25171 if ((f = fopen("conftestval", "w")) == NULL)
25173 fprintf(f, "%s\n", result);
25179 rm -f conftest$ac_exeext
25180 if { (ac_try="$ac_link"
25181 case "(($ac_try" in
25182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25183 *) ac_try_echo=$ac_try;;
25185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25186 (eval "$ac_link") 2>&5
25188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25190 { (case "(($ac_try" in
25191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25192 *) ac_try_echo=$ac_try;;
25194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25195 (eval "$ac_try") 2>&5
25197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); }; }; then
25200 ac_cv_stacksetup_makecontext=`cat conftestval`
25201 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
25204 echo "$as_me: program exited with status $ac_status" >&5
25205 echo "$as_me: failed program was:" >&5
25206 sed 's/^/| /' conftest.$ac_ext >&5
25208 ( exit $ac_status )
25210 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25221 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
25222 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
25223 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
25224 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
25225 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
25226 { echo "$as_me:$LINENO: result: $type" >&5
25227 echo "${ECHO_T}$type" >&6; }
25228 if test ".$verbose" = .yes; then
25229 { echo "$as_me:$LINENO: result: $pth_skaddr_makecontext" >&5
25230 echo "${ECHO_T} $pth_skaddr_makecontext" >&6; }
25233 if test ".$verbose" = .yes; then
25234 { echo "$as_me:$LINENO: result: $pth_sksize_makecontext" >&5
25235 echo "${ECHO_T} $pth_sksize_makecontext" >&6; }
25241 #########################################
25242 ## Check for libraries extra-dependencies
25246 { echo "$as_me:$LINENO: result: " >&5
25247 echo "${ECHO_T}" >&6; }
25248 { echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
25249 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6; }
25255 #########################################
25256 ## Build optional modules (gtnets)
25259 # Check whether --with-gtnets was given.
25260 if test "${with_gtnets+set}" = set; then
25261 withval=$with_gtnets; gtnets_path="$withval"
25266 if test "x$gtnets_path" = "xNO" ; then
25267 { echo "$as_me:$LINENO: result: Eventually you will come to GTNetS." >&5
25268 echo "${ECHO_T}Eventually you will come to GTNetS." >&6; }
25270 { echo "$as_me:$LINENO: result: ***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. ****" >&5
25271 echo "${ECHO_T}***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. ****" >&6; }
25273 cat >>confdefs.h <<\_ACEOF
25274 #define USE_GTNETS 1
25277 if ! test -e $gtnets_path ; then
25278 { { echo "$as_me:$LINENO: error: Provided path to GTNetS include files ($gtnets_path) do not exist!" >&5
25279 echo "$as_me: error: Provided path to GTNetS include files ($gtnets_path) do not exist!" >&2;}
25280 { (exit 1); exit 1; }; }
25282 GTNETS_CFLAGS=-I$gtnets_path/include
25284 GTNETS_LDFLAGS=-L$gtnets_path/lib
25286 SIMGRID_DEP="$SIMGRID_DEP $GTNETS_LDFLAGS -lgtnets"
25288 if test "x$gtnets_path" != xNO; then
25290 USE_GTNETS_FALSE='#'
25292 USE_GTNETS_TRUE='#'
25297 if test xpthread=xyes ; then
25298 # if the pthreads are usable
25299 if test "x$with_context" = "xpthread" ; then
25300 # if we use them to implement the xbt_context
25301 SIMGRID_DEP="-lpthread"
25303 # we need them in any case for the gras lib (which is multithreaded), but on windows (of course)
25304 if test "x$with_context" != "xwindows" ; then
25305 GRAS_DEP="-lpthread"
25309 { echo "$as_me:$LINENO: checking for csdp" >&5
25310 echo $ECHO_N "checking for csdp... $ECHO_C" >&6; }
25312 { echo "$as_me:$LINENO: checking for sdp in -lsdp" >&5
25313 echo $ECHO_N "checking for sdp in -lsdp... $ECHO_C" >&6; }
25314 if test "${ac_cv_lib_sdp_sdp+set}" = set; then
25315 echo $ECHO_N "(cached) $ECHO_C" >&6
25317 ac_check_lib_save_LIBS=$LIBS
25318 LIBS="-lsdp -llapack -lblas -lm $LIBS"
25319 cat >conftest.$ac_ext <<_ACEOF
25322 cat confdefs.h >>conftest.$ac_ext
25323 cat >>conftest.$ac_ext <<_ACEOF
25324 /* end confdefs.h. */
25326 /* Override any GCC internal prototype to avoid an error.
25327 Use char because int might match the return type of a GCC
25328 builtin and then its argument prototype would still apply. */
25341 rm -f conftest.$ac_objext conftest$ac_exeext
25342 if { (ac_try="$ac_link"
25343 case "(($ac_try" in
25344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25345 *) ac_try_echo=$ac_try;;
25347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25348 (eval "$ac_link") 2>conftest.er1
25350 grep -v '^ *+' conftest.er1 >conftest.err
25352 cat conftest.err >&5
25353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354 (exit $ac_status); } && {
25355 test -z "$ac_c_werror_flag" ||
25356 test ! -s conftest.err
25357 } && test -s conftest$ac_exeext &&
25358 $as_test_x conftest$ac_exeext; then
25359 ac_cv_lib_sdp_sdp=yes
25361 echo "$as_me: failed program was:" >&5
25362 sed 's/^/| /' conftest.$ac_ext >&5
25364 ac_cv_lib_sdp_sdp=no
25367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25368 conftest$ac_exeext conftest.$ac_ext
25369 LIBS=$ac_check_lib_save_LIBS
25371 { echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_sdp" >&5
25372 echo "${ECHO_T}$ac_cv_lib_sdp_sdp" >&6; }
25373 if test $ac_cv_lib_sdp_sdp = yes; then
25379 if test "x$csdp" = xyes; then
25380 SIMGRID_DEP="$SIMGRID_DEP -lsdp -llapack -lblas -lm"
25381 { echo "$as_me:$LINENO: result: Found working sdp library." >&5
25382 echo "${ECHO_T}Found working sdp library." >&6; }
25384 cat >>confdefs.h <<\_ACEOF
25389 { echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
25390 echo "${ECHO_T}Could not find any working sdp library." >&6; }
25392 if test x$csdp != xno; then
25403 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25404 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
25405 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25406 echo $ECHO_N "(cached) $ECHO_C" >&6
25408 ac_check_lib_save_LIBS=$LIBS
25410 cat >conftest.$ac_ext <<_ACEOF
25413 cat confdefs.h >>conftest.$ac_ext
25414 cat >>conftest.$ac_ext <<_ACEOF
25415 /* end confdefs.h. */
25417 /* Override any GCC internal prototype to avoid an error.
25418 Use char because int might match the return type of a GCC
25419 builtin and then its argument prototype would still apply. */
25423 char gethostbyname ();
25427 return gethostbyname ();
25432 rm -f conftest.$ac_objext conftest$ac_exeext
25433 if { (ac_try="$ac_link"
25434 case "(($ac_try" in
25435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25436 *) ac_try_echo=$ac_try;;
25438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25439 (eval "$ac_link") 2>conftest.er1
25441 grep -v '^ *+' conftest.er1 >conftest.err
25443 cat conftest.err >&5
25444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25445 (exit $ac_status); } && {
25446 test -z "$ac_c_werror_flag" ||
25447 test ! -s conftest.err
25448 } && test -s conftest$ac_exeext &&
25449 $as_test_x conftest$ac_exeext; then
25450 ac_cv_lib_nsl_gethostbyname=yes
25452 echo "$as_me: failed program was:" >&5
25453 sed 's/^/| /' conftest.$ac_ext >&5
25455 ac_cv_lib_nsl_gethostbyname=no
25458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25459 conftest$ac_exeext conftest.$ac_ext
25460 LIBS=$ac_check_lib_save_LIBS
25462 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25463 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
25464 if test $ac_cv_lib_nsl_gethostbyname = yes; then
25465 GRAS_DEP="$GRAS_DEP -lnsl"
25468 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25469 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
25470 if test "${ac_cv_lib_socket_connect+set}" = set; then
25471 echo $ECHO_N "(cached) $ECHO_C" >&6
25473 ac_check_lib_save_LIBS=$LIBS
25474 LIBS="-lsocket $LIBS"
25475 cat >conftest.$ac_ext <<_ACEOF
25478 cat confdefs.h >>conftest.$ac_ext
25479 cat >>conftest.$ac_ext <<_ACEOF
25480 /* end confdefs.h. */
25482 /* Override any GCC internal prototype to avoid an error.
25483 Use char because int might match the return type of a GCC
25484 builtin and then its argument prototype would still apply. */
25497 rm -f conftest.$ac_objext conftest$ac_exeext
25498 if { (ac_try="$ac_link"
25499 case "(($ac_try" in
25500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25501 *) ac_try_echo=$ac_try;;
25503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25504 (eval "$ac_link") 2>conftest.er1
25506 grep -v '^ *+' conftest.er1 >conftest.err
25508 cat conftest.err >&5
25509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510 (exit $ac_status); } && {
25511 test -z "$ac_c_werror_flag" ||
25512 test ! -s conftest.err
25513 } && test -s conftest$ac_exeext &&
25514 $as_test_x conftest$ac_exeext; then
25515 ac_cv_lib_socket_connect=yes
25517 echo "$as_me: failed program was:" >&5
25518 sed 's/^/| /' conftest.$ac_ext >&5
25520 ac_cv_lib_socket_connect=no
25523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25524 conftest$ac_exeext conftest.$ac_ext
25525 LIBS=$ac_check_lib_save_LIBS
25527 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25528 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
25529 if test $ac_cv_lib_socket_connect = yes; then
25530 GRAS_DEP="$GRAS_DEP -lsocket"
25534 { echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
25535 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6; }
25537 *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32";
25538 AM_CFLAGS=-DDLL_EXPORT
25540 cat >>confdefs.h <<\_ACEOF
25541 #define CONTEXT_THREADS 1
25546 if test "x$GRAS_DEP" = x; then
25547 { echo "$as_me:$LINENO: result: none" >&5
25548 echo "${ECHO_T}none" >&6; }
25550 { echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
25551 echo "${ECHO_T}$GRAS_DEP" >&6; }
25555 ##############################################
25556 ## Enhance maintainer mode and SUBST variables
25557 ## (must be placed after any compilation tests since our overprotective flags
25558 ## let some tests fail)
25560 # Check whether we are doing a regular build or a GRAMINE (minimal) one
25561 # Next line is modified by sed when building gramine source tree
25563 if test x$gramine_mode = xyes
25565 USE_MAINTAINER_MODE=no
25567 if test x$gramine_mode != xno; then
25569 GRAMINE_MODE_FALSE='#'
25571 GRAMINE_MODE_TRUE='#'
25572 GRAMINE_MODE_FALSE=
25577 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
25578 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
25579 # Check whether --enable-maintainer-mode was given.
25580 if test "${enable_maintainer_mode+set}" = set; then
25581 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
25583 USE_MAINTAINER_MODE=no
25586 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
25587 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
25588 if test $USE_MAINTAINER_MODE = yes; then
25589 MAINTAINER_MODE_TRUE=
25590 MAINTAINER_MODE_FALSE='#'
25592 MAINTAINER_MODE_TRUE='#'
25593 MAINTAINER_MODE_FALSE=
25596 MAINT=$MAINTAINER_MODE_TRUE
25599 if test x$USE_MAINTAINER_MODE = xyes
25601 # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
25602 enable_compile_warnings=yes
25605 # Check whether --enable-compile-warnings was given.
25606 if test "${enable_compile_warnings+set}" = set; then
25607 enableval=$enable_compile_warnings; enable_compile_warnings=$enableval
25609 enable_compile_warnings=no
25613 # Check whether --enable-compile-optimizations was given.
25614 if test "${enable_compile_optimizations+set}" = set; then
25615 enableval=$enable_compile_optimizations; enable_compile_optimizations=$enableval
25617 enable_compile_optimizations=auto
25621 if test "x$cflags_set" != "xyes" ; then
25622 # if user didn't specify CFLAGS explicitely
25624 # AC PROG CC tests whether -g is accepted.
25625 # Cool, but it also tries to set -O2. I don't want it with gcc
25626 saveCFLAGS="$CFLAGS"
25628 case " $saveCFLAGS " in
25629 *-g*) CFLAGS="-g" ;;
25631 case " $saveCFLAGS " in
25632 *-O2*) test "x$CC" = xgcc || CFLAGS="$CFLAGS -O2" ;;
25635 # damn AC PROG CC, why did you set -O??
25639 if test "x$enable_compile_warnings" = "xyes" ; then
25640 { echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
25641 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6; }
25643 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25644 case " $CFLAGS " in
25646 *) warnCFLAGS="-Wall -Wunused" ;;
25649 ## -W is not all that useful. And it cannot be controlled
25650 ## with individual -Wno-xxx flags, unlike -Wall
25652 ##Â -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
25653 ## -Wshadow chokes on try{ try{} } constructs
25654 if test "x$enable_compile_warnings" = "xyes"; then
25655 warnCFLAGS=`echo $warnCFLAGS -Wmissing-prototypes -Wmissing-declarations \
25656 -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
25657 -Wno-unused-function \
25660 # -Wno-unused-variable -Wno-unused-label
25663 { echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
25664 echo "${ECHO_T}$warnCFLAGS" >&6; }
25665 # placed before since gcc remembers the last one on conflict
25666 CFLAGS="$warnCFLAGS $CFLAGS"
25669 if test "x$enable_compile_optimizations" = "xyes" ||
25670 test "x$enable_compile_optimizations" = "xauto" ; then
25671 { echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
25672 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6; }
25674 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25675 case " $CFLAGS " in
25677 *) optCFLAGS="$optCFLAGS -O3" ;;
25679 optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
25681 GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
25682 GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
25683 if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" != "x2" ; then
25684 # avoid gcc bug #12828, which is fixed in 3.4.0, but this version
25685 # isn't propagated enough to desserve an extra check
25687 # Note that the flag didn't exist before gcc 3.0
25688 optCFLAGS="$optCFLAGS -fno-loop-optimize"
25691 { echo "$as_me:$LINENO: result: $optCFLAGS" >&5
25692 echo "${ECHO_T}$optCFLAGS" >&6; }
25693 # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
25694 if test "x$cflags_set" != "xyes" ; then
25695 CFLAGS="$optCFLAGS $CFLAGS"
25699 if test x$lt_cv_prog_gnu_ld = xyes ; then
25700 LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
25719 { echo "$as_me:$LINENO: result: " >&5
25720 echo "${ECHO_T}" >&6; }
25721 { echo "$as_me:$LINENO: result: ${T_MD}Check for Java bindings...${T_ME}" >&5
25722 echo "${ECHO_T}${T_MD}Check for Java bindings...${T_ME}" >&6; }
25725 # Extract the first word of "javac", so it can be a program name with args.
25726 set dummy javac; ac_word=$2
25727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25729 if test "${ac_cv_path_JAVAC+set}" = set; then
25730 echo $ECHO_N "(cached) $ECHO_C" >&6
25734 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
25737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25738 for as_dir in $PATH
25741 test -z "$as_dir" && as_dir=.
25742 for ac_exec_ext in '' $ac_executable_extensions; do
25743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25744 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
25745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25752 test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="`which javac`"
25756 JAVAC=$ac_cv_path_JAVAC
25757 if test -n "$JAVAC"; then
25758 { echo "$as_me:$LINENO: result: $JAVAC" >&5
25759 echo "${ECHO_T}$JAVAC" >&6; }
25761 { echo "$as_me:$LINENO: result: no" >&5
25762 echo "${ECHO_T}no" >&6; }
25766 # Extract the first word of "java ", so it can be a program name with args.
25767 set dummy java ; ac_word=$2
25768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25770 if test "${ac_cv_path_JAVA+set}" = set; then
25771 echo $ECHO_N "(cached) $ECHO_C" >&6
25775 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
25778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25779 for as_dir in $PATH
25782 test -z "$as_dir" && as_dir=.
25783 for ac_exec_ext in '' $ac_executable_extensions; do
25784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25785 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
25786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25793 test -z "$ac_cv_path_JAVA" && ac_cv_path_JAVA="`which java`"
25797 JAVA=$ac_cv_path_JAVA
25798 if test -n "$JAVA"; then
25799 { echo "$as_me:$LINENO: result: $JAVA" >&5
25800 echo "${ECHO_T}$JAVA" >&6; }
25802 { echo "$as_me:$LINENO: result: no" >&5
25803 echo "${ECHO_T}no" >&6; }
25807 # Extract the first word of "jar ", so it can be a program name with args.
25808 set dummy jar ; ac_word=$2
25809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25811 if test "${ac_cv_path_JAR+set}" = set; then
25812 echo $ECHO_N "(cached) $ECHO_C" >&6
25816 ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
25819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25820 for as_dir in $PATH
25823 test -z "$as_dir" && as_dir=.
25824 for ac_exec_ext in '' $ac_executable_extensions; do
25825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25826 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
25827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25834 test -z "$ac_cv_path_JAR" && ac_cv_path_JAR="`which jar`"
25838 JAR=$ac_cv_path_JAR
25839 if test -n "$JAR"; then
25840 { echo "$as_me:$LINENO: result: $JAR" >&5
25841 echo "${ECHO_T}$JAR" >&6; }
25843 { echo "$as_me:$LINENO: result: no" >&5
25844 echo "${ECHO_T}no" >&6; }
25849 for ac_header in jni.h
25851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25856 echo $ECHO_N "(cached) $ECHO_C" >&6
25858 ac_res=`eval echo '${'$as_ac_Header'}'`
25859 { echo "$as_me:$LINENO: result: $ac_res" >&5
25860 echo "${ECHO_T}$ac_res" >&6; }
25862 # Is the header compilable?
25863 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25865 cat >conftest.$ac_ext <<_ACEOF
25868 cat confdefs.h >>conftest.$ac_ext
25869 cat >>conftest.$ac_ext <<_ACEOF
25870 /* end confdefs.h. */
25871 $ac_includes_default
25872 #include <$ac_header>
25874 rm -f conftest.$ac_objext
25875 if { (ac_try="$ac_compile"
25876 case "(($ac_try" in
25877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25878 *) ac_try_echo=$ac_try;;
25880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25881 (eval "$ac_compile") 2>conftest.er1
25883 grep -v '^ *+' conftest.er1 >conftest.err
25885 cat conftest.err >&5
25886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25887 (exit $ac_status); } && {
25888 test -z "$ac_c_werror_flag" ||
25889 test ! -s conftest.err
25890 } && test -s conftest.$ac_objext; then
25891 ac_header_compiler=yes
25893 echo "$as_me: failed program was:" >&5
25894 sed 's/^/| /' conftest.$ac_ext >&5
25896 ac_header_compiler=no
25899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25900 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25901 echo "${ECHO_T}$ac_header_compiler" >&6; }
25903 # Is the header present?
25904 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25905 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25906 cat >conftest.$ac_ext <<_ACEOF
25909 cat confdefs.h >>conftest.$ac_ext
25910 cat >>conftest.$ac_ext <<_ACEOF
25911 /* end confdefs.h. */
25912 #include <$ac_header>
25914 if { (ac_try="$ac_cpp conftest.$ac_ext"
25915 case "(($ac_try" in
25916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25917 *) ac_try_echo=$ac_try;;
25919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25922 grep -v '^ *+' conftest.er1 >conftest.err
25924 cat conftest.err >&5
25925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25926 (exit $ac_status); } >/dev/null && {
25927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25928 test ! -s conftest.err
25930 ac_header_preproc=yes
25932 echo "$as_me: failed program was:" >&5
25933 sed 's/^/| /' conftest.$ac_ext >&5
25935 ac_header_preproc=no
25938 rm -f conftest.err conftest.$ac_ext
25939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25940 echo "${ECHO_T}$ac_header_preproc" >&6; }
25942 # So? What about this header?
25943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25949 ac_header_preproc=yes
25952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25955 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25959 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25965 ## -------------------------------------------------- ##
25966 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
25967 ## -------------------------------------------------- ##
25969 ) | sed "s/^/$as_me: WARNING: /" >&2
25972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25975 echo $ECHO_N "(cached) $ECHO_C" >&6
25977 eval "$as_ac_Header=\$ac_header_preproc"
25979 ac_res=`eval echo '${'$as_ac_Header'}'`
25980 { echo "$as_me:$LINENO: result: $ac_res" >&5
25981 echo "${ECHO_T}$ac_res" >&6; }
25984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25985 cat >>confdefs.h <<_ACEOF
25986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25993 { echo "$as_me:$LINENO: checking whether to compile java bindings" >&5
25994 echo $ECHO_N "checking whether to compile java bindings... $ECHO_C" >&6; }
25995 if test -n "$JAVAC" \
25996 && test -n "$JAVA" \
25997 && test -n "$JAR" \
25998 && test "x$ac_cv_header_jni_h" = "xyes" ; then
26004 { echo "$as_me:$LINENO: result: $use_java" >&5
26005 echo "${ECHO_T}$use_java" >&6; }
26006 if test "x$use_java" = "xyes"; then
26008 HAVE_JAVA_FALSE='#'
26015 #####################
26016 ## Check for programs
26020 { echo "$as_me:$LINENO: result: " >&5
26021 echo "${ECHO_T}" >&6; }
26022 { echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
26023 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6; }
26025 # Extract the first word of "bash", so it can be a program name with args.
26026 set dummy bash; ac_word=$2
26027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26029 if test "${ac_cv_prog_BASH+set}" = set; then
26030 echo $ECHO_N "(cached) $ECHO_C" >&6
26032 if test -n "$BASH"; then
26033 ac_cv_prog_BASH="$BASH" # Let the user override the test.
26035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26036 for as_dir in $PATH
26039 test -z "$as_dir" && as_dir=.
26040 for ac_exec_ext in '' $ac_executable_extensions; do
26041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26042 ac_cv_prog_BASH="`which bash`"
26043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26050 test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
26053 BASH=$ac_cv_prog_BASH
26054 if test -n "$BASH"; then
26055 { echo "$as_me:$LINENO: result: $BASH" >&5
26056 echo "${ECHO_T}$BASH" >&6; }
26058 { echo "$as_me:$LINENO: result: no" >&5
26059 echo "${ECHO_T}no" >&6; }
26063 WARNING="This file is generated, do not edit"
26067 # Can we rebuild the parsers?
26068 # We really want flex and refuse other lex. So, the parser is portable and
26069 # does not induce extra lib dependency
26070 for ac_prog in flex lex
26072 # Extract the first word of "$ac_prog", so it can be a program name with args.
26073 set dummy $ac_prog; ac_word=$2
26074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26076 if test "${ac_cv_prog_LEX+set}" = set; then
26077 echo $ECHO_N "(cached) $ECHO_C" >&6
26079 if test -n "$LEX"; then
26080 ac_cv_prog_LEX="$LEX" # Let the user override the test.
26082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26083 for as_dir in $PATH
26086 test -z "$as_dir" && as_dir=.
26087 for ac_exec_ext in '' $ac_executable_extensions; do
26088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26089 ac_cv_prog_LEX="$ac_prog"
26090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26099 LEX=$ac_cv_prog_LEX
26100 if test -n "$LEX"; then
26101 { echo "$as_me:$LINENO: result: $LEX" >&5
26102 echo "${ECHO_T}$LEX" >&6; }
26104 { echo "$as_me:$LINENO: result: no" >&5
26105 echo "${ECHO_T}no" >&6; }
26109 test -n "$LEX" && break
26111 test -n "$LEX" || LEX=":"
26113 if test "x$LEX" != "x:"; then
26114 cat >conftest.l <<_ACEOF
26120 e { yyless (input () != 0); }
26121 f { unput (yytext[0]); }
26122 . { BEGIN INITIAL; }
26124 #ifdef YYTEXT_POINTER
26125 extern char *yytext;
26130 return ! yylex () + ! yywrap ();
26133 { (ac_try="$LEX conftest.l"
26134 case "(($ac_try" in
26135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26136 *) ac_try_echo=$ac_try;;
26138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26139 (eval "$LEX conftest.l") 2>&5
26141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26142 (exit $ac_status); }
26143 { echo "$as_me:$LINENO: checking lex output file root" >&5
26144 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
26145 if test "${ac_cv_prog_lex_root+set}" = set; then
26146 echo $ECHO_N "(cached) $ECHO_C" >&6
26149 if test -f lex.yy.c; then
26150 ac_cv_prog_lex_root=lex.yy
26151 elif test -f lexyy.c; then
26152 ac_cv_prog_lex_root=lexyy
26154 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
26155 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
26156 { (exit 1); exit 1; }; }
26159 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
26160 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
26161 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
26163 if test -z "${LEXLIB+set}"; then
26164 { echo "$as_me:$LINENO: checking lex library" >&5
26165 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
26166 if test "${ac_cv_lib_lex+set}" = set; then
26167 echo $ECHO_N "(cached) $ECHO_C" >&6
26171 ac_cv_lib_lex='none needed'
26172 for ac_lib in '' -lfl -ll; do
26173 LIBS="$ac_lib $ac_save_LIBS"
26174 cat >conftest.$ac_ext <<_ACEOF
26175 `cat $LEX_OUTPUT_ROOT.c`
26177 rm -f conftest.$ac_objext conftest$ac_exeext
26178 if { (ac_try="$ac_link"
26179 case "(($ac_try" in
26180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26181 *) ac_try_echo=$ac_try;;
26183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26184 (eval "$ac_link") 2>conftest.er1
26186 grep -v '^ *+' conftest.er1 >conftest.err
26188 cat conftest.err >&5
26189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26190 (exit $ac_status); } && {
26191 test -z "$ac_c_werror_flag" ||
26192 test ! -s conftest.err
26193 } && test -s conftest$ac_exeext &&
26194 $as_test_x conftest$ac_exeext; then
26195 ac_cv_lib_lex=$ac_lib
26197 echo "$as_me: failed program was:" >&5
26198 sed 's/^/| /' conftest.$ac_ext >&5
26203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26204 conftest$ac_exeext conftest.$ac_ext
26205 test "$ac_cv_lib_lex" != 'none needed' && break
26210 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
26211 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
26212 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
26216 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
26217 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
26218 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
26219 echo $ECHO_N "(cached) $ECHO_C" >&6
26221 # POSIX says lex can declare yytext either as a pointer or an array; the
26222 # default is implementation-dependent. Figure out which it is, since
26223 # not all implementations provide the %pointer and %array declarations.
26224 ac_cv_prog_lex_yytext_pointer=no
26226 LIBS="$LEXLIB $ac_save_LIBS"
26227 cat >conftest.$ac_ext <<_ACEOF
26228 #define YYTEXT_POINTER 1
26229 `cat $LEX_OUTPUT_ROOT.c`
26231 rm -f conftest.$ac_objext conftest$ac_exeext
26232 if { (ac_try="$ac_link"
26233 case "(($ac_try" in
26234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26235 *) ac_try_echo=$ac_try;;
26237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26238 (eval "$ac_link") 2>conftest.er1
26240 grep -v '^ *+' conftest.er1 >conftest.err
26242 cat conftest.err >&5
26243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244 (exit $ac_status); } && {
26245 test -z "$ac_c_werror_flag" ||
26246 test ! -s conftest.err
26247 } && test -s conftest$ac_exeext &&
26248 $as_test_x conftest$ac_exeext; then
26249 ac_cv_prog_lex_yytext_pointer=yes
26251 echo "$as_me: failed program was:" >&5
26252 sed 's/^/| /' conftest.$ac_ext >&5
26257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26258 conftest$ac_exeext conftest.$ac_ext
26262 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
26263 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
26264 if test $ac_cv_prog_lex_yytext_pointer = yes; then
26266 cat >>confdefs.h <<\_ACEOF
26267 #define YYTEXT_POINTER 1
26271 rm -f conftest.l $LEX_OUTPUT_ROOT.c
26275 if test "$LEX" != flex; then
26276 { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
26277 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
26278 LEX=${am_missing_run}flex
26282 if test "x2.5.30" != "x" ; then
26283 FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
26285 FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
26286 FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
26287 FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
26289 WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
26290 WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
26291 WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
26293 if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
26294 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED" ||
26295 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
26297 { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
26298 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
26299 LEX=${am_missing_run}flex
26303 { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
26304 echo "$as_me: Flex found. Parsers will get updated" >&6;}
26310 # Can we rebuild the xml-lexers from the XML specification?
26311 # if not, simply touch the flex source files (which are distributed in
26312 # tarballs even if generated by flexml) and hope for the best.
26313 # Extract the first word of "flexml", so it can be a program name with args.
26314 set dummy flexml; ac_word=$2
26315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26317 if test "${ac_cv_prog_FLEXML+set}" = set; then
26318 echo $ECHO_N "(cached) $ECHO_C" >&6
26320 if test -n "$FLEXML"; then
26321 ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
26323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26324 for as_dir in $PATH
26327 test -z "$as_dir" && as_dir=.
26328 for ac_exec_ext in '' $ac_executable_extensions; do
26329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26330 ac_cv_prog_FLEXML="`which flexml`"
26331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26338 test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
26341 FLEXML=$ac_cv_prog_FLEXML
26342 if test -n "$FLEXML"; then
26343 { echo "$as_me:$LINENO: result: $FLEXML" >&5
26344 echo "${ECHO_T}$FLEXML" >&6; }
26346 { echo "$as_me:$LINENO: result: no" >&5
26347 echo "${ECHO_T}no" >&6; }
26351 if test x$FLEXML != xNOTFOUND; then
26353 HAVE_FLEXML_FALSE='#'
26355 HAVE_FLEXML_TRUE='#'
26360 if test x$USE_MAINTAINER_MODE = xyes
26362 # Check for doxygen when in maintainer mode since dist* targets fail
26364 # Extract the first word of "doxygen", so it can be a program name with args.
26365 set dummy doxygen; ac_word=$2
26366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26368 if test "${ac_cv_path_DOXYGEN+set}" = set; then
26369 echo $ECHO_N "(cached) $ECHO_C" >&6
26373 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
26376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26377 for as_dir in $PATH
26380 test -z "$as_dir" && as_dir=.
26381 for ac_exec_ext in '' $ac_executable_extensions; do
26382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26383 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
26384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26391 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
26395 DOXYGEN=$ac_cv_path_DOXYGEN
26396 if test -n "$DOXYGEN"; then
26397 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
26398 echo "${ECHO_T}$DOXYGEN" >&6; }
26400 { echo "$as_me:$LINENO: result: no" >&5
26401 echo "${ECHO_T}no" >&6; }
26405 if test x$DOXYGEN = x ; then
26406 { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
26407 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
26408 { (exit 1); exit 1; }; }
26412 # Can we extract really usable backtraces? (also need the popen function)
26413 # Extract the first word of "addr2line", so it can be a program name with args.
26414 set dummy addr2line; ac_word=$2
26415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26417 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
26418 echo $ECHO_N "(cached) $ECHO_C" >&6
26422 ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
26425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26426 for as_dir in $PATH
26429 test -z "$as_dir" && as_dir=.
26430 for ac_exec_ext in '' $ac_executable_extensions; do
26431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26432 ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
26433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26443 ADDR2LINE=$ac_cv_path_ADDR2LINE
26444 if test -n "$ADDR2LINE"; then
26445 { echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
26446 echo "${ECHO_T}$ADDR2LINE" >&6; }
26448 { echo "$as_me:$LINENO: result: no" >&5
26449 echo "${ECHO_T}no" >&6; }
26453 if test x$ADDR2LINE != x ; then
26455 cat >>confdefs.h <<_ACEOF
26456 #define ADDR2LINE "$ADDR2LINE"
26462 # Can we make status line about the compilation result?
26463 # Extract the first word of "md5sum", so it can be a program name with args.
26464 set dummy md5sum; ac_word=$2
26465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26467 if test "${ac_cv_prog_MD5SUM+set}" = set; then
26468 echo $ECHO_N "(cached) $ECHO_C" >&6
26470 if test -n "$MD5SUM"; then
26471 ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
26473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26474 for as_dir in $PATH
26477 test -z "$as_dir" && as_dir=.
26478 for ac_exec_ext in '' $ac_executable_extensions; do
26479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26480 ac_cv_prog_MD5SUM="`which md5sum`"
26481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26490 MD5SUM=$ac_cv_prog_MD5SUM
26491 if test -n "$MD5SUM"; then
26492 { echo "$as_me:$LINENO: result: $MD5SUM" >&5
26493 echo "${ECHO_T}$MD5SUM" >&6; }
26495 { echo "$as_me:$LINENO: result: no" >&5
26496 echo "${ECHO_T}no" >&6; }
26500 if test x$MD5SUM != xno ; then
26501 build_version=`find -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
26502 xargs cat| $MD5SUM | sed 's/ .*$//'`
26504 build_version="no_md5sum_binary"
26506 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
26509 ###################
26510 ## Makes the output
26515 # examples/gras/chord/Makefile examples/gras/chord/test_sg examples/gras/chord/test_rl
26516 # src/amok/Makefile
26519 { echo "$as_me:$LINENO: result: " >&5
26520 echo "${ECHO_T}" >&6; }
26521 { echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
26522 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6; }
26525 # Core of the libraries
26527 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
26530 # Tools being embeeded in gramine (stub generator)
26531 ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile tools/tesh/Makefile"
26535 # GRAMINE_CUT_BEGIN
26537 # Tools NOT being embeeded in gramine
26538 ac_config_files="$ac_config_files tools/graspe-slave"
26543 ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage"
26547 ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
26552 # examples/gras/p2p/Makefile
26553 # examples/gras/p2p/chord/Makefile
26554 # examples/gras/p2p/can/Makefile
26557 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 examples/java/Makefile examples/java/basic/Makefile examples/java/comm_time/Makefile examples/java/suspend/Makefile examples/java/ping_pong/Makefile"
26563 cat >confcache <<\_ACEOF
26564 # This file is a shell script that caches the results of configure
26565 # tests run on this system so they can be shared between configure
26566 # scripts and configure runs, see configure's option --config-cache.
26567 # It is not useful on other systems. If it contains results you don't
26568 # want to keep, you may remove or edit it.
26570 # config.status only pays attention to the cache file if you give it
26571 # the --recheck option to rerun configure.
26573 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26574 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26575 # following values.
26579 # The following way of writing the cache mishandles newlines in values,
26580 # but we know of no workaround that is simple, portable, and efficient.
26581 # So, we kill variables containing newlines.
26582 # Ultrix sh set writes to stderr and can't be redirected directly,
26583 # and sets the high bit in the cache file unless we assign to the vars.
26585 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26586 eval ac_val=\$$ac_var
26590 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26591 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26594 _ | IFS | as_nl) ;; #(
26595 *) $as_unset $ac_var ;;
26601 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26602 *${as_nl}ac_space=\ *)
26603 # `set' does not quote correctly, so add quotes (double-quote
26604 # substitution turns \\\\ into \\, and sed turns \\ into \).
26607 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26610 # `set' quotes correctly as required by POSIX, so do not add quotes.
26611 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26620 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26622 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26624 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26625 if test -w "$cache_file"; then
26626 test "x$cache_file" != "x/dev/null" &&
26627 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26628 echo "$as_me: updating cache $cache_file" >&6;}
26629 cat confcache >$cache_file
26631 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26632 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26637 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26638 # Let make expand exec_prefix.
26639 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26641 DEFS=-DHAVE_CONFIG_H
26645 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26646 # 1. Remove the extension, and $U if already installed.
26647 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26648 ac_i=`echo "$ac_i" | sed "$ac_script"`
26649 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26650 # will be set to the directory where LIBOBJS objects are built.
26651 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26652 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26654 LIBOBJS=$ac_libobjs
26656 LTLIBOBJS=$ac_ltlibobjs
26659 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26660 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26661 Usually this means the macro was only invoked conditionally." >&5
26662 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26663 Usually this means the macro was only invoked conditionally." >&2;}
26664 { (exit 1); exit 1; }; }
26666 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
26667 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
26668 Usually this means the macro was only invoked conditionally." >&5
26669 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
26670 Usually this means the macro was only invoked conditionally." >&2;}
26671 { (exit 1); exit 1; }; }
26673 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26674 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26675 Usually this means the macro was only invoked conditionally." >&5
26676 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26677 Usually this means the macro was only invoked conditionally." >&2;}
26678 { (exit 1); exit 1; }; }
26680 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26681 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26682 Usually this means the macro was only invoked conditionally." >&5
26683 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26684 Usually this means the macro was only invoked conditionally." >&2;}
26685 { (exit 1); exit 1; }; }
26687 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26688 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26689 Usually this means the macro was only invoked conditionally." >&5
26690 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26691 Usually this means the macro was only invoked conditionally." >&2;}
26692 { (exit 1); exit 1; }; }
26694 if test -z "${GRAS_ARCH_32_BITS_TRUE}" && test -z "${GRAS_ARCH_32_BITS_FALSE}"; then
26695 { { echo "$as_me:$LINENO: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
26696 Usually this means the macro was only invoked conditionally." >&5
26697 echo "$as_me: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
26698 Usually this means the macro was only invoked conditionally." >&2;}
26699 { (exit 1); exit 1; }; }
26701 if test -z "${USE_GTNETS_TRUE}" && test -z "${USE_GTNETS_FALSE}"; then
26702 { { echo "$as_me:$LINENO: error: conditional \"USE_GTNETS\" was never defined.
26703 Usually this means the macro was only invoked conditionally." >&5
26704 echo "$as_me: error: conditional \"USE_GTNETS\" was never defined.
26705 Usually this means the macro was only invoked conditionally." >&2;}
26706 { (exit 1); exit 1; }; }
26708 if test -z "${HAVE_SDP_TRUE}" && test -z "${HAVE_SDP_FALSE}"; then
26709 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDP\" was never defined.
26710 Usually this means the macro was only invoked conditionally." >&5
26711 echo "$as_me: error: conditional \"HAVE_SDP\" was never defined.
26712 Usually this means the macro was only invoked conditionally." >&2;}
26713 { (exit 1); exit 1; }; }
26715 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
26716 { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
26717 Usually this means the macro was only invoked conditionally." >&5
26718 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
26719 Usually this means the macro was only invoked conditionally." >&2;}
26720 { (exit 1); exit 1; }; }
26722 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26723 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26724 Usually this means the macro was only invoked conditionally." >&5
26725 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26726 Usually this means the macro was only invoked conditionally." >&2;}
26727 { (exit 1); exit 1; }; }
26729 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
26730 { { echo "$as_me:$LINENO: error: conditional \"HAVE_JAVA\" was never defined.
26731 Usually this means the macro was only invoked conditionally." >&5
26732 echo "$as_me: error: conditional \"HAVE_JAVA\" was never defined.
26733 Usually this means the macro was only invoked conditionally." >&2;}
26734 { (exit 1); exit 1; }; }
26736 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
26737 { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
26738 Usually this means the macro was only invoked conditionally." >&5
26739 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
26740 Usually this means the macro was only invoked conditionally." >&2;}
26741 { (exit 1); exit 1; }; }
26744 : ${CONFIG_STATUS=./config.status}
26745 ac_clean_files_save=$ac_clean_files
26746 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26747 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26748 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26749 cat >$CONFIG_STATUS <<_ACEOF
26751 # Generated by $as_me.
26752 # Run this file to recreate the current configuration.
26753 # Compiler output produced by configure, useful for debugging
26754 # configure, is in config.log if it exists.
26757 ac_cs_recheck=false
26759 SHELL=\${CONFIG_SHELL-$SHELL}
26762 cat >>$CONFIG_STATUS <<\_ACEOF
26763 ## --------------------- ##
26764 ## M4sh Initialization. ##
26765 ## --------------------- ##
26767 # Be more Bourne compatible
26768 DUALCASE=1; export DUALCASE # for MKS sh
26769 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26772 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26773 # is contrary to our usage. Disable this feature.
26774 alias -g '${1+"$@"}'='"$@"'
26775 setopt NO_GLOB_SUBST
26777 case `(set -o) 2>/dev/null` in
26778 *posix*) set -o posix ;;
26787 # Avoid depending upon Character Ranges.
26788 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26789 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26790 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26791 as_cr_digits='0123456789'
26792 as_cr_alnum=$as_cr_Letters$as_cr_digits
26794 # The user is always right.
26795 if test "${PATH_SEPARATOR+set}" != set; then
26796 echo "#! /bin/sh" >conf$$.sh
26797 echo "exit 0" >>conf$$.sh
26799 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26807 # Support unset when possible.
26808 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26816 # We need space, tab and new line, in precisely that order. Quoting is
26817 # there to prevent editors from complaining about space-tab.
26818 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26819 # splitting by setting IFS to empty value.)
26824 # Find who we are. Look in the path if we contain no directory separator.
26826 *[\\/]* ) as_myself=$0 ;;
26827 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26828 for as_dir in $PATH
26831 test -z "$as_dir" && as_dir=.
26832 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26838 # We did not find ourselves, most probably we were run as `sh COMMAND'
26839 # in which case we are not to be found in the path.
26840 if test "x$as_myself" = x; then
26843 if test ! -f "$as_myself"; then
26844 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26845 { (exit 1); exit 1; }
26848 # Work around bugs in pre-3.0 UWIN ksh.
26849 for as_var in ENV MAIL MAILPATH
26850 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26858 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26859 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26860 LC_TELEPHONE LC_TIME
26862 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26863 eval $as_var=C; export $as_var
26865 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26869 # Required to use basename.
26870 if expr a : '\(a\)' >/dev/null 2>&1 &&
26871 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26877 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26878 as_basename=basename
26884 # Name of the executable.
26885 as_me=`$as_basename -- "$0" ||
26886 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26887 X"$0" : 'X\(//\)$' \| \
26888 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26890 sed '/^.*\/\([^/][^/]*\)\/*$/{
26909 as_lineno_1=$LINENO
26910 as_lineno_2=$LINENO
26911 test "x$as_lineno_1" != "x$as_lineno_2" &&
26912 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26914 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26915 # uniformly replaced by the line number. The first 'sed' inserts a
26916 # line-number line after each line using $LINENO; the second 'sed'
26917 # does the real work. The second script uses 'N' to pair each
26918 # line-number line with the line containing $LINENO, and appends
26919 # trailing '-' during substitution so that $LINENO is not a special
26920 # case at line end.
26921 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26922 # scripts with optimization help from Paolo Bonzini. Blame Lee
26923 # E. McMahon (1931-1989) for sed's syntax. :-)
26935 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26938 ' >$as_me.lineno &&
26939 chmod +x "$as_me.lineno" ||
26940 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26941 { (exit 1); exit 1; }; }
26943 # Don't try to exec as it changes $[0], causing all sort of problems
26944 # (the dirname of $[0] is not the place where we might find the
26945 # original and so on. Autoconf is especially sensitive to this).
26946 . "./$as_me.lineno"
26947 # Exit status is that of the last command.
26952 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26958 ECHO_C= ECHO_N= ECHO_T=
26959 case `echo -n x` in
26961 case `echo 'x\c'` in
26962 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26969 if expr a : '\(a\)' >/dev/null 2>&1 &&
26970 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26976 rm -f conf$$ conf$$.exe conf$$.file
26977 if test -d conf$$.dir; then
26978 rm -f conf$$.dir/conf$$.file
26984 if ln -s conf$$.file conf$$ 2>/dev/null; then
26986 # ... but there are two gotchas:
26987 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26988 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26989 # In both cases, we have to default to `cp -p'.
26990 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26992 elif ln conf$$.file conf$$ 2>/dev/null; then
26997 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26998 rmdir conf$$.dir 2>/dev/null
27000 if mkdir -p . 2>/dev/null; then
27003 test -d ./-p && rmdir ./-p
27007 if test -x / >/dev/null 2>&1; then
27008 as_test_x='test -x'
27010 if ls -dL / >/dev/null 2>&1; then
27017 if test -d "$1"; then
27023 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27024 ???[sx]*):;;*)false;;esac;fi
27028 as_executable_p=$as_test_x
27030 # Sed expression to map a string onto a valid CPP name.
27031 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27033 # Sed expression to map a string onto a valid variable name.
27034 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27039 # Save the log message, to keep $[0] and so on meaningful, and to
27040 # report actual input values of CONFIG_FILES etc. instead of their
27041 # values after options handling.
27043 This file was extended by simgrid $as_me 3.3-cvs, which was
27044 generated by GNU Autoconf 2.61. Invocation command line was
27046 CONFIG_FILES = $CONFIG_FILES
27047 CONFIG_HEADERS = $CONFIG_HEADERS
27048 CONFIG_LINKS = $CONFIG_LINKS
27049 CONFIG_COMMANDS = $CONFIG_COMMANDS
27052 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27057 cat >>$CONFIG_STATUS <<_ACEOF
27058 # Files that config.status was made for.
27059 config_files="$ac_config_files"
27060 config_headers="$ac_config_headers"
27061 config_commands="$ac_config_commands"
27065 cat >>$CONFIG_STATUS <<\_ACEOF
27067 \`$as_me' instantiates files from templates according to the
27068 current configuration.
27070 Usage: $0 [OPTIONS] [FILE]...
27072 -h, --help print this help, then exit
27073 -V, --version print version number and configuration settings, then exit
27074 -q, --quiet do not print progress messages
27075 -d, --debug don't remove temporary files
27076 --recheck update $as_me by reconfiguring in the same conditions
27077 --file=FILE[:TEMPLATE]
27078 instantiate the configuration file FILE
27079 --header=FILE[:TEMPLATE]
27080 instantiate the configuration header FILE
27082 Configuration files:
27085 Configuration headers:
27088 Configuration commands:
27091 Report bugs to <bug-autoconf@gnu.org>."
27094 cat >>$CONFIG_STATUS <<_ACEOF
27096 simgrid config.status 3.3-cvs
27097 configured by $0, generated by GNU Autoconf 2.61,
27098 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27100 Copyright (C) 2006 Free Software Foundation, Inc.
27101 This config.status script is free software; the Free Software Foundation
27102 gives unlimited permission to copy, distribute and modify it."
27110 cat >>$CONFIG_STATUS <<\_ACEOF
27111 # If no file are specified by the user, then we need to provide default
27112 # value. By we need to know if files were specified by the user.
27118 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27119 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27130 # Handling of the options.
27131 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27133 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27134 echo "$ac_cs_version"; exit ;;
27135 --debug | --debu | --deb | --de | --d | -d )
27137 --file | --fil | --fi | --f )
27139 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27140 ac_need_defaults=false;;
27141 --header | --heade | --head | --hea )
27143 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27144 ac_need_defaults=false;;
27146 # Conflict between --help and --header
27147 { echo "$as_me: error: ambiguous option: $1
27148 Try \`$0 --help' for more information." >&2
27149 { (exit 1); exit 1; }; };;
27150 --help | --hel | -h )
27151 echo "$ac_cs_usage"; exit ;;
27152 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27153 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27156 # This is an error.
27157 -*) { echo "$as_me: error: unrecognized option: $1
27158 Try \`$0 --help' for more information." >&2
27159 { (exit 1); exit 1; }; } ;;
27161 *) ac_config_targets="$ac_config_targets $1"
27162 ac_need_defaults=false ;;
27168 ac_configure_extra_args=
27170 if $ac_cs_silent; then
27172 ac_configure_extra_args="$ac_configure_extra_args --silent"
27176 cat >>$CONFIG_STATUS <<_ACEOF
27177 if \$ac_cs_recheck; then
27178 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27179 CONFIG_SHELL=$SHELL
27180 export CONFIG_SHELL
27181 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27185 cat >>$CONFIG_STATUS <<\_ACEOF
27189 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27190 ## Running $as_me. ##
27196 cat >>$CONFIG_STATUS <<_ACEOF
27200 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27204 cat >>$CONFIG_STATUS <<\_ACEOF
27206 # Handling of arguments.
27207 for ac_config_target in $ac_config_targets
27209 case $ac_config_target in
27210 "src/gras_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
27211 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27212 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27213 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
27214 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27215 "src/ucontext_stack.h") CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
27216 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
27217 "tools/gras/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
27218 "tools/tesh/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tesh/Makefile" ;;
27219 "tools/graspe-slave") CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
27220 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
27221 "testsuite/run_tests") CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
27222 "testsuite/gras/trp_tcp_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_tcp_usage" ;;
27223 "testsuite/gras/trp_file_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_file_usage" ;;
27224 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27225 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
27226 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
27227 "examples/msg/Makefile") CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
27228 "examples/msg/basic.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/basic.tesh" ;;
27229 "examples/msg/small_plat.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/small_plat.tesh" ;;
27230 "examples/msg/suspend.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/suspend.tesh" ;;
27231 "examples/msg/flexml_bypass.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/flexml_bypass.tesh" ;;
27232 "examples/simdag/Makefile") CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
27233 "examples/simdag/test_simdag") CONFIG_FILES="$CONFIG_FILES examples/simdag/test_simdag" ;;
27234 "examples/gras/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
27235 "examples/gras/ping/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
27236 "examples/gras/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
27237 "examples/gras/spawn/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/spawn/Makefile" ;;
27238 "examples/gras/synchro/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/synchro/Makefile" ;;
27239 "examples/gras/timer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
27240 "examples/gras/chrono/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
27241 "examples/gras/mutual_exclusion/simple_token/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
27242 "examples/gras/mmrpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
27243 "examples/gras/pmm/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
27244 "examples/gras/all2all/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
27245 "examples/amok/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
27246 "examples/amok/bandwidth/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/Makefile" ;;
27247 "examples/amok/bandwidth/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_sg" ;;
27248 "examples/amok/bandwidth/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_rl" ;;
27249 "examples/amok/saturate/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/Makefile" ;;
27250 "examples/amok/saturate/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_sg" ;;
27251 "examples/amok/saturate/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_rl" ;;
27252 "examples/java/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/Makefile" ;;
27253 "examples/java/basic/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/basic/Makefile" ;;
27254 "examples/java/comm_time/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/comm_time/Makefile" ;;
27255 "examples/java/suspend/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/suspend/Makefile" ;;
27256 "examples/java/ping_pong/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/ping_pong/Makefile" ;;
27258 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27259 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27260 { (exit 1); exit 1; }; };;
27265 # If the user did not use the arguments to specify the items to instantiate,
27266 # then the envvar interface is used. Set only those that are not.
27267 # We use the long form for the default assignment because of an extremely
27268 # bizarre bug on SunOS 4.1.3.
27269 if $ac_need_defaults; then
27270 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27271 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27272 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27275 # Have a temporary directory for convenience. Make it in the build tree
27276 # simply because there is no reason against having it here, and in addition,
27277 # creating and moving files from /tmp can sometimes cause problems.
27278 # Hook for its removal unless debugging.
27279 # Note that there is a small window in which the directory will not be cleaned:
27280 # after its creation but before its name has been assigned to `$tmp'.
27284 trap 'exit_status=$?
27285 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27287 trap '{ (exit 1); exit 1; }' 1 2 13 15
27289 # Create a (secure) tmp directory for tmp files.
27292 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27293 test -n "$tmp" && test -d "$tmp"
27296 tmp=./conf$$-$RANDOM
27297 (umask 077 && mkdir "$tmp")
27300 echo "$me: cannot create a temporary directory in ." >&2
27301 { (exit 1); exit 1; }
27305 # Set up the sed scripts for CONFIG_FILES section.
27308 # No need to generate the scripts if there are no CONFIG_FILES.
27309 # This happens for instance when ./config.status config.h
27310 if test -n "$CONFIG_FILES"; then
27317 for ac_last_try in false false false false false :; do
27318 cat >conf$$subs.sed <<_ACEOF
27319 SHELL!$SHELL$ac_delim
27320 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27321 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27322 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27323 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27324 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27325 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27326 exec_prefix!$exec_prefix$ac_delim
27327 prefix!$prefix$ac_delim
27328 program_transform_name!$program_transform_name$ac_delim
27329 bindir!$bindir$ac_delim
27330 sbindir!$sbindir$ac_delim
27331 libexecdir!$libexecdir$ac_delim
27332 datarootdir!$datarootdir$ac_delim
27333 datadir!$datadir$ac_delim
27334 sysconfdir!$sysconfdir$ac_delim
27335 sharedstatedir!$sharedstatedir$ac_delim
27336 localstatedir!$localstatedir$ac_delim
27337 includedir!$includedir$ac_delim
27338 oldincludedir!$oldincludedir$ac_delim
27339 docdir!$docdir$ac_delim
27340 infodir!$infodir$ac_delim
27341 htmldir!$htmldir$ac_delim
27342 dvidir!$dvidir$ac_delim
27343 pdfdir!$pdfdir$ac_delim
27344 psdir!$psdir$ac_delim
27345 libdir!$libdir$ac_delim
27346 localedir!$localedir$ac_delim
27347 mandir!$mandir$ac_delim
27348 DEFS!$DEFS$ac_delim
27349 ECHO_C!$ECHO_C$ac_delim
27350 ECHO_N!$ECHO_N$ac_delim
27351 ECHO_T!$ECHO_T$ac_delim
27352 LIBS!$LIBS$ac_delim
27353 build_alias!$build_alias$ac_delim
27354 host_alias!$host_alias$ac_delim
27355 target_alias!$target_alias$ac_delim
27356 build!$build$ac_delim
27357 build_cpu!$build_cpu$ac_delim
27358 build_vendor!$build_vendor$ac_delim
27359 build_os!$build_os$ac_delim
27360 host!$host$ac_delim
27361 host_cpu!$host_cpu$ac_delim
27362 host_vendor!$host_vendor$ac_delim
27363 host_os!$host_os$ac_delim
27364 target!$target$ac_delim
27365 target_cpu!$target_cpu$ac_delim
27366 target_vendor!$target_vendor$ac_delim
27367 target_os!$target_os$ac_delim
27369 GCJFLAGS!$GCJFLAGS$ac_delim
27370 am__leading_dot!$am__leading_dot$ac_delim
27371 DEPDIR!$DEPDIR$ac_delim
27372 am__include!$am__include$ac_delim
27373 am__quote!$am__quote$ac_delim
27374 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27375 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27376 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27377 GCJDEPMODE!$GCJDEPMODE$ac_delim
27378 am__fastdepGCJ_TRUE!$am__fastdepGCJ_TRUE$ac_delim
27379 am__fastdepGCJ_FALSE!$am__fastdepGCJ_FALSE$ac_delim
27380 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27381 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27382 INSTALL_DATA!$INSTALL_DATA$ac_delim
27383 am__isrc!$am__isrc$ac_delim
27384 CYGPATH_W!$CYGPATH_W$ac_delim
27385 PACKAGE!$PACKAGE$ac_delim
27386 VERSION!$VERSION$ac_delim
27387 ACLOCAL!$ACLOCAL$ac_delim
27388 AUTOCONF!$AUTOCONF$ac_delim
27389 AUTOMAKE!$AUTOMAKE$ac_delim
27390 AUTOHEADER!$AUTOHEADER$ac_delim
27391 MAKEINFO!$MAKEINFO$ac_delim
27392 install_sh!$install_sh$ac_delim
27393 STRIP!$STRIP$ac_delim
27394 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27395 mkdir_p!$mkdir_p$ac_delim
27397 SET_MAKE!$SET_MAKE$ac_delim
27398 AMTAR!$AMTAR$ac_delim
27399 am__tar!$am__tar$ac_delim
27400 am__untar!$am__untar$ac_delim
27402 CFLAGS!$CFLAGS$ac_delim
27403 LDFLAGS!$LDFLAGS$ac_delim
27404 CPPFLAGS!$CPPFLAGS$ac_delim
27405 ac_ct_CC!$ac_ct_CC$ac_delim
27406 EXEEXT!$EXEEXT$ac_delim
27407 OBJEXT!$OBJEXT$ac_delim
27408 CCDEPMODE!$CCDEPMODE$ac_delim
27409 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27410 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27411 GREP!$GREP$ac_delim
27412 EGREP!$EGREP$ac_delim
27413 LN_S!$LN_S$ac_delim
27414 ECHO!$ECHO$ac_delim
27418 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27420 elif $ac_last_try; then
27421 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27422 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27423 { (exit 1); exit 1; }; }
27425 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27429 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27430 if test -n "$ac_eof"; then
27431 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27432 ac_eof=`expr $ac_eof + 1`
27435 cat >>$CONFIG_STATUS <<_ACEOF
27436 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27437 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27440 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27441 s/^/s,@/; s/!/@,|#_!!_#|/
27444 s/'"$ac_delim"'$/,g/; t
27446 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27447 ' >>$CONFIG_STATUS <conf$$subs.sed
27448 rm -f conf$$subs.sed
27449 cat >>$CONFIG_STATUS <<_ACEOF
27455 for ac_last_try in false false false false false :; do
27456 cat >conf$$subs.sed <<_ACEOF
27457 RANLIB!$RANLIB$ac_delim
27458 DLLTOOL!$DLLTOOL$ac_delim
27460 OBJDUMP!$OBJDUMP$ac_delim
27463 CXXFLAGS!$CXXFLAGS$ac_delim
27464 ac_ct_CXX!$ac_ct_CXX$ac_delim
27465 CXXDEPMODE!$CXXDEPMODE$ac_delim
27466 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27467 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27468 CXXCPP!$CXXCPP$ac_delim
27469 LIBTOOL!$LIBTOOL$ac_delim
27470 LIBOBJS!$LIBOBJS$ac_delim
27471 GRAS_ARCH_32_BITS_TRUE!$GRAS_ARCH_32_BITS_TRUE$ac_delim
27472 GRAS_ARCH_32_BITS_FALSE!$GRAS_ARCH_32_BITS_FALSE$ac_delim
27473 PTH_STACK_GROWTH!$PTH_STACK_GROWTH$ac_delim
27474 pth_skaddr_makecontext!$pth_skaddr_makecontext$ac_delim
27475 pth_sksize_makecontext!$pth_sksize_makecontext$ac_delim
27476 GTNETS_CFLAGS!$GTNETS_CFLAGS$ac_delim
27477 GTNETS_LDFLAGS!$GTNETS_LDFLAGS$ac_delim
27478 USE_GTNETS_TRUE!$USE_GTNETS_TRUE$ac_delim
27479 USE_GTNETS_FALSE!$USE_GTNETS_FALSE$ac_delim
27480 HAVE_SDP_TRUE!$HAVE_SDP_TRUE$ac_delim
27481 HAVE_SDP_FALSE!$HAVE_SDP_FALSE$ac_delim
27482 SIMGRID_DEP!$SIMGRID_DEP$ac_delim
27483 AM_CFLAGS!$AM_CFLAGS$ac_delim
27484 GRAS_DEP!$GRAS_DEP$ac_delim
27485 GRAMINE_MODE_TRUE!$GRAMINE_MODE_TRUE$ac_delim
27486 GRAMINE_MODE_FALSE!$GRAMINE_MODE_FALSE$ac_delim
27487 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
27488 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
27489 MAINT!$MAINT$ac_delim
27490 LD_DYNAMIC_FLAGS!$LD_DYNAMIC_FLAGS$ac_delim
27491 abs_builddir!$abs_builddir$ac_delim
27492 abs_srcdir!$abs_srcdir$ac_delim
27493 abs_top_builddir!$abs_top_builddir$ac_delim
27494 abs_top_srcdir!$abs_top_srcdir$ac_delim
27495 JAVAC!$JAVAC$ac_delim
27496 JAVA!$JAVA$ac_delim
27498 HAVE_JAVA_TRUE!$HAVE_JAVA_TRUE$ac_delim
27499 HAVE_JAVA_FALSE!$HAVE_JAVA_FALSE$ac_delim
27500 BASH!$BASH$ac_delim
27501 WARNING!$WARNING$ac_delim
27503 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
27504 LEXLIB!$LEXLIB$ac_delim
27505 FLEXML!$FLEXML$ac_delim
27506 HAVE_FLEXML_TRUE!$HAVE_FLEXML_TRUE$ac_delim
27507 HAVE_FLEXML_FALSE!$HAVE_FLEXML_FALSE$ac_delim
27508 DOXYGEN!$DOXYGEN$ac_delim
27509 ADDR2LINE!$ADDR2LINE$ac_delim
27510 ac_configure_args!$ac_configure_args$ac_delim
27511 MD5SUM!$MD5SUM$ac_delim
27512 build_id!$build_id$ac_delim
27513 LTLIBOBJS!$LTLIBOBJS$ac_delim
27516 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 57; then
27518 elif $ac_last_try; then
27519 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27520 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27521 { (exit 1); exit 1; }; }
27523 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27527 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27528 if test -n "$ac_eof"; then
27529 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27530 ac_eof=`expr $ac_eof + 1`
27533 cat >>$CONFIG_STATUS <<_ACEOF
27534 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27535 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27538 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27539 s/^/s,@/; s/!/@,|#_!!_#|/
27542 s/'"$ac_delim"'$/,g/; t
27544 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27545 ' >>$CONFIG_STATUS <conf$$subs.sed
27546 rm -f conf$$subs.sed
27547 cat >>$CONFIG_STATUS <<_ACEOF
27554 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27555 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27556 # trailing colons and then remove the whole line if VPATH becomes empty
27557 # (actually we leave an empty line to preserve line numbers).
27558 if test "x$srcdir" = x.; then
27559 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27560 s/:*\$(srcdir):*/:/
27561 s/:*\${srcdir}:*/:/
27563 s/^\([^=]*=[ ]*\):*/\1/
27569 cat >>$CONFIG_STATUS <<\_ACEOF
27570 fi # test -n "$CONFIG_FILES"
27573 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
27576 :[FHLC]) ac_mode=$ac_tag; continue;;
27578 case $ac_mode$ac_tag in
27580 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27581 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27582 { (exit 1); exit 1; }; };;
27583 :[FH]-) ac_tag=-:-;;
27584 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27601 -) ac_f="$tmp/stdin";;
27602 *) # Look for the file first in the build tree, then in the source tree
27603 # (if the path is not absolute). The absolute path cannot be DOS-style,
27604 # because $ac_f cannot contain `:'.
27608 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27610 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27611 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27612 { (exit 1); exit 1; }; };;
27614 ac_file_inputs="$ac_file_inputs $ac_f"
27617 # Let's still pretend it is `configure' which instantiates (i.e., don't
27618 # use $as_me), people would be surprised to read:
27619 # /* config.h. Generated by config.status. */
27620 configure_input="Generated from "`IFS=:
27621 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27622 if test x"$ac_file" != x-; then
27623 configure_input="$ac_file. $configure_input"
27624 { echo "$as_me:$LINENO: creating $ac_file" >&5
27625 echo "$as_me: creating $ac_file" >&6;}
27629 *:-:* | *:-) cat >"$tmp/stdin";;
27634 ac_dir=`$as_dirname -- "$ac_file" ||
27635 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27636 X"$ac_file" : 'X\(//\)[^/]' \| \
27637 X"$ac_file" : 'X\(//\)$' \| \
27638 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27644 /^X\(\/\/\)[^/].*/{
27659 -*) as_dir=./$as_dir;;
27661 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27665 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27666 *) as_qdir=$as_dir;;
27668 as_dirs="'$as_qdir' $as_dirs"
27669 as_dir=`$as_dirname -- "$as_dir" ||
27670 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27671 X"$as_dir" : 'X\(//\)[^/]' \| \
27672 X"$as_dir" : 'X\(//\)$' \| \
27673 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27679 /^X\(\/\/\)[^/].*/{
27692 test -d "$as_dir" && break
27694 test -z "$as_dirs" || eval "mkdir $as_dirs"
27695 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27696 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27697 { (exit 1); exit 1; }; }; }
27701 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27703 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27704 # A ".." for each directory in $ac_dir_suffix.
27705 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27706 case $ac_top_builddir_sub in
27707 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27708 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27711 ac_abs_top_builddir=$ac_pwd
27712 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27713 # for backward compatibility:
27714 ac_top_builddir=$ac_top_build_prefix
27717 .) # We are building in place.
27719 ac_top_srcdir=$ac_top_builddir_sub
27720 ac_abs_top_srcdir=$ac_pwd ;;
27721 [\\/]* | ?:[\\/]* ) # Absolute name.
27722 ac_srcdir=$srcdir$ac_dir_suffix;
27723 ac_top_srcdir=$srcdir
27724 ac_abs_top_srcdir=$srcdir ;;
27725 *) # Relative name.
27726 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27727 ac_top_srcdir=$ac_top_build_prefix$srcdir
27728 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27730 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27740 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27741 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27743 ac_MKDIR_P=$MKDIR_P
27745 [\\/$]* | ?:[\\/]* ) ;;
27746 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27750 cat >>$CONFIG_STATUS <<\_ACEOF
27751 # If the template does not know about datarootdir, expand it.
27752 # FIXME: This hack should be removed a few years after 2.60.
27753 ac_datarootdir_hack=; ac_datarootdir_seen=
27755 case `sed -n '/datarootdir/ {
27764 ' $ac_file_inputs` in
27765 *datarootdir*) ac_datarootdir_seen=yes;;
27766 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27767 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27768 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27770 cat >>$CONFIG_STATUS <<_ACEOF
27771 ac_datarootdir_hack='
27772 s&@datadir@&$datadir&g
27773 s&@docdir@&$docdir&g
27774 s&@infodir@&$infodir&g
27775 s&@localedir@&$localedir&g
27776 s&@mandir@&$mandir&g
27777 s&\\\${datarootdir}&$datarootdir&g' ;;
27781 # Neutralize VPATH when `$srcdir' = `.'.
27782 # Shell code in configure.ac might set extrasub.
27783 # FIXME: do we really want to maintain this feature?
27784 cat >>$CONFIG_STATUS <<_ACEOF
27788 cat >>$CONFIG_STATUS <<\_ACEOF
27790 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27791 s&@configure_input@&$configure_input&;t t
27792 s&@top_builddir@&$ac_top_builddir_sub&;t t
27793 s&@srcdir@&$ac_srcdir&;t t
27794 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27795 s&@top_srcdir@&$ac_top_srcdir&;t t
27796 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27797 s&@builddir@&$ac_builddir&;t t
27798 s&@abs_builddir@&$ac_abs_builddir&;t t
27799 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27800 s&@INSTALL@&$ac_INSTALL&;t t
27801 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27802 $ac_datarootdir_hack
27803 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27805 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27806 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27807 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27808 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27809 which seems to be undefined. Please make sure it is defined." >&5
27810 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27811 which seems to be undefined. Please make sure it is defined." >&2;}
27815 -) cat "$tmp/out"; rm -f "$tmp/out";;
27816 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27825 # Transform confdefs.h into a sed script `conftest.defines', that
27826 # substitutes the proper values into config.h.in to produce config.h.
27827 rm -f conftest.defines conftest.tail
27828 # First, append a space to every undef/define line, to ease matching.
27829 echo 's/$/ /' >conftest.defines
27830 # Then, protect against being on the right side of a sed subst, or in
27831 # an unquoted here document, in config.status. If some macros were
27832 # called several times there might be several #defines for the same
27833 # symbol, which is useless. But do not sort them, since the last
27834 # AC_DEFINE must be honored.
27835 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27836 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27837 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27838 # PARAMS is the parameter list in the macro definition--in most cases, it's
27839 # just an empty string.
27840 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27841 ac_dB='\\)[ (].*,\\1define\\2'
27849 s/^[ ]*#[ ]*define[ ][ ]*//
27854 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27855 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27856 ' >>conftest.defines
27858 # Remove the space that was appended to ease matching.
27859 # Then replace #undef with comments. This is necessary, for
27860 # example, in the case of _POSIX_SOURCE, which is predefined and required
27861 # on some systems where configure will not decide to define it.
27862 # (The regexp can be short, since the line contains either #define or #undef.)
27864 s,^[ #]*u.*,/* & */,' >>conftest.defines
27866 # Break up conftest.defines:
27867 ac_max_sed_lines=50
27869 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27870 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27871 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27873 ac_in='$ac_file_inputs'
27874 ac_out='"$tmp/out1"'
27875 ac_nxt='"$tmp/out2"'
27879 # Write a here document:
27880 cat >>$CONFIG_STATUS <<_ACEOF
27881 # First, check the format of the line:
27882 cat >"\$tmp/defines.sed" <<\\CEOF
27883 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27884 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27888 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27890 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27891 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27892 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27893 grep . conftest.tail >/dev/null || break
27894 rm -f conftest.defines
27895 mv conftest.tail conftest.defines
27897 rm -f conftest.defines conftest.tail
27899 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27900 cat >>$CONFIG_STATUS <<\_ACEOF
27901 if test x"$ac_file" != x-; then
27902 echo "/* $configure_input */" >"$tmp/config.h"
27903 cat "$ac_result" >>"$tmp/config.h"
27904 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27905 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27906 echo "$as_me: $ac_file is unchanged" >&6;}
27909 mv "$tmp/config.h" $ac_file
27912 echo "/* $configure_input */"
27916 # Compute $ac_file's index in $config_headers.
27918 for _am_header in $config_headers :; do
27919 case $_am_header in
27920 $ac_file | $ac_file:* )
27923 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27926 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
27927 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27928 X$ac_file : 'X\(//\)[^/]' \| \
27929 X$ac_file : 'X\(//\)$' \| \
27930 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
27932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27936 /^X\(\/\/\)[^/].*/{
27948 s/.*/./; q'`/stamp-h$_am_stamp_count
27951 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27952 echo "$as_me: executing $ac_file commands" >&6;}
27957 case $ac_file$ac_mode in
27958 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27959 # Strip MF so we end up with the name of the file.
27960 mf=`echo "$mf" | sed -e 's/:.*$//'`
27961 # Check whether this is an Automake generated Makefile or not.
27962 # We used to match only the files named `Makefile.in', but
27963 # some people rename them; so instead we look at the file content.
27964 # Grep'ing the first line is not enough: some people post-process
27965 # each Makefile.in and add a new line on top of each file to say so.
27966 # Grep'ing the whole file is not good either: AIX grep has a line
27967 # limit of 2048, but all sed's we know have understand at least 4000.
27968 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
27969 dirpart=`$as_dirname -- "$mf" ||
27970 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27971 X"$mf" : 'X\(//\)[^/]' \| \
27972 X"$mf" : 'X\(//\)$' \| \
27973 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27979 /^X\(\/\/\)[^/].*/{
27995 # Extract the definition of DEPDIR, am__include, and am__quote
27996 # from the Makefile without running `make'.
27997 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27998 test -z "$DEPDIR" && continue
27999 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28000 test -z "am__include" && continue
28001 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28002 # When using ansi2knr, U may be empty or an underscore; expand it
28003 U=`sed -n 's/^U = //p' < "$mf"`
28004 # Find all dependency output files, they are included files with
28005 # $(DEPDIR) in their names. We invoke sed twice because it is the
28006 # simplest approach to changing $(DEPDIR) to its actual value in the
28008 for file in `sed -n "
28009 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28010 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28011 # Make sure the directory exists.
28012 test -f "$dirpart/$file" && continue
28013 fdir=`$as_dirname -- "$file" ||
28014 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28015 X"$file" : 'X\(//\)[^/]' \| \
28016 X"$file" : 'X\(//\)$' \| \
28017 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28023 /^X\(\/\/\)[^/].*/{
28036 { as_dir=$dirpart/$fdir
28038 -*) as_dir=./$as_dir;;
28040 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28044 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28045 *) as_qdir=$as_dir;;
28047 as_dirs="'$as_qdir' $as_dirs"
28048 as_dir=`$as_dirname -- "$as_dir" ||
28049 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28050 X"$as_dir" : 'X\(//\)[^/]' \| \
28051 X"$as_dir" : 'X\(//\)$' \| \
28052 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28058 /^X\(\/\/\)[^/].*/{
28071 test -d "$as_dir" && break
28073 test -z "$as_dirs" || eval "mkdir $as_dirs"
28074 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28075 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28076 { (exit 1); exit 1; }; }; }
28077 # echo "creating $dirpart/$file"
28078 echo '# dummy' > "$dirpart/$file"
28082 "tools/graspe-slave":F)
28084 tools/graspe-slave tools/graspe-master \
28086 test -e $file && chmod +x $file; \
28089 "testsuite/Makefile":F)
28091 testsuite/run_tests \
28092 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28094 test -e $file && chmod +x $file; \
28097 "testsuite/run_tests":F)
28099 testsuite/run_tests \
28100 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28102 test -e $file && chmod +x $file; \
28105 "testsuite/gras/trp_tcp_usage":F)
28107 testsuite/run_tests \
28108 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28110 test -e $file && chmod +x $file; \
28113 "testsuite/gras/trp_file_usage":F)
28115 testsuite/run_tests \
28116 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28118 test -e $file && chmod +x $file; \
28121 "examples/Makefile":F)
28124 examples/msg/run_msg_test \
28125 examples/simdag/test_simdag \
28126 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28127 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28129 test -e $file && chmod +x $file; \
28132 "examples/msg/Makefile":F)
28135 examples/msg/run_msg_test \
28136 examples/simdag/test_simdag \
28137 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28138 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28140 test -e $file && chmod +x $file; \
28143 "examples/msg/basic.tesh":F)
28146 examples/msg/run_msg_test \
28147 examples/simdag/test_simdag \
28148 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28149 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28151 test -e $file && chmod +x $file; \
28154 "examples/msg/small_plat.tesh":F)
28157 examples/msg/run_msg_test \
28158 examples/simdag/test_simdag \
28159 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28160 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28162 test -e $file && chmod +x $file; \
28165 "examples/msg/suspend.tesh":F)
28168 examples/msg/run_msg_test \
28169 examples/simdag/test_simdag \
28170 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28171 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28173 test -e $file && chmod +x $file; \
28176 "examples/msg/flexml_bypass.tesh":F)
28179 examples/msg/run_msg_test \
28180 examples/simdag/test_simdag \
28181 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28182 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28184 test -e $file && chmod +x $file; \
28187 "examples/simdag/Makefile":F)
28190 examples/msg/run_msg_test \
28191 examples/simdag/test_simdag \
28192 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28193 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28195 test -e $file && chmod +x $file; \
28198 "examples/simdag/test_simdag":F)
28201 examples/msg/run_msg_test \
28202 examples/simdag/test_simdag \
28203 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28204 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28206 test -e $file && chmod +x $file; \
28209 "examples/gras/Makefile":F)
28212 examples/msg/run_msg_test \
28213 examples/simdag/test_simdag \
28214 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28215 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28217 test -e $file && chmod +x $file; \
28220 "examples/gras/ping/Makefile":F)
28223 examples/msg/run_msg_test \
28224 examples/simdag/test_simdag \
28225 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28226 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28228 test -e $file && chmod +x $file; \
28231 "examples/gras/rpc/Makefile":F)
28234 examples/msg/run_msg_test \
28235 examples/simdag/test_simdag \
28236 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28237 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28239 test -e $file && chmod +x $file; \
28242 "examples/gras/spawn/Makefile":F)
28245 examples/msg/run_msg_test \
28246 examples/simdag/test_simdag \
28247 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28248 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28250 test -e $file && chmod +x $file; \
28253 "examples/gras/synchro/Makefile":F)
28256 examples/msg/run_msg_test \
28257 examples/simdag/test_simdag \
28258 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28259 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28261 test -e $file && chmod +x $file; \
28264 "examples/gras/timer/Makefile":F)
28267 examples/msg/run_msg_test \
28268 examples/simdag/test_simdag \
28269 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28270 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28272 test -e $file && chmod +x $file; \
28275 "examples/gras/chrono/Makefile":F)
28278 examples/msg/run_msg_test \
28279 examples/simdag/test_simdag \
28280 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28281 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28283 test -e $file && chmod +x $file; \
28286 "examples/gras/mutual_exclusion/simple_token/Makefile":F)
28289 examples/msg/run_msg_test \
28290 examples/simdag/test_simdag \
28291 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28292 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28294 test -e $file && chmod +x $file; \
28297 "examples/gras/mmrpc/Makefile":F)
28300 examples/msg/run_msg_test \
28301 examples/simdag/test_simdag \
28302 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28303 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28305 test -e $file && chmod +x $file; \
28308 "examples/gras/pmm/Makefile":F)
28311 examples/msg/run_msg_test \
28312 examples/simdag/test_simdag \
28313 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28314 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28316 test -e $file && chmod +x $file; \
28319 "examples/gras/all2all/Makefile":F)
28322 examples/msg/run_msg_test \
28323 examples/simdag/test_simdag \
28324 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28325 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28327 test -e $file && chmod +x $file; \
28330 "examples/amok/Makefile":F)
28333 examples/msg/run_msg_test \
28334 examples/simdag/test_simdag \
28335 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28336 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28338 test -e $file && chmod +x $file; \
28341 "examples/amok/bandwidth/Makefile":F)
28344 examples/msg/run_msg_test \
28345 examples/simdag/test_simdag \
28346 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28347 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28349 test -e $file && chmod +x $file; \
28352 "examples/amok/bandwidth/test_sg":F)
28355 examples/msg/run_msg_test \
28356 examples/simdag/test_simdag \
28357 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28358 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28360 test -e $file && chmod +x $file; \
28363 "examples/amok/bandwidth/test_rl":F)
28366 examples/msg/run_msg_test \
28367 examples/simdag/test_simdag \
28368 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28369 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28371 test -e $file && chmod +x $file; \
28374 "examples/amok/saturate/Makefile":F)
28377 examples/msg/run_msg_test \
28378 examples/simdag/test_simdag \
28379 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28380 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28382 test -e $file && chmod +x $file; \
28385 "examples/amok/saturate/test_sg":F)
28388 examples/msg/run_msg_test \
28389 examples/simdag/test_simdag \
28390 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28391 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28393 test -e $file && chmod +x $file; \
28396 "examples/amok/saturate/test_rl":F)
28399 examples/msg/run_msg_test \
28400 examples/simdag/test_simdag \
28401 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28402 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28404 test -e $file && chmod +x $file; \
28407 "examples/java/Makefile":F)
28410 examples/msg/run_msg_test \
28411 examples/simdag/test_simdag \
28412 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28413 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28415 test -e $file && chmod +x $file; \
28418 "examples/java/basic/Makefile":F)
28421 examples/msg/run_msg_test \
28422 examples/simdag/test_simdag \
28423 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28424 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28426 test -e $file && chmod +x $file; \
28429 "examples/java/comm_time/Makefile":F)
28432 examples/msg/run_msg_test \
28433 examples/simdag/test_simdag \
28434 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28435 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28437 test -e $file && chmod +x $file; \
28440 "examples/java/suspend/Makefile":F)
28443 examples/msg/run_msg_test \
28444 examples/simdag/test_simdag \
28445 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28446 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28448 test -e $file && chmod +x $file; \
28451 "examples/java/ping_pong/Makefile":F)
28454 examples/msg/run_msg_test \
28455 examples/simdag/test_simdag \
28456 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28457 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28459 test -e $file && chmod +x $file; \
28467 { (exit 0); exit 0; }
28469 chmod +x $CONFIG_STATUS
28470 ac_clean_files=$ac_clean_files_save
28473 # configure is writing to config.log, and then calls config.status.
28474 # config.status does its own redirection, appending to config.log.
28475 # Unfortunately, on DOS this fails, as config.log is still kept open
28476 # by configure, so config.status won't be able to write to it; its
28477 # output is simply discarded. So we exec the FD to /dev/null,
28478 # effectively closing config.log, so it can be properly (re)opened and
28479 # appended to by config.status. When coming back to configure, we
28480 # need to make the FD available again.
28481 if test "$no_create" != yes; then
28483 ac_config_status_args=
28484 test "$silent" = yes &&
28485 ac_config_status_args="$ac_config_status_args --quiet"
28487 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28489 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28490 # would make configure fail if this is the last instruction.
28491 $ac_cs_success || { (exit 1); exit 1; }
28497 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
28499 Compiler: ${CC} (version: ${GCC_VERSION})
28502 CPPFlags: ${CPPFLAGS}
28503 LDFlags: ${LDFLAGS}
28505 Context backend: ${with_context}
28508 if test -e CVS && test x$USE_MAINTAINER_MODE != xyes ; then
28510 echo "WARNING: you seem to compile the CVS version without the maintainer mode."
28511 echo "WARNING: You won't be able to build archives that way (make dist is likely to fail). "
28512 echo "WARNING: If you want to enable the maintainer mode, juste specify it like this:"
28514 echo "WARNING: ./configure '--enable-maintainer-mode' $ac_configure_args"
28517 echo $build_id > stamp.configure