2 # From configure.ac Revision: 4789 .
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
891 CONTEXT_THREADS_FALSE
893 pth_skaddr_makecontext
894 pth_sksize_makecontext
905 MAINTAINER_MODE_FALSE
935 ac_precious_vars='build_alias
950 # Initialize some variables set by options.
952 ac_init_version=false
953 # The variables have the same names as the options, with
954 # dashes changed to underlines.
962 program_transform_name=s,x,x,
970 # Installation directory options.
971 # These are left unexpanded so users can "make install exec_prefix=/foo"
972 # and all the variables that are supposed to be based on exec_prefix
973 # by default will actually change.
974 # Use braces instead of parens because sh, perl, etc. also accept them.
975 # (The list follows the same order as the GNU Coding Standards.)
976 bindir='${exec_prefix}/bin'
977 sbindir='${exec_prefix}/sbin'
978 libexecdir='${exec_prefix}/libexec'
979 datarootdir='${prefix}/share'
980 datadir='${datarootdir}'
981 sysconfdir='${prefix}/etc'
982 sharedstatedir='${prefix}/com'
983 localstatedir='${prefix}/var'
984 includedir='${prefix}/include'
985 oldincludedir='/usr/include'
986 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
987 infodir='${datarootdir}/info'
992 libdir='${exec_prefix}/lib'
993 localedir='${datarootdir}/locale'
994 mandir='${datarootdir}/man'
1000 # If the previous option needs an argument, assign it.
1001 if test -n "$ac_prev"; then
1002 eval $ac_prev=\$ac_option
1008 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1012 # Accept the important Cygnus configure options, so we can diagnose typos.
1014 case $ac_dashdash$ac_option in
1018 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1021 bindir=$ac_optarg ;;
1023 -build | --build | --buil | --bui | --bu)
1024 ac_prev=build_alias ;;
1025 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1026 build_alias=$ac_optarg ;;
1028 -cache-file | --cache-file | --cache-fil | --cache-fi \
1029 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1030 ac_prev=cache_file ;;
1031 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1032 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1033 cache_file=$ac_optarg ;;
1035 --config-cache | -C)
1036 cache_file=config.cache ;;
1038 -datadir | --datadir | --datadi | --datad)
1040 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1041 datadir=$ac_optarg ;;
1043 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1044 | --dataroo | --dataro | --datar)
1045 ac_prev=datarootdir ;;
1046 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1047 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1048 datarootdir=$ac_optarg ;;
1050 -disable-* | --disable-*)
1051 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1054 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1055 { (exit 1); exit 1; }; }
1056 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1057 eval enable_$ac_feature=no ;;
1059 -docdir | --docdir | --docdi | --doc | --do)
1061 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062 docdir=$ac_optarg ;;
1064 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067 dvidir=$ac_optarg ;;
1069 -enable-* | --enable-*)
1070 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1073 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1074 { (exit 1); exit 1; }; }
1075 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1076 eval enable_$ac_feature=\$ac_optarg ;;
1078 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1079 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1080 | --exec | --exe | --ex)
1081 ac_prev=exec_prefix ;;
1082 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1083 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1084 | --exec=* | --exe=* | --ex=*)
1085 exec_prefix=$ac_optarg ;;
1087 -gas | --gas | --ga | --g)
1088 # Obsolete; use --with-gas.
1091 -help | --help | --hel | --he | -h)
1092 ac_init_help=long ;;
1093 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1094 ac_init_help=recursive ;;
1095 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1096 ac_init_help=short ;;
1098 -host | --host | --hos | --ho)
1099 ac_prev=host_alias ;;
1100 -host=* | --host=* | --hos=* | --ho=*)
1101 host_alias=$ac_optarg ;;
1103 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1105 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1107 htmldir=$ac_optarg ;;
1109 -includedir | --includedir | --includedi | --included | --include \
1110 | --includ | --inclu | --incl | --inc)
1111 ac_prev=includedir ;;
1112 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1113 | --includ=* | --inclu=* | --incl=* | --inc=*)
1114 includedir=$ac_optarg ;;
1116 -infodir | --infodir | --infodi | --infod | --info | --inf)
1118 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1119 infodir=$ac_optarg ;;
1121 -libdir | --libdir | --libdi | --libd)
1123 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1124 libdir=$ac_optarg ;;
1126 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1127 | --libexe | --libex | --libe)
1128 ac_prev=libexecdir ;;
1129 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1130 | --libexe=* | --libex=* | --libe=*)
1131 libexecdir=$ac_optarg ;;
1133 -localedir | --localedir | --localedi | --localed | --locale)
1134 ac_prev=localedir ;;
1135 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1136 localedir=$ac_optarg ;;
1138 -localstatedir | --localstatedir | --localstatedi | --localstated \
1139 | --localstate | --localstat | --localsta | --localst | --locals)
1140 ac_prev=localstatedir ;;
1141 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1142 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1143 localstatedir=$ac_optarg ;;
1145 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1147 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1148 mandir=$ac_optarg ;;
1150 -nfp | --nfp | --nf)
1151 # Obsolete; use --without-fp.
1154 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1155 | --no-cr | --no-c | -n)
1158 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1162 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1163 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1164 | --oldin | --oldi | --old | --ol | --o)
1165 ac_prev=oldincludedir ;;
1166 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1167 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1168 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1169 oldincludedir=$ac_optarg ;;
1171 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1173 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1174 prefix=$ac_optarg ;;
1176 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1177 | --program-pre | --program-pr | --program-p)
1178 ac_prev=program_prefix ;;
1179 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1180 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1181 program_prefix=$ac_optarg ;;
1183 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1184 | --program-suf | --program-su | --program-s)
1185 ac_prev=program_suffix ;;
1186 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1187 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1188 program_suffix=$ac_optarg ;;
1190 -program-transform-name | --program-transform-name \
1191 | --program-transform-nam | --program-transform-na \
1192 | --program-transform-n | --program-transform- \
1193 | --program-transform | --program-transfor \
1194 | --program-transfo | --program-transf \
1195 | --program-trans | --program-tran \
1196 | --progr-tra | --program-tr | --program-t)
1197 ac_prev=program_transform_name ;;
1198 -program-transform-name=* | --program-transform-name=* \
1199 | --program-transform-nam=* | --program-transform-na=* \
1200 | --program-transform-n=* | --program-transform-=* \
1201 | --program-transform=* | --program-transfor=* \
1202 | --program-transfo=* | --program-transf=* \
1203 | --program-trans=* | --program-tran=* \
1204 | --progr-tra=* | --program-tr=* | --program-t=*)
1205 program_transform_name=$ac_optarg ;;
1207 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1209 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1210 pdfdir=$ac_optarg ;;
1212 -psdir | --psdir | --psdi | --psd | --ps)
1214 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1221 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1223 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1225 sbindir=$ac_optarg ;;
1227 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1228 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1229 | --sharedst | --shareds | --shared | --share | --shar \
1231 ac_prev=sharedstatedir ;;
1232 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1233 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1234 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1236 sharedstatedir=$ac_optarg ;;
1238 -site | --site | --sit)
1240 -site=* | --site=* | --sit=*)
1243 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1245 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1246 srcdir=$ac_optarg ;;
1248 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1249 | --syscon | --sysco | --sysc | --sys | --sy)
1250 ac_prev=sysconfdir ;;
1251 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1252 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1253 sysconfdir=$ac_optarg ;;
1255 -target | --target | --targe | --targ | --tar | --ta | --t)
1256 ac_prev=target_alias ;;
1257 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1258 target_alias=$ac_optarg ;;
1260 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1263 -version | --version | --versio | --versi | --vers | -V)
1264 ac_init_version=: ;;
1267 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1268 # Reject names that are not valid shell variable names.
1269 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270 { echo "$as_me: error: invalid package name: $ac_package" >&2
1271 { (exit 1); exit 1; }; }
1272 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1273 eval with_$ac_package=\$ac_optarg ;;
1275 -without-* | --without-*)
1276 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279 { echo "$as_me: error: invalid package name: $ac_package" >&2
1280 { (exit 1); exit 1; }; }
1281 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1282 eval with_$ac_package=no ;;
1285 # Obsolete; use --with-x.
1288 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1289 | --x-incl | --x-inc | --x-in | --x-i)
1290 ac_prev=x_includes ;;
1291 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1292 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1293 x_includes=$ac_optarg ;;
1295 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1296 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1297 ac_prev=x_libraries ;;
1298 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1299 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1300 x_libraries=$ac_optarg ;;
1302 -*) { echo "$as_me: error: unrecognized option: $ac_option
1303 Try \`$0 --help' for more information." >&2
1304 { (exit 1); exit 1; }; }
1308 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1311 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1312 { (exit 1); exit 1; }; }
1313 eval $ac_envvar=\$ac_optarg
1314 export $ac_envvar ;;
1317 # FIXME: should be removed in autoconf 3.0.
1318 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1319 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1320 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1321 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1327 if test -n "$ac_prev"; then
1328 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1329 { echo "$as_me: error: missing argument to $ac_option" >&2
1330 { (exit 1); exit 1; }; }
1333 # Be sure to have absolute directory names.
1334 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1335 datadir sysconfdir sharedstatedir localstatedir includedir \
1336 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1337 libdir localedir mandir
1339 eval ac_val=\$$ac_var
1341 [\\/$]* | ?:[\\/]* ) continue;;
1342 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1344 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1345 { (exit 1); exit 1; }; }
1348 # There might be people who depend on the old broken behavior: `$host'
1349 # used to hold the argument of --host etc.
1350 # FIXME: To remove some day.
1353 target=$target_alias
1355 # FIXME: To remove some day.
1356 if test "x$host_alias" != x; then
1357 if test "x$build_alias" = x; then
1358 cross_compiling=maybe
1359 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1360 If a cross compiler is detected then cross compile mode will be used." >&2
1361 elif test "x$build_alias" != "x$host_alias"; then
1367 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1369 test "$silent" = yes && exec 6>/dev/null
1372 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1373 ac_ls_di=`ls -di .` &&
1374 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1375 { echo "$as_me: error: Working directory cannot be determined" >&2
1376 { (exit 1); exit 1; }; }
1377 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1378 { echo "$as_me: error: pwd does not report name of working directory" >&2
1379 { (exit 1); exit 1; }; }
1382 # Find the source files, if location was not specified.
1383 if test -z "$srcdir"; then
1384 ac_srcdir_defaulted=yes
1385 # Try the directory containing this script, then the parent directory.
1386 ac_confdir=`$as_dirname -- "$0" ||
1387 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1388 X"$0" : 'X\(//\)[^/]' \| \
1389 X"$0" : 'X\(//\)$' \| \
1390 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1410 if test ! -r "$srcdir/$ac_unique_file"; then
1414 ac_srcdir_defaulted=no
1416 if test ! -r "$srcdir/$ac_unique_file"; then
1417 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1418 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1419 { (exit 1); exit 1; }; }
1421 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1423 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1424 { (exit 1); exit 1; }; }
1426 # When building in place, set srcdir=.
1427 if test "$ac_abs_confdir" = "$ac_pwd"; then
1430 # Remove unnecessary trailing slashes from srcdir.
1431 # Double slashes in file names in object file debugging info
1432 # mess up M-x gdb in Emacs.
1434 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1436 for ac_var in $ac_precious_vars; do
1437 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_env_${ac_var}_value=\$${ac_var}
1439 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1444 # Report the --help message.
1446 if test "$ac_init_help" = "long"; then
1447 # Omit some internal or obsolete options to make the list less imposing.
1448 # This message is too long to be a string in the A/UX 3.1 sh.
1450 \`configure' configures simgrid 3.3-cvs to adapt to many kinds of systems.
1452 Usage: $0 [OPTION]... [VAR=VALUE]...
1454 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1455 VAR=VALUE. See below for descriptions of some of the useful variables.
1457 Defaults for the options are specified in brackets.
1460 -h, --help display this help and exit
1461 --help=short display options specific to this package
1462 --help=recursive display the short help of all the included packages
1463 -V, --version display version information and exit
1464 -q, --quiet, --silent do not print \`checking...' messages
1465 --cache-file=FILE cache test results in FILE [disabled]
1466 -C, --config-cache alias for \`--cache-file=config.cache'
1467 -n, --no-create do not create output files
1468 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1470 Installation directories:
1471 --prefix=PREFIX install architecture-independent files in PREFIX
1472 [$ac_default_prefix]
1473 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1476 By default, \`make install' will install all the files in
1477 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1478 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1479 for instance \`--prefix=\$HOME'.
1481 For better control, use the options below.
1483 Fine tuning of the installation directories:
1484 --bindir=DIR user executables [EPREFIX/bin]
1485 --sbindir=DIR system admin executables [EPREFIX/sbin]
1486 --libexecdir=DIR program executables [EPREFIX/libexec]
1487 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1488 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1489 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1490 --libdir=DIR object code libraries [EPREFIX/lib]
1491 --includedir=DIR C header files [PREFIX/include]
1492 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1493 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1494 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1495 --infodir=DIR info documentation [DATAROOTDIR/info]
1496 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1497 --mandir=DIR man documentation [DATAROOTDIR/man]
1498 --docdir=DIR documentation root [DATAROOTDIR/doc/simgrid]
1499 --htmldir=DIR html documentation [DOCDIR]
1500 --dvidir=DIR dvi documentation [DOCDIR]
1501 --pdfdir=DIR pdf documentation [DOCDIR]
1502 --psdir=DIR ps documentation [DOCDIR]
1508 --program-prefix=PREFIX prepend PREFIX to installed program names
1509 --program-suffix=SUFFIX append SUFFIX to installed program names
1510 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1513 --build=BUILD configure for building on BUILD [guessed]
1514 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1515 --target=TARGET configure for building compilers for TARGET [HOST]
1519 if test -n "$ac_init_help"; then
1520 case $ac_init_help in
1521 short | recursive ) echo "Configuration of simgrid 3.3-cvs:";;
1526 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1527 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1528 --disable-dependency-tracking speeds up one-time build
1529 --enable-dependency-tracking do not reject slow dependency extractors
1530 --enable-shared[=PKGS] build shared libraries [default=yes]
1531 --enable-static[=PKGS] build static libraries [default=yes]
1532 --enable-fast-install[=PKGS]
1533 optimize for fast installation [default=yes]
1534 --disable-libtool-lock avoid locking (might break parallel builds)
1535 --enable-maintainer-mode enable make rules and dependencies not useful
1536 (and sometimes confusing) to the casual installer
1537 --enable-compile-warnings
1538 use compiler warnings (default=no, unless in
1540 --disable-compile-optimizations
1541 use compiler optimizations (default=yes, unless if
1542 CFLAGS is explicitly set)
1543 --enable-botbuild Compilation mode for build daemons -- do not use it
1544 --disable-java To not compile the Java bindings even if the tools
1548 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1549 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1550 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1551 --with-pic try to use only PIC/non-PIC objects [default=use
1553 --with-tags[=TAGS] include additional configurations [automatic]
1554 --with-pthread Use pthread instead of ucontext.
1555 --with-pthreads Use pthread instead of ucontext.
1556 --with-context=ucontext/pthread Use either (System V) swapcontext or pthread [default=auto].
1557 --with-gtnets Path to GTNetS installation (default to empty, ie
1559 --with-csdp Path to csdp installation (default to empty, i.e.
1562 Some influential environment variables:
1563 CC C compiler command
1564 CFLAGS C compiler flags
1565 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1566 nonstandard directory <lib dir>
1567 LIBS libraries to pass to the linker, e.g. -l<library>
1568 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1569 you have headers in a nonstandard directory <include dir>
1571 CXX C++ compiler command
1572 CXXFLAGS C++ compiler flags
1573 CXXCPP C++ preprocessor
1575 Use these variables to override the choices made by `configure' or to help
1576 it to find libraries and programs with nonstandard names/locations.
1578 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1583 if test "$ac_init_help" = "recursive"; then
1584 # If there are subdirs, report their specific --help.
1585 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1586 test -d "$ac_dir" || continue
1590 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1593 # A ".." for each directory in $ac_dir_suffix.
1594 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1595 case $ac_top_builddir_sub in
1596 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1597 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1600 ac_abs_top_builddir=$ac_pwd
1601 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1602 # for backward compatibility:
1603 ac_top_builddir=$ac_top_build_prefix
1606 .) # We are building in place.
1608 ac_top_srcdir=$ac_top_builddir_sub
1609 ac_abs_top_srcdir=$ac_pwd ;;
1610 [\\/]* | ?:[\\/]* ) # Absolute name.
1611 ac_srcdir=$srcdir$ac_dir_suffix;
1612 ac_top_srcdir=$srcdir
1613 ac_abs_top_srcdir=$srcdir ;;
1615 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1616 ac_top_srcdir=$ac_top_build_prefix$srcdir
1617 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1619 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1621 cd "$ac_dir" || { ac_status=$?; continue; }
1622 # Check for guested configure.
1623 if test -f "$ac_srcdir/configure.gnu"; then
1625 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1626 elif test -f "$ac_srcdir/configure"; then
1628 $SHELL "$ac_srcdir/configure" --help=recursive
1630 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1632 cd "$ac_pwd" || { ac_status=$?; break; }
1636 test -n "$ac_init_help" && exit $ac_status
1637 if $ac_init_version; then
1639 simgrid configure 3.3-cvs
1640 generated by GNU Autoconf 2.61
1642 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1643 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1644 This configure script is free software; the Free Software Foundation
1645 gives unlimited permission to copy, distribute and modify it.
1649 cat >config.log <<_ACEOF
1650 This file contains any messages produced by compilers while
1651 running configure, to aid debugging if configure makes a mistake.
1653 It was created by simgrid $as_me 3.3-cvs, which was
1654 generated by GNU Autoconf 2.61. Invocation command line was
1666 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1667 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1668 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1669 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1670 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1672 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1673 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1675 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1676 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1677 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1678 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1679 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1680 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1681 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689 test -z "$as_dir" && as_dir=.
1690 echo "PATH: $as_dir"
1706 # Keep a trace of the command line.
1707 # Strip out --no-create and --no-recursion so they do not pile up.
1708 # Strip out --silent because we don't want to record it for future runs.
1709 # Also quote any args containing shell meta-characters.
1710 # Make two passes to allow for proper duplicate-argument suppression.
1714 ac_must_keep_next=false
1720 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1721 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1722 | -silent | --silent | --silen | --sile | --sil)
1725 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1728 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1730 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1731 if test $ac_must_keep_next = true; then
1732 ac_must_keep_next=false # Got value, back to normal.
1735 *=* | --config-cache | -C | -disable-* | --disable-* \
1736 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1737 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1738 | -with-* | --with-* | -without-* | --without-* | --x)
1739 case "$ac_configure_args0 " in
1740 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1743 -* ) ac_must_keep_next=true ;;
1746 ac_configure_args="$ac_configure_args '$ac_arg'"
1751 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1752 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1754 # When interrupted or exit'd, cleanup temporary files, and complete
1755 # config.log. We remove comments because anyway the quotes in there
1756 # would cause problems or look ugly.
1757 # WARNING: Use '\'' to represent an apostrophe within the trap.
1758 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1759 trap 'exit_status=$?
1760 # Save into config.log some information that might help in debugging.
1765 ## ---------------- ##
1766 ## Cache variables. ##
1767 ## ---------------- ##
1770 # The following way of writing the cache mishandles newlines in values,
1772 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1773 eval ac_val=\$$ac_var
1777 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1778 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1781 _ | IFS | as_nl) ;; #(
1782 *) $as_unset $ac_var ;;
1787 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1788 *${as_nl}ac_space=\ *)
1790 "s/'\''/'\''\\\\'\'''\''/g;
1791 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1794 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1802 ## ----------------- ##
1803 ## Output variables. ##
1804 ## ----------------- ##
1807 for ac_var in $ac_subst_vars
1809 eval ac_val=\$$ac_var
1811 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1813 echo "$ac_var='\''$ac_val'\''"
1817 if test -n "$ac_subst_files"; then
1819 ## ------------------- ##
1820 ## File substitutions. ##
1821 ## ------------------- ##
1824 for ac_var in $ac_subst_files
1826 eval ac_val=\$$ac_var
1828 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1830 echo "$ac_var='\''$ac_val'\''"
1835 if test -s confdefs.h; then
1845 test "$ac_signal" != 0 &&
1846 echo "$as_me: caught signal $ac_signal"
1847 echo "$as_me: exit $exit_status"
1849 rm -f core *.core core.conftest.* &&
1850 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1853 for ac_signal in 1 2 13 15; do
1854 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1858 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1859 rm -f -r conftest* confdefs.h
1861 # Predefined preprocessor variables.
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_NAME "$PACKAGE_NAME"
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_STRING "$PACKAGE_STRING"
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1888 # Let the site file select an alternate cache file if it wants to.
1889 # Prefer explicitly selected file to automatically selected ones.
1890 if test -n "$CONFIG_SITE"; then
1891 set x "$CONFIG_SITE"
1892 elif test "x$prefix" != xNONE; then
1893 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1895 set x "$ac_default_prefix/share/config.site" \
1896 "$ac_default_prefix/etc/config.site"
1901 if test -r "$ac_site_file"; then
1902 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1903 echo "$as_me: loading site script $ac_site_file" >&6;}
1904 sed 's/^/| /' "$ac_site_file" >&5
1909 if test -r "$cache_file"; then
1910 # Some versions of bash will fail to source /dev/null (special
1911 # files actually), so we avoid doing that.
1912 if test -f "$cache_file"; then
1913 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1914 echo "$as_me: loading cache $cache_file" >&6;}
1916 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1917 *) . "./$cache_file";;
1921 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1922 echo "$as_me: creating cache $cache_file" >&6;}
1926 # Check that the precious variables saved in the cache have kept the same
1928 ac_cache_corrupted=false
1929 for ac_var in $ac_precious_vars; do
1930 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1931 eval ac_new_set=\$ac_env_${ac_var}_set
1932 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1933 eval ac_new_val=\$ac_env_${ac_var}_value
1934 case $ac_old_set,$ac_new_set in
1936 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1937 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1938 ac_cache_corrupted=: ;;
1940 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1941 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1942 ac_cache_corrupted=: ;;
1945 if test "x$ac_old_val" != "x$ac_new_val"; then
1946 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1947 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1948 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1949 echo "$as_me: former value: $ac_old_val" >&2;}
1950 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1951 echo "$as_me: current value: $ac_new_val" >&2;}
1952 ac_cache_corrupted=:
1955 # Pass precious variables to config.status.
1956 if test "$ac_new_set" = set; then
1958 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1959 *) ac_arg=$ac_var=$ac_new_val ;;
1961 case " $ac_configure_args " in
1962 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1963 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1967 if $ac_cache_corrupted; then
1968 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1969 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1970 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1971 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1972 { (exit 1); exit 1; }; }
2000 ac_cpp='$CPP $CPPFLAGS'
2001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2007 ac_config_headers="$ac_config_headers src/gras_config.h"
2009 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
2013 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2014 if test -f "$ac_dir/install-sh"; then
2016 ac_install_sh="$ac_aux_dir/install-sh -c"
2018 elif test -f "$ac_dir/install.sh"; then
2020 ac_install_sh="$ac_aux_dir/install.sh -c"
2022 elif test -f "$ac_dir/shtool"; then
2024 ac_install_sh="$ac_aux_dir/shtool install -c"
2028 if test -z "$ac_aux_dir"; then
2029 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2030 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2031 { (exit 1); exit 1; }; }
2034 # These three variables are undocumented and unsupported,
2035 # and are intended to be withdrawn in a future Autoconf release.
2036 # They can cause serious problems if a builder's source tree is in a directory
2037 # whose full name contains unusual characters.
2038 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2039 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2040 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2043 # Make sure we can run config.sub.
2044 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2045 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2046 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2047 { (exit 1); exit 1; }; }
2049 { echo "$as_me:$LINENO: checking build system type" >&5
2050 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2051 if test "${ac_cv_build+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 ac_build_alias=$build_alias
2055 test "x$ac_build_alias" = x &&
2056 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2057 test "x$ac_build_alias" = x &&
2058 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2059 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2060 { (exit 1); exit 1; }; }
2061 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2062 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2063 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2064 { (exit 1); exit 1; }; }
2067 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2068 echo "${ECHO_T}$ac_cv_build" >&6; }
2069 case $ac_cv_build in
2071 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2072 echo "$as_me: error: invalid value of canonical build" >&2;}
2073 { (exit 1); exit 1; }; };;
2076 ac_save_IFS=$IFS; IFS='-'
2082 # Remember, the first character of IFS is used to create $*,
2083 # except with old shells:
2086 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2089 { echo "$as_me:$LINENO: checking host system type" >&5
2090 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2091 if test "${ac_cv_host+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2094 if test "x$host_alias" = x; then
2095 ac_cv_host=$ac_cv_build
2097 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2098 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2099 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2100 { (exit 1); exit 1; }; }
2104 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2105 echo "${ECHO_T}$ac_cv_host" >&6; }
2108 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2109 echo "$as_me: error: invalid value of canonical host" >&2;}
2110 { (exit 1); exit 1; }; };;
2113 ac_save_IFS=$IFS; IFS='-'
2119 # Remember, the first character of IFS is used to create $*,
2120 # except with old shells:
2123 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2126 { echo "$as_me:$LINENO: checking target system type" >&5
2127 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2128 if test "${ac_cv_target+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2131 if test "x$target_alias" = x; then
2132 ac_cv_target=$ac_cv_host
2134 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2135 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2136 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2137 { (exit 1); exit 1; }; }
2141 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2142 echo "${ECHO_T}$ac_cv_target" >&6; }
2143 case $ac_cv_target in
2145 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2146 echo "$as_me: error: invalid value of canonical target" >&2;}
2147 { (exit 1); exit 1; }; };;
2149 target=$ac_cv_target
2150 ac_save_IFS=$IFS; IFS='-'
2156 # Remember, the first character of IFS is used to create $*,
2157 # except with old shells:
2160 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2163 # The aliases save the names the user supplied, while $host etc.
2164 # will get canonicalized.
2165 test -n "$target_alias" &&
2166 test "$program_prefix$program_suffix$program_transform_name" = \
2168 program_prefix=${target_alias}-
2170 ac_cpp='$CPP $CPPFLAGS'
2171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2175 rm -rf .tst 2>/dev/null
2176 mkdir .tst 2>/dev/null
2177 if test -d .tst; then
2182 rmdir .tst 2>/dev/null
2184 DEPDIR="${am__leading_dot}deps"
2186 ac_config_commands="$ac_config_commands depfiles"
2189 am_make=${MAKE-make}
2190 cat > confinc << 'END'
2195 # If we don't find an include directive, just comment out the code.
2196 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2197 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2201 # First try GNU make style include.
2202 echo "include confinc" > confmf
2203 # We grep out `Entering directory' and `Leaving directory'
2204 # messages which can occur if `w' ends up in MAKEFLAGS.
2205 # In particular we don't look at `^make:' because GNU make might
2206 # be invoked under some other name (usually "gmake"), in which
2207 # case it prints its new name instead of `make'.
2208 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2213 # Now try BSD make style include.
2214 if test "$am__include" = "#"; then
2215 echo '.include "confinc"' > confmf
2216 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2217 am__include=.include
2224 { echo "$as_me:$LINENO: result: $_am_result" >&5
2225 echo "${ECHO_T}$_am_result" >&6; }
2226 rm -f confinc confmf
2228 # Check whether --enable-dependency-tracking was given.
2229 if test "${enable_dependency_tracking+set}" = set; then
2230 enableval=$enable_dependency_tracking;
2233 if test "x$enable_dependency_tracking" != xno; then
2234 am_depcomp="$ac_aux_dir/depcomp"
2237 if test "x$enable_dependency_tracking" != xno; then
2247 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
2249 # Extract the first word of "$ac_prog", so it can be a program name with args.
2250 set dummy $ac_prog; ac_word=$2
2251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2253 if test "${ac_cv_prog_GCJ+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 if test -n "$GCJ"; then
2257 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263 test -z "$as_dir" && as_dir=.
2264 for ac_exec_ext in '' $ac_executable_extensions; do
2265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2266 ac_cv_prog_GCJ="$ac_prog"
2267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2277 if test -n "$GCJ"; then
2278 { echo "$as_me:$LINENO: result: $GCJ" >&5
2279 echo "${ECHO_T}$GCJ" >&6; }
2281 { echo "$as_me:$LINENO: result: no" >&5
2282 echo "${ECHO_T}no" >&6; }
2286 test -n "$GCJ" && break
2288 test -n "$GCJ" || GCJ="gcj"
2290 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
2291 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
2292 { (exit 1); exit 1; }; }
2293 if test "x${GCJFLAGS-unset}" = xunset; then
2298 depcc="$GCJ" am_compiler_list='gcc3 gcc'
2300 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2301 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2302 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2306 # We make a subdir and do the tests there. Otherwise we can end up
2307 # making bogus files that we don't know about and never remove. For
2308 # instance it was reported that on HP-UX the gcc test will end up
2309 # making a dummy file named `D' -- because `-MD' means `put the output
2312 # Copy depcomp to subdir because otherwise we won't find it if we're
2313 # using a relative directory.
2314 cp "$am_depcomp" conftest.dir
2316 # We will build objects and dependencies in a subdirectory because
2317 # it helps to detect inapplicable dependency modes. For instance
2318 # both Tru64's cc and ICC support -MD to output dependencies as a
2319 # side effect of compilation, but ICC will put the dependencies in
2320 # the current directory while Tru64 will put them in the object
2324 am_cv_GCJ_dependencies_compiler_type=none
2325 if test "$am_compiler_list" = ""; then
2326 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2328 for depmode in $am_compiler_list; do
2329 # Setup a source with many dependencies, because some compilers
2330 # like to wrap large dependency lists on column 80 (with \), and
2331 # we should not choose a depcomp mode which is confused by this.
2333 # We need to recreate these files for each test, as the compiler may
2334 # overwrite some of them when testing with obscure command lines.
2335 # This happens at least with the AIX C compiler.
2337 for i in 1 2 3 4 5 6; do
2338 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2339 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2340 # Solaris 8's {/usr,}/bin/sh.
2341 touch sub/conftst$i.h
2343 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2347 # after this tag, mechanisms are not by side-effect, so they'll
2348 # only be used when explicitly requested
2349 if test "x$enable_dependency_tracking" = xyes; then
2357 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2358 # mode. It turns out that the SunPro C++ compiler does not properly
2359 # handle `-M -o', and we need to detect this.
2360 if depmode=$depmode \
2361 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2362 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2363 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2364 >/dev/null 2>conftest.err &&
2365 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2366 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2367 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2368 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2369 # icc doesn't choke on unknown options, it will just issue warnings
2370 # or remarks (even with -Werror). So we grep stderr for any message
2371 # that says an option was ignored or not supported.
2372 # When given -MP, icc 7.0 and 7.1 complain thusly:
2373 # icc: Command line warning: ignoring option '-M'; no argument required
2374 # The diagnosis changed in icc 8.0:
2375 # icc: Command line remark: option '-MP' not supported
2376 if (grep 'ignoring option' conftest.err ||
2377 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2378 am_cv_GCJ_dependencies_compiler_type=$depmode
2387 am_cv_GCJ_dependencies_compiler_type=none
2391 { echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
2392 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6; }
2393 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
2396 test "x$enable_dependency_tracking" != xno \
2397 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
2398 am__fastdepGCJ_TRUE=
2399 am__fastdepGCJ_FALSE='#'
2401 am__fastdepGCJ_TRUE='#'
2402 am__fastdepGCJ_FALSE=
2408 am__api_version='1.10'
2410 # Find a good install program. We prefer a C program (faster),
2411 # so one script is as good as another. But avoid the broken or
2412 # incompatible versions:
2413 # SysV /etc/install, /usr/sbin/install
2414 # SunOS /usr/etc/install
2415 # IRIX /sbin/install
2417 # AmigaOS /C/install, which installs bootblocks on floppy discs
2418 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2419 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2420 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2421 # OS/2's system install, which has a completely different semantic
2422 # ./install, which can be erroneously created by make from ./install.sh.
2423 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2424 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2425 if test -z "$INSTALL"; then
2426 if test "${ac_cv_path_install+set}" = set; then
2427 echo $ECHO_N "(cached) $ECHO_C" >&6
2429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 test -z "$as_dir" && as_dir=.
2434 # Account for people who put trailing slashes in PATH elements.
2436 ./ | .// | /cC/* | \
2437 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2438 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2441 # OSF1 and SCO ODT 3.0 have their own names for install.
2442 # Don't use installbsd from OSF since it installs stuff as root
2444 for ac_prog in ginstall scoinst install; do
2445 for ac_exec_ext in '' $ac_executable_extensions; do
2446 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2447 if test $ac_prog = install &&
2448 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2449 # AIX install. It has an incompatible calling convention.
2451 elif test $ac_prog = install &&
2452 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2453 # program-specific install script used by HP pwplus--don't use.
2456 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2469 if test "${ac_cv_path_install+set}" = set; then
2470 INSTALL=$ac_cv_path_install
2472 # As a last resort, use the slow shell script. Don't cache a
2473 # value for INSTALL within a source directory, because that will
2474 # break other packages using the cache if that directory is
2475 # removed, or if the value is a relative name.
2476 INSTALL=$ac_install_sh
2479 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2480 echo "${ECHO_T}$INSTALL" >&6; }
2482 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2483 # It thinks the first close brace ends the variable substitution.
2484 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2486 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2488 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2490 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2491 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2494 echo timestamp > conftest.file
2495 # Do `set' in a subshell so we don't clobber the current shell's
2496 # arguments. Must try -L first in case configure is actually a
2497 # symlink; some systems play weird games with the mod time of symlinks
2498 # (eg FreeBSD returns the mod time of the symlink's containing
2501 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2502 if test "$*" = "X"; then
2504 set X `ls -t $srcdir/configure conftest.file`
2507 if test "$*" != "X $srcdir/configure conftest.file" \
2508 && test "$*" != "X conftest.file $srcdir/configure"; then
2510 # If neither matched, then we have a broken ls. This can happen
2511 # if, for instance, CONFIG_SHELL is bash and it inherits a
2512 # broken ls alias from the environment. This has actually
2513 # happened. Such a system could not be considered "sane".
2514 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2515 alias in your environment" >&5
2516 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2517 alias in your environment" >&2;}
2518 { (exit 1); exit 1; }; }
2521 test "$2" = conftest.file
2527 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2528 Check your system clock" >&5
2529 echo "$as_me: error: newly created file is older than distributed files!
2530 Check your system clock" >&2;}
2531 { (exit 1); exit 1; }; }
2533 { echo "$as_me:$LINENO: result: yes" >&5
2534 echo "${ECHO_T}yes" >&6; }
2535 test "$program_prefix" != NONE &&
2536 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2537 # Use a double $ so make ignores it.
2538 test "$program_suffix" != NONE &&
2539 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2540 # Double any \ or $. echo might interpret backslashes.
2541 # By default was `s,x,x', remove it if useless.
2542 cat <<\_ACEOF >conftest.sed
2543 s/[\\$]/&&/g;s/;s,x,x,$//
2545 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2548 # expand $ac_aux_dir to an absolute path
2549 am_aux_dir=`cd $ac_aux_dir && pwd`
2551 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2552 # Use eval to expand $SHELL
2553 if eval "$MISSING --run true"; then
2554 am_missing_run="$MISSING --run "
2557 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2558 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2561 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2562 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2563 if test -z "$MKDIR_P"; then
2564 if test "${ac_cv_path_mkdir+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2571 test -z "$as_dir" && as_dir=.
2572 for ac_prog in mkdir gmkdir; do
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2575 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2576 'mkdir (GNU coreutils) '* | \
2577 'mkdir (coreutils) '* | \
2578 'mkdir (fileutils) '4.1*)
2579 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2589 if test "${ac_cv_path_mkdir+set}" = set; then
2590 MKDIR_P="$ac_cv_path_mkdir -p"
2592 # As a last resort, use the slow shell script. Don't cache a
2593 # value for MKDIR_P within a source directory, because that will
2594 # break other packages using the cache if that directory is
2595 # removed, or if the value is a relative name.
2596 test -d ./--version && rmdir ./--version
2597 MKDIR_P="$ac_install_sh -d"
2600 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2601 echo "${ECHO_T}$MKDIR_P" >&6; }
2605 [\\/$]* | ?:[\\/]*) ;;
2606 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2609 for ac_prog in gawk mawk nawk awk
2611 # Extract the first word of "$ac_prog", so it can be a program name with args.
2612 set dummy $ac_prog; ac_word=$2
2613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2615 if test "${ac_cv_prog_AWK+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2618 if test -n "$AWK"; then
2619 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 test -z "$as_dir" && as_dir=.
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2628 ac_cv_prog_AWK="$ac_prog"
2629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2639 if test -n "$AWK"; then
2640 { echo "$as_me:$LINENO: result: $AWK" >&5
2641 echo "${ECHO_T}$AWK" >&6; }
2643 { echo "$as_me:$LINENO: result: no" >&5
2644 echo "${ECHO_T}no" >&6; }
2648 test -n "$AWK" && break
2651 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2652 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2653 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2654 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2655 echo $ECHO_N "(cached) $ECHO_C" >&6
2657 cat >conftest.make <<\_ACEOF
2660 @echo '@@@%%%=$(MAKE)=@@@%%%'
2662 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2663 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2665 eval ac_cv_prog_make_${ac_make}_set=yes;;
2667 eval ac_cv_prog_make_${ac_make}_set=no;;
2671 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2672 { echo "$as_me:$LINENO: result: yes" >&5
2673 echo "${ECHO_T}yes" >&6; }
2676 { echo "$as_me:$LINENO: result: no" >&5
2677 echo "${ECHO_T}no" >&6; }
2678 SET_MAKE="MAKE=${MAKE-make}"
2681 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2682 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2683 # is not polluted with repeated "-I."
2684 am__isrc=' -I$(srcdir)'
2685 # test to see if srcdir already configured
2686 if test -f $srcdir/config.status; then
2687 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2688 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2689 { (exit 1); exit 1; }; }
2693 # test whether we have cygpath
2694 if test -z "$CYGPATH_W"; then
2695 if (cygpath --version) >/dev/null 2>/dev/null; then
2696 CYGPATH_W='cygpath -w'
2703 # Define the identity of the package.
2708 cat >>confdefs.h <<_ACEOF
2709 #define PACKAGE "$PACKAGE"
2713 cat >>confdefs.h <<_ACEOF
2714 #define VERSION "$VERSION"
2717 # Some tools Automake needs.
2719 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2722 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2725 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2728 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2731 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2733 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2735 # Installed binaries are usually stripped using `strip' when the user
2736 # run `make install-strip'. However `strip' might not be the right
2737 # tool to use in cross-compilation environments, therefore Automake
2738 # will honor the `STRIP' environment variable to overrule this program.
2739 if test "$cross_compiling" != no; then
2740 if test -n "$ac_tool_prefix"; then
2741 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2742 set dummy ${ac_tool_prefix}strip; ac_word=$2
2743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2745 if test "${ac_cv_prog_STRIP+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2748 if test -n "$STRIP"; then
2749 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755 test -z "$as_dir" && as_dir=.
2756 for ac_exec_ext in '' $ac_executable_extensions; do
2757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2758 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 STRIP=$ac_cv_prog_STRIP
2769 if test -n "$STRIP"; then
2770 { echo "$as_me:$LINENO: result: $STRIP" >&5
2771 echo "${ECHO_T}$STRIP" >&6; }
2773 { echo "$as_me:$LINENO: result: no" >&5
2774 echo "${ECHO_T}no" >&6; }
2779 if test -z "$ac_cv_prog_STRIP"; then
2781 # Extract the first word of "strip", so it can be a program name with args.
2782 set dummy strip; ac_word=$2
2783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2785 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2788 if test -n "$ac_ct_STRIP"; then
2789 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 test -z "$as_dir" && as_dir=.
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2798 ac_cv_prog_ac_ct_STRIP="strip"
2799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2809 if test -n "$ac_ct_STRIP"; then
2810 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2811 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2813 { echo "$as_me:$LINENO: result: no" >&5
2814 echo "${ECHO_T}no" >&6; }
2817 if test "x$ac_ct_STRIP" = x; then
2820 case $cross_compiling:$ac_tool_warned in
2822 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2823 whose name does not start with the host triplet. If you think this
2824 configuration is useful to you, please write to autoconf@gnu.org." >&5
2825 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2826 whose name does not start with the host triplet. If you think this
2827 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2828 ac_tool_warned=yes ;;
2833 STRIP="$ac_cv_prog_STRIP"
2837 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2839 # We need awk for the "check" target. The system "awk" is bad on
2841 # Always define AMTAR for backward compatibility.
2843 AMTAR=${AMTAR-"${am_missing_run}tar"}
2845 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2852 ACLOCAL="$ACLOCAL -I acmacro"
2859 # Check whether --enable-shared was given.
2860 if test "${enable_shared+set}" = set; then
2861 enableval=$enable_shared; p=${PACKAGE-default}
2863 yes) enable_shared=yes ;;
2864 no) enable_shared=no ;;
2867 # Look at the argument we got. We use all the common list separators.
2868 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2869 for pkg in $enableval; do
2871 if test "X$pkg" = "X$p"; then
2883 # Check whether --enable-static was given.
2884 if test "${enable_static+set}" = set; then
2885 enableval=$enable_static; p=${PACKAGE-default}
2887 yes) enable_static=yes ;;
2888 no) enable_static=no ;;
2891 # Look at the argument we got. We use all the common list separators.
2892 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2893 for pkg in $enableval; do
2895 if test "X$pkg" = "X$p"; then
2907 # Check whether --enable-fast-install was given.
2908 if test "${enable_fast_install+set}" = set; then
2909 enableval=$enable_fast_install; p=${PACKAGE-default}
2911 yes) enable_fast_install=yes ;;
2912 no) enable_fast_install=no ;;
2914 enable_fast_install=no
2915 # Look at the argument we got. We use all the common list separators.
2916 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2917 for pkg in $enableval; do
2919 if test "X$pkg" = "X$p"; then
2920 enable_fast_install=yes
2927 enable_fast_install=yes
2932 ac_cpp='$CPP $CPPFLAGS'
2933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2936 if test -n "$ac_tool_prefix"; then
2937 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2938 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2941 if test "${ac_cv_prog_CC+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2944 if test -n "$CC"; then
2945 ac_cv_prog_CC="$CC" # Let the user override the test.
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2954 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 if test -n "$CC"; then
2966 { echo "$as_me:$LINENO: result: $CC" >&5
2967 echo "${ECHO_T}$CC" >&6; }
2969 { echo "$as_me:$LINENO: result: no" >&5
2970 echo "${ECHO_T}no" >&6; }
2975 if test -z "$ac_cv_prog_CC"; then
2977 # Extract the first word of "gcc", so it can be a program name with args.
2978 set dummy gcc; ac_word=$2
2979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2981 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 if test -n "$ac_ct_CC"; then
2985 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 test -z "$as_dir" && as_dir=.
2992 for ac_exec_ext in '' $ac_executable_extensions; do
2993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2994 ac_cv_prog_ac_ct_CC="gcc"
2995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3005 if test -n "$ac_ct_CC"; then
3006 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3007 echo "${ECHO_T}$ac_ct_CC" >&6; }
3009 { echo "$as_me:$LINENO: result: no" >&5
3010 echo "${ECHO_T}no" >&6; }
3013 if test "x$ac_ct_CC" = x; then
3016 case $cross_compiling:$ac_tool_warned in
3018 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3019 whose name does not start with the host triplet. If you think this
3020 configuration is useful to you, please write to autoconf@gnu.org." >&5
3021 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3022 whose name does not start with the host triplet. If you think this
3023 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3024 ac_tool_warned=yes ;;
3032 if test -z "$CC"; then
3033 if test -n "$ac_tool_prefix"; then
3034 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3035 set dummy ${ac_tool_prefix}cc; ac_word=$2
3036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3038 if test "${ac_cv_prog_CC+set}" = set; then
3039 echo $ECHO_N "(cached) $ECHO_C" >&6
3041 if test -n "$CC"; then
3042 ac_cv_prog_CC="$CC" # Let the user override the test.
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 test -z "$as_dir" && as_dir=.
3049 for ac_exec_ext in '' $ac_executable_extensions; do
3050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3051 ac_cv_prog_CC="${ac_tool_prefix}cc"
3052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3062 if test -n "$CC"; then
3063 { echo "$as_me:$LINENO: result: $CC" >&5
3064 echo "${ECHO_T}$CC" >&6; }
3066 { echo "$as_me:$LINENO: result: no" >&5
3067 echo "${ECHO_T}no" >&6; }
3073 if test -z "$CC"; then
3074 # Extract the first word of "cc", so it can be a program name with args.
3075 set dummy cc; ac_word=$2
3076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3078 if test "${ac_cv_prog_CC+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3081 if test -n "$CC"; then
3082 ac_cv_prog_CC="$CC" # Let the user override the test.
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3092 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3093 ac_prog_rejected=yes
3097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 if test $ac_prog_rejected = yes; then
3105 # We found a bogon in the path, so make sure we never use it.
3106 set dummy $ac_cv_prog_CC
3108 if test $# != 0; then
3109 # We chose a different compiler from the bogus one.
3110 # However, it has the same basename, so the bogon will be chosen
3111 # first if we set CC to just the basename; use the full file name.
3113 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3119 if test -n "$CC"; then
3120 { echo "$as_me:$LINENO: result: $CC" >&5
3121 echo "${ECHO_T}$CC" >&6; }
3123 { echo "$as_me:$LINENO: result: no" >&5
3124 echo "${ECHO_T}no" >&6; }
3129 if test -z "$CC"; then
3130 if test -n "$ac_tool_prefix"; then
3131 for ac_prog in cl.exe
3133 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3134 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3137 if test "${ac_cv_prog_CC+set}" = set; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
3140 if test -n "$CC"; then
3141 ac_cv_prog_CC="$CC" # Let the user override the test.
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3150 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 if test -n "$CC"; then
3162 { echo "$as_me:$LINENO: result: $CC" >&5
3163 echo "${ECHO_T}$CC" >&6; }
3165 { echo "$as_me:$LINENO: result: no" >&5
3166 echo "${ECHO_T}no" >&6; }
3170 test -n "$CC" && break
3173 if test -z "$CC"; then
3175 for ac_prog in cl.exe
3177 # Extract the first word of "$ac_prog", so it can be a program name with args.
3178 set dummy $ac_prog; ac_word=$2
3179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3181 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3184 if test -n "$ac_ct_CC"; then
3185 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 test -z "$as_dir" && as_dir=.
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3194 ac_cv_prog_ac_ct_CC="$ac_prog"
3195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3205 if test -n "$ac_ct_CC"; then
3206 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3207 echo "${ECHO_T}$ac_ct_CC" >&6; }
3209 { echo "$as_me:$LINENO: result: no" >&5
3210 echo "${ECHO_T}no" >&6; }
3214 test -n "$ac_ct_CC" && break
3217 if test "x$ac_ct_CC" = x; then
3220 case $cross_compiling:$ac_tool_warned in
3222 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3223 whose name does not start with the host triplet. If you think this
3224 configuration is useful to you, please write to autoconf@gnu.org." >&5
3225 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3226 whose name does not start with the host triplet. If you think this
3227 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3228 ac_tool_warned=yes ;;
3237 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3238 See \`config.log' for more details." >&5
3239 echo "$as_me: error: no acceptable C compiler found in \$PATH
3240 See \`config.log' for more details." >&2;}
3241 { (exit 1); exit 1; }; }
3243 # Provide some information about the compiler.
3244 echo "$as_me:$LINENO: checking for C compiler version" >&5
3245 ac_compiler=`set X $ac_compile; echo $2`
3246 { (ac_try="$ac_compiler --version >&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 --version >&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); }
3266 { (ac_try="$ac_compiler -V >&5"
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272 (eval "$ac_compiler -V >&5") 2>&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }
3277 cat >conftest.$ac_ext <<_ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h. */
3292 ac_clean_files_save=$ac_clean_files
3293 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3294 # Try to create an executable without -o first, disregard a.out.
3295 # It will help us diagnose broken compilers, and finding out an intuition
3297 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3298 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3299 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3301 # List of possible output files, starting from the most likely.
3302 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3303 # only as a last resort. b.out is created by i960 compilers.
3304 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3306 # The IRIX 6 linker writes into existing files which may not be
3307 # executable, retaining their permissions. Remove them first so a
3308 # subsequent execution test works.
3310 for ac_file in $ac_files
3313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3314 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3319 if { (ac_try="$ac_link_default"
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3325 (eval "$ac_link_default") 2>&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; then
3329 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3330 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3331 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3332 # so that the user can short-circuit this test for compilers unknown to
3334 for ac_file in $ac_files ''
3336 test -f "$ac_file" || continue
3338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3341 # We found the default executable, but exeext='' is most
3345 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3347 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3349 # We set ac_cv_exeext here because the later test for it is not
3350 # safe: cross compilers may not add the suffix if given an `-o'
3351 # argument, so we may need to know it at that point already.
3352 # Even if this section looks crufty: it has the advantage of
3359 test "$ac_cv_exeext" = no && ac_cv_exeext=
3365 { echo "$as_me:$LINENO: result: $ac_file" >&5
3366 echo "${ECHO_T}$ac_file" >&6; }
3367 if test -z "$ac_file"; then
3368 echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3371 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3372 See \`config.log' for more details." >&5
3373 echo "$as_me: error: C compiler cannot create executables
3374 See \`config.log' for more details." >&2;}
3375 { (exit 77); exit 77; }; }
3378 ac_exeext=$ac_cv_exeext
3380 # Check that the compiler produces executables we can run. If not, either
3381 # the compiler is broken, or we cross compile.
3382 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3383 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3384 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3385 # If not cross compiling, check that we can run a simple program.
3386 if test "$cross_compiling" != yes; then
3387 if { ac_try='./$ac_file'
3388 { (case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3393 (eval "$ac_try") 2>&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }; }; then
3399 if test "$cross_compiling" = maybe; then
3402 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3403 If you meant to cross compile, use \`--host'.
3404 See \`config.log' for more details." >&5
3405 echo "$as_me: error: cannot run C compiled programs.
3406 If you meant to cross compile, use \`--host'.
3407 See \`config.log' for more details." >&2;}
3408 { (exit 1); exit 1; }; }
3412 { echo "$as_me:$LINENO: result: yes" >&5
3413 echo "${ECHO_T}yes" >&6; }
3415 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3416 ac_clean_files=$ac_clean_files_save
3417 # Check that the compiler produces executables we can run. If not, either
3418 # the compiler is broken, or we cross compile.
3419 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3420 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3421 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3422 echo "${ECHO_T}$cross_compiling" >&6; }
3424 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3425 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3426 if { (ac_try="$ac_link"
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3432 (eval "$ac_link") 2>&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; then
3436 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3437 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3438 # work properly (i.e., refer to `conftest.exe'), while it won't with
3440 for ac_file in conftest.exe conftest conftest.*; do
3441 test -f "$ac_file" || continue
3443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3444 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3450 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3451 See \`config.log' for more details." >&5
3452 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3453 See \`config.log' for more details." >&2;}
3454 { (exit 1); exit 1; }; }
3457 rm -f conftest$ac_cv_exeext
3458 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3459 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3461 rm -f conftest.$ac_ext
3462 EXEEXT=$ac_cv_exeext
3464 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3465 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3466 if test "${ac_cv_objext+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 cat >conftest.$ac_ext <<_ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h. */
3484 rm -f conftest.o conftest.obj
3485 if { (ac_try="$ac_compile"
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3491 (eval "$ac_compile") 2>&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; then
3495 for ac_file in conftest.o conftest.obj conftest.*; do
3496 test -f "$ac_file" || continue;
3498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3499 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3504 echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3507 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3508 See \`config.log' for more details." >&5
3509 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3510 See \`config.log' for more details." >&2;}
3511 { (exit 1); exit 1; }; }
3514 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3516 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3517 echo "${ECHO_T}$ac_cv_objext" >&6; }
3518 OBJEXT=$ac_cv_objext
3520 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3521 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3522 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3525 cat >conftest.$ac_ext <<_ACEOF
3528 cat confdefs.h >>conftest.$ac_ext
3529 cat >>conftest.$ac_ext <<_ACEOF
3530 /* end confdefs.h. */
3543 rm -f conftest.$ac_objext
3544 if { (ac_try="$ac_compile"
3546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547 *) ac_try_echo=$ac_try;;
3549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3550 (eval "$ac_compile") 2>conftest.er1
3552 grep -v '^ *+' conftest.er1 >conftest.err
3554 cat conftest.err >&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); } && {
3557 test -z "$ac_c_werror_flag" ||
3558 test ! -s conftest.err
3559 } && test -s conftest.$ac_objext; then
3562 echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3572 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3573 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3574 GCC=`test $ac_compiler_gnu = yes && echo yes`
3575 ac_test_CFLAGS=${CFLAGS+set}
3576 ac_save_CFLAGS=$CFLAGS
3577 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3578 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3579 if test "${ac_cv_prog_cc_g+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 ac_save_c_werror_flag=$ac_c_werror_flag
3583 ac_c_werror_flag=yes
3586 cat >conftest.$ac_ext <<_ACEOF
3589 cat confdefs.h >>conftest.$ac_ext
3590 cat >>conftest.$ac_ext <<_ACEOF
3591 /* end confdefs.h. */
3601 rm -f conftest.$ac_objext
3602 if { (ac_try="$ac_compile"
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608 (eval "$ac_compile") 2>conftest.er1
3610 grep -v '^ *+' conftest.er1 >conftest.err
3612 cat conftest.err >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); } && {
3615 test -z "$ac_c_werror_flag" ||
3616 test ! -s conftest.err
3617 } && test -s conftest.$ac_objext; then
3620 echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3624 cat >conftest.$ac_ext <<_ACEOF
3627 cat confdefs.h >>conftest.$ac_ext
3628 cat >>conftest.$ac_ext <<_ACEOF
3629 /* end confdefs.h. */
3639 rm -f conftest.$ac_objext
3640 if { (ac_try="$ac_compile"
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3646 (eval "$ac_compile") 2>conftest.er1
3648 grep -v '^ *+' conftest.er1 >conftest.err
3650 cat conftest.err >&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } && {
3653 test -z "$ac_c_werror_flag" ||
3654 test ! -s conftest.err
3655 } && test -s conftest.$ac_objext; then
3658 echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3661 ac_c_werror_flag=$ac_save_c_werror_flag
3663 cat >conftest.$ac_ext <<_ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h. */
3678 rm -f conftest.$ac_objext
3679 if { (ac_try="$ac_compile"
3681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682 *) ac_try_echo=$ac_try;;
3684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3685 (eval "$ac_compile") 2>conftest.er1
3687 grep -v '^ *+' conftest.er1 >conftest.err
3689 cat conftest.err >&5
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); } && {
3692 test -z "$ac_c_werror_flag" ||
3693 test ! -s conftest.err
3694 } && test -s conftest.$ac_objext; then
3697 echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3710 ac_c_werror_flag=$ac_save_c_werror_flag
3712 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3713 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3714 if test "$ac_test_CFLAGS" = set; then
3715 CFLAGS=$ac_save_CFLAGS
3716 elif test $ac_cv_prog_cc_g = yes; then
3717 if test "$GCC" = yes; then
3723 if test "$GCC" = yes; then
3729 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3730 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3731 if test "${ac_cv_prog_cc_c89+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3734 ac_cv_prog_cc_c89=no
3736 cat >conftest.$ac_ext <<_ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3744 #include <sys/types.h>
3745 #include <sys/stat.h>
3746 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3747 struct buf { int x; };
3748 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3749 static char *e (p, i)
3755 static char *f (char * (*g) (char **, int), char **p, ...)
3760 s = g (p, va_arg (v,int));
3765 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3766 function prototypes and stuff, but not '\xHH' hex character constants.
3767 These don't provoke an error unfortunately, instead are silently treated
3768 as 'x'. The following induces an error, until -std is added to get
3769 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3770 array size at least. It's necessary to write '\x00'==0 to get something
3771 that's true only with -std. */
3772 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3774 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3775 inside strings and character constants. */
3777 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3779 int test (int i, double x);
3780 struct s1 {int (*f) (int a);};
3781 struct s2 {int (*f) (double a);};
3782 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3788 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3793 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3794 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3796 CC="$ac_save_CC $ac_arg"
3797 rm -f conftest.$ac_objext
3798 if { (ac_try="$ac_compile"
3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3804 (eval "$ac_compile") 2>conftest.er1
3806 grep -v '^ *+' conftest.er1 >conftest.err
3808 cat conftest.err >&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); } && {
3811 test -z "$ac_c_werror_flag" ||
3812 test ! -s conftest.err
3813 } && test -s conftest.$ac_objext; then
3814 ac_cv_prog_cc_c89=$ac_arg
3816 echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3822 rm -f core conftest.err conftest.$ac_objext
3823 test "x$ac_cv_prog_cc_c89" != "xno" && break
3825 rm -f conftest.$ac_ext
3830 case "x$ac_cv_prog_cc_c89" in
3832 { echo "$as_me:$LINENO: result: none needed" >&5
3833 echo "${ECHO_T}none needed" >&6; } ;;
3835 { echo "$as_me:$LINENO: result: unsupported" >&5
3836 echo "${ECHO_T}unsupported" >&6; } ;;
3838 CC="$CC $ac_cv_prog_cc_c89"
3839 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3840 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3845 ac_cpp='$CPP $CPPFLAGS'
3846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3850 depcc="$CC" am_compiler_list=
3852 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3853 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3854 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3858 # We make a subdir and do the tests there. Otherwise we can end up
3859 # making bogus files that we don't know about and never remove. For
3860 # instance it was reported that on HP-UX the gcc test will end up
3861 # making a dummy file named `D' -- because `-MD' means `put the output
3864 # Copy depcomp to subdir because otherwise we won't find it if we're
3865 # using a relative directory.
3866 cp "$am_depcomp" conftest.dir
3868 # We will build objects and dependencies in a subdirectory because
3869 # it helps to detect inapplicable dependency modes. For instance
3870 # both Tru64's cc and ICC support -MD to output dependencies as a
3871 # side effect of compilation, but ICC will put the dependencies in
3872 # the current directory while Tru64 will put them in the object
3876 am_cv_CC_dependencies_compiler_type=none
3877 if test "$am_compiler_list" = ""; then
3878 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3880 for depmode in $am_compiler_list; do
3881 # Setup a source with many dependencies, because some compilers
3882 # like to wrap large dependency lists on column 80 (with \), and
3883 # we should not choose a depcomp mode which is confused by this.
3885 # We need to recreate these files for each test, as the compiler may
3886 # overwrite some of them when testing with obscure command lines.
3887 # This happens at least with the AIX C compiler.
3889 for i in 1 2 3 4 5 6; do
3890 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3891 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3892 # Solaris 8's {/usr,}/bin/sh.
3893 touch sub/conftst$i.h
3895 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3899 # after this tag, mechanisms are not by side-effect, so they'll
3900 # only be used when explicitly requested
3901 if test "x$enable_dependency_tracking" = xyes; then
3909 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3910 # mode. It turns out that the SunPro C++ compiler does not properly
3911 # handle `-M -o', and we need to detect this.
3912 if depmode=$depmode \
3913 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3914 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3915 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3916 >/dev/null 2>conftest.err &&
3917 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3918 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3919 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3920 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3921 # icc doesn't choke on unknown options, it will just issue warnings
3922 # or remarks (even with -Werror). So we grep stderr for any message
3923 # that says an option was ignored or not supported.
3924 # When given -MP, icc 7.0 and 7.1 complain thusly:
3925 # icc: Command line warning: ignoring option '-M'; no argument required
3926 # The diagnosis changed in icc 8.0:
3927 # icc: Command line remark: option '-MP' not supported
3928 if (grep 'ignoring option' conftest.err ||
3929 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3930 am_cv_CC_dependencies_compiler_type=$depmode
3939 am_cv_CC_dependencies_compiler_type=none
3943 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3944 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3945 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3948 test "x$enable_dependency_tracking" != xno \
3949 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3951 am__fastdepCC_FALSE='#'
3953 am__fastdepCC_TRUE='#'
3954 am__fastdepCC_FALSE=
3958 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3959 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3960 if test "${lt_cv_path_SED+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 # Loop through the user's path and test for sed and gsed.
3964 # Then use that list of sed's as ones to test for truncation.
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 test -z "$as_dir" && as_dir=.
3970 for lt_ac_prog in sed gsed; do
3971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3973 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3980 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3981 # along with /bin/sed that truncates output.
3982 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3983 test ! -f $lt_ac_sed && continue
3984 cat /dev/null > conftest.in
3986 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3987 # Check for GNU sed and select it if it is found.
3988 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3989 lt_cv_path_SED=$lt_ac_sed
3993 cat conftest.in conftest.in >conftest.tmp
3994 mv conftest.tmp conftest.in
3995 cp conftest.in conftest.nl
3997 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3998 cmp -s conftest.out conftest.nl || break
3999 # 10000 chars as input seems more than enough
4000 test $lt_ac_count -gt 10 && break
4001 lt_ac_count=`expr $lt_ac_count + 1`
4002 if test $lt_ac_count -gt $lt_ac_max; then
4003 lt_ac_max=$lt_ac_count
4004 lt_cv_path_SED=$lt_ac_sed
4012 { echo "$as_me:$LINENO: result: $SED" >&5
4013 echo "${ECHO_T}$SED" >&6; }
4015 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4016 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4017 if test "${ac_cv_path_GREP+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 # Extract the first word of "grep ggrep" to use in msg output
4021 if test -z "$GREP"; then
4022 set dummy grep ggrep; ac_prog_name=$2
4023 if test "${ac_cv_path_GREP+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4026 ac_path_GREP_found=false
4027 # Loop through the user's path and test for each of PROGNAME-LIST
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4032 test -z "$as_dir" && as_dir=.
4033 for ac_prog in grep ggrep; do
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4036 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4037 # Check for GNU ac_path_GREP and select it if it is found.
4038 # Check for GNU $ac_path_GREP
4039 case `"$ac_path_GREP" --version 2>&1` in
4041 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4044 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4047 cat "conftest.in" "conftest.in" >"conftest.tmp"
4048 mv "conftest.tmp" "conftest.in"
4049 cp "conftest.in" "conftest.nl"
4050 echo 'GREP' >> "conftest.nl"
4051 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4052 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4053 ac_count=`expr $ac_count + 1`
4054 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4055 # Best one so far, save it but keep looking for a better one
4056 ac_cv_path_GREP="$ac_path_GREP"
4057 ac_path_GREP_max=$ac_count
4059 # 10*(2^10) chars as input seems more than enough
4060 test $ac_count -gt 10 && break
4062 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4066 $ac_path_GREP_found && break 3
4076 GREP="$ac_cv_path_GREP"
4077 if test -z "$GREP"; then
4078 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4079 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4080 { (exit 1); exit 1; }; }
4084 ac_cv_path_GREP=$GREP
4089 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4090 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4091 GREP="$ac_cv_path_GREP"
4094 { echo "$as_me:$LINENO: checking for egrep" >&5
4095 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4096 if test "${ac_cv_path_EGREP+set}" = set; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4099 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4100 then ac_cv_path_EGREP="$GREP -E"
4102 # Extract the first word of "egrep" to use in msg output
4103 if test -z "$EGREP"; then
4104 set dummy egrep; ac_prog_name=$2
4105 if test "${ac_cv_path_EGREP+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4108 ac_path_EGREP_found=false
4109 # Loop through the user's path and test for each of PROGNAME-LIST
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4114 test -z "$as_dir" && as_dir=.
4115 for ac_prog in egrep; do
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4118 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4119 # Check for GNU ac_path_EGREP and select it if it is found.
4120 # Check for GNU $ac_path_EGREP
4121 case `"$ac_path_EGREP" --version 2>&1` in
4123 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4126 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4129 cat "conftest.in" "conftest.in" >"conftest.tmp"
4130 mv "conftest.tmp" "conftest.in"
4131 cp "conftest.in" "conftest.nl"
4132 echo 'EGREP' >> "conftest.nl"
4133 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4134 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4135 ac_count=`expr $ac_count + 1`
4136 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4137 # Best one so far, save it but keep looking for a better one
4138 ac_cv_path_EGREP="$ac_path_EGREP"
4139 ac_path_EGREP_max=$ac_count
4141 # 10*(2^10) chars as input seems more than enough
4142 test $ac_count -gt 10 && break
4144 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4148 $ac_path_EGREP_found && break 3
4158 EGREP="$ac_cv_path_EGREP"
4159 if test -z "$EGREP"; then
4160 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4161 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4162 { (exit 1); exit 1; }; }
4166 ac_cv_path_EGREP=$EGREP
4172 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4173 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4174 EGREP="$ac_cv_path_EGREP"
4178 # Check whether --with-gnu-ld was given.
4179 if test "${with_gnu_ld+set}" = set; then
4180 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4186 if test "$GCC" = yes; then
4187 # Check if gcc -print-prog-name=ld gives a path.
4188 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4189 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4192 # gcc leaves a trailing carriage return which upsets mingw
4193 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4195 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4198 # Accept absolute paths.
4200 re_direlt='/[^/][^/]*/\.\./'
4201 # Canonicalize the pathname of ld
4202 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4203 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4204 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4206 test -z "$LD" && LD="$ac_prog"
4209 # If it fails, then pretend we aren't using GCC.
4213 # If it is relative, then search for the first ld in PATH.
4217 elif test "$with_gnu_ld" = yes; then
4218 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4219 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4221 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4222 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4224 if test "${lt_cv_path_LD+set}" = set; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 if test -z "$LD"; then
4228 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4229 for ac_dir in $PATH; do
4231 test -z "$ac_dir" && ac_dir=.
4232 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4233 lt_cv_path_LD="$ac_dir/$ac_prog"
4234 # Check to see if the program is GNU ld. I'd rather use --version,
4235 # but apparently some variants of GNU ld only accept -v.
4236 # Break only if it was the GNU/non-GNU ld that we prefer.
4237 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4238 *GNU* | *'with BFD'*)
4239 test "$with_gnu_ld" != no && break
4242 test "$with_gnu_ld" != yes && break
4249 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4254 if test -n "$LD"; then
4255 { echo "$as_me:$LINENO: result: $LD" >&5
4256 echo "${ECHO_T}$LD" >&6; }
4258 { echo "$as_me:$LINENO: result: no" >&5
4259 echo "${ECHO_T}no" >&6; }
4261 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4262 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4263 { (exit 1); exit 1; }; }
4264 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4265 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4266 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4270 case `$LD -v 2>&1 </dev/null` in
4271 *GNU* | *'with BFD'*)
4272 lt_cv_prog_gnu_ld=yes
4275 lt_cv_prog_gnu_ld=no
4279 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4280 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4281 with_gnu_ld=$lt_cv_prog_gnu_ld
4284 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4285 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4286 if test "${lt_cv_ld_reload_flag+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 lt_cv_ld_reload_flag='-r'
4291 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4292 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4293 reload_flag=$lt_cv_ld_reload_flag
4294 case $reload_flag in
4296 *) reload_flag=" $reload_flag" ;;
4298 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4301 if test "$GCC" = yes; then
4302 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4304 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4309 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4310 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4311 if test "${lt_cv_path_NM+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 if test -n "$NM"; then
4315 # Let the user override the test.
4318 lt_nm_to_check="${ac_tool_prefix}nm"
4319 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4320 lt_nm_to_check="$lt_nm_to_check nm"
4322 for lt_tmp_nm in $lt_nm_to_check; do
4323 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4324 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4326 test -z "$ac_dir" && ac_dir=.
4327 tmp_nm="$ac_dir/$lt_tmp_nm"
4328 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4329 # Check to see if the nm accepts a BSD-compat flag.
4330 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4331 # nm: unknown option "B" ignored
4332 # Tru64's nm complains that /dev/null is an invalid object file
4333 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4334 */dev/null* | *'Invalid file or object type'*)
4335 lt_cv_path_NM="$tmp_nm -B"
4339 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4341 lt_cv_path_NM="$tmp_nm -p"
4345 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4346 continue # so that we can try to find one that supports BSD flags
4355 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4358 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4359 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4362 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4363 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4365 if test "$LN_S" = "ln -s"; then
4366 { echo "$as_me:$LINENO: result: yes" >&5
4367 echo "${ECHO_T}yes" >&6; }
4369 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4370 echo "${ECHO_T}no, using $LN_S" >&6; }
4373 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4374 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4375 if test "${lt_cv_deplibs_check_method+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
4378 lt_cv_file_magic_cmd='$MAGIC_CMD'
4379 lt_cv_file_magic_test_file=
4380 lt_cv_deplibs_check_method='unknown'
4381 # Need to set the preceding variable on all platforms that support
4382 # interlibrary dependencies.
4383 # 'none' -- dependencies not supported.
4384 # `unknown' -- same as none, but documents that we really don't know.
4385 # 'pass_all' -- all dependencies passed with no checks.
4386 # 'test_compile' -- check by making test program.
4387 # 'file_magic [[regex]]' -- check by looking for files in library path
4388 # which responds to the $file_magic_cmd with a given extended regex.
4389 # If you have `file' or equivalent on your system and you're not sure
4390 # whether `pass_all' will *always* work, you probably want this one.
4394 lt_cv_deplibs_check_method=pass_all
4398 lt_cv_deplibs_check_method=pass_all
4402 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4403 lt_cv_file_magic_cmd='/usr/bin/file -L'
4404 lt_cv_file_magic_test_file=/shlib/libc.so
4408 # func_win32_libid is a shell function defined in ltmain.sh
4409 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4410 lt_cv_file_magic_cmd='func_win32_libid'
4414 # Base MSYS/MinGW do not provide the 'file' command needed by
4415 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4416 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4417 lt_cv_file_magic_cmd='$OBJDUMP -f'
4420 darwin* | rhapsody*)
4421 lt_cv_deplibs_check_method=pass_all
4424 freebsd* | dragonfly*)
4425 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4428 # Not sure whether the presence of OpenBSD here was a mistake.
4429 # Let's accept both of them until this is cleared up.
4430 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4431 lt_cv_file_magic_cmd=/usr/bin/file
4432 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4436 lt_cv_deplibs_check_method=pass_all
4441 lt_cv_deplibs_check_method=pass_all
4444 hpux10.20* | hpux11*)
4445 lt_cv_file_magic_cmd=/usr/bin/file
4448 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4449 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4452 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]'
4453 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4456 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4457 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4463 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4464 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4467 irix5* | irix6* | nonstopux*)
4469 *-32|*"-32 ") libmagic=32-bit;;
4470 *-n32|*"-n32 ") libmagic=N32;;
4471 *-64|*"-64 ") libmagic=64-bit;;
4472 *) libmagic=never-match;;
4474 lt_cv_deplibs_check_method=pass_all
4477 # This must be Linux ELF.
4478 linux* | k*bsd*-gnu)
4479 lt_cv_deplibs_check_method=pass_all
4482 netbsd* | netbsdelf*-gnu)
4483 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4484 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4486 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4491 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4492 lt_cv_file_magic_cmd=/usr/bin/file
4493 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4497 lt_cv_deplibs_check_method=unknown
4501 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4502 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4504 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4508 osf3* | osf4* | osf5*)
4509 lt_cv_deplibs_check_method=pass_all
4513 lt_cv_deplibs_check_method=pass_all
4517 case $host_vendor in
4519 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]'
4520 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4523 lt_cv_deplibs_check_method=pass_all
4526 lt_cv_file_magic_cmd='/bin/file'
4527 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4530 lt_cv_file_magic_cmd='/bin/file'
4531 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4532 lt_cv_file_magic_test_file=/lib/libc.so
4535 lt_cv_deplibs_check_method=pass_all
4538 lt_cv_deplibs_check_method=pass_all
4543 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4544 lt_cv_deplibs_check_method=pass_all
4549 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4550 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4551 file_magic_cmd=$lt_cv_file_magic_cmd
4552 deplibs_check_method=$lt_cv_deplibs_check_method
4553 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4558 # If no C compiler was specified, use CC.
4561 # If no C compiler flags were specified, use CFLAGS.
4562 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4564 # Allow CC to be a program name with arguments.
4568 # Check whether --enable-libtool-lock was given.
4569 if test "${enable_libtool_lock+set}" = set; then
4570 enableval=$enable_libtool_lock;
4573 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4575 # Some flags need to be propagated to the compiler or linker for good
4579 # Find out which ABI we are using.
4580 echo 'int i;' > conftest.$ac_ext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582 (eval $ac_compile) 2>&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; then
4586 case `/usr/bin/file conftest.$ac_objext` in
4598 # Find out which ABI we are using.
4599 echo '#line 4599 "configure"' > conftest.$ac_ext
4600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4601 (eval $ac_compile) 2>&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; then
4605 if test "$lt_cv_prog_gnu_ld" = yes; then
4606 case `/usr/bin/file conftest.$ac_objext` in
4608 LD="${LD-ld} -melf32bsmip"
4611 LD="${LD-ld} -melf32bmipn32"
4614 LD="${LD-ld} -melf64bmip"
4618 case `/usr/bin/file conftest.$ac_objext` in
4634 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4635 # Find out which ABI we are using.
4636 echo 'int i;' > conftest.$ac_ext
4637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4638 (eval $ac_compile) 2>&5
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); }; then
4642 case `/usr/bin/file conftest.o` in
4646 LD="${LD-ld} -m elf_i386"
4648 ppc64-*linux*|powerpc64-*linux*)
4649 LD="${LD-ld} -m elf32ppclinux"
4652 LD="${LD-ld} -m elf_s390"
4655 LD="${LD-ld} -m elf32_sparc"
4662 LD="${LD-ld} -m elf_x86_64"
4664 ppc*-*linux*|powerpc*-*linux*)
4665 LD="${LD-ld} -m elf64ppc"
4668 LD="${LD-ld} -m elf64_s390"
4671 LD="${LD-ld} -m elf64_sparc"
4681 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4682 SAVE_CFLAGS="$CFLAGS"
4683 CFLAGS="$CFLAGS -belf"
4684 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4685 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4686 if test "${lt_cv_cc_needs_belf+set}" = set; then
4687 echo $ECHO_N "(cached) $ECHO_C" >&6
4690 ac_cpp='$CPP $CPPFLAGS'
4691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4695 cat >conftest.$ac_ext <<_ACEOF
4698 cat confdefs.h >>conftest.$ac_ext
4699 cat >>conftest.$ac_ext <<_ACEOF
4700 /* end confdefs.h. */
4710 rm -f conftest.$ac_objext conftest$ac_exeext
4711 if { (ac_try="$ac_link"
4713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4714 *) ac_try_echo=$ac_try;;
4716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4717 (eval "$ac_link") 2>conftest.er1
4719 grep -v '^ *+' conftest.er1 >conftest.err
4721 cat conftest.err >&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } && {
4724 test -z "$ac_c_werror_flag" ||
4725 test ! -s conftest.err
4726 } && test -s conftest$ac_exeext &&
4727 $as_test_x conftest$ac_exeext; then
4728 lt_cv_cc_needs_belf=yes
4730 echo "$as_me: failed program was:" >&5
4731 sed 's/^/| /' conftest.$ac_ext >&5
4733 lt_cv_cc_needs_belf=no
4736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4737 conftest$ac_exeext conftest.$ac_ext
4739 ac_cpp='$CPP $CPPFLAGS'
4740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4745 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4746 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4747 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4748 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4749 CFLAGS="$SAVE_CFLAGS"
4753 # Find out which ABI we are using.
4754 echo 'int i;' > conftest.$ac_ext
4755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4756 (eval $ac_compile) 2>&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }; then
4760 case `/usr/bin/file conftest.o` in
4762 case $lt_cv_prog_gnu_ld in
4763 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4764 *) LD="${LD-ld} -64" ;;
4772 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4773 if test -n "$ac_tool_prefix"; then
4774 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4775 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4778 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4781 if test -n "$DLLTOOL"; then
4782 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 DLLTOOL=$ac_cv_prog_DLLTOOL
4802 if test -n "$DLLTOOL"; then
4803 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4804 echo "${ECHO_T}$DLLTOOL" >&6; }
4806 { echo "$as_me:$LINENO: result: no" >&5
4807 echo "${ECHO_T}no" >&6; }
4812 if test -z "$ac_cv_prog_DLLTOOL"; then
4813 ac_ct_DLLTOOL=$DLLTOOL
4814 # Extract the first word of "dlltool", so it can be a program name with args.
4815 set dummy dlltool; ac_word=$2
4816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4818 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4821 if test -n "$ac_ct_DLLTOOL"; then
4822 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4841 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4842 if test -n "$ac_ct_DLLTOOL"; then
4843 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4844 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4846 { echo "$as_me:$LINENO: result: no" >&5
4847 echo "${ECHO_T}no" >&6; }
4850 if test "x$ac_ct_DLLTOOL" = x; then
4853 case $cross_compiling:$ac_tool_warned in
4855 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4856 whose name does not start with the host triplet. If you think this
4857 configuration is useful to you, please write to autoconf@gnu.org." >&5
4858 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4859 whose name does not start with the host triplet. If you think this
4860 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4861 ac_tool_warned=yes ;;
4863 DLLTOOL=$ac_ct_DLLTOOL
4866 DLLTOOL="$ac_cv_prog_DLLTOOL"
4869 if test -n "$ac_tool_prefix"; then
4870 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4871 set dummy ${ac_tool_prefix}as; ac_word=$2
4872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4874 if test "${ac_cv_prog_AS+set}" = set; then
4875 echo $ECHO_N "(cached) $ECHO_C" >&6
4877 if test -n "$AS"; then
4878 ac_cv_prog_AS="$AS" # Let the user override the test.
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884 test -z "$as_dir" && as_dir=.
4885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4887 ac_cv_prog_AS="${ac_tool_prefix}as"
4888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4898 if test -n "$AS"; then
4899 { echo "$as_me:$LINENO: result: $AS" >&5
4900 echo "${ECHO_T}$AS" >&6; }
4902 { echo "$as_me:$LINENO: result: no" >&5
4903 echo "${ECHO_T}no" >&6; }
4908 if test -z "$ac_cv_prog_AS"; then
4910 # Extract the first word of "as", so it can be a program name with args.
4911 set dummy as; ac_word=$2
4912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4914 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4917 if test -n "$ac_ct_AS"; then
4918 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 test -z "$as_dir" && as_dir=.
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4927 ac_cv_prog_ac_ct_AS="as"
4928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4938 if test -n "$ac_ct_AS"; then
4939 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4940 echo "${ECHO_T}$ac_ct_AS" >&6; }
4942 { echo "$as_me:$LINENO: result: no" >&5
4943 echo "${ECHO_T}no" >&6; }
4946 if test "x$ac_ct_AS" = x; then
4949 case $cross_compiling:$ac_tool_warned in
4951 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4952 whose name does not start with the host triplet. If you think this
4953 configuration is useful to you, please write to autoconf@gnu.org." >&5
4954 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4955 whose name does not start with the host triplet. If you think this
4956 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4957 ac_tool_warned=yes ;;
4965 if test -n "$ac_tool_prefix"; then
4966 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4967 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4970 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4971 echo $ECHO_N "(cached) $ECHO_C" >&6
4973 if test -n "$OBJDUMP"; then
4974 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4983 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4993 OBJDUMP=$ac_cv_prog_OBJDUMP
4994 if test -n "$OBJDUMP"; then
4995 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4996 echo "${ECHO_T}$OBJDUMP" >&6; }
4998 { echo "$as_me:$LINENO: result: no" >&5
4999 echo "${ECHO_T}no" >&6; }
5004 if test -z "$ac_cv_prog_OBJDUMP"; then
5005 ac_ct_OBJDUMP=$OBJDUMP
5006 # Extract the first word of "objdump", so it can be a program name with args.
5007 set dummy objdump; ac_word=$2
5008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5010 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 if test -n "$ac_ct_OBJDUMP"; then
5014 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 test -z "$as_dir" && as_dir=.
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5023 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5033 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5034 if test -n "$ac_ct_OBJDUMP"; then
5035 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5036 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5038 { echo "$as_me:$LINENO: result: no" >&5
5039 echo "${ECHO_T}no" >&6; }
5042 if test "x$ac_ct_OBJDUMP" = x; then
5045 case $cross_compiling:$ac_tool_warned in
5047 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5048 whose name does not start with the host triplet. If you think this
5049 configuration is useful to you, please write to autoconf@gnu.org." >&5
5050 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5051 whose name does not start with the host triplet. If you think this
5052 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5053 ac_tool_warned=yes ;;
5055 OBJDUMP=$ac_ct_OBJDUMP
5058 OBJDUMP="$ac_cv_prog_OBJDUMP"
5065 need_locks="$enable_libtool_lock"
5069 ac_cpp='$CPP $CPPFLAGS'
5070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5073 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5074 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5075 # On Suns, sometimes $CPP names a directory.
5076 if test -n "$CPP" && test -d "$CPP"; then
5079 if test -z "$CPP"; then
5080 if test "${ac_cv_prog_CPP+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 # Double quotes because CPP needs to be expanded
5084 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5087 for ac_c_preproc_warn_flag in '' yes
5089 # Use a header file that comes with gcc, so configuring glibc
5090 # with a fresh cross-compiler works.
5091 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5092 # <limits.h> exists even on freestanding compilers.
5093 # On the NeXT, cc -E runs the code through the compiler's parser,
5094 # not just through cpp. "Syntax error" is here to catch this case.
5095 cat >conftest.$ac_ext <<_ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h. */
5102 # include <limits.h>
5104 # include <assert.h>
5108 if { (ac_try="$ac_cpp conftest.$ac_ext"
5110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5111 *) ac_try_echo=$ac_try;;
5113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5116 grep -v '^ *+' conftest.er1 >conftest.err
5118 cat conftest.err >&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); } >/dev/null && {
5121 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5122 test ! -s conftest.err
5126 echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5129 # Broken: fails on valid input.
5133 rm -f conftest.err conftest.$ac_ext
5135 # OK, works on sane cases. Now check whether nonexistent headers
5136 # can be detected and how.
5137 cat >conftest.$ac_ext <<_ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h. */
5143 #include <ac_nonexistent.h>
5145 if { (ac_try="$ac_cpp conftest.$ac_ext"
5147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5148 *) ac_try_echo=$ac_try;;
5150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5151 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5153 grep -v '^ *+' conftest.er1 >conftest.err
5155 cat conftest.err >&5
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); } >/dev/null && {
5158 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5159 test ! -s conftest.err
5161 # Broken: success on invalid input.
5164 echo "$as_me: failed program was:" >&5
5165 sed 's/^/| /' conftest.$ac_ext >&5
5167 # Passes both tests.
5172 rm -f conftest.err conftest.$ac_ext
5175 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5176 rm -f conftest.err conftest.$ac_ext
5177 if $ac_preproc_ok; then
5189 { echo "$as_me:$LINENO: result: $CPP" >&5
5190 echo "${ECHO_T}$CPP" >&6; }
5192 for ac_c_preproc_warn_flag in '' yes
5194 # Use a header file that comes with gcc, so configuring glibc
5195 # with a fresh cross-compiler works.
5196 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5197 # <limits.h> exists even on freestanding compilers.
5198 # On the NeXT, cc -E runs the code through the compiler's parser,
5199 # not just through cpp. "Syntax error" is here to catch this case.
5200 cat >conftest.$ac_ext <<_ACEOF
5203 cat confdefs.h >>conftest.$ac_ext
5204 cat >>conftest.$ac_ext <<_ACEOF
5205 /* end confdefs.h. */
5207 # include <limits.h>
5209 # include <assert.h>
5213 if { (ac_try="$ac_cpp conftest.$ac_ext"
5215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5216 *) ac_try_echo=$ac_try;;
5218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5221 grep -v '^ *+' conftest.er1 >conftest.err
5223 cat conftest.err >&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); } >/dev/null && {
5226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5227 test ! -s conftest.err
5231 echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.$ac_ext >&5
5234 # Broken: fails on valid input.
5238 rm -f conftest.err conftest.$ac_ext
5240 # OK, works on sane cases. Now check whether nonexistent headers
5241 # can be detected and how.
5242 cat >conftest.$ac_ext <<_ACEOF
5245 cat confdefs.h >>conftest.$ac_ext
5246 cat >>conftest.$ac_ext <<_ACEOF
5247 /* end confdefs.h. */
5248 #include <ac_nonexistent.h>
5250 if { (ac_try="$ac_cpp conftest.$ac_ext"
5252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253 *) ac_try_echo=$ac_try;;
5255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5258 grep -v '^ *+' conftest.er1 >conftest.err
5260 cat conftest.err >&5
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); } >/dev/null && {
5263 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5264 test ! -s conftest.err
5266 # Broken: success on invalid input.
5269 echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5272 # Passes both tests.
5277 rm -f conftest.err conftest.$ac_ext
5280 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5281 rm -f conftest.err conftest.$ac_ext
5282 if $ac_preproc_ok; then
5285 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5286 See \`config.log' for more details." >&5
5287 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5288 See \`config.log' for more details." >&2;}
5289 { (exit 1); exit 1; }; }
5293 ac_cpp='$CPP $CPPFLAGS'
5294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5299 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5300 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5301 if test "${ac_cv_header_stdc+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5304 cat >conftest.$ac_ext <<_ACEOF
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h. */
5323 rm -f conftest.$ac_objext
5324 if { (ac_try="$ac_compile"
5326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5327 *) ac_try_echo=$ac_try;;
5329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5330 (eval "$ac_compile") 2>conftest.er1
5332 grep -v '^ *+' conftest.er1 >conftest.err
5334 cat conftest.err >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } && {
5337 test -z "$ac_c_werror_flag" ||
5338 test ! -s conftest.err
5339 } && test -s conftest.$ac_objext; then
5340 ac_cv_header_stdc=yes
5342 echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.$ac_ext >&5
5345 ac_cv_header_stdc=no
5348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5350 if test $ac_cv_header_stdc = yes; then
5351 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5352 cat >conftest.$ac_ext <<_ACEOF
5355 cat confdefs.h >>conftest.$ac_ext
5356 cat >>conftest.$ac_ext <<_ACEOF
5357 /* end confdefs.h. */
5361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5362 $EGREP "memchr" >/dev/null 2>&1; then
5365 ac_cv_header_stdc=no
5371 if test $ac_cv_header_stdc = yes; then
5372 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5373 cat >conftest.$ac_ext <<_ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h. */
5382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5383 $EGREP "free" >/dev/null 2>&1; then
5386 ac_cv_header_stdc=no
5392 if test $ac_cv_header_stdc = yes; then
5393 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5394 if test "$cross_compiling" = yes; then
5397 cat >conftest.$ac_ext <<_ACEOF
5400 cat confdefs.h >>conftest.$ac_ext
5401 cat >>conftest.$ac_ext <<_ACEOF
5402 /* end confdefs.h. */
5405 #if ((' ' & 0x0FF) == 0x020)
5406 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5407 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5409 # define ISLOWER(c) \
5410 (('a' <= (c) && (c) <= 'i') \
5411 || ('j' <= (c) && (c) <= 'r') \
5412 || ('s' <= (c) && (c) <= 'z'))
5413 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5416 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5421 for (i = 0; i < 256; i++)
5422 if (XOR (islower (i), ISLOWER (i))
5423 || toupper (i) != TOUPPER (i))
5428 rm -f conftest$ac_exeext
5429 if { (ac_try="$ac_link"
5431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432 *) ac_try_echo=$ac_try;;
5434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5435 (eval "$ac_link") 2>&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5439 { (case "(($ac_try" in
5440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441 *) ac_try_echo=$ac_try;;
5443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444 (eval "$ac_try") 2>&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; }; then
5450 echo "$as_me: program exited with status $ac_status" >&5
5451 echo "$as_me: failed program was:" >&5
5452 sed 's/^/| /' conftest.$ac_ext >&5
5455 ac_cv_header_stdc=no
5457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5463 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5464 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5465 if test $ac_cv_header_stdc = yes; then
5467 cat >>confdefs.h <<\_ACEOF
5468 #define STDC_HEADERS 1
5473 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5483 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5484 inttypes.h stdint.h unistd.h
5486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5490 echo $ECHO_N "(cached) $ECHO_C" >&6
5492 cat >conftest.$ac_ext <<_ACEOF
5495 cat confdefs.h >>conftest.$ac_ext
5496 cat >>conftest.$ac_ext <<_ACEOF
5497 /* end confdefs.h. */
5498 $ac_includes_default
5500 #include <$ac_header>
5502 rm -f conftest.$ac_objext
5503 if { (ac_try="$ac_compile"
5505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506 *) ac_try_echo=$ac_try;;
5508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509 (eval "$ac_compile") 2>conftest.er1
5511 grep -v '^ *+' conftest.er1 >conftest.err
5513 cat conftest.err >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); } && {
5516 test -z "$ac_c_werror_flag" ||
5517 test ! -s conftest.err
5518 } && test -s conftest.$ac_objext; then
5519 eval "$as_ac_Header=yes"
5521 echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5524 eval "$as_ac_Header=no"
5527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5529 ac_res=`eval echo '${'$as_ac_Header'}'`
5530 { echo "$as_me:$LINENO: result: $ac_res" >&5
5531 echo "${ECHO_T}$ac_res" >&6; }
5532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5533 cat >>confdefs.h <<_ACEOF
5534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5543 for ac_header in dlfcn.h
5545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 ac_res=`eval echo '${'$as_ac_Header'}'`
5553 { echo "$as_me:$LINENO: result: $ac_res" >&5
5554 echo "${ECHO_T}$ac_res" >&6; }
5556 # Is the header compilable?
5557 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5559 cat >conftest.$ac_ext <<_ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h. */
5565 $ac_includes_default
5566 #include <$ac_header>
5568 rm -f conftest.$ac_objext
5569 if { (ac_try="$ac_compile"
5571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572 *) ac_try_echo=$ac_try;;
5574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575 (eval "$ac_compile") 2>conftest.er1
5577 grep -v '^ *+' conftest.er1 >conftest.err
5579 cat conftest.err >&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } && {
5582 test -z "$ac_c_werror_flag" ||
5583 test ! -s conftest.err
5584 } && test -s conftest.$ac_objext; then
5585 ac_header_compiler=yes
5587 echo "$as_me: failed program was:" >&5
5588 sed 's/^/| /' conftest.$ac_ext >&5
5590 ac_header_compiler=no
5593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5595 echo "${ECHO_T}$ac_header_compiler" >&6; }
5597 # Is the header present?
5598 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5600 cat >conftest.$ac_ext <<_ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h. */
5606 #include <$ac_header>
5608 if { (ac_try="$ac_cpp conftest.$ac_ext"
5610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5611 *) ac_try_echo=$ac_try;;
5613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5616 grep -v '^ *+' conftest.er1 >conftest.err
5618 cat conftest.err >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } >/dev/null && {
5621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5622 test ! -s conftest.err
5624 ac_header_preproc=yes
5626 echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.$ac_ext >&5
5629 ac_header_preproc=no
5632 rm -f conftest.err conftest.$ac_ext
5633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5634 echo "${ECHO_T}$ac_header_preproc" >&6; }
5636 # So? What about this header?
5637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5639 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5640 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5642 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5643 ac_header_preproc=yes
5646 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5648 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5649 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5650 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5651 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5652 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5653 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5656 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5657 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5659 ## -------------------------------------------------- ##
5660 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
5661 ## -------------------------------------------------- ##
5663 ) | sed "s/^/$as_me: WARNING: /" >&2
5666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5671 eval "$as_ac_Header=\$ac_header_preproc"
5673 ac_res=`eval echo '${'$as_ac_Header'}'`
5674 { echo "$as_me:$LINENO: result: $ac_res" >&5
5675 echo "${ECHO_T}$ac_res" >&6; }
5678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5679 cat >>confdefs.h <<_ACEOF
5680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5688 ac_cpp='$CXXCPP $CPPFLAGS'
5689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5692 if test -z "$CXX"; then
5693 if test -n "$CCC"; then
5696 if test -n "$ac_tool_prefix"; then
5697 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5699 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5700 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5703 if test "${ac_cv_prog_CXX+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5706 if test -n "$CXX"; then
5707 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 test -z "$as_dir" && as_dir=.
5714 for ac_exec_ext in '' $ac_executable_extensions; do
5715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5716 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5727 if test -n "$CXX"; then
5728 { echo "$as_me:$LINENO: result: $CXX" >&5
5729 echo "${ECHO_T}$CXX" >&6; }
5731 { echo "$as_me:$LINENO: result: no" >&5
5732 echo "${ECHO_T}no" >&6; }
5736 test -n "$CXX" && break
5739 if test -z "$CXX"; then
5741 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5743 # Extract the first word of "$ac_prog", so it can be a program name with args.
5744 set dummy $ac_prog; ac_word=$2
5745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5747 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 if test -n "$ac_ct_CXX"; then
5751 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 test -z "$as_dir" && as_dir=.
5758 for ac_exec_ext in '' $ac_executable_extensions; do
5759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5760 ac_cv_prog_ac_ct_CXX="$ac_prog"
5761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5770 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5771 if test -n "$ac_ct_CXX"; then
5772 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5773 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5775 { echo "$as_me:$LINENO: result: no" >&5
5776 echo "${ECHO_T}no" >&6; }
5780 test -n "$ac_ct_CXX" && break
5783 if test "x$ac_ct_CXX" = x; then
5786 case $cross_compiling:$ac_tool_warned in
5788 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5789 whose name does not start with the host triplet. If you think this
5790 configuration is useful to you, please write to autoconf@gnu.org." >&5
5791 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5792 whose name does not start with the host triplet. If you think this
5793 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5794 ac_tool_warned=yes ;;
5802 # Provide some information about the compiler.
5803 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5804 ac_compiler=`set X $ac_compile; echo $2`
5805 { (ac_try="$ac_compiler --version >&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 --version >&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); }
5825 { (ac_try="$ac_compiler -V >&5"
5827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5828 *) ac_try_echo=$ac_try;;
5830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5831 (eval "$ac_compiler -V >&5") 2>&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); }
5836 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5837 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5838 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5841 cat >conftest.$ac_ext <<_ACEOF
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h. */
5859 rm -f conftest.$ac_objext
5860 if { (ac_try="$ac_compile"
5862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863 *) ac_try_echo=$ac_try;;
5865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866 (eval "$ac_compile") 2>conftest.er1
5868 grep -v '^ *+' conftest.er1 >conftest.err
5870 cat conftest.err >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } && {
5873 test -z "$ac_cxx_werror_flag" ||
5874 test ! -s conftest.err
5875 } && test -s conftest.$ac_objext; then
5878 echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.$ac_ext >&5
5884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5885 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5888 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5889 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5890 GXX=`test $ac_compiler_gnu = yes && echo yes`
5891 ac_test_CXXFLAGS=${CXXFLAGS+set}
5892 ac_save_CXXFLAGS=$CXXFLAGS
5893 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5894 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5895 if test "${ac_cv_prog_cxx_g+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5898 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5899 ac_cxx_werror_flag=yes
5902 cat >conftest.$ac_ext <<_ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h. */
5917 rm -f conftest.$ac_objext
5918 if { (ac_try="$ac_compile"
5920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921 *) ac_try_echo=$ac_try;;
5923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924 (eval "$ac_compile") 2>conftest.er1
5926 grep -v '^ *+' conftest.er1 >conftest.err
5928 cat conftest.err >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } && {
5931 test -z "$ac_cxx_werror_flag" ||
5932 test ! -s conftest.err
5933 } && test -s conftest.$ac_objext; then
5934 ac_cv_prog_cxx_g=yes
5936 echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5940 cat >conftest.$ac_ext <<_ACEOF
5943 cat confdefs.h >>conftest.$ac_ext
5944 cat >>conftest.$ac_ext <<_ACEOF
5945 /* end confdefs.h. */
5955 rm -f conftest.$ac_objext
5956 if { (ac_try="$ac_compile"
5958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959 *) ac_try_echo=$ac_try;;
5961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5962 (eval "$ac_compile") 2>conftest.er1
5964 grep -v '^ *+' conftest.er1 >conftest.err
5966 cat conftest.err >&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); } && {
5969 test -z "$ac_cxx_werror_flag" ||
5970 test ! -s conftest.err
5971 } && test -s conftest.$ac_objext; then
5974 echo "$as_me: failed program was:" >&5
5975 sed 's/^/| /' conftest.$ac_ext >&5
5977 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5979 cat >conftest.$ac_ext <<_ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5994 rm -f conftest.$ac_objext
5995 if { (ac_try="$ac_compile"
5997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5998 *) ac_try_echo=$ac_try;;
6000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6001 (eval "$ac_compile") 2>conftest.er1
6003 grep -v '^ *+' conftest.er1 >conftest.err
6005 cat conftest.err >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } && {
6008 test -z "$ac_cxx_werror_flag" ||
6009 test ! -s conftest.err
6010 } && test -s conftest.$ac_objext; then
6011 ac_cv_prog_cxx_g=yes
6013 echo "$as_me: failed program was:" >&5
6014 sed 's/^/| /' conftest.$ac_ext >&5
6019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6026 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6028 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6029 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6030 if test "$ac_test_CXXFLAGS" = set; then
6031 CXXFLAGS=$ac_save_CXXFLAGS
6032 elif test $ac_cv_prog_cxx_g = yes; then
6033 if test "$GXX" = yes; then
6039 if test "$GXX" = yes; then
6046 ac_cpp='$CXXCPP $CPPFLAGS'
6047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6051 depcc="$CXX" am_compiler_list=
6053 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6054 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6055 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6059 # We make a subdir and do the tests there. Otherwise we can end up
6060 # making bogus files that we don't know about and never remove. For
6061 # instance it was reported that on HP-UX the gcc test will end up
6062 # making a dummy file named `D' -- because `-MD' means `put the output
6065 # Copy depcomp to subdir because otherwise we won't find it if we're
6066 # using a relative directory.
6067 cp "$am_depcomp" conftest.dir
6069 # We will build objects and dependencies in a subdirectory because
6070 # it helps to detect inapplicable dependency modes. For instance
6071 # both Tru64's cc and ICC support -MD to output dependencies as a
6072 # side effect of compilation, but ICC will put the dependencies in
6073 # the current directory while Tru64 will put them in the object
6077 am_cv_CXX_dependencies_compiler_type=none
6078 if test "$am_compiler_list" = ""; then
6079 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6081 for depmode in $am_compiler_list; do
6082 # Setup a source with many dependencies, because some compilers
6083 # like to wrap large dependency lists on column 80 (with \), and
6084 # we should not choose a depcomp mode which is confused by this.
6086 # We need to recreate these files for each test, as the compiler may
6087 # overwrite some of them when testing with obscure command lines.
6088 # This happens at least with the AIX C compiler.
6090 for i in 1 2 3 4 5 6; do
6091 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6092 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6093 # Solaris 8's {/usr,}/bin/sh.
6094 touch sub/conftst$i.h
6096 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6100 # after this tag, mechanisms are not by side-effect, so they'll
6101 # only be used when explicitly requested
6102 if test "x$enable_dependency_tracking" = xyes; then
6110 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6111 # mode. It turns out that the SunPro C++ compiler does not properly
6112 # handle `-M -o', and we need to detect this.
6113 if depmode=$depmode \
6114 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6115 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6116 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6117 >/dev/null 2>conftest.err &&
6118 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6119 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6120 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6121 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6122 # icc doesn't choke on unknown options, it will just issue warnings
6123 # or remarks (even with -Werror). So we grep stderr for any message
6124 # that says an option was ignored or not supported.
6125 # When given -MP, icc 7.0 and 7.1 complain thusly:
6126 # icc: Command line warning: ignoring option '-M'; no argument required
6127 # The diagnosis changed in icc 8.0:
6128 # icc: Command line remark: option '-MP' not supported
6129 if (grep 'ignoring option' conftest.err ||
6130 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6131 am_cv_CXX_dependencies_compiler_type=$depmode
6140 am_cv_CXX_dependencies_compiler_type=none
6144 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6145 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6146 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6149 test "x$enable_dependency_tracking" != xno \
6150 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6151 am__fastdepCXX_TRUE=
6152 am__fastdepCXX_FALSE='#'
6154 am__fastdepCXX_TRUE='#'
6155 am__fastdepCXX_FALSE=
6161 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6162 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6163 (test "X$CXX" != "Xg++"))) ; then
6165 ac_cpp='$CXXCPP $CPPFLAGS'
6166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6169 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6170 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6171 if test -z "$CXXCPP"; then
6172 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6173 echo $ECHO_N "(cached) $ECHO_C" >&6
6175 # Double quotes because CXXCPP needs to be expanded
6176 for CXXCPP in "$CXX -E" "/lib/cpp"
6179 for ac_cxx_preproc_warn_flag in '' yes
6181 # Use a header file that comes with gcc, so configuring glibc
6182 # with a fresh cross-compiler works.
6183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6184 # <limits.h> exists even on freestanding compilers.
6185 # On the NeXT, cc -E runs the code through the compiler's parser,
6186 # not just through cpp. "Syntax error" is here to catch this case.
6187 cat >conftest.$ac_ext <<_ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6194 # include <limits.h>
6196 # include <assert.h>
6200 if { (ac_try="$ac_cpp conftest.$ac_ext"
6202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6203 *) ac_try_echo=$ac_try;;
6205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6208 grep -v '^ *+' conftest.er1 >conftest.err
6210 cat conftest.err >&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } >/dev/null && {
6213 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6214 test ! -s conftest.err
6218 echo "$as_me: failed program was:" >&5
6219 sed 's/^/| /' conftest.$ac_ext >&5
6221 # Broken: fails on valid input.
6225 rm -f conftest.err conftest.$ac_ext
6227 # OK, works on sane cases. Now check whether nonexistent headers
6228 # can be detected and how.
6229 cat >conftest.$ac_ext <<_ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6235 #include <ac_nonexistent.h>
6237 if { (ac_try="$ac_cpp conftest.$ac_ext"
6239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240 *) ac_try_echo=$ac_try;;
6242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6245 grep -v '^ *+' conftest.er1 >conftest.err
6247 cat conftest.err >&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); } >/dev/null && {
6250 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6251 test ! -s conftest.err
6253 # Broken: success on invalid input.
6256 echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6259 # Passes both tests.
6264 rm -f conftest.err conftest.$ac_ext
6267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6268 rm -f conftest.err conftest.$ac_ext
6269 if $ac_preproc_ok; then
6274 ac_cv_prog_CXXCPP=$CXXCPP
6277 CXXCPP=$ac_cv_prog_CXXCPP
6279 ac_cv_prog_CXXCPP=$CXXCPP
6281 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6282 echo "${ECHO_T}$CXXCPP" >&6; }
6284 for ac_cxx_preproc_warn_flag in '' yes
6286 # Use a header file that comes with gcc, so configuring glibc
6287 # with a fresh cross-compiler works.
6288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6289 # <limits.h> exists even on freestanding compilers.
6290 # On the NeXT, cc -E runs the code through the compiler's parser,
6291 # not just through cpp. "Syntax error" is here to catch this case.
6292 cat >conftest.$ac_ext <<_ACEOF
6295 cat confdefs.h >>conftest.$ac_ext
6296 cat >>conftest.$ac_ext <<_ACEOF
6297 /* end confdefs.h. */
6299 # include <limits.h>
6301 # include <assert.h>
6305 if { (ac_try="$ac_cpp conftest.$ac_ext"
6307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308 *) ac_try_echo=$ac_try;;
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6313 grep -v '^ *+' conftest.er1 >conftest.err
6315 cat conftest.err >&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); } >/dev/null && {
6318 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6319 test ! -s conftest.err
6323 echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6326 # Broken: fails on valid input.
6330 rm -f conftest.err conftest.$ac_ext
6332 # OK, works on sane cases. Now check whether nonexistent headers
6333 # can be detected and how.
6334 cat >conftest.$ac_ext <<_ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h. */
6340 #include <ac_nonexistent.h>
6342 if { (ac_try="$ac_cpp conftest.$ac_ext"
6344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6345 *) ac_try_echo=$ac_try;;
6347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6350 grep -v '^ *+' conftest.er1 >conftest.err
6352 cat conftest.err >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } >/dev/null && {
6355 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6356 test ! -s conftest.err
6358 # Broken: success on invalid input.
6361 echo "$as_me: failed program was:" >&5
6362 sed 's/^/| /' conftest.$ac_ext >&5
6364 # Passes both tests.
6369 rm -f conftest.err conftest.$ac_ext
6372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6373 rm -f conftest.err conftest.$ac_ext
6374 if $ac_preproc_ok; then
6377 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6378 See \`config.log' for more details." >&5
6379 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6380 See \`config.log' for more details." >&2;}
6381 { (exit 1); exit 1; }; }
6385 ac_cpp='$CXXCPP $CPPFLAGS'
6386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6396 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6398 # find the maximum length of command line arguments
6399 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6400 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6401 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6409 # On DJGPP, this test can blow up pretty badly due to problems in libc
6410 # (any single argument exceeding 2000 bytes causes a buffer overrun
6411 # during glob expansion). Even if it were fixed, the result of this
6412 # check would be larger than it should be.
6413 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6417 # Under GNU Hurd, this test is not required because there is
6418 # no limit to the length of command line arguments.
6419 # Libtool will interpret -1 as no limit whatsoever
6420 lt_cv_sys_max_cmd_len=-1;
6424 # On Win9x/ME, this test blows up -- it succeeds, but takes
6425 # about 5 minutes as the teststring grows exponentially.
6426 # Worse, since 9x/ME are not pre-emptively multitasking,
6427 # you end up with a "frozen" computer, even though with patience
6428 # the test eventually succeeds (with a max line length of 256k).
6429 # Instead, let's just punt: use the minimum linelength reported by
6430 # all of the supported platforms: 8192 (on NT/2K/XP).
6431 lt_cv_sys_max_cmd_len=8192;
6435 # On AmigaOS with pdksh, this test takes hours, literally.
6436 # So we just punt and use a minimum line length of 8192.
6437 lt_cv_sys_max_cmd_len=8192;
6440 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6441 # This has been around since 386BSD, at least. Likely further.
6442 if test -x /sbin/sysctl; then
6443 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6444 elif test -x /usr/sbin/sysctl; then
6445 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6447 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6449 # And add a safety zone
6450 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6451 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6455 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6456 lt_cv_sys_max_cmd_len=196608
6460 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6461 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6462 # nice to cause kernel panics so lets avoid the loop below.
6463 # First set a reasonable default.
6464 lt_cv_sys_max_cmd_len=16384
6466 if test -x /sbin/sysconfig; then
6467 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6468 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6473 lt_cv_sys_max_cmd_len=102400
6475 sysv5* | sco5v6* | sysv4.2uw2*)
6476 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6477 if test -n "$kargmax"; then
6478 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6480 lt_cv_sys_max_cmd_len=32768
6484 # If test is not a shell built-in, we'll probably end up computing a
6485 # maximum length that is only half of the actual maximum length, but
6487 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6488 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6489 = "XX$teststring") >/dev/null 2>&1 &&
6490 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6491 lt_cv_sys_max_cmd_len=$new_result &&
6492 test $i != 17 # 1/2 MB should be enough
6495 teststring=$teststring$teststring
6498 # Add a significant safety factor because C++ compilers can tack on massive
6499 # amounts of additional arguments before passing them to the linker.
6500 # It appears as though 1/2 is a usable value.
6501 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6507 if test -n $lt_cv_sys_max_cmd_len ; then
6508 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6509 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6511 { echo "$as_me:$LINENO: result: none" >&5
6512 echo "${ECHO_T}none" >&6; }
6518 # Check for command to grab the raw symbol name followed by C symbol from nm.
6519 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6520 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6521 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 # These are sane defaults that work on at least a few old systems.
6526 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6528 # Character class describing NM global symbol codes.
6529 symcode='[BCDEGRST]'
6531 # Regexp to match symbols that can be accessed directly from C.
6532 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6534 # Transform an extracted symbol line into a proper C declaration
6535 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6537 # Transform an extracted symbol line into symbol name and symbol address
6538 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'"
6540 # Define system-specific variables.
6545 cygwin* | mingw* | pw32*)
6546 symcode='[ABCDGISTW]'
6548 hpux*) # Its linker distinguishes data from code symbols
6549 if test "$host_cpu" = ia64; then
6550 symcode='[ABCDEGRST]'
6552 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6553 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6555 linux* | k*bsd*-gnu)
6556 if test "$host_cpu" = ia64; then
6557 symcode='[ABCDGIRSTW]'
6558 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6559 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'"
6563 symcode='[BCDEGRST]'
6566 symcode='[BCDEGQRST]'
6577 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6585 # Handle CRLF in mingw tool chain
6589 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6593 # If we're using GNU nm, then use its standard symbol codes.
6594 case `$NM -V 2>&1` in
6595 *GNU* | *'with BFD'*)
6596 symcode='[ABCDGIRSTW]' ;;
6599 # Try without a prefix undercore, then with it.
6600 for ac_symprfx in "" "_"; do
6602 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6603 symxfrm="\\1 $ac_symprfx\\2 \\2"
6605 # Write the raw and C identifiers.
6606 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6608 # Check to see that the pipe works correctly.
6612 cat > conftest.$ac_ext <<EOF
6617 void nm_test_func(){}
6621 int main(){nm_test_var='a';nm_test_func();return(0);}
6624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6625 (eval $ac_compile) 2>&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); }; then
6629 # Now try to grab the symbols.
6631 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6632 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); } && test -s "$nlist"; then
6636 # Try sorting and uniquifying the output.
6637 if sort "$nlist" | uniq > "$nlist"T; then
6638 mv -f "$nlist"T "$nlist"
6643 # Make sure that we snagged all the symbols we need.
6644 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6645 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6646 cat <<EOF > conftest.$ac_ext
6652 # Now generate the symbol file.
6653 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6655 cat <<EOF >> conftest.$ac_ext
6656 #if defined (__STDC__) && __STDC__
6657 # define lt_ptr_t void *
6659 # define lt_ptr_t char *
6663 /* The mapping between symbol names and symbols. */
6668 lt_preloaded_symbols[] =
6671 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6672 cat <<\EOF >> conftest.$ac_ext
6680 # Now try linking the two files.
6681 mv conftest.$ac_objext conftstm.$ac_objext
6682 lt_save_LIBS="$LIBS"
6683 lt_save_CFLAGS="$CFLAGS"
6684 LIBS="conftstm.$ac_objext"
6685 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6687 (eval $ac_link) 2>&5
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6693 LIBS="$lt_save_LIBS"
6694 CFLAGS="$lt_save_CFLAGS"
6696 echo "cannot find nm_test_func in $nlist" >&5
6699 echo "cannot find nm_test_var in $nlist" >&5
6702 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6705 echo "$progname: failed program was:" >&5
6706 cat conftest.$ac_ext >&5
6708 rm -f conftest* conftst*
6710 # Do not use the global_symbol_pipe unless it works.
6711 if test "$pipe_works" = yes; then
6714 lt_cv_sys_global_symbol_pipe=
6720 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6721 lt_cv_sys_global_symbol_to_cdecl=
6723 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6724 { echo "$as_me:$LINENO: result: failed" >&5
6725 echo "${ECHO_T}failed" >&6; }
6727 { echo "$as_me:$LINENO: result: ok" >&5
6728 echo "${ECHO_T}ok" >&6; }
6731 { echo "$as_me:$LINENO: checking for objdir" >&5
6732 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6733 if test "${lt_cv_objdir+set}" = set; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 rm -f .libs 2>/dev/null
6737 mkdir .libs 2>/dev/null
6738 if test -d .libs; then
6741 # MS-DOS does not allow filenames that begin with a dot.
6744 rmdir .libs 2>/dev/null
6746 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6747 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6748 objdir=$lt_cv_objdir
6756 # AIX sometimes has problems with the GCC collect2 program. For some
6757 # reason, if we set the COLLECT_NAMES environment variable, the problems
6758 # vanish in a puff of smoke.
6759 if test "X${COLLECT_NAMES+set}" != Xset; then
6761 export COLLECT_NAMES
6766 # Sed substitution that helps us do robust quoting. It backslashifies
6767 # metacharacters that are still active within double-quoted strings.
6768 Xsed='sed -e 1s/^X//'
6769 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6771 # Same as above, but do not quote variable references.
6772 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6774 # Sed substitution to delay expansion of an escaped shell variable in a
6775 # double_quote_subst'ed string.
6776 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6778 # Sed substitution to avoid accidental globbing in evaled expressions
6779 no_glob_subst='s/\*/\\\*/g'
6785 default_ofile=libtool
6786 can_build_shared=yes
6788 # All known linkers require a `.a' archive for static linking (except MSVC,
6789 # which needs '.lib').
6791 ltmain="$ac_aux_dir/ltmain.sh"
6792 ofile="$default_ofile"
6793 with_gnu_ld="$lt_cv_prog_gnu_ld"
6795 if test -n "$ac_tool_prefix"; then
6796 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6797 set dummy ${ac_tool_prefix}ar; ac_word=$2
6798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6800 if test "${ac_cv_prog_AR+set}" = set; then
6801 echo $ECHO_N "(cached) $ECHO_C" >&6
6803 if test -n "$AR"; then
6804 ac_cv_prog_AR="$AR" # Let the user override the test.
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810 test -z "$as_dir" && as_dir=.
6811 for ac_exec_ext in '' $ac_executable_extensions; do
6812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6813 ac_cv_prog_AR="${ac_tool_prefix}ar"
6814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6824 if test -n "$AR"; then
6825 { echo "$as_me:$LINENO: result: $AR" >&5
6826 echo "${ECHO_T}$AR" >&6; }
6828 { echo "$as_me:$LINENO: result: no" >&5
6829 echo "${ECHO_T}no" >&6; }
6834 if test -z "$ac_cv_prog_AR"; then
6836 # Extract the first word of "ar", so it can be a program name with args.
6837 set dummy ar; ac_word=$2
6838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6840 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6841 echo $ECHO_N "(cached) $ECHO_C" >&6
6843 if test -n "$ac_ct_AR"; then
6844 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850 test -z "$as_dir" && as_dir=.
6851 for ac_exec_ext in '' $ac_executable_extensions; do
6852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6853 ac_cv_prog_ac_ct_AR="ar"
6854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6863 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6864 if test -n "$ac_ct_AR"; then
6865 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6866 echo "${ECHO_T}$ac_ct_AR" >&6; }
6868 { echo "$as_me:$LINENO: result: no" >&5
6869 echo "${ECHO_T}no" >&6; }
6872 if test "x$ac_ct_AR" = x; then
6875 case $cross_compiling:$ac_tool_warned in
6877 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6878 whose name does not start with the host triplet. If you think this
6879 configuration is useful to you, please write to autoconf@gnu.org." >&5
6880 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6881 whose name does not start with the host triplet. If you think this
6882 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6883 ac_tool_warned=yes ;;
6891 if test -n "$ac_tool_prefix"; then
6892 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6893 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6896 if test "${ac_cv_prog_RANLIB+set}" = set; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
6899 if test -n "$RANLIB"; then
6900 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906 test -z "$as_dir" && as_dir=.
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6909 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 RANLIB=$ac_cv_prog_RANLIB
6920 if test -n "$RANLIB"; then
6921 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6922 echo "${ECHO_T}$RANLIB" >&6; }
6924 { echo "$as_me:$LINENO: result: no" >&5
6925 echo "${ECHO_T}no" >&6; }
6930 if test -z "$ac_cv_prog_RANLIB"; then
6931 ac_ct_RANLIB=$RANLIB
6932 # Extract the first word of "ranlib", so it can be a program name with args.
6933 set dummy ranlib; ac_word=$2
6934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6936 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6939 if test -n "$ac_ct_RANLIB"; then
6940 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6949 ac_cv_prog_ac_ct_RANLIB="ranlib"
6950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6959 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6960 if test -n "$ac_ct_RANLIB"; then
6961 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6962 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6964 { echo "$as_me:$LINENO: result: no" >&5
6965 echo "${ECHO_T}no" >&6; }
6968 if test "x$ac_ct_RANLIB" = x; then
6971 case $cross_compiling:$ac_tool_warned in
6973 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6974 whose name does not start with the host triplet. If you think this
6975 configuration is useful to you, please write to autoconf@gnu.org." >&5
6976 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6977 whose name does not start with the host triplet. If you think this
6978 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6979 ac_tool_warned=yes ;;
6981 RANLIB=$ac_ct_RANLIB
6984 RANLIB="$ac_cv_prog_RANLIB"
6987 if test -n "$ac_tool_prefix"; then
6988 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6989 set dummy ${ac_tool_prefix}strip; ac_word=$2
6990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6992 if test "${ac_cv_prog_STRIP+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6995 if test -n "$STRIP"; then
6996 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 test -z "$as_dir" && as_dir=.
7003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7005 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 STRIP=$ac_cv_prog_STRIP
7016 if test -n "$STRIP"; then
7017 { echo "$as_me:$LINENO: result: $STRIP" >&5
7018 echo "${ECHO_T}$STRIP" >&6; }
7020 { echo "$as_me:$LINENO: result: no" >&5
7021 echo "${ECHO_T}no" >&6; }
7026 if test -z "$ac_cv_prog_STRIP"; then
7028 # Extract the first word of "strip", so it can be a program name with args.
7029 set dummy strip; ac_word=$2
7030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7032 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7035 if test -n "$ac_ct_STRIP"; then
7036 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7045 ac_cv_prog_ac_ct_STRIP="strip"
7046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7056 if test -n "$ac_ct_STRIP"; then
7057 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7058 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7060 { echo "$as_me:$LINENO: result: no" >&5
7061 echo "${ECHO_T}no" >&6; }
7064 if test "x$ac_ct_STRIP" = x; then
7067 case $cross_compiling:$ac_tool_warned in
7069 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7070 whose name does not start with the host triplet. If you think this
7071 configuration is useful to you, please write to autoconf@gnu.org." >&5
7072 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7073 whose name does not start with the host triplet. If you think this
7074 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7075 ac_tool_warned=yes ;;
7080 STRIP="$ac_cv_prog_STRIP"
7085 old_CFLAGS="$CFLAGS"
7087 # Set sane defaults for various variables
7088 test -z "$AR" && AR=ar
7089 test -z "$AR_FLAGS" && AR_FLAGS=cru
7090 test -z "$AS" && AS=as
7091 test -z "$CC" && CC=cc
7092 test -z "$LTCC" && LTCC=$CC
7093 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7094 test -z "$DLLTOOL" && DLLTOOL=dlltool
7095 test -z "$LD" && LD=ld
7096 test -z "$LN_S" && LN_S="ln -s"
7097 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7098 test -z "$NM" && NM=nm
7099 test -z "$SED" && SED=sed
7100 test -z "$OBJDUMP" && OBJDUMP=objdump
7101 test -z "$RANLIB" && RANLIB=:
7102 test -z "$STRIP" && STRIP=:
7103 test -z "$ac_objext" && ac_objext=o
7105 # Determine commands to create old-style static archives.
7106 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7107 old_postinstall_cmds='chmod 644 $oldlib'
7108 old_postuninstall_cmds=
7110 if test -n "$RANLIB"; then
7113 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7116 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7119 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7122 for cc_temp in $compiler""; do
7124 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7125 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7130 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7133 # Only perform the check for file, if the check method requires it
7134 case $deplibs_check_method in
7136 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7137 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7138 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7139 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7144 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7147 lt_save_MAGIC_CMD="$MAGIC_CMD"
7148 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7149 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7150 for ac_dir in $ac_dummy; do
7152 test -z "$ac_dir" && ac_dir=.
7153 if test -f $ac_dir/${ac_tool_prefix}file; then
7154 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7155 if test -n "$file_magic_test_file"; then
7156 case $deplibs_check_method in
7158 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7159 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7160 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7161 $EGREP "$file_magic_regex" > /dev/null; then
7166 *** Warning: the command libtool uses to detect shared libraries,
7167 *** $file_magic_cmd, produces output that libtool cannot recognize.
7168 *** The result is that libtool may fail to recognize shared libraries
7169 *** as such. This will affect the creation of libtool libraries that
7170 *** depend on shared libraries, but programs linked with such libtool
7171 *** libraries will work regardless of this problem. Nevertheless, you
7172 *** may want to report the problem to your system manager and/or to
7173 *** bug-libtool@gnu.org
7183 MAGIC_CMD="$lt_save_MAGIC_CMD"
7188 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7189 if test -n "$MAGIC_CMD"; then
7190 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7191 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7193 { echo "$as_me:$LINENO: result: no" >&5
7194 echo "${ECHO_T}no" >&6; }
7197 if test -z "$lt_cv_path_MAGIC_CMD"; then
7198 if test -n "$ac_tool_prefix"; then
7199 { echo "$as_me:$LINENO: checking for file" >&5
7200 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7201 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7206 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7209 lt_save_MAGIC_CMD="$MAGIC_CMD"
7210 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7211 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7212 for ac_dir in $ac_dummy; do
7214 test -z "$ac_dir" && ac_dir=.
7215 if test -f $ac_dir/file; then
7216 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7217 if test -n "$file_magic_test_file"; then
7218 case $deplibs_check_method in
7220 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7221 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7222 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7223 $EGREP "$file_magic_regex" > /dev/null; then
7228 *** Warning: the command libtool uses to detect shared libraries,
7229 *** $file_magic_cmd, produces output that libtool cannot recognize.
7230 *** The result is that libtool may fail to recognize shared libraries
7231 *** as such. This will affect the creation of libtool libraries that
7232 *** depend on shared libraries, but programs linked with such libtool
7233 *** libraries will work regardless of this problem. Nevertheless, you
7234 *** may want to report the problem to your system manager and/or to
7235 *** bug-libtool@gnu.org
7245 MAGIC_CMD="$lt_save_MAGIC_CMD"
7250 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7251 if test -n "$MAGIC_CMD"; then
7252 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7253 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7255 { echo "$as_me:$LINENO: result: no" >&5
7256 echo "${ECHO_T}no" >&6; }
7269 enable_win32_dll=yes
7271 # Check whether --enable-libtool-lock was given.
7272 if test "${enable_libtool_lock+set}" = set; then
7273 enableval=$enable_libtool_lock;
7276 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7279 # Check whether --with-pic was given.
7280 if test "${with_pic+set}" = set; then
7281 withval=$with_pic; pic_mode="$withval"
7286 test -z "$pic_mode" && pic_mode=default
7288 # Use C for the default configuration in the libtool script
7292 ac_cpp='$CPP $CPPFLAGS'
7293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7298 # Source file extension for C test sources.
7301 # Object file extension for compiled C test sources.
7305 # Code to be used in simple compile tests
7306 lt_simple_compile_test_code="int some_variable = 0;\n"
7308 # Code to be used in simple link tests
7309 lt_simple_link_test_code='int main(){return(0);}\n'
7312 # If no C compiler was specified, use CC.
7315 # If no C compiler flags were specified, use CFLAGS.
7316 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7318 # Allow CC to be a program name with arguments.
7322 # save warnings/boilerplate of simple test code
7323 ac_outfile=conftest.$ac_objext
7324 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7325 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7326 _lt_compiler_boilerplate=`cat conftest.err`
7329 ac_outfile=conftest.$ac_objext
7330 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7331 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7332 _lt_linker_boilerplate=`cat conftest.err`
7337 lt_prog_compiler_no_builtin_flag=
7339 if test "$GCC" = yes; then
7340 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7343 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7344 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7345 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7346 echo $ECHO_N "(cached) $ECHO_C" >&6
7348 lt_cv_prog_compiler_rtti_exceptions=no
7349 ac_outfile=conftest.$ac_objext
7350 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7351 lt_compiler_flag="-fno-rtti -fno-exceptions"
7352 # Insert the option either (1) after the last *FLAGS variable, or
7353 # (2) before a word containing "conftest.", or (3) at the end.
7354 # Note that $ac_compile itself does not contain backslashes and begins
7355 # with a dollar sign (not a hyphen), so the echo should work correctly.
7356 # The option is referenced via a variable to avoid confusing sed.
7357 lt_compile=`echo "$ac_compile" | $SED \
7358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7360 -e 's:$: $lt_compiler_flag:'`
7361 (eval echo "\"\$as_me:7361: $lt_compile\"" >&5)
7362 (eval "$lt_compile" 2>conftest.err)
7364 cat conftest.err >&5
7365 echo "$as_me:7365: \$? = $ac_status" >&5
7366 if (exit $ac_status) && test -s "$ac_outfile"; then
7367 # The compiler can only warn and ignore the option if not recognized
7368 # So say no if there are warnings other than the usual output.
7369 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7370 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7371 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7372 lt_cv_prog_compiler_rtti_exceptions=yes
7378 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7379 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7381 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7382 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7389 lt_prog_compiler_wl=
7390 lt_prog_compiler_pic=
7391 lt_prog_compiler_static=
7393 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7394 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7396 if test "$GCC" = yes; then
7397 lt_prog_compiler_wl='-Wl,'
7398 lt_prog_compiler_static='-static'
7402 # All AIX code is PIC.
7403 if test "$host_cpu" = ia64; then
7404 # AIX 5 now supports IA64 processor
7405 lt_prog_compiler_static='-Bstatic'
7410 # FIXME: we need at least 68020 code to build shared libraries, but
7411 # adding the `-m68020' flag to GCC prevents building anything better,
7413 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7416 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7417 # PIC is the default for these OSes.
7420 mingw* | pw32* | os2*)
7421 # This hack is so that the source file can tell whether it is being
7422 # built for inclusion in a dll (and should export symbols for example).
7423 lt_prog_compiler_pic='-DDLL_EXPORT'
7426 darwin* | rhapsody*)
7427 # PIC is the default on this platform
7428 # Common symbols not allowed in MH_DYLIB files
7429 lt_prog_compiler_pic='-fno-common'
7433 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7434 # Instead, we relocate shared libraries at runtime.
7438 # Just because we use GCC doesn't mean we suddenly get shared libraries
7439 # on systems that don't support them.
7440 lt_prog_compiler_can_build_shared=no
7445 if test -d /usr/nec; then
7446 lt_prog_compiler_pic=-Kconform_pic
7451 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7458 lt_prog_compiler_pic='-fPIC'
7464 lt_prog_compiler_pic='-fPIC'
7468 # PORTME Check for flag to pass linker flags through the system compiler.
7471 lt_prog_compiler_wl='-Wl,'
7472 if test "$host_cpu" = ia64; then
7473 # AIX 5 now supports IA64 processor
7474 lt_prog_compiler_static='-Bstatic'
7476 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7480 # PIC is the default on this platform
7481 # Common symbols not allowed in MH_DYLIB files
7482 case $cc_basename in
7484 lt_prog_compiler_pic='-qnocommon'
7485 lt_prog_compiler_wl='-Wl,'
7490 mingw* | pw32* | os2*)
7491 # This hack is so that the source file can tell whether it is being
7492 # built for inclusion in a dll (and should export symbols for example).
7493 lt_prog_compiler_pic='-DDLL_EXPORT'
7496 hpux9* | hpux10* | hpux11*)
7497 lt_prog_compiler_wl='-Wl,'
7498 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7505 lt_prog_compiler_pic='+Z'
7508 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7509 lt_prog_compiler_static='${wl}-a ${wl}archive'
7512 irix5* | irix6* | nonstopux*)
7513 lt_prog_compiler_wl='-Wl,'
7514 # PIC (with -KPIC) is the default.
7515 lt_prog_compiler_static='-non_shared'
7519 lt_prog_compiler_pic='-KPIC'
7520 lt_prog_compiler_static='-Bstatic'
7523 linux* | k*bsd*-gnu)
7524 case $cc_basename in
7526 lt_prog_compiler_wl='-Wl,'
7527 lt_prog_compiler_pic='-KPIC'
7528 lt_prog_compiler_static='-static'
7530 pgcc* | pgf77* | pgf90* | pgf95*)
7531 # Portland Group compilers (*not* the Pentium gcc compiler,
7532 # which looks to be a dead project)
7533 lt_prog_compiler_wl='-Wl,'
7534 lt_prog_compiler_pic='-fpic'
7535 lt_prog_compiler_static='-Bstatic'
7538 lt_prog_compiler_wl='-Wl,'
7539 # All Alpha code is PIC.
7540 lt_prog_compiler_static='-non_shared'
7545 osf3* | osf4* | osf5*)
7546 lt_prog_compiler_wl='-Wl,'
7547 # All OSF/1 code is PIC.
7548 lt_prog_compiler_static='-non_shared'
7552 lt_prog_compiler_pic='-KPIC'
7553 lt_prog_compiler_static='-Bstatic'
7554 case $cc_basename in
7556 lt_prog_compiler_wl='-Qoption ld ';;
7558 lt_prog_compiler_wl='-Wl,';;
7563 lt_prog_compiler_wl='-Qoption ld '
7564 lt_prog_compiler_pic='-PIC'
7565 lt_prog_compiler_static='-Bstatic'
7568 sysv4 | sysv4.2uw2* | sysv4.3*)
7569 lt_prog_compiler_wl='-Wl,'
7570 lt_prog_compiler_pic='-KPIC'
7571 lt_prog_compiler_static='-Bstatic'
7575 if test -d /usr/nec ;then
7576 lt_prog_compiler_pic='-Kconform_pic'
7577 lt_prog_compiler_static='-Bstatic'
7581 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7582 lt_prog_compiler_wl='-Wl,'
7583 lt_prog_compiler_pic='-KPIC'
7584 lt_prog_compiler_static='-Bstatic'
7588 lt_prog_compiler_wl='-Wl,'
7589 lt_prog_compiler_can_build_shared=no
7593 lt_prog_compiler_pic='-pic'
7594 lt_prog_compiler_static='-Bstatic'
7598 lt_prog_compiler_can_build_shared=no
7603 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7604 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7607 # Check to make sure the PIC flag actually works.
7609 if test -n "$lt_prog_compiler_pic"; then
7611 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7612 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7613 if test "${lt_prog_compiler_pic_works+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7616 lt_prog_compiler_pic_works=no
7617 ac_outfile=conftest.$ac_objext
7618 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7619 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7620 # Insert the option either (1) after the last *FLAGS variable, or
7621 # (2) before a word containing "conftest.", or (3) at the end.
7622 # Note that $ac_compile itself does not contain backslashes and begins
7623 # with a dollar sign (not a hyphen), so the echo should work correctly.
7624 # The option is referenced via a variable to avoid confusing sed.
7625 lt_compile=`echo "$ac_compile" | $SED \
7626 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7627 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7628 -e 's:$: $lt_compiler_flag:'`
7629 (eval echo "\"\$as_me:7629: $lt_compile\"" >&5)
7630 (eval "$lt_compile" 2>conftest.err)
7632 cat conftest.err >&5
7633 echo "$as_me:7633: \$? = $ac_status" >&5
7634 if (exit $ac_status) && test -s "$ac_outfile"; then
7635 # The compiler can only warn and ignore the option if not recognized
7636 # So say no if there are warnings other than the usual output.
7637 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7638 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7639 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7640 lt_prog_compiler_pic_works=yes
7646 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7647 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7649 if test x"$lt_prog_compiler_pic_works" = xyes; then
7650 case $lt_prog_compiler_pic in
7652 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7655 lt_prog_compiler_pic=
7656 lt_prog_compiler_can_build_shared=no
7661 # For platforms which do not support PIC, -DPIC is meaningless:
7663 lt_prog_compiler_pic=
7666 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7671 # Check to make sure the static flag actually works.
7673 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7674 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7675 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7676 if test "${lt_prog_compiler_static_works+set}" = set; then
7677 echo $ECHO_N "(cached) $ECHO_C" >&6
7679 lt_prog_compiler_static_works=no
7680 save_LDFLAGS="$LDFLAGS"
7681 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7682 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7683 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7684 # The linker can only warn and ignore the option if not recognized
7685 # So say no if there are warnings
7686 if test -s conftest.err; then
7687 # Append any errors to the config.log.
7688 cat conftest.err 1>&5
7689 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7690 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7691 if diff conftest.exp conftest.er2 >/dev/null; then
7692 lt_prog_compiler_static_works=yes
7695 lt_prog_compiler_static_works=yes
7699 LDFLAGS="$save_LDFLAGS"
7702 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7703 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7705 if test x"$lt_prog_compiler_static_works" = xyes; then
7708 lt_prog_compiler_static=
7712 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7713 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7714 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7715 echo $ECHO_N "(cached) $ECHO_C" >&6
7717 lt_cv_prog_compiler_c_o=no
7718 $rm -r conftest 2>/dev/null
7722 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7724 lt_compiler_flag="-o out/conftest2.$ac_objext"
7725 # Insert the option either (1) after the last *FLAGS variable, or
7726 # (2) before a word containing "conftest.", or (3) at the end.
7727 # Note that $ac_compile itself does not contain backslashes and begins
7728 # with a dollar sign (not a hyphen), so the echo should work correctly.
7729 lt_compile=`echo "$ac_compile" | $SED \
7730 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7731 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7732 -e 's:$: $lt_compiler_flag:'`
7733 (eval echo "\"\$as_me:7733: $lt_compile\"" >&5)
7734 (eval "$lt_compile" 2>out/conftest.err)
7736 cat out/conftest.err >&5
7737 echo "$as_me:7737: \$? = $ac_status" >&5
7738 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7740 # The compiler can only warn and ignore the option if not recognized
7741 # So say no if there are warnings
7742 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7743 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7744 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7745 lt_cv_prog_compiler_c_o=yes
7750 # SGI C++ compiler will create directory out/ii_files/ for
7751 # template instantiation
7752 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7753 $rm out/* && rmdir out
7759 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7760 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7763 hard_links="nottested"
7764 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7765 # do not overwrite the value of need_locks provided by the user
7766 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7767 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7770 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7772 ln conftest.a conftest.b 2>&5 || hard_links=no
7773 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7774 { echo "$as_me:$LINENO: result: $hard_links" >&5
7775 echo "${ECHO_T}$hard_links" >&6; }
7776 if test "$hard_links" = no; then
7777 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7778 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7785 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7786 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7789 allow_undefined_flag=
7790 enable_shared_with_static_runtimes=no
7792 archive_expsym_cmds=
7793 old_archive_From_new_cmds=
7794 old_archive_from_expsyms_cmds=
7795 export_dynamic_flag_spec=
7796 whole_archive_flag_spec=
7797 thread_safe_flag_spec=
7798 hardcode_libdir_flag_spec=
7799 hardcode_libdir_flag_spec_ld=
7800 hardcode_libdir_separator=
7803 hardcode_shlibpath_var=unsupported
7804 link_all_deplibs=unknown
7805 hardcode_automatic=no
7808 always_export_symbols=no
7809 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7810 # include_expsyms should be a list of space-separated symbols to be *always*
7811 # included in the symbol list
7813 # exclude_expsyms can be an extended regexp of symbols to exclude
7814 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7815 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7816 # as well as any symbol that contains `d'.
7817 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7818 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7819 # platforms (ab)use it in PIC code, but their linkers get confused if
7820 # the symbol is explicitly referenced. Since portable code cannot
7821 # rely on this symbol name, it's probably fine to never include it in
7822 # preloaded symbol tables.
7823 extract_expsyms_cmds=
7824 # Just being paranoid about ensuring that cc_basename is set.
7825 for cc_temp in $compiler""; do
7827 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7828 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7833 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7836 cygwin* | mingw* | pw32*)
7837 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7838 # When not using gcc, we currently assume that we are using
7839 # Microsoft Visual C++.
7840 if test "$GCC" != yes; then
7845 # we just hope/assume this is gcc and not c89 (= MSVC++)
7854 if test "$with_gnu_ld" = yes; then
7855 # If archive_cmds runs LD, not CC, wlarc should be empty
7858 # Set some defaults for GNU ld with shared library support. These
7859 # are reset later if shared libraries are not supported. Putting them
7860 # here allows them to be overridden if necessary.
7861 runpath_var=LD_RUN_PATH
7862 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7863 export_dynamic_flag_spec='${wl}--export-dynamic'
7864 # ancient GNU ld didn't support --whole-archive et. al.
7865 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7866 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7868 whole_archive_flag_spec=
7870 supports_anon_versioning=no
7871 case `$LD -v 2>/dev/null` in
7872 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7873 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7874 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7875 *\ 2.11.*) ;; # other 2.11 versions
7876 *) supports_anon_versioning=yes ;;
7879 # See if GNU ld supports shared libraries.
7881 aix3* | aix4* | aix5*)
7882 # On AIX/PPC, the GNU linker is very broken
7883 if test "$host_cpu" != ia64; then
7887 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7888 *** to be unable to reliably create shared libraries on AIX.
7889 *** Therefore, libtool is disabling shared libraries support. If you
7890 *** really care for shared libraries, you may want to modify your PATH
7891 *** so that a non-GNU linker is found, and then restart.
7898 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)'
7899 hardcode_libdir_flag_spec='-L$libdir'
7900 hardcode_minus_L=yes
7902 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7903 # that the semantics of dynamic libraries on AmigaOS, at least up
7904 # to version 4, is to share data among multiple programs linked
7905 # with the same dynamic library. Since this doesn't match the
7906 # behavior of shared libraries on other platforms, we can't use
7912 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7913 allow_undefined_flag=unsupported
7914 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7915 # support --undefined. This deserves some investigation. FIXME
7916 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7922 cygwin* | mingw* | pw32*)
7923 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7924 # as there is no search path for DLLs.
7925 hardcode_libdir_flag_spec='-L$libdir'
7926 allow_undefined_flag=unsupported
7927 always_export_symbols=no
7928 enable_shared_with_static_runtimes=yes
7929 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7931 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7932 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7933 # If the export-symbols file already is a .def file (1st line
7934 # is EXPORTS), use it as is; otherwise, prepend...
7935 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7936 cp $export_symbols $output_objdir/$soname.def;
7938 echo EXPORTS > $output_objdir/$soname.def;
7939 cat $export_symbols >> $output_objdir/$soname.def;
7941 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7949 hardcode_shlibpath_var=no
7950 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7951 export_dynamic_flag_spec='${wl}-E'
7952 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7953 # Instead, shared libraries are loaded at an image base (0x10000000 by
7954 # default) and relocated if they conflict, which is a slow very memory
7955 # consuming and fragmenting process. To avoid this, we pick a random,
7956 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7957 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7958 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7959 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'
7962 linux* | k*bsd*-gnu)
7963 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7965 case $cc_basename,$host_cpu in
7966 pgcc*) # Portland Group C compiler
7967 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'
7968 tmp_addflag=' $pic_flag'
7970 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7971 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'
7972 tmp_addflag=' $pic_flag -Mnomain' ;;
7973 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7974 tmp_addflag=' -i_dynamic' ;;
7975 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7976 tmp_addflag=' -i_dynamic -nofor_main' ;;
7977 ifc* | ifort*) # Intel Fortran compiler
7978 tmp_addflag=' -nofor_main' ;;
7980 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7982 if test $supports_anon_versioning = yes; then
7983 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7984 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7985 $echo "local: *; };" >> $output_objdir/$libname.ver~
7986 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7994 netbsd* | netbsdelf*-gnu)
7995 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7996 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8000 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8005 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8009 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8010 *** create shared libraries on Solaris systems. Therefore, libtool
8011 *** is disabling shared libraries support. We urge you to upgrade GNU
8012 *** binutils to release 2.9.1 or newer. Another option is to modify
8013 *** your PATH or compiler configuration so that the native linker is
8014 *** used, and then restart.
8017 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8018 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8019 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8025 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8026 case `$LD -v 2>&1` in
8027 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8031 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8032 *** reliably create shared libraries on SCO systems. Therefore, libtool
8033 *** is disabling shared libraries support. We urge you to upgrade GNU
8034 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8035 *** your PATH or compiler configuration so that the native linker is
8036 *** used, and then restart.
8041 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8042 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8043 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8044 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8053 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8056 hardcode_shlibpath_var=no
8060 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8061 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8062 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8069 if test "$ld_shlibs" = no; then
8071 hardcode_libdir_flag_spec=
8072 export_dynamic_flag_spec=
8073 whole_archive_flag_spec=
8076 # PORTME fill in a description of your system's linker (not GNU ld)
8079 allow_undefined_flag=unsupported
8080 always_export_symbols=yes
8081 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'
8082 # Note: this linker hardcodes the directories in LIBPATH if there
8083 # are no directories specified by -L.
8084 hardcode_minus_L=yes
8085 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8086 # Neither direct hardcoding nor static linking is supported with a
8088 hardcode_direct=unsupported
8093 if test "$host_cpu" = ia64; then
8094 # On IA64, the linker does run time linking by default, so we don't
8095 # have to do anything special.
8096 aix_use_runtimelinking=no
8097 exp_sym_flag='-Bexport'
8100 # If we're using GNU nm, then we don't want the "-C" option.
8101 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8102 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8103 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'
8105 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'
8107 aix_use_runtimelinking=no
8109 # Test if we are trying to use run time linking or normal
8110 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8111 # need to do runtime linking.
8112 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8113 for ld_flag in $LDFLAGS; do
8114 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8115 aix_use_runtimelinking=yes
8122 exp_sym_flag='-bexport'
8123 no_entry_flag='-bnoentry'
8126 # When large executables or shared objects are built, AIX ld can
8127 # have problems creating the table of contents. If linking a library
8128 # or program results in "error TOC overflow" add -mminimal-toc to
8129 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8130 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8134 hardcode_libdir_separator=':'
8135 link_all_deplibs=yes
8137 if test "$GCC" = yes; then
8138 case $host_os in aix4.[012]|aix4.[012].*)
8139 # We only want to do this on AIX 4.2 and lower, the check
8140 # below for broken collect2 doesn't work under 4.3+
8141 collect2name=`${CC} -print-prog-name=collect2`
8142 if test -f "$collect2name" && \
8143 strings "$collect2name" | grep resolve_lib_name >/dev/null
8145 # We have reworked collect2
8148 # We have old collect2
8149 hardcode_direct=unsupported
8150 # It fails to find uninstalled libraries when the uninstalled
8151 # path is not listed in the libpath. Setting hardcode_minus_L
8152 # to unsupported forces relinking
8153 hardcode_minus_L=yes
8154 hardcode_libdir_flag_spec='-L$libdir'
8155 hardcode_libdir_separator=
8159 shared_flag='-shared'
8160 if test "$aix_use_runtimelinking" = yes; then
8161 shared_flag="$shared_flag "'${wl}-G'
8165 if test "$host_cpu" = ia64; then
8166 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8167 # chokes on -Wl,-G. The following line is correct:
8170 if test "$aix_use_runtimelinking" = yes; then
8171 shared_flag='${wl}-G'
8173 shared_flag='${wl}-bM:SRE'
8178 # It seems that -bexpall does not export symbols beginning with
8179 # underscore (_), so it is better to generate a list of symbols to export.
8180 always_export_symbols=yes
8181 if test "$aix_use_runtimelinking" = yes; then
8182 # Warning - without using the other runtime loading flags (-brtl),
8183 # -berok will link without error, but may produce a broken library.
8184 allow_undefined_flag='-berok'
8185 # Determine the default libpath from the value encoded in an empty executable.
8186 cat >conftest.$ac_ext <<_ACEOF
8189 cat confdefs.h >>conftest.$ac_ext
8190 cat >>conftest.$ac_ext <<_ACEOF
8191 /* end confdefs.h. */
8201 rm -f conftest.$ac_objext conftest$ac_exeext
8202 if { (ac_try="$ac_link"
8204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8205 *) ac_try_echo=$ac_try;;
8207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8208 (eval "$ac_link") 2>conftest.er1
8210 grep -v '^ *+' conftest.er1 >conftest.err
8212 cat conftest.err >&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); } && {
8215 test -z "$ac_c_werror_flag" ||
8216 test ! -s conftest.err
8217 } && test -s conftest$ac_exeext &&
8218 $as_test_x conftest$ac_exeext; then
8220 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8222 # Check for a 64-bit object if we didn't find anything.
8223 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; }
8226 echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.$ac_ext >&5
8232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8233 conftest$ac_exeext conftest.$ac_ext
8234 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8236 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8237 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"
8239 if test "$host_cpu" = ia64; then
8240 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8241 allow_undefined_flag="-z nodefs"
8242 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"
8244 # Determine the default libpath from the value encoded in an empty executable.
8245 cat >conftest.$ac_ext <<_ACEOF
8248 cat confdefs.h >>conftest.$ac_ext
8249 cat >>conftest.$ac_ext <<_ACEOF
8250 /* end confdefs.h. */
8260 rm -f conftest.$ac_objext conftest$ac_exeext
8261 if { (ac_try="$ac_link"
8263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8264 *) ac_try_echo=$ac_try;;
8266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8267 (eval "$ac_link") 2>conftest.er1
8269 grep -v '^ *+' conftest.er1 >conftest.err
8271 cat conftest.err >&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); } && {
8274 test -z "$ac_c_werror_flag" ||
8275 test ! -s conftest.err
8276 } && test -s conftest$ac_exeext &&
8277 $as_test_x conftest$ac_exeext; then
8279 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8281 # Check for a 64-bit object if we didn't find anything.
8282 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; }
8285 echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.$ac_ext >&5
8291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8292 conftest$ac_exeext conftest.$ac_ext
8293 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8295 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8296 # Warning - without using the other run time loading flags,
8297 # -berok will link without error, but may produce a broken library.
8298 no_undefined_flag=' ${wl}-bernotok'
8299 allow_undefined_flag=' ${wl}-berok'
8300 # Exported symbols can be pulled into shared objects from archives
8301 whole_archive_flag_spec='$convenience'
8302 archive_cmds_need_lc=yes
8303 # This is similar to how AIX traditionally builds its shared libraries.
8304 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'
8310 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)'
8311 hardcode_libdir_flag_spec='-L$libdir'
8312 hardcode_minus_L=yes
8313 # see comment about different semantics on the GNU ld section
8318 export_dynamic_flag_spec=-rdynamic
8321 cygwin* | mingw* | pw32*)
8322 # When not using gcc, we currently assume that we are using
8323 # Microsoft Visual C++.
8324 # hardcode_libdir_flag_spec is actually meaningless, as there is
8325 # no search path for DLLs.
8326 hardcode_libdir_flag_spec=' '
8327 allow_undefined_flag=unsupported
8328 # Tell ltmain to make .lib files, not .a files.
8330 # Tell ltmain to make .dll files, not .so files.
8332 # FIXME: Setting linknames here is a bad hack.
8333 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8334 # The linker will automatically build a .lib file if we build a DLL.
8335 old_archive_From_new_cmds='true'
8336 # FIXME: Should let the user specify the lib program.
8337 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8338 fix_srcfile_path='`cygpath -w "$srcfile"`'
8339 enable_shared_with_static_runtimes=yes
8342 darwin* | rhapsody*)
8344 rhapsody* | darwin1.[012])
8345 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8348 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8349 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8351 case ${MACOSX_DEPLOYMENT_TARGET} in
8353 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8356 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8362 archive_cmds_need_lc=no
8364 hardcode_automatic=yes
8365 hardcode_shlibpath_var=unsupported
8366 whole_archive_flag_spec=''
8367 link_all_deplibs=yes
8368 if test "$GCC" = yes ; then
8369 output_verbose_link_cmd='echo'
8370 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8371 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8372 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8373 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}'
8374 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}'
8376 case $cc_basename in
8378 output_verbose_link_cmd='echo'
8379 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8380 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8381 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8382 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}'
8383 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}'
8393 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8394 hardcode_libdir_flag_spec='-L$libdir'
8395 hardcode_shlibpath_var=no
8402 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8403 # support. Future versions do this automatically, but an explicit c++rt0.o
8404 # does not break anything, and helps significantly (at the cost of a little
8407 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8408 hardcode_libdir_flag_spec='-R$libdir'
8410 hardcode_shlibpath_var=no
8413 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8415 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8417 hardcode_minus_L=yes
8418 hardcode_shlibpath_var=no
8421 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8422 freebsd* | dragonfly*)
8423 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8424 hardcode_libdir_flag_spec='-R$libdir'
8426 hardcode_shlibpath_var=no
8430 if test "$GCC" = yes; then
8431 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'
8433 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'
8435 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8436 hardcode_libdir_separator=:
8439 # hardcode_minus_L: Not really in the search PATH,
8440 # but as the default location of the library.
8441 hardcode_minus_L=yes
8442 export_dynamic_flag_spec='${wl}-E'
8446 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8447 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8449 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8451 if test "$with_gnu_ld" = no; then
8452 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8453 hardcode_libdir_separator=:
8456 export_dynamic_flag_spec='${wl}-E'
8458 # hardcode_minus_L: Not really in the search PATH,
8459 # but as the default location of the library.
8460 hardcode_minus_L=yes
8465 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8468 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8471 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8474 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8480 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8483 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8486 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8490 if test "$with_gnu_ld" = no; then
8491 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8492 hardcode_libdir_separator=:
8496 hardcode_libdir_flag_spec_ld='+b $libdir'
8498 hardcode_shlibpath_var=no
8502 export_dynamic_flag_spec='${wl}-E'
8504 # hardcode_minus_L: Not really in the search PATH,
8505 # but as the default location of the library.
8506 hardcode_minus_L=yes
8512 irix5* | irix6* | nonstopux*)
8513 if test "$GCC" = yes; then
8514 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'
8516 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'
8517 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8519 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8520 hardcode_libdir_separator=:
8521 link_all_deplibs=yes
8524 netbsd* | netbsdelf*-gnu)
8525 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8526 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8528 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8530 hardcode_libdir_flag_spec='-R$libdir'
8532 hardcode_shlibpath_var=no
8536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8538 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8539 hardcode_libdir_separator=:
8540 hardcode_shlibpath_var=no
8545 hardcode_shlibpath_var=no
8546 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8547 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8548 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8549 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8550 export_dynamic_flag_spec='${wl}-E'
8553 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8554 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8555 hardcode_libdir_flag_spec='-R$libdir'
8558 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8559 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8566 hardcode_libdir_flag_spec='-L$libdir'
8567 hardcode_minus_L=yes
8568 allow_undefined_flag=unsupported
8569 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'
8570 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8574 if test "$GCC" = yes; then
8575 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8576 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'
8578 allow_undefined_flag=' -expect_unresolved \*'
8579 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'
8581 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8582 hardcode_libdir_separator=:
8585 osf4* | osf5*) # as osf3* with the addition of -msym flag
8586 if test "$GCC" = yes; then
8587 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8588 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'
8589 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8591 allow_undefined_flag=' -expect_unresolved \*'
8592 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'
8593 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8594 $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'
8596 # Both c and cxx compiler support -rpath directly
8597 hardcode_libdir_flag_spec='-rpath $libdir'
8599 hardcode_libdir_separator=:
8603 no_undefined_flag=' -z text'
8604 if test "$GCC" = yes; then
8606 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8607 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8608 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8611 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8612 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8613 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8615 hardcode_libdir_flag_spec='-R$libdir'
8616 hardcode_shlibpath_var=no
8618 solaris2.[0-5] | solaris2.[0-5].*) ;;
8620 # The compiler driver will combine linker options so we
8621 # cannot just pass the convience library names through
8622 # without $wl, iff we do not link with $LD.
8623 # Luckily, gcc supports the same syntax we need for Sun Studio.
8624 # Supported since Solaris 2.6 (maybe 2.5.1?)
8627 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8629 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' ;;
8632 link_all_deplibs=yes
8636 if test "x$host_vendor" = xsequent; then
8637 # Use $CC to link under sequent, because it throws in some extra .o
8638 # files that make .init and .fini sections work.
8639 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8641 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8643 hardcode_libdir_flag_spec='-L$libdir'
8645 hardcode_minus_L=yes
8646 hardcode_shlibpath_var=no
8650 case $host_vendor in
8652 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8653 hardcode_direct=yes # is this really true???
8656 ## LD is ld it makes a PLAMLIB
8657 ## CC just makes a GrossModule.
8658 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8659 reload_cmds='$CC -r -o $output$reload_objs'
8663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8664 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8667 runpath_var='LD_RUN_PATH'
8668 hardcode_shlibpath_var=no
8672 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8673 hardcode_shlibpath_var=no
8674 export_dynamic_flag_spec='-Bexport'
8678 if test -d /usr/nec; then
8679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8680 hardcode_shlibpath_var=no
8681 runpath_var=LD_RUN_PATH
8682 hardcode_runpath_var=yes
8687 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8688 no_undefined_flag='${wl}-z,text'
8689 archive_cmds_need_lc=no
8690 hardcode_shlibpath_var=no
8691 runpath_var='LD_RUN_PATH'
8693 if test "$GCC" = yes; then
8694 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8695 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8697 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8698 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8702 sysv5* | sco3.2v5* | sco5v6*)
8703 # Note: We can NOT use -z defs as we might desire, because we do not
8704 # link with -lc, and that would cause any symbols used from libc to
8705 # always be unresolved, which means just about no library would
8706 # ever link correctly. If we're not using GNU ld we use -z text
8707 # though, which does catch some bad symbols but isn't as heavy-handed
8709 no_undefined_flag='${wl}-z,text'
8710 allow_undefined_flag='${wl}-z,nodefs'
8711 archive_cmds_need_lc=no
8712 hardcode_shlibpath_var=no
8713 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8714 hardcode_libdir_separator=':'
8715 link_all_deplibs=yes
8716 export_dynamic_flag_spec='${wl}-Bexport'
8717 runpath_var='LD_RUN_PATH'
8719 if test "$GCC" = yes; then
8720 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8721 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8723 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8724 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8729 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8730 hardcode_libdir_flag_spec='-L$libdir'
8731 hardcode_shlibpath_var=no
8740 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8741 echo "${ECHO_T}$ld_shlibs" >&6; }
8742 test "$ld_shlibs" = no && can_build_shared=no
8745 # Do we need to explicitly link libc?
8747 case "x$archive_cmds_need_lc" in
8749 # Assume -lc should be added
8750 archive_cmds_need_lc=yes
8752 if test "$enable_shared" = yes && test "$GCC" = yes; then
8753 case $archive_cmds in
8755 # FIXME: we may have to deal with multi-command sequences.
8758 # Test whether the compiler implicitly links with -lc since on some
8759 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8760 # to ld, don't add -lc before -lgcc.
8761 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8762 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8764 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8767 (eval $ac_compile) 2>&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); } 2>conftest.err; then
8773 libobjs=conftest.$ac_objext
8775 wl=$lt_prog_compiler_wl
8776 pic_flag=$lt_prog_compiler_pic
8782 lt_save_allow_undefined_flag=$allow_undefined_flag
8783 allow_undefined_flag=
8784 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8785 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); }
8790 archive_cmds_need_lc=no
8792 archive_cmds_need_lc=yes
8794 allow_undefined_flag=$lt_save_allow_undefined_flag
8796 cat conftest.err 1>&5
8799 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8800 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8807 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8808 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8810 libname_spec='lib$name'
8818 shlibpath_overrides_runpath=unknown
8820 dynamic_linker="$host_os ld.so"
8821 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8822 if test "$GCC" = yes; then
8823 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8824 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8825 # if the path contains ";" then we assume it to be the separator
8826 # otherwise default to the standard path separator (i.e. ":") - it is
8827 # assumed that no part of a normal pathname contains ";" but that should
8828 # okay in the real world where ";" in dirpaths is itself problematic.
8829 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8831 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8834 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8836 need_lib_prefix=unknown
8837 hardcode_into_libs=no
8839 # when you set need_version to no, make sure it does not cause -set_version
8840 # flags to be left without arguments
8841 need_version=unknown
8846 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8847 shlibpath_var=LIBPATH
8849 # AIX 3 has no versioning support, so we append a major version to the name.
8850 soname_spec='${libname}${release}${shared_ext}$major'
8857 hardcode_into_libs=yes
8858 if test "$host_cpu" = ia64; then
8859 # AIX 5 supports IA64
8860 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8861 shlibpath_var=LD_LIBRARY_PATH
8863 # With GCC up to 2.95.x, collect2 would create an import file
8864 # for dependence libraries. The import file would start with
8865 # the line `#! .'. This would cause the generated library to
8866 # depend on `.', always an invalid library. This was fixed in
8867 # development snapshots of GCC prior to 3.0.
8869 aix4 | aix4.[01] | aix4.[01].*)
8870 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8872 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8879 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8880 # soname into executable. Probably we can add versioning support to
8881 # collect2, so additional links can be useful in future.
8882 if test "$aix_use_runtimelinking" = yes; then
8883 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8884 # instead of lib<name>.a to let people know that these are not
8885 # typical AIX shared libraries.
8886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8888 # We preserve .a as extension for shared libraries through AIX4.2
8889 # and later when we are not doing run time linking.
8890 library_names_spec='${libname}${release}.a $libname.a'
8891 soname_spec='${libname}${release}${shared_ext}$major'
8893 shlibpath_var=LIBPATH
8898 library_names_spec='$libname.ixlibrary $libname.a'
8899 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8900 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'
8904 library_names_spec='${libname}${shared_ext}'
8905 dynamic_linker="$host_os ld.so"
8906 shlibpath_var=LIBRARY_PATH
8912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8913 soname_spec='${libname}${release}${shared_ext}$major'
8914 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8915 shlibpath_var=LD_LIBRARY_PATH
8916 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8917 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8918 # the default ld.so.conf also contains /usr/contrib/lib and
8919 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8920 # libtool to hard-code these into programs
8923 cygwin* | mingw* | pw32*)
8924 version_type=windows
8929 case $GCC,$host_os in
8930 yes,cygwin* | yes,mingw* | yes,pw32*)
8931 library_names_spec='$libname.dll.a'
8932 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8933 postinstall_cmds='base_file=`basename \${file}`~
8934 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8935 dldir=$destdir/`dirname \$dlpath`~
8936 test -d \$dldir || mkdir -p \$dldir~
8937 $install_prog $dir/$dlname \$dldir/$dlname~
8938 chmod a+x \$dldir/$dlname'
8939 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8940 dlpath=$dir/\$dldll~
8942 shlibpath_overrides_runpath=yes
8946 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8947 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8948 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8951 # MinGW DLLs use traditional 'lib' prefix
8952 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8953 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8954 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8955 # It is most probably a Windows format PATH printed by
8956 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8957 # path with ; separators, and with drive letters. We can handle the
8958 # drive letters (cygwin fileutils understands them), so leave them,
8959 # especially as we might pass files found there to a mingw objdump,
8960 # which wouldn't understand a cygwinified path. Ahh.
8961 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8963 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8967 # pw32 DLLs use 'pw' prefix rather than 'lib'
8968 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8974 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8977 dynamic_linker='Win32 ld.exe'
8978 # FIXME: first we should search . and the directory the executable is in
8982 darwin* | rhapsody*)
8983 dynamic_linker="$host_os dyld"
8987 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8988 soname_spec='${libname}${release}${major}$shared_ext'
8989 shlibpath_overrides_runpath=yes
8990 shlibpath_var=DYLD_LIBRARY_PATH
8991 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8992 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8993 if test "$GCC" = yes; then
8994 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"`
8996 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8998 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9006 soname_spec='${libname}${release}${shared_ext}$major'
9007 shlibpath_var=LD_LIBRARY_PATH
9014 freebsd* | dragonfly*)
9015 # DragonFly does not have aout. When/if they implement a new
9016 # versioning mechanism, adjust this.
9017 if test -x /usr/bin/objformat; then
9018 objformat=`/usr/bin/objformat`
9021 freebsd[123]*) objformat=aout ;;
9025 version_type=freebsd-$objformat
9026 case $version_type in
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9033 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9037 shlibpath_var=LD_LIBRARY_PATH
9040 shlibpath_overrides_runpath=yes
9042 freebsd3.[01]* | freebsdelf3.[01]*)
9043 shlibpath_overrides_runpath=yes
9044 hardcode_into_libs=yes
9046 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9047 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9048 shlibpath_overrides_runpath=no
9049 hardcode_into_libs=yes
9051 freebsd*) # from 4.6 on
9052 shlibpath_overrides_runpath=yes
9053 hardcode_into_libs=yes
9062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9063 soname_spec='${libname}${release}${shared_ext}$major'
9064 shlibpath_var=LD_LIBRARY_PATH
9065 hardcode_into_libs=yes
9068 hpux9* | hpux10* | hpux11*)
9069 # Give a soname corresponding to the major version so that dld.sl refuses to
9070 # link against other versions.
9077 hardcode_into_libs=yes
9078 dynamic_linker="$host_os dld.so"
9079 shlibpath_var=LD_LIBRARY_PATH
9080 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082 soname_spec='${libname}${release}${shared_ext}$major'
9083 if test "X$HPUX_IA64_MODE" = X32; then
9084 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9086 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9088 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9092 hardcode_into_libs=yes
9093 dynamic_linker="$host_os dld.sl"
9094 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9095 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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'
9098 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9099 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9103 dynamic_linker="$host_os dld.sl"
9104 shlibpath_var=SHLIB_PATH
9105 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9107 soname_spec='${libname}${release}${shared_ext}$major'
9110 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9111 postinstall_cmds='chmod 555 $lib'
9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9119 soname_spec='${libname}${release}${shared_ext}$major'
9120 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9121 shlibpath_var=LD_LIBRARY_PATH
9122 shlibpath_overrides_runpath=no
9123 hardcode_into_libs=yes
9126 irix5* | irix6* | nonstopux*)
9128 nonstopux*) version_type=nonstopux ;;
9130 if test "$lt_cv_prog_gnu_ld" = yes; then
9138 soname_spec='${libname}${release}${shared_ext}$major'
9139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9141 irix5* | nonstopux*)
9145 case $LD in # libtool.m4 will add one of these switches to LD
9146 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9147 libsuff= shlibsuff= libmagic=32-bit;;
9148 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9149 libsuff=32 shlibsuff=N32 libmagic=N32;;
9150 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9151 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9152 *) libsuff= shlibsuff= libmagic=never-match;;
9156 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9157 shlibpath_overrides_runpath=no
9158 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9159 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9160 hardcode_into_libs=yes
9163 # No shared lib support for Linux oldld, aout, or coff.
9164 linux*oldld* | linux*aout* | linux*coff*)
9168 # This must be Linux ELF.
9169 linux* | k*bsd*-gnu)
9173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9174 soname_spec='${libname}${release}${shared_ext}$major'
9175 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9176 shlibpath_var=LD_LIBRARY_PATH
9177 shlibpath_overrides_runpath=no
9178 # This implies no fast_install, which is unacceptable.
9179 # Some rework will be needed to allow for fast_install
9180 # before this can be enabled.
9181 hardcode_into_libs=yes
9183 # Append ld.so.conf contents to the search path
9184 if test -f /etc/ld.so.conf; then
9185 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' ' '`
9186 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9189 # We used to test for /lib/ld.so.1 and disable shared libraries on
9190 # powerpc, because MkLinux only supported shared libraries with the
9191 # GNU dynamic linker. Since this was broken with cross compilers,
9192 # most powerpc-linux boxes support dynamic linking these days and
9193 # people can always --disable-shared, the test was removed, and we
9194 # assume the GNU/Linux dynamic linker is in use.
9195 dynamic_linker='GNU/Linux ld.so'
9202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9203 soname_spec='${libname}${release}${shared_ext}$major'
9204 shlibpath_var=LD_LIBRARY_PATH
9205 shlibpath_overrides_runpath=no
9206 hardcode_into_libs=yes
9207 dynamic_linker='NetBSD ld.elf_so'
9214 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9216 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9217 dynamic_linker='NetBSD (a.out) ld.so'
9219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9220 soname_spec='${libname}${release}${shared_ext}$major'
9221 dynamic_linker='NetBSD ld.elf_so'
9223 shlibpath_var=LD_LIBRARY_PATH
9224 shlibpath_overrides_runpath=yes
9225 hardcode_into_libs=yes
9230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9231 shlibpath_var=LD_LIBRARY_PATH
9232 shlibpath_overrides_runpath=yes
9239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9240 soname_spec='${libname}${release}${shared_ext}$major'
9241 shlibpath_var=LD_LIBRARY_PATH
9242 shlibpath_overrides_runpath=yes
9247 sys_lib_dlsearch_path_spec="/usr/lib"
9249 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9251 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9252 *) need_version=no ;;
9254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9255 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9256 shlibpath_var=LD_LIBRARY_PATH
9257 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9259 openbsd2.[89] | openbsd2.[89].*)
9260 shlibpath_overrides_runpath=no
9263 shlibpath_overrides_runpath=yes
9267 shlibpath_overrides_runpath=yes
9272 libname_spec='$name'
9275 library_names_spec='$libname${shared_ext} $libname.a'
9276 dynamic_linker='OS/2 ld.exe'
9277 shlibpath_var=LIBPATH
9280 osf3* | osf4* | osf5*)
9284 soname_spec='${libname}${release}${shared_ext}$major'
9285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9286 shlibpath_var=LD_LIBRARY_PATH
9287 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9288 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9296 soname_spec='${libname}${release}${shared_ext}$major'
9297 shlibpath_var=LD_LIBRARY_PATH
9298 shlibpath_overrides_runpath=yes
9299 hardcode_into_libs=yes
9300 # ldd complains unless libraries are executable
9301 postinstall_cmds='chmod +x $lib'
9306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9307 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9308 shlibpath_var=LD_LIBRARY_PATH
9309 shlibpath_overrides_runpath=yes
9310 if test "$with_gnu_ld" = yes; then
9318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319 soname_spec='${libname}${release}${shared_ext}$major'
9320 shlibpath_var=LD_LIBRARY_PATH
9321 case $host_vendor in
9323 shlibpath_overrides_runpath=no
9325 export_dynamic_flag_spec='${wl}-Blargedynsym'
9326 runpath_var=LD_RUN_PATH
9334 shlibpath_overrides_runpath=no
9335 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9341 if test -d /usr/nec ;then
9343 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9344 soname_spec='$libname${shared_ext}.$major'
9345 shlibpath_var=LD_LIBRARY_PATH
9349 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9350 version_type=freebsd-elf
9353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9354 soname_spec='${libname}${release}${shared_ext}$major'
9355 shlibpath_var=LD_LIBRARY_PATH
9356 hardcode_into_libs=yes
9357 if test "$with_gnu_ld" = yes; then
9358 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9359 shlibpath_overrides_runpath=no
9361 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9362 shlibpath_overrides_runpath=yes
9365 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9369 sys_lib_dlsearch_path_spec='/usr/lib'
9374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9375 soname_spec='${libname}${release}${shared_ext}$major'
9376 shlibpath_var=LD_LIBRARY_PATH
9383 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9384 echo "${ECHO_T}$dynamic_linker" >&6; }
9385 test "$dynamic_linker" = no && can_build_shared=no
9387 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9388 if test "$GCC" = yes; then
9389 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9392 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9393 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9395 if test -n "$hardcode_libdir_flag_spec" || \
9396 test -n "$runpath_var" || \
9397 test "X$hardcode_automatic" = "Xyes" ; then
9399 # We can hardcode non-existant directories.
9400 if test "$hardcode_direct" != no &&
9401 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9402 # have to relink, otherwise we might link with an installed library
9403 # when we should be linking with a yet-to-be-installed one
9404 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9405 test "$hardcode_minus_L" != no; then
9406 # Linking always hardcodes the temporary library directory.
9407 hardcode_action=relink
9409 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9410 hardcode_action=immediate
9413 # We cannot hardcode anything, or else we can only hardcode existing
9415 hardcode_action=unsupported
9417 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9418 echo "${ECHO_T}$hardcode_action" >&6; }
9420 if test "$hardcode_action" = relink; then
9421 # Fast installation is not supported
9422 enable_fast_install=no
9423 elif test "$shlibpath_overrides_runpath" = yes ||
9424 test "$enable_shared" = no; then
9425 # Fast installation is not necessary
9426 enable_fast_install=needless
9431 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9432 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9433 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9434 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9435 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9436 { echo "$as_me:$LINENO: result: yes" >&5
9437 echo "${ECHO_T}yes" >&6; }
9439 # FIXME - insert some real tests, host_os isn't really good enough
9442 if test -n "$STRIP" ; then
9443 striplib="$STRIP -x"
9444 { echo "$as_me:$LINENO: result: yes" >&5
9445 echo "${ECHO_T}yes" >&6; }
9447 { echo "$as_me:$LINENO: result: no" >&5
9448 echo "${ECHO_T}no" >&6; }
9452 { echo "$as_me:$LINENO: result: no" >&5
9453 echo "${ECHO_T}no" >&6; }
9458 if test "x$enable_dlopen" != xyes; then
9459 enable_dlopen=unknown
9460 enable_dlopen_self=unknown
9461 enable_dlopen_self_static=unknown
9468 lt_cv_dlopen="load_add_on"
9470 lt_cv_dlopen_self=yes
9474 lt_cv_dlopen="LoadLibrary"
9479 lt_cv_dlopen="dlopen"
9484 # if libdl is installed we need to link against it
9485 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9486 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9487 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9488 echo $ECHO_N "(cached) $ECHO_C" >&6
9490 ac_check_lib_save_LIBS=$LIBS
9492 cat >conftest.$ac_ext <<_ACEOF
9495 cat confdefs.h >>conftest.$ac_ext
9496 cat >>conftest.$ac_ext <<_ACEOF
9497 /* end confdefs.h. */
9499 /* Override any GCC internal prototype to avoid an error.
9500 Use char because int might match the return type of a GCC
9501 builtin and then its argument prototype would still apply. */
9514 rm -f conftest.$ac_objext conftest$ac_exeext
9515 if { (ac_try="$ac_link"
9517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9518 *) ac_try_echo=$ac_try;;
9520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9521 (eval "$ac_link") 2>conftest.er1
9523 grep -v '^ *+' conftest.er1 >conftest.err
9525 cat conftest.err >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } && {
9528 test -z "$ac_c_werror_flag" ||
9529 test ! -s conftest.err
9530 } && test -s conftest$ac_exeext &&
9531 $as_test_x conftest$ac_exeext; then
9532 ac_cv_lib_dl_dlopen=yes
9534 echo "$as_me: failed program was:" >&5
9535 sed 's/^/| /' conftest.$ac_ext >&5
9537 ac_cv_lib_dl_dlopen=no
9540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9541 conftest$ac_exeext conftest.$ac_ext
9542 LIBS=$ac_check_lib_save_LIBS
9544 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9545 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9546 if test $ac_cv_lib_dl_dlopen = yes; then
9547 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9552 lt_cv_dlopen_self=yes
9559 { echo "$as_me:$LINENO: checking for shl_load" >&5
9560 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9561 if test "${ac_cv_func_shl_load+set}" = set; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
9564 cat >conftest.$ac_ext <<_ACEOF
9567 cat confdefs.h >>conftest.$ac_ext
9568 cat >>conftest.$ac_ext <<_ACEOF
9569 /* end confdefs.h. */
9570 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9572 #define shl_load innocuous_shl_load
9574 /* System header to define __stub macros and hopefully few prototypes,
9575 which can conflict with char shl_load (); below.
9576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9577 <limits.h> exists even on freestanding compilers. */
9580 # include <limits.h>
9582 # include <assert.h>
9587 /* Override any GCC internal prototype to avoid an error.
9588 Use char because int might match the return type of a GCC
9589 builtin and then its argument prototype would still apply. */
9594 /* The GNU C library defines this for functions which it implements
9595 to always fail with ENOSYS. Some functions are actually named
9596 something starting with __ and the normal name is an alias. */
9597 #if defined __stub_shl_load || defined __stub___shl_load
9609 rm -f conftest.$ac_objext conftest$ac_exeext
9610 if { (ac_try="$ac_link"
9612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9613 *) ac_try_echo=$ac_try;;
9615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9616 (eval "$ac_link") 2>conftest.er1
9618 grep -v '^ *+' conftest.er1 >conftest.err
9620 cat conftest.err >&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); } && {
9623 test -z "$ac_c_werror_flag" ||
9624 test ! -s conftest.err
9625 } && test -s conftest$ac_exeext &&
9626 $as_test_x conftest$ac_exeext; then
9627 ac_cv_func_shl_load=yes
9629 echo "$as_me: failed program was:" >&5
9630 sed 's/^/| /' conftest.$ac_ext >&5
9632 ac_cv_func_shl_load=no
9635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9636 conftest$ac_exeext conftest.$ac_ext
9638 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9639 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9640 if test $ac_cv_func_shl_load = yes; then
9641 lt_cv_dlopen="shl_load"
9643 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9644 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9645 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9648 ac_check_lib_save_LIBS=$LIBS
9650 cat >conftest.$ac_ext <<_ACEOF
9653 cat confdefs.h >>conftest.$ac_ext
9654 cat >>conftest.$ac_ext <<_ACEOF
9655 /* end confdefs.h. */
9657 /* Override any GCC internal prototype to avoid an error.
9658 Use char because int might match the return type of a GCC
9659 builtin and then its argument prototype would still apply. */
9672 rm -f conftest.$ac_objext conftest$ac_exeext
9673 if { (ac_try="$ac_link"
9675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9676 *) ac_try_echo=$ac_try;;
9678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9679 (eval "$ac_link") 2>conftest.er1
9681 grep -v '^ *+' conftest.er1 >conftest.err
9683 cat conftest.err >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); } && {
9686 test -z "$ac_c_werror_flag" ||
9687 test ! -s conftest.err
9688 } && test -s conftest$ac_exeext &&
9689 $as_test_x conftest$ac_exeext; then
9690 ac_cv_lib_dld_shl_load=yes
9692 echo "$as_me: failed program was:" >&5
9693 sed 's/^/| /' conftest.$ac_ext >&5
9695 ac_cv_lib_dld_shl_load=no
9698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9699 conftest$ac_exeext conftest.$ac_ext
9700 LIBS=$ac_check_lib_save_LIBS
9702 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9703 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9704 if test $ac_cv_lib_dld_shl_load = yes; then
9705 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9707 { echo "$as_me:$LINENO: checking for dlopen" >&5
9708 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9709 if test "${ac_cv_func_dlopen+set}" = set; then
9710 echo $ECHO_N "(cached) $ECHO_C" >&6
9712 cat >conftest.$ac_ext <<_ACEOF
9715 cat confdefs.h >>conftest.$ac_ext
9716 cat >>conftest.$ac_ext <<_ACEOF
9717 /* end confdefs.h. */
9718 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9720 #define dlopen innocuous_dlopen
9722 /* System header to define __stub macros and hopefully few prototypes,
9723 which can conflict with char dlopen (); below.
9724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9725 <limits.h> exists even on freestanding compilers. */
9728 # include <limits.h>
9730 # include <assert.h>
9735 /* Override any GCC internal prototype to avoid an error.
9736 Use char because int might match the return type of a GCC
9737 builtin and then its argument prototype would still apply. */
9742 /* The GNU C library defines this for functions which it implements
9743 to always fail with ENOSYS. Some functions are actually named
9744 something starting with __ and the normal name is an alias. */
9745 #if defined __stub_dlopen || defined __stub___dlopen
9757 rm -f conftest.$ac_objext conftest$ac_exeext
9758 if { (ac_try="$ac_link"
9760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761 *) ac_try_echo=$ac_try;;
9763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9764 (eval "$ac_link") 2>conftest.er1
9766 grep -v '^ *+' conftest.er1 >conftest.err
9768 cat conftest.err >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } && {
9771 test -z "$ac_c_werror_flag" ||
9772 test ! -s conftest.err
9773 } && test -s conftest$ac_exeext &&
9774 $as_test_x conftest$ac_exeext; then
9775 ac_cv_func_dlopen=yes
9777 echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.$ac_ext >&5
9780 ac_cv_func_dlopen=no
9783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9784 conftest$ac_exeext conftest.$ac_ext
9786 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9787 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9788 if test $ac_cv_func_dlopen = yes; then
9789 lt_cv_dlopen="dlopen"
9791 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9792 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9793 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9794 echo $ECHO_N "(cached) $ECHO_C" >&6
9796 ac_check_lib_save_LIBS=$LIBS
9798 cat >conftest.$ac_ext <<_ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9805 /* Override any GCC internal prototype to avoid an error.
9806 Use char because int might match the return type of a GCC
9807 builtin and then its argument prototype would still apply. */
9820 rm -f conftest.$ac_objext conftest$ac_exeext
9821 if { (ac_try="$ac_link"
9823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9824 *) ac_try_echo=$ac_try;;
9826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9827 (eval "$ac_link") 2>conftest.er1
9829 grep -v '^ *+' conftest.er1 >conftest.err
9831 cat conftest.err >&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); } && {
9834 test -z "$ac_c_werror_flag" ||
9835 test ! -s conftest.err
9836 } && test -s conftest$ac_exeext &&
9837 $as_test_x conftest$ac_exeext; then
9838 ac_cv_lib_dl_dlopen=yes
9840 echo "$as_me: failed program was:" >&5
9841 sed 's/^/| /' conftest.$ac_ext >&5
9843 ac_cv_lib_dl_dlopen=no
9846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9847 conftest$ac_exeext conftest.$ac_ext
9848 LIBS=$ac_check_lib_save_LIBS
9850 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9851 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9852 if test $ac_cv_lib_dl_dlopen = yes; then
9853 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9855 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9856 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9857 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9858 echo $ECHO_N "(cached) $ECHO_C" >&6
9860 ac_check_lib_save_LIBS=$LIBS
9862 cat >conftest.$ac_ext <<_ACEOF
9865 cat confdefs.h >>conftest.$ac_ext
9866 cat >>conftest.$ac_ext <<_ACEOF
9867 /* end confdefs.h. */
9869 /* Override any GCC internal prototype to avoid an error.
9870 Use char because int might match the return type of a GCC
9871 builtin and then its argument prototype would still apply. */
9884 rm -f conftest.$ac_objext conftest$ac_exeext
9885 if { (ac_try="$ac_link"
9887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9888 *) ac_try_echo=$ac_try;;
9890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9891 (eval "$ac_link") 2>conftest.er1
9893 grep -v '^ *+' conftest.er1 >conftest.err
9895 cat conftest.err >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); } && {
9898 test -z "$ac_c_werror_flag" ||
9899 test ! -s conftest.err
9900 } && test -s conftest$ac_exeext &&
9901 $as_test_x conftest$ac_exeext; then
9902 ac_cv_lib_svld_dlopen=yes
9904 echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9907 ac_cv_lib_svld_dlopen=no
9910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9911 conftest$ac_exeext conftest.$ac_ext
9912 LIBS=$ac_check_lib_save_LIBS
9914 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9915 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9916 if test $ac_cv_lib_svld_dlopen = yes; then
9917 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9919 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9920 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9921 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
9924 ac_check_lib_save_LIBS=$LIBS
9926 cat >conftest.$ac_ext <<_ACEOF
9929 cat confdefs.h >>conftest.$ac_ext
9930 cat >>conftest.$ac_ext <<_ACEOF
9931 /* end confdefs.h. */
9933 /* Override any GCC internal prototype to avoid an error.
9934 Use char because int might match the return type of a GCC
9935 builtin and then its argument prototype would still apply. */
9948 rm -f conftest.$ac_objext conftest$ac_exeext
9949 if { (ac_try="$ac_link"
9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952 *) ac_try_echo=$ac_try;;
9954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955 (eval "$ac_link") 2>conftest.er1
9957 grep -v '^ *+' conftest.er1 >conftest.err
9959 cat conftest.err >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } && {
9962 test -z "$ac_c_werror_flag" ||
9963 test ! -s conftest.err
9964 } && test -s conftest$ac_exeext &&
9965 $as_test_x conftest$ac_exeext; then
9966 ac_cv_lib_dld_dld_link=yes
9968 echo "$as_me: failed program was:" >&5
9969 sed 's/^/| /' conftest.$ac_ext >&5
9971 ac_cv_lib_dld_dld_link=no
9974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9975 conftest$ac_exeext conftest.$ac_ext
9976 LIBS=$ac_check_lib_save_LIBS
9978 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9979 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9980 if test $ac_cv_lib_dld_dld_link = yes; then
9981 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10002 if test "x$lt_cv_dlopen" != xno; then
10008 case $lt_cv_dlopen in
10010 save_CPPFLAGS="$CPPFLAGS"
10011 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10013 save_LDFLAGS="$LDFLAGS"
10014 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10017 LIBS="$lt_cv_dlopen_libs $LIBS"
10019 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10020 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10021 if test "${lt_cv_dlopen_self+set}" = set; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
10024 if test "$cross_compiling" = yes; then :
10025 lt_cv_dlopen_self=cross
10027 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10028 lt_status=$lt_dlunknown
10029 cat > conftest.$ac_ext <<EOF
10030 #line 10030 "configure"
10031 #include "confdefs.h"
10040 # define LT_DLGLOBAL RTLD_GLOBAL
10043 # define LT_DLGLOBAL DL_GLOBAL
10045 # define LT_DLGLOBAL 0
10049 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10050 find out it does not work in some platform. */
10051 #ifndef LT_DLLAZY_OR_NOW
10053 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10056 # define LT_DLLAZY_OR_NOW DL_LAZY
10059 # define LT_DLLAZY_OR_NOW RTLD_NOW
10062 # define LT_DLLAZY_OR_NOW DL_NOW
10064 # define LT_DLLAZY_OR_NOW 0
10072 extern "C" void exit (int);
10075 void fnord() { int i=42;}
10078 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10079 int status = $lt_dlunknown;
10083 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10084 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10085 /* dlclose (self); */
10093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10094 (eval $ac_link) 2>&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10098 (./conftest; exit; ) >&5 2>/dev/null
10100 case x$lt_status in
10101 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10102 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10103 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10106 # compilation failed
10107 lt_cv_dlopen_self=no
10114 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10115 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10117 if test "x$lt_cv_dlopen_self" = xyes; then
10118 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10119 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10120 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10121 if test "${lt_cv_dlopen_self_static+set}" = set; then
10122 echo $ECHO_N "(cached) $ECHO_C" >&6
10124 if test "$cross_compiling" = yes; then :
10125 lt_cv_dlopen_self_static=cross
10127 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10128 lt_status=$lt_dlunknown
10129 cat > conftest.$ac_ext <<EOF
10130 #line 10130 "configure"
10131 #include "confdefs.h"
10140 # define LT_DLGLOBAL RTLD_GLOBAL
10143 # define LT_DLGLOBAL DL_GLOBAL
10145 # define LT_DLGLOBAL 0
10149 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10150 find out it does not work in some platform. */
10151 #ifndef LT_DLLAZY_OR_NOW
10153 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10156 # define LT_DLLAZY_OR_NOW DL_LAZY
10159 # define LT_DLLAZY_OR_NOW RTLD_NOW
10162 # define LT_DLLAZY_OR_NOW DL_NOW
10164 # define LT_DLLAZY_OR_NOW 0
10172 extern "C" void exit (int);
10175 void fnord() { int i=42;}
10178 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10179 int status = $lt_dlunknown;
10183 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10184 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10185 /* dlclose (self); */
10193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10194 (eval $ac_link) 2>&5
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10198 (./conftest; exit; ) >&5 2>/dev/null
10200 case x$lt_status in
10201 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10202 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10203 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10206 # compilation failed
10207 lt_cv_dlopen_self_static=no
10214 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10215 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10218 CPPFLAGS="$save_CPPFLAGS"
10219 LDFLAGS="$save_LDFLAGS"
10224 case $lt_cv_dlopen_self in
10225 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10226 *) enable_dlopen_self=unknown ;;
10229 case $lt_cv_dlopen_self_static in
10230 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10231 *) enable_dlopen_self_static=unknown ;;
10236 # Report which library types will actually be built
10237 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10238 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10239 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10240 echo "${ECHO_T}$can_build_shared" >&6; }
10242 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10243 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10244 test "$can_build_shared" = "no" && enable_shared=no
10246 # On AIX, shared libraries and static libraries use the same namespace, and
10247 # are all built from PIC.
10250 test "$enable_shared" = yes && enable_static=no
10251 if test -n "$RANLIB"; then
10252 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10253 postinstall_cmds='$RANLIB $lib'
10258 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10259 test "$enable_shared" = yes && enable_static=no
10263 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10264 echo "${ECHO_T}$enable_shared" >&6; }
10266 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10267 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10268 # Make sure either enable_shared or enable_static is yes.
10269 test "$enable_shared" = yes || enable_static=yes
10270 { echo "$as_me:$LINENO: result: $enable_static" >&5
10271 echo "${ECHO_T}$enable_static" >&6; }
10273 # The else clause should only fire when bootstrapping the
10274 # libtool distribution, otherwise you forgot to ship ltmain.sh
10275 # with your package, and you will get complaints that there are
10276 # no rules to generate ltmain.sh.
10277 if test -f "$ltmain"; then
10278 # See if we are running on zsh, and set the options which allow our commands through
10279 # without removal of \ escapes.
10280 if test -n "${ZSH_VERSION+set}" ; then
10281 setopt NO_GLOB_SUBST
10283 # Now quote all the things that may contain metacharacters while being
10284 # careful not to overquote the AC_SUBSTed values. We take copies of the
10285 # variables and quote the copies for generation of the libtool script.
10286 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10288 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10289 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10290 deplibs_check_method reload_flag reload_cmds need_locks \
10291 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10292 lt_cv_sys_global_symbol_to_c_name_address \
10293 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10294 old_postinstall_cmds old_postuninstall_cmds \
10298 lt_prog_compiler_wl \
10299 lt_prog_compiler_pic \
10300 lt_prog_compiler_static \
10301 lt_prog_compiler_no_builtin_flag \
10302 export_dynamic_flag_spec \
10303 thread_safe_flag_spec \
10304 whole_archive_flag_spec \
10305 enable_shared_with_static_runtimes \
10307 old_archive_from_new_cmds \
10312 compiler_lib_search_path \
10314 archive_expsym_cmds \
10316 postuninstall_cmds \
10317 old_archive_from_expsyms_cmds \
10318 allow_undefined_flag \
10319 no_undefined_flag \
10320 export_symbols_cmds \
10321 hardcode_libdir_flag_spec \
10322 hardcode_libdir_flag_spec_ld \
10323 hardcode_libdir_separator \
10324 hardcode_automatic \
10326 module_expsym_cmds \
10327 lt_cv_prog_compiler_c_o \
10329 include_expsyms; do
10332 old_archive_cmds | \
10333 old_archive_from_new_cmds | \
10335 archive_expsym_cmds | \
10337 module_expsym_cmds | \
10338 old_archive_from_expsyms_cmds | \
10339 export_symbols_cmds | \
10340 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10341 postinstall_cmds | postuninstall_cmds | \
10342 old_postinstall_cmds | old_postuninstall_cmds | \
10343 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10344 # Double-quote double-evaled strings.
10345 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10348 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10354 *'\$0 --fallback-echo"')
10355 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10359 cfgfile="${ofile}T"
10360 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10362 { echo "$as_me:$LINENO: creating $ofile" >&5
10363 echo "$as_me: creating $ofile" >&6;}
10365 cat <<__EOF__ >> "$cfgfile"
10368 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10369 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10370 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10372 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10373 # Free Software Foundation, Inc.
10375 # This file is part of GNU Libtool:
10376 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10378 # This program is free software; you can redistribute it and/or modify
10379 # it under the terms of the GNU General Public License as published by
10380 # the Free Software Foundation; either version 2 of the License, or
10381 # (at your option) any later version.
10383 # This program is distributed in the hope that it will be useful, but
10384 # WITHOUT ANY WARRANTY; without even the implied warranty of
10385 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10386 # General Public License for more details.
10388 # You should have received a copy of the GNU General Public License
10389 # along with this program; if not, write to the Free Software
10390 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10392 # As a special exception to the GNU General Public License, if you
10393 # distribute this file as part of a program that contains a
10394 # configuration script generated by Autoconf, you may include it under
10395 # the same distribution terms that you use for the rest of that program.
10397 # A sed program that does not truncate output.
10400 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10401 Xsed="$SED -e 1s/^X//"
10403 # The HP-UX ksh and POSIX shell print the target directory to stdout
10404 # if CDPATH is set.
10405 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10407 # The names of the tagged configurations supported by this script.
10410 # ### BEGIN LIBTOOL CONFIG
10412 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10414 # Shell to use when invoking shell scripts.
10417 # Whether or not to build shared libraries.
10418 build_libtool_libs=$enable_shared
10420 # Whether or not to build static libraries.
10421 build_old_libs=$enable_static
10423 # Whether or not to add -lc for building shared libraries.
10424 build_libtool_need_lc=$archive_cmds_need_lc
10426 # Whether or not to disallow shared libs when runtime libs are static
10427 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10429 # Whether or not to optimize for fast installation.
10430 fast_install=$enable_fast_install
10433 host_alias=$host_alias
10437 # The build system.
10438 build_alias=$build_alias
10442 # An echo program that does not interpret backslashes.
10447 AR_FLAGS=$lt_AR_FLAGS
10452 # LTCC compiler flags.
10453 LTCFLAGS=$lt_LTCFLAGS
10455 # A language-specific compiler.
10458 # Is the compiler the GNU C compiler?
10464 # The linker used to build libraries.
10467 # Whether we need hard or soft links.
10470 # A BSD-compatible nm program.
10473 # A symbol stripping program
10476 # Used to examine libraries when file_magic_cmd begins "file"
10477 MAGIC_CMD=$MAGIC_CMD
10479 # Used on cygwin: DLL creation program.
10482 # Used on cygwin: object dumper.
10485 # Used on cygwin: assembler.
10488 # The name of the directory that contains temporary libtool files.
10491 # How to create reloadable object files.
10492 reload_flag=$lt_reload_flag
10493 reload_cmds=$lt_reload_cmds
10495 # How to pass a linker flag through the compiler.
10496 wl=$lt_lt_prog_compiler_wl
10498 # Object file suffix (normally "o").
10499 objext="$ac_objext"
10501 # Old archive suffix (normally "a").
10504 # Shared library suffix (normally ".so").
10505 shrext_cmds='$shrext_cmds'
10507 # Executable file suffix (normally "").
10510 # Additional compiler flags for building library objects.
10511 pic_flag=$lt_lt_prog_compiler_pic
10514 # What is the maximum length of a command?
10515 max_cmd_len=$lt_cv_sys_max_cmd_len
10517 # Does compiler simultaneously support -c and -o options?
10518 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10520 # Must we lock files when doing compilation?
10521 need_locks=$lt_need_locks
10523 # Do we need the lib prefix for modules?
10524 need_lib_prefix=$need_lib_prefix
10526 # Do we need a version for libraries?
10527 need_version=$need_version
10529 # Whether dlopen is supported.
10530 dlopen_support=$enable_dlopen
10532 # Whether dlopen of programs is supported.
10533 dlopen_self=$enable_dlopen_self
10535 # Whether dlopen of statically linked programs is supported.
10536 dlopen_self_static=$enable_dlopen_self_static
10538 # Compiler flag to prevent dynamic linking.
10539 link_static_flag=$lt_lt_prog_compiler_static
10541 # Compiler flag to turn off builtin functions.
10542 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10544 # Compiler flag to allow reflexive dlopens.
10545 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10547 # Compiler flag to generate shared objects directly from archives.
10548 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10550 # Compiler flag to generate thread-safe objects.
10551 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10553 # Library versioning type.
10554 version_type=$version_type
10556 # Format of library name prefix.
10557 libname_spec=$lt_libname_spec
10559 # List of archive names. First name is the real one, the rest are links.
10560 # The last name is the one that the linker finds with -lNAME.
10561 library_names_spec=$lt_library_names_spec
10563 # The coded name of the library, if different from the real name.
10564 soname_spec=$lt_soname_spec
10566 # Commands used to build and install an old-style archive.
10568 old_archive_cmds=$lt_old_archive_cmds
10569 old_postinstall_cmds=$lt_old_postinstall_cmds
10570 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10572 # Create an old-style archive from a shared archive.
10573 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10575 # Create a temporary old-style archive to link instead of a shared archive.
10576 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10578 # Commands used to build and install a shared archive.
10579 archive_cmds=$lt_archive_cmds
10580 archive_expsym_cmds=$lt_archive_expsym_cmds
10581 postinstall_cmds=$lt_postinstall_cmds
10582 postuninstall_cmds=$lt_postuninstall_cmds
10584 # Commands used to build a loadable module (assumed same as above if empty)
10585 module_cmds=$lt_module_cmds
10586 module_expsym_cmds=$lt_module_expsym_cmds
10588 # Commands to strip libraries.
10589 old_striplib=$lt_old_striplib
10590 striplib=$lt_striplib
10592 # Dependencies to place before the objects being linked to create a
10594 predep_objects=$lt_predep_objects
10596 # Dependencies to place after the objects being linked to create a
10598 postdep_objects=$lt_postdep_objects
10600 # Dependencies to place before the objects being linked to create a
10602 predeps=$lt_predeps
10604 # Dependencies to place after the objects being linked to create a
10606 postdeps=$lt_postdeps
10608 # The library search path used internally by the compiler when linking
10609 # a shared library.
10610 compiler_lib_search_path=$lt_compiler_lib_search_path
10612 # Method to check whether dependent libraries are shared objects.
10613 deplibs_check_method=$lt_deplibs_check_method
10615 # Command to use when deplibs_check_method == file_magic.
10616 file_magic_cmd=$lt_file_magic_cmd
10618 # Flag that allows shared libraries with undefined symbols to be built.
10619 allow_undefined_flag=$lt_allow_undefined_flag
10621 # Flag that forces no undefined symbols.
10622 no_undefined_flag=$lt_no_undefined_flag
10624 # Commands used to finish a libtool library installation in a directory.
10625 finish_cmds=$lt_finish_cmds
10627 # Same as above, but a single script fragment to be evaled but not shown.
10628 finish_eval=$lt_finish_eval
10630 # Take the output of nm and produce a listing of raw symbols and C names.
10631 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10633 # Transform the output of nm in a proper C declaration
10634 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10636 # Transform the output of nm in a C name address pair
10637 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10639 # This is the shared library runtime path variable.
10640 runpath_var=$runpath_var
10642 # This is the shared library path variable.
10643 shlibpath_var=$shlibpath_var
10645 # Is shlibpath searched before the hard-coded library search path?
10646 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10648 # How to hardcode a shared library path into an executable.
10649 hardcode_action=$hardcode_action
10651 # Whether we should hardcode library paths into libraries.
10652 hardcode_into_libs=$hardcode_into_libs
10654 # Flag to hardcode \$libdir into a binary during linking.
10655 # This must work even if \$libdir does not exist.
10656 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10658 # If ld is used when linking, flag to hardcode \$libdir into
10659 # a binary during linking. This must work even if \$libdir does
10661 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10663 # Whether we need a single -rpath flag with a separated argument.
10664 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10666 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10667 # resulting binary.
10668 hardcode_direct=$hardcode_direct
10670 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10671 # resulting binary.
10672 hardcode_minus_L=$hardcode_minus_L
10674 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10675 # the resulting binary.
10676 hardcode_shlibpath_var=$hardcode_shlibpath_var
10678 # Set to yes if building a shared library automatically hardcodes DIR into the library
10679 # and all subsequent libraries and executables linked against it.
10680 hardcode_automatic=$hardcode_automatic
10682 # Variables whose values should be saved in libtool wrapper scripts and
10683 # restored at relink time.
10684 variables_saved_for_relink="$variables_saved_for_relink"
10686 # Whether libtool must link a program against all its dependency libraries.
10687 link_all_deplibs=$link_all_deplibs
10689 # Compile-time system search path for libraries
10690 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10692 # Run-time system search path for libraries
10693 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10695 # Fix the shell variable \$srcfile for the compiler.
10696 fix_srcfile_path="$fix_srcfile_path"
10698 # Set to yes if exported symbols are required.
10699 always_export_symbols=$always_export_symbols
10701 # The commands to list exported symbols.
10702 export_symbols_cmds=$lt_export_symbols_cmds
10704 # The commands to extract the exported symbol list from a shared archive.
10705 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10707 # Symbols that should not be listed in the preloaded symbols.
10708 exclude_expsyms=$lt_exclude_expsyms
10710 # Symbols that must always be exported.
10711 include_expsyms=$lt_include_expsyms
10713 # ### END LIBTOOL CONFIG
10720 cat <<\EOF >> "$cfgfile"
10722 # AIX sometimes has problems with the GCC collect2 program. For some
10723 # reason, if we set the COLLECT_NAMES environment variable, the problems
10724 # vanish in a puff of smoke.
10725 if test "X${COLLECT_NAMES+set}" != Xset; then
10727 export COLLECT_NAMES
10733 # We use sed instead of cat because bash on DJGPP gets confused if
10734 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10735 # text mode, it properly converts lines to CR/LF. This bash problem
10736 # is reportedly fixed, but why not run on old versions too?
10737 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10739 mv -f "$cfgfile" "$ofile" || \
10740 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10744 # If there is no Makefile yet, we rely on a make rule to execute
10745 # `config.status --recheck' to rerun these tests and create the
10746 # libtool script then.
10747 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10748 if test -f "$ltmain_in"; then
10749 test -f Makefile && make "$ltmain"
10755 ac_cpp='$CPP $CPPFLAGS'
10756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10763 # Check whether --with-tags was given.
10764 if test "${with_tags+set}" = set; then
10765 withval=$with_tags; tagnames="$withval"
10769 if test -f "$ltmain" && test -n "$tagnames"; then
10770 if test ! -f "${ofile}"; then
10771 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10772 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10775 if test -z "$LTCC"; then
10776 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10777 if test -z "$LTCC"; then
10778 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10779 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10781 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10782 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10785 if test -z "$LTCFLAGS"; then
10786 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10789 # Extract list of available tagged configurations in $ofile.
10790 # Note that this assumes the entire list is on one line.
10791 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10793 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10794 for tagname in $tagnames; do
10796 # Check whether tagname contains only valid characters
10797 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10799 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10800 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10801 { (exit 1); exit 1; }; }
10805 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10807 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10808 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10809 { (exit 1); exit 1; }; }
10812 # Update the list of available tags.
10813 if test -n "$tagname"; then
10814 echo appending configuration tag \"$tagname\" to $ofile
10818 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10819 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10820 (test "X$CXX" != "Xg++"))) ; then
10822 ac_cpp='$CXXCPP $CPPFLAGS'
10823 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10824 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10825 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10830 archive_cmds_need_lc_CXX=no
10831 allow_undefined_flag_CXX=
10832 always_export_symbols_CXX=no
10833 archive_expsym_cmds_CXX=
10834 export_dynamic_flag_spec_CXX=
10835 hardcode_direct_CXX=no
10836 hardcode_libdir_flag_spec_CXX=
10837 hardcode_libdir_flag_spec_ld_CXX=
10838 hardcode_libdir_separator_CXX=
10839 hardcode_minus_L_CXX=no
10840 hardcode_shlibpath_var_CXX=unsupported
10841 hardcode_automatic_CXX=no
10843 module_expsym_cmds_CXX=
10844 link_all_deplibs_CXX=unknown
10845 old_archive_cmds_CXX=$old_archive_cmds
10846 no_undefined_flag_CXX=
10847 whole_archive_flag_spec_CXX=
10848 enable_shared_with_static_runtimes_CXX=no
10850 # Dependencies to place before and after the object being linked:
10851 predep_objects_CXX=
10852 postdep_objects_CXX=
10855 compiler_lib_search_path_CXX=
10857 # Source file extension for C++ test sources.
10860 # Object file extension for compiled C++ test sources.
10864 # Code to be used in simple compile tests
10865 lt_simple_compile_test_code="int some_variable = 0;\n"
10867 # Code to be used in simple link tests
10868 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10870 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10872 # If no C compiler was specified, use CC.
10875 # If no C compiler flags were specified, use CFLAGS.
10876 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10878 # Allow CC to be a program name with arguments.
10882 # save warnings/boilerplate of simple test code
10883 ac_outfile=conftest.$ac_objext
10884 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10885 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10886 _lt_compiler_boilerplate=`cat conftest.err`
10889 ac_outfile=conftest.$ac_objext
10890 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10891 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10892 _lt_linker_boilerplate=`cat conftest.err`
10896 # Allow CC to be a program name with arguments.
10901 lt_save_with_gnu_ld=$with_gnu_ld
10902 lt_save_path_LD=$lt_cv_path_LD
10903 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10904 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10906 $as_unset lt_cv_prog_gnu_ld
10908 if test -n "${lt_cv_path_LDCXX+set}"; then
10909 lt_cv_path_LD=$lt_cv_path_LDCXX
10911 $as_unset lt_cv_path_LD
10913 test -z "${LDCXX+set}" || LD=$LDCXX
10917 for cc_temp in $compiler""; do
10919 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10920 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10925 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10928 # We don't want -fno-exception wen compiling C++ code, so set the
10929 # no_builtin_flag separately
10930 if test "$GXX" = yes; then
10931 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10933 lt_prog_compiler_no_builtin_flag_CXX=
10936 if test "$GXX" = yes; then
10937 # Set up default GNU C++ configuration
10940 # Check whether --with-gnu-ld was given.
10941 if test "${with_gnu_ld+set}" = set; then
10942 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10948 if test "$GCC" = yes; then
10949 # Check if gcc -print-prog-name=ld gives a path.
10950 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10951 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10954 # gcc leaves a trailing carriage return which upsets mingw
10955 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10957 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10960 # Accept absolute paths.
10962 re_direlt='/[^/][^/]*/\.\./'
10963 # Canonicalize the pathname of ld
10964 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10965 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10966 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10968 test -z "$LD" && LD="$ac_prog"
10971 # If it fails, then pretend we aren't using GCC.
10975 # If it is relative, then search for the first ld in PATH.
10976 with_gnu_ld=unknown
10979 elif test "$with_gnu_ld" = yes; then
10980 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10981 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10983 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10984 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10986 if test "${lt_cv_path_LD+set}" = set; then
10987 echo $ECHO_N "(cached) $ECHO_C" >&6
10989 if test -z "$LD"; then
10990 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10991 for ac_dir in $PATH; do
10993 test -z "$ac_dir" && ac_dir=.
10994 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10995 lt_cv_path_LD="$ac_dir/$ac_prog"
10996 # Check to see if the program is GNU ld. I'd rather use --version,
10997 # but apparently some variants of GNU ld only accept -v.
10998 # Break only if it was the GNU/non-GNU ld that we prefer.
10999 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11000 *GNU* | *'with BFD'*)
11001 test "$with_gnu_ld" != no && break
11004 test "$with_gnu_ld" != yes && break
11011 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11015 LD="$lt_cv_path_LD"
11016 if test -n "$LD"; then
11017 { echo "$as_me:$LINENO: result: $LD" >&5
11018 echo "${ECHO_T}$LD" >&6; }
11020 { echo "$as_me:$LINENO: result: no" >&5
11021 echo "${ECHO_T}no" >&6; }
11023 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11024 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11025 { (exit 1); exit 1; }; }
11026 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11027 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11028 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11029 echo $ECHO_N "(cached) $ECHO_C" >&6
11031 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11032 case `$LD -v 2>&1 </dev/null` in
11033 *GNU* | *'with BFD'*)
11034 lt_cv_prog_gnu_ld=yes
11037 lt_cv_prog_gnu_ld=no
11041 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11042 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11043 with_gnu_ld=$lt_cv_prog_gnu_ld
11047 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11048 # archiving commands below assume that GNU ld is being used.
11049 if test "$with_gnu_ld" = yes; then
11050 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11051 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'
11053 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11054 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11056 # If archive_cmds runs LD, not CC, wlarc should be empty
11057 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11058 # investigate it a little bit more. (MM)
11061 # ancient GNU ld didn't support --whole-archive et. al.
11062 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11063 grep 'no-whole-archive' > /dev/null; then
11064 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11066 whole_archive_flag_spec_CXX=
11072 # A generic and very simple default shared library creation
11073 # command for GNU C++ for the case where it uses the native
11074 # linker, instead of GNU ld. If possible, this setting should
11075 # overridden to take advantage of the native linker features on
11076 # the platform it is being used on.
11077 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11080 # Commands to make compiler produce verbose output that lists
11081 # what "hidden" libraries, object files and flags are used when
11082 # linking a shared library.
11083 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11091 # PORTME: fill in a description of your system's C++ link characteristics
11092 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11093 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11097 # FIXME: insert proper C++ library support
11101 if test "$host_cpu" = ia64; then
11102 # On IA64, the linker does run time linking by default, so we don't
11103 # have to do anything special.
11104 aix_use_runtimelinking=no
11105 exp_sym_flag='-Bexport'
11108 aix_use_runtimelinking=no
11110 # Test if we are trying to use run time linking or normal
11111 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11112 # need to do runtime linking.
11113 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11114 for ld_flag in $LDFLAGS; do
11117 aix_use_runtimelinking=yes
11125 exp_sym_flag='-bexport'
11126 no_entry_flag='-bnoentry'
11129 # When large executables or shared objects are built, AIX ld can
11130 # have problems creating the table of contents. If linking a library
11131 # or program results in "error TOC overflow" add -mminimal-toc to
11132 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11133 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11135 archive_cmds_CXX=''
11136 hardcode_direct_CXX=yes
11137 hardcode_libdir_separator_CXX=':'
11138 link_all_deplibs_CXX=yes
11140 if test "$GXX" = yes; then
11141 case $host_os in aix4.[012]|aix4.[012].*)
11142 # We only want to do this on AIX 4.2 and lower, the check
11143 # below for broken collect2 doesn't work under 4.3+
11144 collect2name=`${CC} -print-prog-name=collect2`
11145 if test -f "$collect2name" && \
11146 strings "$collect2name" | grep resolve_lib_name >/dev/null
11148 # We have reworked collect2
11149 hardcode_direct_CXX=yes
11151 # We have old collect2
11152 hardcode_direct_CXX=unsupported
11153 # It fails to find uninstalled libraries when the uninstalled
11154 # path is not listed in the libpath. Setting hardcode_minus_L
11155 # to unsupported forces relinking
11156 hardcode_minus_L_CXX=yes
11157 hardcode_libdir_flag_spec_CXX='-L$libdir'
11158 hardcode_libdir_separator_CXX=
11162 shared_flag='-shared'
11163 if test "$aix_use_runtimelinking" = yes; then
11164 shared_flag="$shared_flag "'${wl}-G'
11168 if test "$host_cpu" = ia64; then
11169 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11170 # chokes on -Wl,-G. The following line is correct:
11173 if test "$aix_use_runtimelinking" = yes; then
11174 shared_flag='${wl}-G'
11176 shared_flag='${wl}-bM:SRE'
11181 # It seems that -bexpall does not export symbols beginning with
11182 # underscore (_), so it is better to generate a list of symbols to export.
11183 always_export_symbols_CXX=yes
11184 if test "$aix_use_runtimelinking" = yes; then
11185 # Warning - without using the other runtime loading flags (-brtl),
11186 # -berok will link without error, but may produce a broken library.
11187 allow_undefined_flag_CXX='-berok'
11188 # Determine the default libpath from the value encoded in an empty executable.
11189 cat >conftest.$ac_ext <<_ACEOF
11192 cat confdefs.h >>conftest.$ac_ext
11193 cat >>conftest.$ac_ext <<_ACEOF
11194 /* end confdefs.h. */
11204 rm -f conftest.$ac_objext conftest$ac_exeext
11205 if { (ac_try="$ac_link"
11206 case "(($ac_try" in
11207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11208 *) ac_try_echo=$ac_try;;
11210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211 (eval "$ac_link") 2>conftest.er1
11213 grep -v '^ *+' conftest.er1 >conftest.err
11215 cat conftest.err >&5
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); } && {
11218 test -z "$ac_cxx_werror_flag" ||
11219 test ! -s conftest.err
11220 } && test -s conftest$ac_exeext &&
11221 $as_test_x conftest$ac_exeext; then
11223 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11225 # Check for a 64-bit object if we didn't find anything.
11226 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; }
11229 echo "$as_me: failed program was:" >&5
11230 sed 's/^/| /' conftest.$ac_ext >&5
11235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11236 conftest$ac_exeext conftest.$ac_ext
11237 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11239 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11241 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"
11243 if test "$host_cpu" = ia64; then
11244 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11245 allow_undefined_flag_CXX="-z nodefs"
11246 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"
11248 # Determine the default libpath from the value encoded in an empty executable.
11249 cat >conftest.$ac_ext <<_ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11264 rm -f conftest.$ac_objext conftest$ac_exeext
11265 if { (ac_try="$ac_link"
11266 case "(($ac_try" in
11267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268 *) ac_try_echo=$ac_try;;
11270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11271 (eval "$ac_link") 2>conftest.er1
11273 grep -v '^ *+' conftest.er1 >conftest.err
11275 cat conftest.err >&5
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); } && {
11278 test -z "$ac_cxx_werror_flag" ||
11279 test ! -s conftest.err
11280 } && test -s conftest$ac_exeext &&
11281 $as_test_x conftest$ac_exeext; then
11283 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11285 # Check for a 64-bit object if we didn't find anything.
11286 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; }
11289 echo "$as_me: failed program was:" >&5
11290 sed 's/^/| /' conftest.$ac_ext >&5
11295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11296 conftest$ac_exeext conftest.$ac_ext
11297 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11299 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11300 # Warning - without using the other run time loading flags,
11301 # -berok will link without error, but may produce a broken library.
11302 no_undefined_flag_CXX=' ${wl}-bernotok'
11303 allow_undefined_flag_CXX=' ${wl}-berok'
11304 # Exported symbols can be pulled into shared objects from archives
11305 whole_archive_flag_spec_CXX='$convenience'
11306 archive_cmds_need_lc_CXX=yes
11307 # This is similar to how AIX traditionally builds its shared libraries.
11308 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'
11314 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11315 allow_undefined_flag_CXX=unsupported
11316 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11317 # support --undefined. This deserves some investigation. FIXME
11318 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11325 case $cc_basename in
11327 # FIXME: insert proper C++ library support
11333 cygwin* | mingw* | pw32*)
11334 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11335 # as there is no search path for DLLs.
11336 hardcode_libdir_flag_spec_CXX='-L$libdir'
11337 allow_undefined_flag_CXX=unsupported
11338 always_export_symbols_CXX=no
11339 enable_shared_with_static_runtimes_CXX=yes
11341 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11342 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'
11343 # If the export-symbols file already is a .def file (1st line
11344 # is EXPORTS), use it as is; otherwise, prepend...
11345 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11346 cp $export_symbols $output_objdir/$soname.def;
11348 echo EXPORTS > $output_objdir/$soname.def;
11349 cat $export_symbols >> $output_objdir/$soname.def;
11351 $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'
11356 darwin* | rhapsody*)
11358 rhapsody* | darwin1.[012])
11359 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11362 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11363 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11365 case ${MACOSX_DEPLOYMENT_TARGET} in
11367 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11370 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11376 archive_cmds_need_lc_CXX=no
11377 hardcode_direct_CXX=no
11378 hardcode_automatic_CXX=yes
11379 hardcode_shlibpath_var_CXX=unsupported
11380 whole_archive_flag_spec_CXX=''
11381 link_all_deplibs_CXX=yes
11383 if test "$GXX" = yes ; then
11384 lt_int_apple_cc_single_mod=no
11385 output_verbose_link_cmd='echo'
11386 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11387 lt_int_apple_cc_single_mod=yes
11389 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11390 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11392 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'
11394 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11395 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11396 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11397 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}'
11399 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}'
11401 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}'
11403 case $cc_basename in
11405 output_verbose_link_cmd='echo'
11406 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'
11407 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11408 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11409 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}'
11410 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}'
11420 case $cc_basename in
11422 # FIXME: insert proper C++ library support
11426 # Green Hills C++ Compiler
11427 # FIXME: insert proper C++ library support
11431 # FIXME: insert proper C++ library support
11437 # C++ shared libraries reported to be fairly broken before switch to ELF
11441 archive_cmds_need_lc_CXX=no
11443 freebsd* | dragonfly*)
11444 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11451 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11452 hardcode_libdir_separator_CXX=:
11453 export_dynamic_flag_spec_CXX='${wl}-E'
11454 hardcode_direct_CXX=yes
11455 hardcode_minus_L_CXX=yes # Not in the search PATH,
11456 # but as the default
11457 # location of the library.
11459 case $cc_basename in
11461 # FIXME: insert proper C++ library support
11465 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'
11466 # Commands to make compiler produce verbose output that lists
11467 # what "hidden" libraries, object files and flags are used when
11468 # linking a shared library.
11470 # There doesn't appear to be a way to prevent this compiler from
11471 # explicitly linking system object files so we need to strip them
11472 # from the output so that they don't get included in the library
11474 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'
11477 if test "$GXX" = yes; then
11478 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'
11480 # FIXME: insert proper C++ library support
11487 if test $with_gnu_ld = no; then
11488 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11489 hardcode_libdir_separator_CXX=:
11493 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11496 export_dynamic_flag_spec_CXX='${wl}-E'
11502 hardcode_direct_CXX=no
11503 hardcode_shlibpath_var_CXX=no
11506 hardcode_direct_CXX=yes
11507 hardcode_minus_L_CXX=yes # Not in the search PATH,
11508 # but as the default
11509 # location of the library.
11513 case $cc_basename in
11515 # FIXME: insert proper C++ library support
11521 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11524 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11527 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11530 # Commands to make compiler produce verbose output that lists
11531 # what "hidden" libraries, object files and flags are used when
11532 # linking a shared library.
11534 # There doesn't appear to be a way to prevent this compiler from
11535 # explicitly linking system object files so we need to strip them
11536 # from the output so that they don't get included in the library
11538 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'
11541 if test "$GXX" = yes; then
11542 if test $with_gnu_ld = no; then
11545 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11548 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11551 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'
11556 # FIXME: insert proper C++ library support
11563 hardcode_direct_CXX=no
11564 hardcode_shlibpath_var_CXX=no
11565 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11566 export_dynamic_flag_spec_CXX='${wl}-E'
11567 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11568 # Instead, shared libraries are loaded at an image base (0x10000000 by
11569 # default) and relocated if they conflict, which is a slow very memory
11570 # consuming and fragmenting process. To avoid this, we pick a random,
11571 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11572 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11573 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'
11574 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'
11577 case $cc_basename in
11580 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'
11582 # Archives containing C++ object files must be created using
11583 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11584 # necessary to make sure instantiated templates are included
11586 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11589 if test "$GXX" = yes; then
11590 if test "$with_gnu_ld" = no; then
11591 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'
11593 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'
11596 link_all_deplibs_CXX=yes
11599 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11600 hardcode_libdir_separator_CXX=:
11602 linux* | k*bsd*-gnu)
11603 case $cc_basename in
11605 # Kuck and Associates, Inc. (KAI) C++ Compiler
11607 # KCC will only create a shared library if the output file
11608 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11609 # to its proper name (with version) after linking.
11610 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'
11611 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'
11612 # Commands to make compiler produce verbose output that lists
11613 # what "hidden" libraries, object files and flags are used when
11614 # linking a shared library.
11616 # There doesn't appear to be a way to prevent this compiler from
11617 # explicitly linking system object files so we need to strip them
11618 # from the output so that they don't get included in the library
11620 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'
11622 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11623 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11625 # Archives containing C++ object files must be created using
11626 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11627 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11632 # version 8.0 and above of icpc choke on multiply defined symbols
11633 # if we add $predep_objects and $postdep_objects, however 7.1 and
11634 # earlier do not add the objects themselves.
11635 case `$CC -V 2>&1` in
11637 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11638 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'
11640 *) # Version 8.0 or newer
11643 ia64*) tmp_idyn=' -i_dynamic';;
11645 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11646 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'
11649 archive_cmds_need_lc_CXX=no
11650 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11651 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11652 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11655 # Portland Group C++ compiler
11656 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11657 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'
11659 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11660 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11661 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'
11665 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11666 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'
11668 runpath_var=LD_RUN_PATH
11669 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11670 hardcode_libdir_separator_CXX=:
11672 # Commands to make compiler produce verbose output that lists
11673 # what "hidden" libraries, object files and flags are used when
11674 # linking a shared library.
11676 # There doesn't appear to be a way to prevent this compiler from
11677 # explicitly linking system object files so we need to strip them
11678 # from the output so that they don't get included in the library
11680 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'
11685 # FIXME: insert proper C++ library support
11689 # FIXME: insert proper C++ library support
11693 case $cc_basename in
11695 # FIXME: insert proper C++ library support
11699 # FIXME: insert proper C++ library support
11704 netbsd* | netbsdelf*-gnu)
11705 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11706 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11708 hardcode_libdir_flag_spec_CXX='-R$libdir'
11709 hardcode_direct_CXX=yes
11710 hardcode_shlibpath_var_CXX=no
11712 # Workaround some broken pre-1.5 toolchains
11713 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11716 # C++ shared libraries are fairly broken
11720 hardcode_direct_CXX=yes
11721 hardcode_shlibpath_var_CXX=no
11722 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11723 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11724 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11725 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11726 export_dynamic_flag_spec_CXX='${wl}-E'
11727 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11729 output_verbose_link_cmd='echo'
11732 case $cc_basename in
11734 # Kuck and Associates, Inc. (KAI) C++ Compiler
11736 # KCC will only create a shared library if the output file
11737 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11738 # to its proper name (with version) after linking.
11739 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'
11741 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11742 hardcode_libdir_separator_CXX=:
11744 # Archives containing C++ object files must be created using
11745 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11746 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11750 # Rational C++ 2.4.1
11751 # FIXME: insert proper C++ library support
11755 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11756 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'
11758 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11759 hardcode_libdir_separator_CXX=:
11761 # Commands to make compiler produce verbose output that lists
11762 # what "hidden" libraries, object files and flags are used when
11763 # linking a shared library.
11765 # There doesn't appear to be a way to prevent this compiler from
11766 # explicitly linking system object files so we need to strip them
11767 # from the output so that they don't get included in the library
11769 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'
11772 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11773 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11774 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'
11776 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11777 hardcode_libdir_separator_CXX=:
11779 # Commands to make compiler produce verbose output that lists
11780 # what "hidden" libraries, object files and flags are used when
11781 # linking a shared library.
11782 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11785 # FIXME: insert proper C++ library support
11792 case $cc_basename in
11794 # Kuck and Associates, Inc. (KAI) C++ Compiler
11796 # KCC will only create a shared library if the output file
11797 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11798 # to its proper name (with version) after linking.
11799 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'
11801 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11802 hardcode_libdir_separator_CXX=:
11804 # Archives containing C++ object files must be created using
11805 # the KAI C++ compiler.
11806 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11809 # Rational C++ 2.4.1
11810 # FIXME: insert proper C++ library support
11814 allow_undefined_flag_CXX=' -expect_unresolved \*'
11815 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'
11816 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11817 echo "-hidden">> $lib.exp~
11818 $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~
11821 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11822 hardcode_libdir_separator_CXX=:
11824 # Commands to make compiler produce verbose output that lists
11825 # what "hidden" libraries, object files and flags are used when
11826 # linking a shared library.
11828 # There doesn't appear to be a way to prevent this compiler from
11829 # explicitly linking system object files so we need to strip them
11830 # from the output so that they don't get included in the library
11832 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'
11835 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11836 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11837 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'
11839 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11840 hardcode_libdir_separator_CXX=:
11842 # Commands to make compiler produce verbose output that lists
11843 # what "hidden" libraries, object files and flags are used when
11844 # linking a shared library.
11845 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11848 # FIXME: insert proper C++ library support
11855 # FIXME: insert proper C++ library support
11859 case $cc_basename in
11862 # FIXME: insert proper C++ library support
11867 # FIXME: insert proper C++ library support
11871 # FIXME: insert proper C++ library support
11877 case $cc_basename in
11879 # Sun C++ 4.2, 5.x and Centerline C++
11880 archive_cmds_need_lc_CXX=yes
11881 no_undefined_flag_CXX=' -zdefs'
11882 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11883 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11884 $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'
11886 hardcode_libdir_flag_spec_CXX='-R$libdir'
11887 hardcode_shlibpath_var_CXX=no
11889 solaris2.[0-5] | solaris2.[0-5].*) ;;
11891 # The C++ compiler is used as linker so we must use $wl
11892 # flag to pass the commands to the underlying system
11893 # linker. We must also pass each convience library through
11894 # to the system linker between allextract/defaultextract.
11895 # The C++ compiler will combine linker options so we
11896 # cannot just pass the convience library names through
11898 # Supported since Solaris 2.6 (maybe 2.5.1?)
11899 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'
11902 link_all_deplibs_CXX=yes
11904 output_verbose_link_cmd='echo'
11906 # Archives containing C++ object files must be created using
11907 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11908 # necessary to make sure instantiated templates are included
11910 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11913 # Green Hills C++ Compiler
11914 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11916 # The C++ compiler must be used to create the archive.
11917 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11920 # GNU C++ compiler with Solaris linker
11921 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11922 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11923 if $CC --version | grep -v '^2\.7' > /dev/null; then
11924 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11925 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11926 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11928 # Commands to make compiler produce verbose output that lists
11929 # what "hidden" libraries, object files and flags are used when
11930 # linking a shared library.
11931 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11933 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11935 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11936 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11937 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11939 # Commands to make compiler produce verbose output that lists
11940 # what "hidden" libraries, object files and flags are used when
11941 # linking a shared library.
11942 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11945 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11950 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11951 no_undefined_flag_CXX='${wl}-z,text'
11952 archive_cmds_need_lc_CXX=no
11953 hardcode_shlibpath_var_CXX=no
11954 runpath_var='LD_RUN_PATH'
11956 case $cc_basename in
11958 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11959 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11962 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11963 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11967 sysv5* | sco3.2v5* | sco5v6*)
11968 # Note: We can NOT use -z defs as we might desire, because we do not
11969 # link with -lc, and that would cause any symbols used from libc to
11970 # always be unresolved, which means just about no library would
11971 # ever link correctly. If we're not using GNU ld we use -z text
11972 # though, which does catch some bad symbols but isn't as heavy-handed
11974 # For security reasons, it is highly recommended that you always
11975 # use absolute paths for naming shared libraries, and exclude the
11976 # DT_RUNPATH tag from executables and libraries. But doing so
11977 # requires that you compile everything twice, which is a pain.
11978 # So that behaviour is only enabled if SCOABSPATH is set to a
11979 # non-empty value in the environment. Most likely only useful for
11980 # creating official distributions of packages.
11981 # This is a hack until libtool officially supports absolute path
11982 # names for shared libraries.
11983 no_undefined_flag_CXX='${wl}-z,text'
11984 allow_undefined_flag_CXX='${wl}-z,nodefs'
11985 archive_cmds_need_lc_CXX=no
11986 hardcode_shlibpath_var_CXX=no
11987 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11988 hardcode_libdir_separator_CXX=':'
11989 link_all_deplibs_CXX=yes
11990 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11991 runpath_var='LD_RUN_PATH'
11993 case $cc_basename in
11995 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11996 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11999 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12000 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12005 case $cc_basename in
12007 # NonStop-UX NCC 3.20
12008 # FIXME: insert proper C++ library support
12012 # FIXME: insert proper C++ library support
12018 # FIXME: insert proper C++ library support
12022 # FIXME: insert proper C++ library support
12026 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12027 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12028 test "$ld_shlibs_CXX" = no && can_build_shared=no
12034 cat > conftest.$ac_ext <<EOF
12038 Foo (void) { a = 0; }
12044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12045 (eval $ac_compile) 2>&5
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; then
12049 # Parse the compiler output and extract the necessary
12050 # objects, libraries and library flags.
12052 # Sentinel used to keep track of whether or not we are before
12053 # the conftest object file.
12054 pre_test_object_deps_done=no
12056 # The `*' in the case matches for architectures that use `case' in
12057 # $output_verbose_cmd can trigger glob expansion during the loop
12058 # eval without this substitution.
12059 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12061 for p in `eval $output_verbose_link_cmd`; do
12065 # Some compilers place space between "-{L,R}" and the path.
12066 # Remove the space.
12067 if test $p = "-L" \
12068 || test $p = "-R"; then
12075 if test "$pre_test_object_deps_done" = no; then
12078 # Internal compiler library paths should come after those
12079 # provided the user. The postdeps already come after the
12080 # user supplied libs so there is no need to process them.
12081 if test -z "$compiler_lib_search_path_CXX"; then
12082 compiler_lib_search_path_CXX="${prev}${p}"
12084 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12087 # The "-l" case would never come before the object being
12088 # linked, so don't bother handling this case.
12091 if test -z "$postdeps_CXX"; then
12092 postdeps_CXX="${prev}${p}"
12094 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12100 # This assumes that the test object file only shows up
12101 # once in the compiler output.
12102 if test "$p" = "conftest.$objext"; then
12103 pre_test_object_deps_done=yes
12107 if test "$pre_test_object_deps_done" = no; then
12108 if test -z "$predep_objects_CXX"; then
12109 predep_objects_CXX="$p"
12111 predep_objects_CXX="$predep_objects_CXX $p"
12114 if test -z "$postdep_objects_CXX"; then
12115 postdep_objects_CXX="$p"
12117 postdep_objects_CXX="$postdep_objects_CXX $p"
12122 *) ;; # Ignore the rest.
12130 echo "libtool.m4: error: problem compiling CXX test program"
12133 $rm -f confest.$objext
12135 # PORTME: override above test on systems where it is broken
12138 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12139 # hack all around it, let's just trust "g++" to DTRT.
12140 predep_objects_CXX=
12141 postdep_objects_CXX=
12146 case $cc_basename in
12148 # Adding this requires a known-good setup of shared libraries for
12149 # Sun compiler versions before 5.6, else PIC objects from an old
12150 # archive will be linked into the output, leading to subtle bugs.
12151 postdeps_CXX='-lCstd -lCrun'
12158 case " $postdeps_CXX " in
12159 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12162 lt_prog_compiler_wl_CXX=
12163 lt_prog_compiler_pic_CXX=
12164 lt_prog_compiler_static_CXX=
12166 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12167 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12169 # C++ specific cases for pic, static, wl, etc.
12170 if test "$GXX" = yes; then
12171 lt_prog_compiler_wl_CXX='-Wl,'
12172 lt_prog_compiler_static_CXX='-static'
12176 # All AIX code is PIC.
12177 if test "$host_cpu" = ia64; then
12178 # AIX 5 now supports IA64 processor
12179 lt_prog_compiler_static_CXX='-Bstatic'
12183 # FIXME: we need at least 68020 code to build shared libraries, but
12184 # adding the `-m68020' flag to GCC prevents building anything better,
12186 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12188 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12189 # PIC is the default for these OSes.
12191 mingw* | os2* | pw32*)
12192 # This hack is so that the source file can tell whether it is being
12193 # built for inclusion in a dll (and should export symbols for example).
12194 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12196 darwin* | rhapsody*)
12197 # PIC is the default on this platform
12198 # Common symbols not allowed in MH_DYLIB files
12199 lt_prog_compiler_pic_CXX='-fno-common'
12202 # DJGPP does not support shared libraries at all
12203 lt_prog_compiler_pic_CXX=
12206 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12207 # Instead, we relocate shared libraries at runtime.
12210 if test -d /usr/nec; then
12211 lt_prog_compiler_pic_CXX=-Kconform_pic
12215 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12216 # not for PA HP-UX.
12221 lt_prog_compiler_pic_CXX='-fPIC'
12226 lt_prog_compiler_pic_CXX='-fPIC'
12232 # All AIX code is PIC.
12233 if test "$host_cpu" = ia64; then
12234 # AIX 5 now supports IA64 processor
12235 lt_prog_compiler_static_CXX='-Bstatic'
12237 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12241 case $cc_basename in
12243 # Green Hills C++ Compiler
12244 # _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"
12249 # PIC is the default on this platform
12250 # Common symbols not allowed in MH_DYLIB files
12251 case $cc_basename in
12253 lt_prog_compiler_pic_CXX='-qnocommon'
12254 lt_prog_compiler_wl_CXX='-Wl,'
12259 case $cc_basename in
12261 lt_prog_compiler_pic_CXX='-KPIC'
12264 # Green Hills C++ Compiler
12265 lt_prog_compiler_pic_CXX='-pic'
12271 freebsd* | dragonfly*)
12272 # FreeBSD uses GNU C++
12274 hpux9* | hpux10* | hpux11*)
12275 case $cc_basename in
12277 lt_prog_compiler_wl_CXX='-Wl,'
12278 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12279 if test "$host_cpu" != ia64; then
12280 lt_prog_compiler_pic_CXX='+Z'
12284 lt_prog_compiler_wl_CXX='-Wl,'
12285 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12291 lt_prog_compiler_pic_CXX='+Z'
12300 # This is c89, which is MS Visual C++ (no shared libs)
12301 # Anyone wants to do a port?
12303 irix5* | irix6* | nonstopux*)
12304 case $cc_basename in
12306 lt_prog_compiler_wl_CXX='-Wl,'
12307 lt_prog_compiler_static_CXX='-non_shared'
12308 # CC pic flag -KPIC is the default.
12314 linux* | k*bsd*-gnu)
12315 case $cc_basename in
12318 lt_prog_compiler_wl_CXX='--backend -Wl,'
12319 lt_prog_compiler_pic_CXX='-fPIC'
12323 lt_prog_compiler_wl_CXX='-Wl,'
12324 lt_prog_compiler_pic_CXX='-KPIC'
12325 lt_prog_compiler_static_CXX='-static'
12328 # Portland Group C++ compiler.
12329 lt_prog_compiler_wl_CXX='-Wl,'
12330 lt_prog_compiler_pic_CXX='-fpic'
12331 lt_prog_compiler_static_CXX='-Bstatic'
12335 # Make sure the PIC flag is empty. It appears that all Alpha
12336 # Linux and Compaq Tru64 Unix objects are PIC.
12337 lt_prog_compiler_pic_CXX=
12338 lt_prog_compiler_static_CXX='-non_shared'
12349 case $cc_basename in
12351 lt_prog_compiler_pic_CXX='-W c,exportall'
12357 netbsd* | netbsdelf*-gnu)
12359 osf3* | osf4* | osf5*)
12360 case $cc_basename in
12362 lt_prog_compiler_wl_CXX='--backend -Wl,'
12365 # Rational C++ 2.4.1
12366 lt_prog_compiler_pic_CXX='-pic'
12369 # Digital/Compaq C++
12370 lt_prog_compiler_wl_CXX='-Wl,'
12371 # Make sure the PIC flag is empty. It appears that all Alpha
12372 # Linux and Compaq Tru64 Unix objects are PIC.
12373 lt_prog_compiler_pic_CXX=
12374 lt_prog_compiler_static_CXX='-non_shared'
12383 case $cc_basename in
12385 # Sun C++ 4.2, 5.x and Centerline C++
12386 lt_prog_compiler_pic_CXX='-KPIC'
12387 lt_prog_compiler_static_CXX='-Bstatic'
12388 lt_prog_compiler_wl_CXX='-Qoption ld '
12391 # Green Hills C++ Compiler
12392 lt_prog_compiler_pic_CXX='-PIC'
12399 case $cc_basename in
12402 lt_prog_compiler_pic_CXX='-pic'
12403 lt_prog_compiler_static_CXX='-Bstatic'
12407 lt_prog_compiler_pic_CXX='-pic'
12414 case $cc_basename in
12416 # NonStop-UX NCC 3.20
12417 lt_prog_compiler_pic_CXX='-KPIC'
12423 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12424 case $cc_basename in
12426 lt_prog_compiler_wl_CXX='-Wl,'
12427 lt_prog_compiler_pic_CXX='-KPIC'
12428 lt_prog_compiler_static_CXX='-Bstatic'
12435 lt_prog_compiler_can_build_shared_CXX=no
12440 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12441 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12444 # Check to make sure the PIC flag actually works.
12446 if test -n "$lt_prog_compiler_pic_CXX"; then
12448 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12449 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12450 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12451 echo $ECHO_N "(cached) $ECHO_C" >&6
12453 lt_prog_compiler_pic_works_CXX=no
12454 ac_outfile=conftest.$ac_objext
12455 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12456 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12457 # Insert the option either (1) after the last *FLAGS variable, or
12458 # (2) before a word containing "conftest.", or (3) at the end.
12459 # Note that $ac_compile itself does not contain backslashes and begins
12460 # with a dollar sign (not a hyphen), so the echo should work correctly.
12461 # The option is referenced via a variable to avoid confusing sed.
12462 lt_compile=`echo "$ac_compile" | $SED \
12463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12465 -e 's:$: $lt_compiler_flag:'`
12466 (eval echo "\"\$as_me:12466: $lt_compile\"" >&5)
12467 (eval "$lt_compile" 2>conftest.err)
12469 cat conftest.err >&5
12470 echo "$as_me:12470: \$? = $ac_status" >&5
12471 if (exit $ac_status) && test -s "$ac_outfile"; then
12472 # The compiler can only warn and ignore the option if not recognized
12473 # So say no if there are warnings other than the usual output.
12474 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12476 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12477 lt_prog_compiler_pic_works_CXX=yes
12483 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12484 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12486 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12487 case $lt_prog_compiler_pic_CXX in
12489 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12492 lt_prog_compiler_pic_CXX=
12493 lt_prog_compiler_can_build_shared_CXX=no
12498 # For platforms which do not support PIC, -DPIC is meaningless:
12500 lt_prog_compiler_pic_CXX=
12503 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12508 # Check to make sure the static flag actually works.
12510 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12511 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12512 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12513 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12516 lt_prog_compiler_static_works_CXX=no
12517 save_LDFLAGS="$LDFLAGS"
12518 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12519 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12520 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12521 # The linker can only warn and ignore the option if not recognized
12522 # So say no if there are warnings
12523 if test -s conftest.err; then
12524 # Append any errors to the config.log.
12525 cat conftest.err 1>&5
12526 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12527 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12528 if diff conftest.exp conftest.er2 >/dev/null; then
12529 lt_prog_compiler_static_works_CXX=yes
12532 lt_prog_compiler_static_works_CXX=yes
12536 LDFLAGS="$save_LDFLAGS"
12539 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12540 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12542 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12545 lt_prog_compiler_static_CXX=
12549 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12550 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12551 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12552 echo $ECHO_N "(cached) $ECHO_C" >&6
12554 lt_cv_prog_compiler_c_o_CXX=no
12555 $rm -r conftest 2>/dev/null
12559 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12561 lt_compiler_flag="-o out/conftest2.$ac_objext"
12562 # Insert the option either (1) after the last *FLAGS variable, or
12563 # (2) before a word containing "conftest.", or (3) at the end.
12564 # Note that $ac_compile itself does not contain backslashes and begins
12565 # with a dollar sign (not a hyphen), so the echo should work correctly.
12566 lt_compile=`echo "$ac_compile" | $SED \
12567 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12569 -e 's:$: $lt_compiler_flag:'`
12570 (eval echo "\"\$as_me:12570: $lt_compile\"" >&5)
12571 (eval "$lt_compile" 2>out/conftest.err)
12573 cat out/conftest.err >&5
12574 echo "$as_me:12574: \$? = $ac_status" >&5
12575 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12577 # The compiler can only warn and ignore the option if not recognized
12578 # So say no if there are warnings
12579 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12580 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12581 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12582 lt_cv_prog_compiler_c_o_CXX=yes
12587 # SGI C++ compiler will create directory out/ii_files/ for
12588 # template instantiation
12589 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12590 $rm out/* && rmdir out
12596 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12597 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12600 hard_links="nottested"
12601 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12602 # do not overwrite the value of need_locks provided by the user
12603 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12604 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12607 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12609 ln conftest.a conftest.b 2>&5 || hard_links=no
12610 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12611 { echo "$as_me:$LINENO: result: $hard_links" >&5
12612 echo "${ECHO_T}$hard_links" >&6; }
12613 if test "$hard_links" = no; then
12614 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12615 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12622 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12623 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12625 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12628 # If we're using GNU nm, then we don't want the "-C" option.
12629 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12630 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12631 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'
12633 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'
12637 export_symbols_cmds_CXX="$ltdll_cmds"
12640 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'
12642 linux* | k*bsd*-gnu)
12643 link_all_deplibs_CXX=no
12646 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12650 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12651 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12652 test "$ld_shlibs_CXX" = no && can_build_shared=no
12655 # Do we need to explicitly link libc?
12657 case "x$archive_cmds_need_lc_CXX" in
12659 # Assume -lc should be added
12660 archive_cmds_need_lc_CXX=yes
12662 if test "$enable_shared" = yes && test "$GCC" = yes; then
12663 case $archive_cmds_CXX in
12665 # FIXME: we may have to deal with multi-command sequences.
12668 # Test whether the compiler implicitly links with -lc since on some
12669 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12670 # to ld, don't add -lc before -lgcc.
12671 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12672 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12674 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12677 (eval $ac_compile) 2>&5
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); } 2>conftest.err; then
12683 libobjs=conftest.$ac_objext
12685 wl=$lt_prog_compiler_wl_CXX
12686 pic_flag=$lt_prog_compiler_pic_CXX
12692 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12693 allow_undefined_flag_CXX=
12694 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12695 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); }
12700 archive_cmds_need_lc_CXX=no
12702 archive_cmds_need_lc_CXX=yes
12704 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12706 cat conftest.err 1>&5
12709 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12710 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12717 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12718 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12719 library_names_spec=
12720 libname_spec='lib$name'
12724 postuninstall_cmds=
12728 shlibpath_overrides_runpath=unknown
12730 dynamic_linker="$host_os ld.so"
12731 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12732 if test "$GCC" = yes; then
12733 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12734 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12735 # if the path contains ";" then we assume it to be the separator
12736 # otherwise default to the standard path separator (i.e. ":") - it is
12737 # assumed that no part of a normal pathname contains ";" but that should
12738 # okay in the real world where ";" in dirpaths is itself problematic.
12739 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12741 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12744 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12746 need_lib_prefix=unknown
12747 hardcode_into_libs=no
12749 # when you set need_version to no, make sure it does not cause -set_version
12750 # flags to be left without arguments
12751 need_version=unknown
12756 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12757 shlibpath_var=LIBPATH
12759 # AIX 3 has no versioning support, so we append a major version to the name.
12760 soname_spec='${libname}${release}${shared_ext}$major'
12767 hardcode_into_libs=yes
12768 if test "$host_cpu" = ia64; then
12769 # AIX 5 supports IA64
12770 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12771 shlibpath_var=LD_LIBRARY_PATH
12773 # With GCC up to 2.95.x, collect2 would create an import file
12774 # for dependence libraries. The import file would start with
12775 # the line `#! .'. This would cause the generated library to
12776 # depend on `.', always an invalid library. This was fixed in
12777 # development snapshots of GCC prior to 3.0.
12779 aix4 | aix4.[01] | aix4.[01].*)
12780 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12782 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12785 can_build_shared=no
12789 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12790 # soname into executable. Probably we can add versioning support to
12791 # collect2, so additional links can be useful in future.
12792 if test "$aix_use_runtimelinking" = yes; then
12793 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12794 # instead of lib<name>.a to let people know that these are not
12795 # typical AIX shared libraries.
12796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12798 # We preserve .a as extension for shared libraries through AIX4.2
12799 # and later when we are not doing run time linking.
12800 library_names_spec='${libname}${release}.a $libname.a'
12801 soname_spec='${libname}${release}${shared_ext}$major'
12803 shlibpath_var=LIBPATH
12808 library_names_spec='$libname.ixlibrary $libname.a'
12809 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12810 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'
12814 library_names_spec='${libname}${shared_ext}'
12815 dynamic_linker="$host_os ld.so"
12816 shlibpath_var=LIBRARY_PATH
12822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12823 soname_spec='${libname}${release}${shared_ext}$major'
12824 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12825 shlibpath_var=LD_LIBRARY_PATH
12826 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12827 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12828 # the default ld.so.conf also contains /usr/contrib/lib and
12829 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12830 # libtool to hard-code these into programs
12833 cygwin* | mingw* | pw32*)
12834 version_type=windows
12839 case $GCC,$host_os in
12840 yes,cygwin* | yes,mingw* | yes,pw32*)
12841 library_names_spec='$libname.dll.a'
12842 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12843 postinstall_cmds='base_file=`basename \${file}`~
12844 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12845 dldir=$destdir/`dirname \$dlpath`~
12846 test -d \$dldir || mkdir -p \$dldir~
12847 $install_prog $dir/$dlname \$dldir/$dlname~
12848 chmod a+x \$dldir/$dlname'
12849 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12850 dlpath=$dir/\$dldll~
12852 shlibpath_overrides_runpath=yes
12856 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12857 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12858 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12861 # MinGW DLLs use traditional 'lib' prefix
12862 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12863 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12864 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12865 # It is most probably a Windows format PATH printed by
12866 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12867 # path with ; separators, and with drive letters. We can handle the
12868 # drive letters (cygwin fileutils understands them), so leave them,
12869 # especially as we might pass files found there to a mingw objdump,
12870 # which wouldn't understand a cygwinified path. Ahh.
12871 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12873 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12877 # pw32 DLLs use 'pw' prefix rather than 'lib'
12878 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12884 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12887 dynamic_linker='Win32 ld.exe'
12888 # FIXME: first we should search . and the directory the executable is in
12892 darwin* | rhapsody*)
12893 dynamic_linker="$host_os dyld"
12894 version_type=darwin
12897 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12898 soname_spec='${libname}${release}${major}$shared_ext'
12899 shlibpath_overrides_runpath=yes
12900 shlibpath_var=DYLD_LIBRARY_PATH
12901 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12902 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12903 if test "$GCC" = yes; then
12904 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"`
12906 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12908 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12916 soname_spec='${libname}${release}${shared_ext}$major'
12917 shlibpath_var=LD_LIBRARY_PATH
12924 freebsd* | dragonfly*)
12925 # DragonFly does not have aout. When/if they implement a new
12926 # versioning mechanism, adjust this.
12927 if test -x /usr/bin/objformat; then
12928 objformat=`/usr/bin/objformat`
12931 freebsd[123]*) objformat=aout ;;
12932 *) objformat=elf ;;
12935 version_type=freebsd-$objformat
12936 case $version_type in
12938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12943 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12947 shlibpath_var=LD_LIBRARY_PATH
12950 shlibpath_overrides_runpath=yes
12952 freebsd3.[01]* | freebsdelf3.[01]*)
12953 shlibpath_overrides_runpath=yes
12954 hardcode_into_libs=yes
12956 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12957 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12958 shlibpath_overrides_runpath=no
12959 hardcode_into_libs=yes
12961 freebsd*) # from 4.6 on
12962 shlibpath_overrides_runpath=yes
12963 hardcode_into_libs=yes
12972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12973 soname_spec='${libname}${release}${shared_ext}$major'
12974 shlibpath_var=LD_LIBRARY_PATH
12975 hardcode_into_libs=yes
12978 hpux9* | hpux10* | hpux11*)
12979 # Give a soname corresponding to the major version so that dld.sl refuses to
12980 # link against other versions.
12987 hardcode_into_libs=yes
12988 dynamic_linker="$host_os dld.so"
12989 shlibpath_var=LD_LIBRARY_PATH
12990 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12992 soname_spec='${libname}${release}${shared_ext}$major'
12993 if test "X$HPUX_IA64_MODE" = X32; then
12994 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12996 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12998 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13002 hardcode_into_libs=yes
13003 dynamic_linker="$host_os dld.sl"
13004 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13005 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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'
13008 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13009 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13013 dynamic_linker="$host_os dld.sl"
13014 shlibpath_var=SHLIB_PATH
13015 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13017 soname_spec='${libname}${release}${shared_ext}$major'
13020 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13021 postinstall_cmds='chmod 555 $lib'
13028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13029 soname_spec='${libname}${release}${shared_ext}$major'
13030 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13031 shlibpath_var=LD_LIBRARY_PATH
13032 shlibpath_overrides_runpath=no
13033 hardcode_into_libs=yes
13036 irix5* | irix6* | nonstopux*)
13038 nonstopux*) version_type=nonstopux ;;
13040 if test "$lt_cv_prog_gnu_ld" = yes; then
13048 soname_spec='${libname}${release}${shared_ext}$major'
13049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13051 irix5* | nonstopux*)
13052 libsuff= shlibsuff=
13055 case $LD in # libtool.m4 will add one of these switches to LD
13056 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13057 libsuff= shlibsuff= libmagic=32-bit;;
13058 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13059 libsuff=32 shlibsuff=N32 libmagic=N32;;
13060 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13061 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13062 *) libsuff= shlibsuff= libmagic=never-match;;
13066 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13067 shlibpath_overrides_runpath=no
13068 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13069 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13070 hardcode_into_libs=yes
13073 # No shared lib support for Linux oldld, aout, or coff.
13074 linux*oldld* | linux*aout* | linux*coff*)
13078 # This must be Linux ELF.
13079 linux* | k*bsd*-gnu)
13083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13084 soname_spec='${libname}${release}${shared_ext}$major'
13085 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13086 shlibpath_var=LD_LIBRARY_PATH
13087 shlibpath_overrides_runpath=no
13088 # This implies no fast_install, which is unacceptable.
13089 # Some rework will be needed to allow for fast_install
13090 # before this can be enabled.
13091 hardcode_into_libs=yes
13093 # Append ld.so.conf contents to the search path
13094 if test -f /etc/ld.so.conf; then
13095 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' ' '`
13096 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13099 # We used to test for /lib/ld.so.1 and disable shared libraries on
13100 # powerpc, because MkLinux only supported shared libraries with the
13101 # GNU dynamic linker. Since this was broken with cross compilers,
13102 # most powerpc-linux boxes support dynamic linking these days and
13103 # people can always --disable-shared, the test was removed, and we
13104 # assume the GNU/Linux dynamic linker is in use.
13105 dynamic_linker='GNU/Linux ld.so'
13112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13113 soname_spec='${libname}${release}${shared_ext}$major'
13114 shlibpath_var=LD_LIBRARY_PATH
13115 shlibpath_overrides_runpath=no
13116 hardcode_into_libs=yes
13117 dynamic_linker='NetBSD ld.elf_so'
13124 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13126 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13127 dynamic_linker='NetBSD (a.out) ld.so'
13129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13130 soname_spec='${libname}${release}${shared_ext}$major'
13131 dynamic_linker='NetBSD ld.elf_so'
13133 shlibpath_var=LD_LIBRARY_PATH
13134 shlibpath_overrides_runpath=yes
13135 hardcode_into_libs=yes
13140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13141 shlibpath_var=LD_LIBRARY_PATH
13142 shlibpath_overrides_runpath=yes
13149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13150 soname_spec='${libname}${release}${shared_ext}$major'
13151 shlibpath_var=LD_LIBRARY_PATH
13152 shlibpath_overrides_runpath=yes
13157 sys_lib_dlsearch_path_spec="/usr/lib"
13159 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13161 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13162 *) need_version=no ;;
13164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13165 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13166 shlibpath_var=LD_LIBRARY_PATH
13167 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13169 openbsd2.[89] | openbsd2.[89].*)
13170 shlibpath_overrides_runpath=no
13173 shlibpath_overrides_runpath=yes
13177 shlibpath_overrides_runpath=yes
13182 libname_spec='$name'
13185 library_names_spec='$libname${shared_ext} $libname.a'
13186 dynamic_linker='OS/2 ld.exe'
13187 shlibpath_var=LIBPATH
13190 osf3* | osf4* | osf5*)
13194 soname_spec='${libname}${release}${shared_ext}$major'
13195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13196 shlibpath_var=LD_LIBRARY_PATH
13197 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13198 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13206 soname_spec='${libname}${release}${shared_ext}$major'
13207 shlibpath_var=LD_LIBRARY_PATH
13208 shlibpath_overrides_runpath=yes
13209 hardcode_into_libs=yes
13210 # ldd complains unless libraries are executable
13211 postinstall_cmds='chmod +x $lib'
13216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13217 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13218 shlibpath_var=LD_LIBRARY_PATH
13219 shlibpath_overrides_runpath=yes
13220 if test "$with_gnu_ld" = yes; then
13228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13229 soname_spec='${libname}${release}${shared_ext}$major'
13230 shlibpath_var=LD_LIBRARY_PATH
13231 case $host_vendor in
13233 shlibpath_overrides_runpath=no
13235 export_dynamic_flag_spec='${wl}-Blargedynsym'
13236 runpath_var=LD_RUN_PATH
13244 shlibpath_overrides_runpath=no
13245 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13251 if test -d /usr/nec ;then
13253 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13254 soname_spec='$libname${shared_ext}.$major'
13255 shlibpath_var=LD_LIBRARY_PATH
13259 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13260 version_type=freebsd-elf
13263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13264 soname_spec='${libname}${release}${shared_ext}$major'
13265 shlibpath_var=LD_LIBRARY_PATH
13266 hardcode_into_libs=yes
13267 if test "$with_gnu_ld" = yes; then
13268 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13269 shlibpath_overrides_runpath=no
13271 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13272 shlibpath_overrides_runpath=yes
13275 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13279 sys_lib_dlsearch_path_spec='/usr/lib'
13284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13285 soname_spec='${libname}${release}${shared_ext}$major'
13286 shlibpath_var=LD_LIBRARY_PATH
13293 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13294 echo "${ECHO_T}$dynamic_linker" >&6; }
13295 test "$dynamic_linker" = no && can_build_shared=no
13297 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13298 if test "$GCC" = yes; then
13299 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13302 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13303 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13304 hardcode_action_CXX=
13305 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13306 test -n "$runpath_var_CXX" || \
13307 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13309 # We can hardcode non-existant directories.
13310 if test "$hardcode_direct_CXX" != no &&
13311 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13312 # have to relink, otherwise we might link with an installed library
13313 # when we should be linking with a yet-to-be-installed one
13314 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13315 test "$hardcode_minus_L_CXX" != no; then
13316 # Linking always hardcodes the temporary library directory.
13317 hardcode_action_CXX=relink
13319 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13320 hardcode_action_CXX=immediate
13323 # We cannot hardcode anything, or else we can only hardcode existing
13325 hardcode_action_CXX=unsupported
13327 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13328 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13330 if test "$hardcode_action_CXX" = relink; then
13331 # Fast installation is not supported
13332 enable_fast_install=no
13333 elif test "$shlibpath_overrides_runpath" = yes ||
13334 test "$enable_shared" = no; then
13335 # Fast installation is not necessary
13336 enable_fast_install=needless
13340 # The else clause should only fire when bootstrapping the
13341 # libtool distribution, otherwise you forgot to ship ltmain.sh
13342 # with your package, and you will get complaints that there are
13343 # no rules to generate ltmain.sh.
13344 if test -f "$ltmain"; then
13345 # See if we are running on zsh, and set the options which allow our commands through
13346 # without removal of \ escapes.
13347 if test -n "${ZSH_VERSION+set}" ; then
13348 setopt NO_GLOB_SUBST
13350 # Now quote all the things that may contain metacharacters while being
13351 # careful not to overquote the AC_SUBSTed values. We take copies of the
13352 # variables and quote the copies for generation of the libtool script.
13353 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13355 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13356 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13357 deplibs_check_method reload_flag reload_cmds need_locks \
13358 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13359 lt_cv_sys_global_symbol_to_c_name_address \
13360 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13361 old_postinstall_cmds old_postuninstall_cmds \
13365 lt_prog_compiler_wl_CXX \
13366 lt_prog_compiler_pic_CXX \
13367 lt_prog_compiler_static_CXX \
13368 lt_prog_compiler_no_builtin_flag_CXX \
13369 export_dynamic_flag_spec_CXX \
13370 thread_safe_flag_spec_CXX \
13371 whole_archive_flag_spec_CXX \
13372 enable_shared_with_static_runtimes_CXX \
13373 old_archive_cmds_CXX \
13374 old_archive_from_new_cmds_CXX \
13375 predep_objects_CXX \
13376 postdep_objects_CXX \
13379 compiler_lib_search_path_CXX \
13381 archive_expsym_cmds_CXX \
13382 postinstall_cmds_CXX \
13383 postuninstall_cmds_CXX \
13384 old_archive_from_expsyms_cmds_CXX \
13385 allow_undefined_flag_CXX \
13386 no_undefined_flag_CXX \
13387 export_symbols_cmds_CXX \
13388 hardcode_libdir_flag_spec_CXX \
13389 hardcode_libdir_flag_spec_ld_CXX \
13390 hardcode_libdir_separator_CXX \
13391 hardcode_automatic_CXX \
13393 module_expsym_cmds_CXX \
13394 lt_cv_prog_compiler_c_o_CXX \
13395 exclude_expsyms_CXX \
13396 include_expsyms_CXX; do
13399 old_archive_cmds_CXX | \
13400 old_archive_from_new_cmds_CXX | \
13401 archive_cmds_CXX | \
13402 archive_expsym_cmds_CXX | \
13403 module_cmds_CXX | \
13404 module_expsym_cmds_CXX | \
13405 old_archive_from_expsyms_cmds_CXX | \
13406 export_symbols_cmds_CXX | \
13407 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13408 postinstall_cmds | postuninstall_cmds | \
13409 old_postinstall_cmds | old_postuninstall_cmds | \
13410 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13411 # Double-quote double-evaled strings.
13412 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13415 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13421 *'\$0 --fallback-echo"')
13422 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13428 cat <<__EOF__ >> "$cfgfile"
13429 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13431 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13433 # Shell to use when invoking shell scripts.
13436 # Whether or not to build shared libraries.
13437 build_libtool_libs=$enable_shared
13439 # Whether or not to build static libraries.
13440 build_old_libs=$enable_static
13442 # Whether or not to add -lc for building shared libraries.
13443 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13445 # Whether or not to disallow shared libs when runtime libs are static
13446 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13448 # Whether or not to optimize for fast installation.
13449 fast_install=$enable_fast_install
13452 host_alias=$host_alias
13456 # The build system.
13457 build_alias=$build_alias
13461 # An echo program that does not interpret backslashes.
13466 AR_FLAGS=$lt_AR_FLAGS
13471 # LTCC compiler flags.
13472 LTCFLAGS=$lt_LTCFLAGS
13474 # A language-specific compiler.
13475 CC=$lt_compiler_CXX
13477 # Is the compiler the GNU C compiler?
13483 # The linker used to build libraries.
13486 # Whether we need hard or soft links.
13489 # A BSD-compatible nm program.
13492 # A symbol stripping program
13495 # Used to examine libraries when file_magic_cmd begins "file"
13496 MAGIC_CMD=$MAGIC_CMD
13498 # Used on cygwin: DLL creation program.
13501 # Used on cygwin: object dumper.
13504 # Used on cygwin: assembler.
13507 # The name of the directory that contains temporary libtool files.
13510 # How to create reloadable object files.
13511 reload_flag=$lt_reload_flag
13512 reload_cmds=$lt_reload_cmds
13514 # How to pass a linker flag through the compiler.
13515 wl=$lt_lt_prog_compiler_wl_CXX
13517 # Object file suffix (normally "o").
13518 objext="$ac_objext"
13520 # Old archive suffix (normally "a").
13523 # Shared library suffix (normally ".so").
13524 shrext_cmds='$shrext_cmds'
13526 # Executable file suffix (normally "").
13529 # Additional compiler flags for building library objects.
13530 pic_flag=$lt_lt_prog_compiler_pic_CXX
13533 # What is the maximum length of a command?
13534 max_cmd_len=$lt_cv_sys_max_cmd_len
13536 # Does compiler simultaneously support -c and -o options?
13537 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13539 # Must we lock files when doing compilation?
13540 need_locks=$lt_need_locks
13542 # Do we need the lib prefix for modules?
13543 need_lib_prefix=$need_lib_prefix
13545 # Do we need a version for libraries?
13546 need_version=$need_version
13548 # Whether dlopen is supported.
13549 dlopen_support=$enable_dlopen
13551 # Whether dlopen of programs is supported.
13552 dlopen_self=$enable_dlopen_self
13554 # Whether dlopen of statically linked programs is supported.
13555 dlopen_self_static=$enable_dlopen_self_static
13557 # Compiler flag to prevent dynamic linking.
13558 link_static_flag=$lt_lt_prog_compiler_static_CXX
13560 # Compiler flag to turn off builtin functions.
13561 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13563 # Compiler flag to allow reflexive dlopens.
13564 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13566 # Compiler flag to generate shared objects directly from archives.
13567 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13569 # Compiler flag to generate thread-safe objects.
13570 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13572 # Library versioning type.
13573 version_type=$version_type
13575 # Format of library name prefix.
13576 libname_spec=$lt_libname_spec
13578 # List of archive names. First name is the real one, the rest are links.
13579 # The last name is the one that the linker finds with -lNAME.
13580 library_names_spec=$lt_library_names_spec
13582 # The coded name of the library, if different from the real name.
13583 soname_spec=$lt_soname_spec
13585 # Commands used to build and install an old-style archive.
13587 old_archive_cmds=$lt_old_archive_cmds_CXX
13588 old_postinstall_cmds=$lt_old_postinstall_cmds
13589 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13591 # Create an old-style archive from a shared archive.
13592 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13594 # Create a temporary old-style archive to link instead of a shared archive.
13595 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13597 # Commands used to build and install a shared archive.
13598 archive_cmds=$lt_archive_cmds_CXX
13599 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13600 postinstall_cmds=$lt_postinstall_cmds
13601 postuninstall_cmds=$lt_postuninstall_cmds
13603 # Commands used to build a loadable module (assumed same as above if empty)
13604 module_cmds=$lt_module_cmds_CXX
13605 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13607 # Commands to strip libraries.
13608 old_striplib=$lt_old_striplib
13609 striplib=$lt_striplib
13611 # Dependencies to place before the objects being linked to create a
13613 predep_objects=$lt_predep_objects_CXX
13615 # Dependencies to place after the objects being linked to create a
13617 postdep_objects=$lt_postdep_objects_CXX
13619 # Dependencies to place before the objects being linked to create a
13621 predeps=$lt_predeps_CXX
13623 # Dependencies to place after the objects being linked to create a
13625 postdeps=$lt_postdeps_CXX
13627 # The library search path used internally by the compiler when linking
13628 # a shared library.
13629 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13631 # Method to check whether dependent libraries are shared objects.
13632 deplibs_check_method=$lt_deplibs_check_method
13634 # Command to use when deplibs_check_method == file_magic.
13635 file_magic_cmd=$lt_file_magic_cmd
13637 # Flag that allows shared libraries with undefined symbols to be built.
13638 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13640 # Flag that forces no undefined symbols.
13641 no_undefined_flag=$lt_no_undefined_flag_CXX
13643 # Commands used to finish a libtool library installation in a directory.
13644 finish_cmds=$lt_finish_cmds
13646 # Same as above, but a single script fragment to be evaled but not shown.
13647 finish_eval=$lt_finish_eval
13649 # Take the output of nm and produce a listing of raw symbols and C names.
13650 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13652 # Transform the output of nm in a proper C declaration
13653 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13655 # Transform the output of nm in a C name address pair
13656 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13658 # This is the shared library runtime path variable.
13659 runpath_var=$runpath_var
13661 # This is the shared library path variable.
13662 shlibpath_var=$shlibpath_var
13664 # Is shlibpath searched before the hard-coded library search path?
13665 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13667 # How to hardcode a shared library path into an executable.
13668 hardcode_action=$hardcode_action_CXX
13670 # Whether we should hardcode library paths into libraries.
13671 hardcode_into_libs=$hardcode_into_libs
13673 # Flag to hardcode \$libdir into a binary during linking.
13674 # This must work even if \$libdir does not exist.
13675 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13677 # If ld is used when linking, flag to hardcode \$libdir into
13678 # a binary during linking. This must work even if \$libdir does
13680 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13682 # Whether we need a single -rpath flag with a separated argument.
13683 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13685 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13686 # resulting binary.
13687 hardcode_direct=$hardcode_direct_CXX
13689 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13690 # resulting binary.
13691 hardcode_minus_L=$hardcode_minus_L_CXX
13693 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13694 # the resulting binary.
13695 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13697 # Set to yes if building a shared library automatically hardcodes DIR into the library
13698 # and all subsequent libraries and executables linked against it.
13699 hardcode_automatic=$hardcode_automatic_CXX
13701 # Variables whose values should be saved in libtool wrapper scripts and
13702 # restored at relink time.
13703 variables_saved_for_relink="$variables_saved_for_relink"
13705 # Whether libtool must link a program against all its dependency libraries.
13706 link_all_deplibs=$link_all_deplibs_CXX
13708 # Compile-time system search path for libraries
13709 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13711 # Run-time system search path for libraries
13712 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13714 # Fix the shell variable \$srcfile for the compiler.
13715 fix_srcfile_path="$fix_srcfile_path_CXX"
13717 # Set to yes if exported symbols are required.
13718 always_export_symbols=$always_export_symbols_CXX
13720 # The commands to list exported symbols.
13721 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13723 # The commands to extract the exported symbol list from a shared archive.
13724 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13726 # Symbols that should not be listed in the preloaded symbols.
13727 exclude_expsyms=$lt_exclude_expsyms_CXX
13729 # Symbols that must always be exported.
13730 include_expsyms=$lt_include_expsyms_CXX
13732 # ### END LIBTOOL TAG CONFIG: $tagname
13738 # If there is no Makefile yet, we rely on a make rule to execute
13739 # `config.status --recheck' to rerun these tests and create the
13740 # libtool script then.
13741 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13742 if test -f "$ltmain_in"; then
13743 test -f Makefile && make "$ltmain"
13749 ac_cpp='$CPP $CPPFLAGS'
13750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13758 with_gnu_ldcxx=$with_gnu_ld
13759 with_gnu_ld=$lt_save_with_gnu_ld
13760 lt_cv_path_LDCXX=$lt_cv_path_LD
13761 lt_cv_path_LD=$lt_save_path_LD
13762 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13763 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13771 if test -n "$F77" && test "X$F77" != "Xno"; then
13774 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13775 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13776 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13779 archive_cmds_need_lc_F77=no
13780 allow_undefined_flag_F77=
13781 always_export_symbols_F77=no
13782 archive_expsym_cmds_F77=
13783 export_dynamic_flag_spec_F77=
13784 hardcode_direct_F77=no
13785 hardcode_libdir_flag_spec_F77=
13786 hardcode_libdir_flag_spec_ld_F77=
13787 hardcode_libdir_separator_F77=
13788 hardcode_minus_L_F77=no
13789 hardcode_automatic_F77=no
13791 module_expsym_cmds_F77=
13792 link_all_deplibs_F77=unknown
13793 old_archive_cmds_F77=$old_archive_cmds
13794 no_undefined_flag_F77=
13795 whole_archive_flag_spec_F77=
13796 enable_shared_with_static_runtimes_F77=no
13798 # Source file extension for f77 test sources.
13801 # Object file extension for compiled f77 test sources.
13805 # Code to be used in simple compile tests
13806 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13808 # Code to be used in simple link tests
13809 lt_simple_link_test_code=" program t\n end\n"
13811 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13813 # If no C compiler was specified, use CC.
13816 # If no C compiler flags were specified, use CFLAGS.
13817 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13819 # Allow CC to be a program name with arguments.
13823 # save warnings/boilerplate of simple test code
13824 ac_outfile=conftest.$ac_objext
13825 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13826 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13827 _lt_compiler_boilerplate=`cat conftest.err`
13830 ac_outfile=conftest.$ac_objext
13831 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13832 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13833 _lt_linker_boilerplate=`cat conftest.err`
13837 # Allow CC to be a program name with arguments.
13842 for cc_temp in $compiler""; do
13844 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13845 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13850 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13853 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13854 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13855 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13856 echo "${ECHO_T}$can_build_shared" >&6; }
13858 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13859 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13860 test "$can_build_shared" = "no" && enable_shared=no
13862 # On AIX, shared libraries and static libraries use the same namespace, and
13863 # are all built from PIC.
13866 test "$enable_shared" = yes && enable_static=no
13867 if test -n "$RANLIB"; then
13868 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13869 postinstall_cmds='$RANLIB $lib'
13873 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13874 test "$enable_shared" = yes && enable_static=no
13878 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13879 echo "${ECHO_T}$enable_shared" >&6; }
13881 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13882 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13883 # Make sure either enable_shared or enable_static is yes.
13884 test "$enable_shared" = yes || enable_static=yes
13885 { echo "$as_me:$LINENO: result: $enable_static" >&5
13886 echo "${ECHO_T}$enable_static" >&6; }
13891 lt_prog_compiler_wl_F77=
13892 lt_prog_compiler_pic_F77=
13893 lt_prog_compiler_static_F77=
13895 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13896 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13898 if test "$GCC" = yes; then
13899 lt_prog_compiler_wl_F77='-Wl,'
13900 lt_prog_compiler_static_F77='-static'
13904 # All AIX code is PIC.
13905 if test "$host_cpu" = ia64; then
13906 # AIX 5 now supports IA64 processor
13907 lt_prog_compiler_static_F77='-Bstatic'
13912 # FIXME: we need at least 68020 code to build shared libraries, but
13913 # adding the `-m68020' flag to GCC prevents building anything better,
13915 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13918 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13919 # PIC is the default for these OSes.
13922 mingw* | pw32* | os2*)
13923 # This hack is so that the source file can tell whether it is being
13924 # built for inclusion in a dll (and should export symbols for example).
13925 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13928 darwin* | rhapsody*)
13929 # PIC is the default on this platform
13930 # Common symbols not allowed in MH_DYLIB files
13931 lt_prog_compiler_pic_F77='-fno-common'
13935 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13936 # Instead, we relocate shared libraries at runtime.
13940 # Just because we use GCC doesn't mean we suddenly get shared libraries
13941 # on systems that don't support them.
13942 lt_prog_compiler_can_build_shared_F77=no
13947 if test -d /usr/nec; then
13948 lt_prog_compiler_pic_F77=-Kconform_pic
13953 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13954 # not for PA HP-UX.
13960 lt_prog_compiler_pic_F77='-fPIC'
13966 lt_prog_compiler_pic_F77='-fPIC'
13970 # PORTME Check for flag to pass linker flags through the system compiler.
13973 lt_prog_compiler_wl_F77='-Wl,'
13974 if test "$host_cpu" = ia64; then
13975 # AIX 5 now supports IA64 processor
13976 lt_prog_compiler_static_F77='-Bstatic'
13978 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13982 # PIC is the default on this platform
13983 # Common symbols not allowed in MH_DYLIB files
13984 case $cc_basename in
13986 lt_prog_compiler_pic_F77='-qnocommon'
13987 lt_prog_compiler_wl_F77='-Wl,'
13992 mingw* | pw32* | os2*)
13993 # This hack is so that the source file can tell whether it is being
13994 # built for inclusion in a dll (and should export symbols for example).
13995 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13998 hpux9* | hpux10* | hpux11*)
13999 lt_prog_compiler_wl_F77='-Wl,'
14000 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14001 # not for PA HP-UX.
14007 lt_prog_compiler_pic_F77='+Z'
14010 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14011 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14014 irix5* | irix6* | nonstopux*)
14015 lt_prog_compiler_wl_F77='-Wl,'
14016 # PIC (with -KPIC) is the default.
14017 lt_prog_compiler_static_F77='-non_shared'
14021 lt_prog_compiler_pic_F77='-KPIC'
14022 lt_prog_compiler_static_F77='-Bstatic'
14025 linux* | k*bsd*-gnu)
14026 case $cc_basename in
14028 lt_prog_compiler_wl_F77='-Wl,'
14029 lt_prog_compiler_pic_F77='-KPIC'
14030 lt_prog_compiler_static_F77='-static'
14032 pgcc* | pgf77* | pgf90* | pgf95*)
14033 # Portland Group compilers (*not* the Pentium gcc compiler,
14034 # which looks to be a dead project)
14035 lt_prog_compiler_wl_F77='-Wl,'
14036 lt_prog_compiler_pic_F77='-fpic'
14037 lt_prog_compiler_static_F77='-Bstatic'
14040 lt_prog_compiler_wl_F77='-Wl,'
14041 # All Alpha code is PIC.
14042 lt_prog_compiler_static_F77='-non_shared'
14047 osf3* | osf4* | osf5*)
14048 lt_prog_compiler_wl_F77='-Wl,'
14049 # All OSF/1 code is PIC.
14050 lt_prog_compiler_static_F77='-non_shared'
14054 lt_prog_compiler_pic_F77='-KPIC'
14055 lt_prog_compiler_static_F77='-Bstatic'
14056 case $cc_basename in
14057 f77* | f90* | f95*)
14058 lt_prog_compiler_wl_F77='-Qoption ld ';;
14060 lt_prog_compiler_wl_F77='-Wl,';;
14065 lt_prog_compiler_wl_F77='-Qoption ld '
14066 lt_prog_compiler_pic_F77='-PIC'
14067 lt_prog_compiler_static_F77='-Bstatic'
14070 sysv4 | sysv4.2uw2* | sysv4.3*)
14071 lt_prog_compiler_wl_F77='-Wl,'
14072 lt_prog_compiler_pic_F77='-KPIC'
14073 lt_prog_compiler_static_F77='-Bstatic'
14077 if test -d /usr/nec ;then
14078 lt_prog_compiler_pic_F77='-Kconform_pic'
14079 lt_prog_compiler_static_F77='-Bstatic'
14083 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14084 lt_prog_compiler_wl_F77='-Wl,'
14085 lt_prog_compiler_pic_F77='-KPIC'
14086 lt_prog_compiler_static_F77='-Bstatic'
14090 lt_prog_compiler_wl_F77='-Wl,'
14091 lt_prog_compiler_can_build_shared_F77=no
14095 lt_prog_compiler_pic_F77='-pic'
14096 lt_prog_compiler_static_F77='-Bstatic'
14100 lt_prog_compiler_can_build_shared_F77=no
14105 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14106 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14109 # Check to make sure the PIC flag actually works.
14111 if test -n "$lt_prog_compiler_pic_F77"; then
14113 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14114 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14115 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14116 echo $ECHO_N "(cached) $ECHO_C" >&6
14118 lt_prog_compiler_pic_works_F77=no
14119 ac_outfile=conftest.$ac_objext
14120 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14121 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14122 # Insert the option either (1) after the last *FLAGS variable, or
14123 # (2) before a word containing "conftest.", or (3) at the end.
14124 # Note that $ac_compile itself does not contain backslashes and begins
14125 # with a dollar sign (not a hyphen), so the echo should work correctly.
14126 # The option is referenced via a variable to avoid confusing sed.
14127 lt_compile=`echo "$ac_compile" | $SED \
14128 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14129 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14130 -e 's:$: $lt_compiler_flag:'`
14131 (eval echo "\"\$as_me:14131: $lt_compile\"" >&5)
14132 (eval "$lt_compile" 2>conftest.err)
14134 cat conftest.err >&5
14135 echo "$as_me:14135: \$? = $ac_status" >&5
14136 if (exit $ac_status) && test -s "$ac_outfile"; then
14137 # The compiler can only warn and ignore the option if not recognized
14138 # So say no if there are warnings other than the usual output.
14139 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14140 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14141 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14142 lt_prog_compiler_pic_works_F77=yes
14148 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14149 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14151 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14152 case $lt_prog_compiler_pic_F77 in
14154 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14157 lt_prog_compiler_pic_F77=
14158 lt_prog_compiler_can_build_shared_F77=no
14163 # For platforms which do not support PIC, -DPIC is meaningless:
14165 lt_prog_compiler_pic_F77=
14168 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14173 # Check to make sure the static flag actually works.
14175 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14176 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14177 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14178 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14179 echo $ECHO_N "(cached) $ECHO_C" >&6
14181 lt_prog_compiler_static_works_F77=no
14182 save_LDFLAGS="$LDFLAGS"
14183 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14184 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14185 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14186 # The linker can only warn and ignore the option if not recognized
14187 # So say no if there are warnings
14188 if test -s conftest.err; then
14189 # Append any errors to the config.log.
14190 cat conftest.err 1>&5
14191 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14192 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14193 if diff conftest.exp conftest.er2 >/dev/null; then
14194 lt_prog_compiler_static_works_F77=yes
14197 lt_prog_compiler_static_works_F77=yes
14201 LDFLAGS="$save_LDFLAGS"
14204 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14205 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14207 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14210 lt_prog_compiler_static_F77=
14214 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14215 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14216 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14217 echo $ECHO_N "(cached) $ECHO_C" >&6
14219 lt_cv_prog_compiler_c_o_F77=no
14220 $rm -r conftest 2>/dev/null
14224 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14226 lt_compiler_flag="-o out/conftest2.$ac_objext"
14227 # Insert the option either (1) after the last *FLAGS variable, or
14228 # (2) before a word containing "conftest.", or (3) at the end.
14229 # Note that $ac_compile itself does not contain backslashes and begins
14230 # with a dollar sign (not a hyphen), so the echo should work correctly.
14231 lt_compile=`echo "$ac_compile" | $SED \
14232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14234 -e 's:$: $lt_compiler_flag:'`
14235 (eval echo "\"\$as_me:14235: $lt_compile\"" >&5)
14236 (eval "$lt_compile" 2>out/conftest.err)
14238 cat out/conftest.err >&5
14239 echo "$as_me:14239: \$? = $ac_status" >&5
14240 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14242 # The compiler can only warn and ignore the option if not recognized
14243 # So say no if there are warnings
14244 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14245 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14246 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14247 lt_cv_prog_compiler_c_o_F77=yes
14252 # SGI C++ compiler will create directory out/ii_files/ for
14253 # template instantiation
14254 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14255 $rm out/* && rmdir out
14261 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14262 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14265 hard_links="nottested"
14266 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14267 # do not overwrite the value of need_locks provided by the user
14268 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14269 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14272 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14274 ln conftest.a conftest.b 2>&5 || hard_links=no
14275 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14276 { echo "$as_me:$LINENO: result: $hard_links" >&5
14277 echo "${ECHO_T}$hard_links" >&6; }
14278 if test "$hard_links" = no; then
14279 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14280 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14287 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14288 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14291 allow_undefined_flag_F77=
14292 enable_shared_with_static_runtimes_F77=no
14294 archive_expsym_cmds_F77=
14295 old_archive_From_new_cmds_F77=
14296 old_archive_from_expsyms_cmds_F77=
14297 export_dynamic_flag_spec_F77=
14298 whole_archive_flag_spec_F77=
14299 thread_safe_flag_spec_F77=
14300 hardcode_libdir_flag_spec_F77=
14301 hardcode_libdir_flag_spec_ld_F77=
14302 hardcode_libdir_separator_F77=
14303 hardcode_direct_F77=no
14304 hardcode_minus_L_F77=no
14305 hardcode_shlibpath_var_F77=unsupported
14306 link_all_deplibs_F77=unknown
14307 hardcode_automatic_F77=no
14309 module_expsym_cmds_F77=
14310 always_export_symbols_F77=no
14311 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14312 # include_expsyms should be a list of space-separated symbols to be *always*
14313 # included in the symbol list
14314 include_expsyms_F77=
14315 # exclude_expsyms can be an extended regexp of symbols to exclude
14316 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14317 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14318 # as well as any symbol that contains `d'.
14319 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14320 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14321 # platforms (ab)use it in PIC code, but their linkers get confused if
14322 # the symbol is explicitly referenced. Since portable code cannot
14323 # rely on this symbol name, it's probably fine to never include it in
14324 # preloaded symbol tables.
14325 extract_expsyms_cmds=
14326 # Just being paranoid about ensuring that cc_basename is set.
14327 for cc_temp in $compiler""; do
14329 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14330 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14335 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14338 cygwin* | mingw* | pw32*)
14339 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14340 # When not using gcc, we currently assume that we are using
14341 # Microsoft Visual C++.
14342 if test "$GCC" != yes; then
14347 # we just hope/assume this is gcc and not c89 (= MSVC++)
14356 if test "$with_gnu_ld" = yes; then
14357 # If archive_cmds runs LD, not CC, wlarc should be empty
14360 # Set some defaults for GNU ld with shared library support. These
14361 # are reset later if shared libraries are not supported. Putting them
14362 # here allows them to be overridden if necessary.
14363 runpath_var=LD_RUN_PATH
14364 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14365 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14366 # ancient GNU ld didn't support --whole-archive et. al.
14367 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14368 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14370 whole_archive_flag_spec_F77=
14372 supports_anon_versioning=no
14373 case `$LD -v 2>/dev/null` in
14374 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14375 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14376 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14377 *\ 2.11.*) ;; # other 2.11 versions
14378 *) supports_anon_versioning=yes ;;
14381 # See if GNU ld supports shared libraries.
14383 aix3* | aix4* | aix5*)
14384 # On AIX/PPC, the GNU linker is very broken
14385 if test "$host_cpu" != ia64; then
14389 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14390 *** to be unable to reliably create shared libraries on AIX.
14391 *** Therefore, libtool is disabling shared libraries support. If you
14392 *** really care for shared libraries, you may want to modify your PATH
14393 *** so that a non-GNU linker is found, and then restart.
14400 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)'
14401 hardcode_libdir_flag_spec_F77='-L$libdir'
14402 hardcode_minus_L_F77=yes
14404 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14405 # that the semantics of dynamic libraries on AmigaOS, at least up
14406 # to version 4, is to share data among multiple programs linked
14407 # with the same dynamic library. Since this doesn't match the
14408 # behavior of shared libraries on other platforms, we can't use
14414 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14415 allow_undefined_flag_F77=unsupported
14416 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14417 # support --undefined. This deserves some investigation. FIXME
14418 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14424 cygwin* | mingw* | pw32*)
14425 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14426 # as there is no search path for DLLs.
14427 hardcode_libdir_flag_spec_F77='-L$libdir'
14428 allow_undefined_flag_F77=unsupported
14429 always_export_symbols_F77=no
14430 enable_shared_with_static_runtimes_F77=yes
14431 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14433 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14434 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14435 # If the export-symbols file already is a .def file (1st line
14436 # is EXPORTS), use it as is; otherwise, prepend...
14437 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14438 cp $export_symbols $output_objdir/$soname.def;
14440 echo EXPORTS > $output_objdir/$soname.def;
14441 cat $export_symbols >> $output_objdir/$soname.def;
14443 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14450 hardcode_direct_F77=no
14451 hardcode_shlibpath_var_F77=no
14452 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14453 export_dynamic_flag_spec_F77='${wl}-E'
14454 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14455 # Instead, shared libraries are loaded at an image base (0x10000000 by
14456 # default) and relocated if they conflict, which is a slow very memory
14457 # consuming and fragmenting process. To avoid this, we pick a random,
14458 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14459 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14460 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'
14461 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'
14464 linux* | k*bsd*-gnu)
14465 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14467 case $cc_basename,$host_cpu in
14468 pgcc*) # Portland Group C compiler
14469 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'
14470 tmp_addflag=' $pic_flag'
14472 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14473 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'
14474 tmp_addflag=' $pic_flag -Mnomain' ;;
14475 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14476 tmp_addflag=' -i_dynamic' ;;
14477 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14478 tmp_addflag=' -i_dynamic -nofor_main' ;;
14479 ifc* | ifort*) # Intel Fortran compiler
14480 tmp_addflag=' -nofor_main' ;;
14482 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14484 if test $supports_anon_versioning = yes; then
14485 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14486 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14487 $echo "local: *; };" >> $output_objdir/$libname.ver~
14488 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14490 link_all_deplibs_F77=no
14496 netbsd* | netbsdelf*-gnu)
14497 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14498 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14501 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14502 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14507 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14511 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14512 *** create shared libraries on Solaris systems. Therefore, libtool
14513 *** is disabling shared libraries support. We urge you to upgrade GNU
14514 *** binutils to release 2.9.1 or newer. Another option is to modify
14515 *** your PATH or compiler configuration so that the native linker is
14516 *** used, and then restart.
14519 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14520 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14521 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14527 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14528 case `$LD -v 2>&1` in
14529 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14533 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14534 *** reliably create shared libraries on SCO systems. Therefore, libtool
14535 *** is disabling shared libraries support. We urge you to upgrade GNU
14536 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14537 *** your PATH or compiler configuration so that the native linker is
14538 *** used, and then restart.
14543 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14544 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14545 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14546 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14555 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14557 hardcode_direct_F77=yes
14558 hardcode_shlibpath_var_F77=no
14562 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14563 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14564 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14571 if test "$ld_shlibs_F77" = no; then
14573 hardcode_libdir_flag_spec_F77=
14574 export_dynamic_flag_spec_F77=
14575 whole_archive_flag_spec_F77=
14578 # PORTME fill in a description of your system's linker (not GNU ld)
14581 allow_undefined_flag_F77=unsupported
14582 always_export_symbols_F77=yes
14583 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'
14584 # Note: this linker hardcodes the directories in LIBPATH if there
14585 # are no directories specified by -L.
14586 hardcode_minus_L_F77=yes
14587 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14588 # Neither direct hardcoding nor static linking is supported with a
14590 hardcode_direct_F77=unsupported
14595 if test "$host_cpu" = ia64; then
14596 # On IA64, the linker does run time linking by default, so we don't
14597 # have to do anything special.
14598 aix_use_runtimelinking=no
14599 exp_sym_flag='-Bexport'
14602 # If we're using GNU nm, then we don't want the "-C" option.
14603 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14604 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14605 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'
14607 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'
14609 aix_use_runtimelinking=no
14611 # Test if we are trying to use run time linking or normal
14612 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14613 # need to do runtime linking.
14614 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14615 for ld_flag in $LDFLAGS; do
14616 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14617 aix_use_runtimelinking=yes
14624 exp_sym_flag='-bexport'
14625 no_entry_flag='-bnoentry'
14628 # When large executables or shared objects are built, AIX ld can
14629 # have problems creating the table of contents. If linking a library
14630 # or program results in "error TOC overflow" add -mminimal-toc to
14631 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14632 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14634 archive_cmds_F77=''
14635 hardcode_direct_F77=yes
14636 hardcode_libdir_separator_F77=':'
14637 link_all_deplibs_F77=yes
14639 if test "$GCC" = yes; then
14640 case $host_os in aix4.[012]|aix4.[012].*)
14641 # We only want to do this on AIX 4.2 and lower, the check
14642 # below for broken collect2 doesn't work under 4.3+
14643 collect2name=`${CC} -print-prog-name=collect2`
14644 if test -f "$collect2name" && \
14645 strings "$collect2name" | grep resolve_lib_name >/dev/null
14647 # We have reworked collect2
14648 hardcode_direct_F77=yes
14650 # We have old collect2
14651 hardcode_direct_F77=unsupported
14652 # It fails to find uninstalled libraries when the uninstalled
14653 # path is not listed in the libpath. Setting hardcode_minus_L
14654 # to unsupported forces relinking
14655 hardcode_minus_L_F77=yes
14656 hardcode_libdir_flag_spec_F77='-L$libdir'
14657 hardcode_libdir_separator_F77=
14661 shared_flag='-shared'
14662 if test "$aix_use_runtimelinking" = yes; then
14663 shared_flag="$shared_flag "'${wl}-G'
14667 if test "$host_cpu" = ia64; then
14668 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14669 # chokes on -Wl,-G. The following line is correct:
14672 if test "$aix_use_runtimelinking" = yes; then
14673 shared_flag='${wl}-G'
14675 shared_flag='${wl}-bM:SRE'
14680 # It seems that -bexpall does not export symbols beginning with
14681 # underscore (_), so it is better to generate a list of symbols to export.
14682 always_export_symbols_F77=yes
14683 if test "$aix_use_runtimelinking" = yes; then
14684 # Warning - without using the other runtime loading flags (-brtl),
14685 # -berok will link without error, but may produce a broken library.
14686 allow_undefined_flag_F77='-berok'
14687 # Determine the default libpath from the value encoded in an empty executable.
14688 cat >conftest.$ac_ext <<_ACEOF
14693 rm -f conftest.$ac_objext conftest$ac_exeext
14694 if { (ac_try="$ac_link"
14695 case "(($ac_try" in
14696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14697 *) ac_try_echo=$ac_try;;
14699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14700 (eval "$ac_link") 2>conftest.er1
14702 grep -v '^ *+' conftest.er1 >conftest.err
14704 cat conftest.err >&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); } && {
14707 test -z "$ac_f77_werror_flag" ||
14708 test ! -s conftest.err
14709 } && test -s conftest$ac_exeext &&
14710 $as_test_x conftest$ac_exeext; then
14712 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14714 # Check for a 64-bit object if we didn't find anything.
14715 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; }
14718 echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.$ac_ext >&5
14724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14725 conftest$ac_exeext conftest.$ac_ext
14726 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14728 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14729 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"
14731 if test "$host_cpu" = ia64; then
14732 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14733 allow_undefined_flag_F77="-z nodefs"
14734 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"
14736 # Determine the default libpath from the value encoded in an empty executable.
14737 cat >conftest.$ac_ext <<_ACEOF
14742 rm -f conftest.$ac_objext conftest$ac_exeext
14743 if { (ac_try="$ac_link"
14744 case "(($ac_try" in
14745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14746 *) ac_try_echo=$ac_try;;
14748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14749 (eval "$ac_link") 2>conftest.er1
14751 grep -v '^ *+' conftest.er1 >conftest.err
14753 cat conftest.err >&5
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); } && {
14756 test -z "$ac_f77_werror_flag" ||
14757 test ! -s conftest.err
14758 } && test -s conftest$ac_exeext &&
14759 $as_test_x conftest$ac_exeext; then
14761 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14763 # Check for a 64-bit object if we didn't find anything.
14764 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; }
14767 echo "$as_me: failed program was:" >&5
14768 sed 's/^/| /' conftest.$ac_ext >&5
14773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14774 conftest$ac_exeext conftest.$ac_ext
14775 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14777 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14778 # Warning - without using the other run time loading flags,
14779 # -berok will link without error, but may produce a broken library.
14780 no_undefined_flag_F77=' ${wl}-bernotok'
14781 allow_undefined_flag_F77=' ${wl}-berok'
14782 # Exported symbols can be pulled into shared objects from archives
14783 whole_archive_flag_spec_F77='$convenience'
14784 archive_cmds_need_lc_F77=yes
14785 # This is similar to how AIX traditionally builds its shared libraries.
14786 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'
14792 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)'
14793 hardcode_libdir_flag_spec_F77='-L$libdir'
14794 hardcode_minus_L_F77=yes
14795 # see comment about different semantics on the GNU ld section
14800 export_dynamic_flag_spec_F77=-rdynamic
14803 cygwin* | mingw* | pw32*)
14804 # When not using gcc, we currently assume that we are using
14805 # Microsoft Visual C++.
14806 # hardcode_libdir_flag_spec is actually meaningless, as there is
14807 # no search path for DLLs.
14808 hardcode_libdir_flag_spec_F77=' '
14809 allow_undefined_flag_F77=unsupported
14810 # Tell ltmain to make .lib files, not .a files.
14812 # Tell ltmain to make .dll files, not .so files.
14814 # FIXME: Setting linknames here is a bad hack.
14815 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14816 # The linker will automatically build a .lib file if we build a DLL.
14817 old_archive_From_new_cmds_F77='true'
14818 # FIXME: Should let the user specify the lib program.
14819 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14820 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14821 enable_shared_with_static_runtimes_F77=yes
14824 darwin* | rhapsody*)
14826 rhapsody* | darwin1.[012])
14827 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14830 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14831 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14833 case ${MACOSX_DEPLOYMENT_TARGET} in
14835 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14838 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14844 archive_cmds_need_lc_F77=no
14845 hardcode_direct_F77=no
14846 hardcode_automatic_F77=yes
14847 hardcode_shlibpath_var_F77=unsupported
14848 whole_archive_flag_spec_F77=''
14849 link_all_deplibs_F77=yes
14850 if test "$GCC" = yes ; then
14851 output_verbose_link_cmd='echo'
14852 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14853 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14854 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14855 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}'
14856 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}'
14858 case $cc_basename in
14860 output_verbose_link_cmd='echo'
14861 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14862 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14863 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14864 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}'
14865 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}'
14875 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14876 hardcode_libdir_flag_spec_F77='-L$libdir'
14877 hardcode_shlibpath_var_F77=no
14884 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14885 # support. Future versions do this automatically, but an explicit c++rt0.o
14886 # does not break anything, and helps significantly (at the cost of a little
14889 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14890 hardcode_libdir_flag_spec_F77='-R$libdir'
14891 hardcode_direct_F77=yes
14892 hardcode_shlibpath_var_F77=no
14895 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14897 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14898 hardcode_direct_F77=yes
14899 hardcode_minus_L_F77=yes
14900 hardcode_shlibpath_var_F77=no
14903 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14904 freebsd* | dragonfly*)
14905 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14906 hardcode_libdir_flag_spec_F77='-R$libdir'
14907 hardcode_direct_F77=yes
14908 hardcode_shlibpath_var_F77=no
14912 if test "$GCC" = yes; then
14913 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'
14915 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'
14917 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14918 hardcode_libdir_separator_F77=:
14919 hardcode_direct_F77=yes
14921 # hardcode_minus_L: Not really in the search PATH,
14922 # but as the default location of the library.
14923 hardcode_minus_L_F77=yes
14924 export_dynamic_flag_spec_F77='${wl}-E'
14928 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14929 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14931 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14933 if test "$with_gnu_ld" = no; then
14934 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14935 hardcode_libdir_separator_F77=:
14937 hardcode_direct_F77=yes
14938 export_dynamic_flag_spec_F77='${wl}-E'
14940 # hardcode_minus_L: Not really in the search PATH,
14941 # but as the default location of the library.
14942 hardcode_minus_L_F77=yes
14947 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14950 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14953 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14956 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14962 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14965 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14968 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14972 if test "$with_gnu_ld" = no; then
14973 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14974 hardcode_libdir_separator_F77=:
14978 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14979 hardcode_direct_F77=no
14980 hardcode_shlibpath_var_F77=no
14983 hardcode_direct_F77=yes
14984 export_dynamic_flag_spec_F77='${wl}-E'
14986 # hardcode_minus_L: Not really in the search PATH,
14987 # but as the default location of the library.
14988 hardcode_minus_L_F77=yes
14994 irix5* | irix6* | nonstopux*)
14995 if test "$GCC" = yes; then
14996 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'
14998 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'
14999 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15001 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15002 hardcode_libdir_separator_F77=:
15003 link_all_deplibs_F77=yes
15006 netbsd* | netbsdelf*-gnu)
15007 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15008 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15010 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15012 hardcode_libdir_flag_spec_F77='-R$libdir'
15013 hardcode_direct_F77=yes
15014 hardcode_shlibpath_var_F77=no
15018 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15019 hardcode_direct_F77=yes
15020 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15021 hardcode_libdir_separator_F77=:
15022 hardcode_shlibpath_var_F77=no
15026 hardcode_direct_F77=yes
15027 hardcode_shlibpath_var_F77=no
15028 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15029 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15030 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15031 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15032 export_dynamic_flag_spec_F77='${wl}-E'
15035 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15036 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15037 hardcode_libdir_flag_spec_F77='-R$libdir'
15040 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15041 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15048 hardcode_libdir_flag_spec_F77='-L$libdir'
15049 hardcode_minus_L_F77=yes
15050 allow_undefined_flag_F77=unsupported
15051 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'
15052 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15056 if test "$GCC" = yes; then
15057 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15058 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'
15060 allow_undefined_flag_F77=' -expect_unresolved \*'
15061 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'
15063 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15064 hardcode_libdir_separator_F77=:
15067 osf4* | osf5*) # as osf3* with the addition of -msym flag
15068 if test "$GCC" = yes; then
15069 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15070 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'
15071 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15073 allow_undefined_flag_F77=' -expect_unresolved \*'
15074 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'
15075 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~
15076 $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'
15078 # Both c and cxx compiler support -rpath directly
15079 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15081 hardcode_libdir_separator_F77=:
15085 no_undefined_flag_F77=' -z text'
15086 if test "$GCC" = yes; then
15088 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15089 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15090 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15093 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15094 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15095 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15097 hardcode_libdir_flag_spec_F77='-R$libdir'
15098 hardcode_shlibpath_var_F77=no
15100 solaris2.[0-5] | solaris2.[0-5].*) ;;
15102 # The compiler driver will combine linker options so we
15103 # cannot just pass the convience library names through
15104 # without $wl, iff we do not link with $LD.
15105 # Luckily, gcc supports the same syntax we need for Sun Studio.
15106 # Supported since Solaris 2.6 (maybe 2.5.1?)
15109 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15111 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' ;;
15114 link_all_deplibs_F77=yes
15118 if test "x$host_vendor" = xsequent; then
15119 # Use $CC to link under sequent, because it throws in some extra .o
15120 # files that make .init and .fini sections work.
15121 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15123 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15125 hardcode_libdir_flag_spec_F77='-L$libdir'
15126 hardcode_direct_F77=yes
15127 hardcode_minus_L_F77=yes
15128 hardcode_shlibpath_var_F77=no
15132 case $host_vendor in
15134 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15135 hardcode_direct_F77=yes # is this really true???
15138 ## LD is ld it makes a PLAMLIB
15139 ## CC just makes a GrossModule.
15140 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15141 reload_cmds_F77='$CC -r -o $output$reload_objs'
15142 hardcode_direct_F77=no
15145 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15146 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15149 runpath_var='LD_RUN_PATH'
15150 hardcode_shlibpath_var_F77=no
15154 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15155 hardcode_shlibpath_var_F77=no
15156 export_dynamic_flag_spec_F77='-Bexport'
15160 if test -d /usr/nec; then
15161 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15162 hardcode_shlibpath_var_F77=no
15163 runpath_var=LD_RUN_PATH
15164 hardcode_runpath_var=yes
15169 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15170 no_undefined_flag_F77='${wl}-z,text'
15171 archive_cmds_need_lc_F77=no
15172 hardcode_shlibpath_var_F77=no
15173 runpath_var='LD_RUN_PATH'
15175 if test "$GCC" = yes; then
15176 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15177 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15179 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15180 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15184 sysv5* | sco3.2v5* | sco5v6*)
15185 # Note: We can NOT use -z defs as we might desire, because we do not
15186 # link with -lc, and that would cause any symbols used from libc to
15187 # always be unresolved, which means just about no library would
15188 # ever link correctly. If we're not using GNU ld we use -z text
15189 # though, which does catch some bad symbols but isn't as heavy-handed
15191 no_undefined_flag_F77='${wl}-z,text'
15192 allow_undefined_flag_F77='${wl}-z,nodefs'
15193 archive_cmds_need_lc_F77=no
15194 hardcode_shlibpath_var_F77=no
15195 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15196 hardcode_libdir_separator_F77=':'
15197 link_all_deplibs_F77=yes
15198 export_dynamic_flag_spec_F77='${wl}-Bexport'
15199 runpath_var='LD_RUN_PATH'
15201 if test "$GCC" = yes; then
15202 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15203 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15205 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15206 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15211 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15212 hardcode_libdir_flag_spec_F77='-L$libdir'
15213 hardcode_shlibpath_var_F77=no
15222 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15223 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15224 test "$ld_shlibs_F77" = no && can_build_shared=no
15227 # Do we need to explicitly link libc?
15229 case "x$archive_cmds_need_lc_F77" in
15231 # Assume -lc should be added
15232 archive_cmds_need_lc_F77=yes
15234 if test "$enable_shared" = yes && test "$GCC" = yes; then
15235 case $archive_cmds_F77 in
15237 # FIXME: we may have to deal with multi-command sequences.
15240 # Test whether the compiler implicitly links with -lc since on some
15241 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15242 # to ld, don't add -lc before -lgcc.
15243 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15244 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15246 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15249 (eval $ac_compile) 2>&5
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); } 2>conftest.err; then
15255 libobjs=conftest.$ac_objext
15257 wl=$lt_prog_compiler_wl_F77
15258 pic_flag=$lt_prog_compiler_pic_F77
15264 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15265 allow_undefined_flag_F77=
15266 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15267 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); }
15272 archive_cmds_need_lc_F77=no
15274 archive_cmds_need_lc_F77=yes
15276 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15278 cat conftest.err 1>&5
15281 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15282 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15289 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15290 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15291 library_names_spec=
15292 libname_spec='lib$name'
15296 postuninstall_cmds=
15300 shlibpath_overrides_runpath=unknown
15302 dynamic_linker="$host_os ld.so"
15303 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15304 if test "$GCC" = yes; then
15305 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15306 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15307 # if the path contains ";" then we assume it to be the separator
15308 # otherwise default to the standard path separator (i.e. ":") - it is
15309 # assumed that no part of a normal pathname contains ";" but that should
15310 # okay in the real world where ";" in dirpaths is itself problematic.
15311 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15313 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15316 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15318 need_lib_prefix=unknown
15319 hardcode_into_libs=no
15321 # when you set need_version to no, make sure it does not cause -set_version
15322 # flags to be left without arguments
15323 need_version=unknown
15328 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15329 shlibpath_var=LIBPATH
15331 # AIX 3 has no versioning support, so we append a major version to the name.
15332 soname_spec='${libname}${release}${shared_ext}$major'
15339 hardcode_into_libs=yes
15340 if test "$host_cpu" = ia64; then
15341 # AIX 5 supports IA64
15342 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15343 shlibpath_var=LD_LIBRARY_PATH
15345 # With GCC up to 2.95.x, collect2 would create an import file
15346 # for dependence libraries. The import file would start with
15347 # the line `#! .'. This would cause the generated library to
15348 # depend on `.', always an invalid library. This was fixed in
15349 # development snapshots of GCC prior to 3.0.
15351 aix4 | aix4.[01] | aix4.[01].*)
15352 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15354 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15357 can_build_shared=no
15361 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15362 # soname into executable. Probably we can add versioning support to
15363 # collect2, so additional links can be useful in future.
15364 if test "$aix_use_runtimelinking" = yes; then
15365 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15366 # instead of lib<name>.a to let people know that these are not
15367 # typical AIX shared libraries.
15368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15370 # We preserve .a as extension for shared libraries through AIX4.2
15371 # and later when we are not doing run time linking.
15372 library_names_spec='${libname}${release}.a $libname.a'
15373 soname_spec='${libname}${release}${shared_ext}$major'
15375 shlibpath_var=LIBPATH
15380 library_names_spec='$libname.ixlibrary $libname.a'
15381 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15382 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'
15386 library_names_spec='${libname}${shared_ext}'
15387 dynamic_linker="$host_os ld.so"
15388 shlibpath_var=LIBRARY_PATH
15394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15395 soname_spec='${libname}${release}${shared_ext}$major'
15396 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15397 shlibpath_var=LD_LIBRARY_PATH
15398 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15399 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15400 # the default ld.so.conf also contains /usr/contrib/lib and
15401 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15402 # libtool to hard-code these into programs
15405 cygwin* | mingw* | pw32*)
15406 version_type=windows
15411 case $GCC,$host_os in
15412 yes,cygwin* | yes,mingw* | yes,pw32*)
15413 library_names_spec='$libname.dll.a'
15414 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15415 postinstall_cmds='base_file=`basename \${file}`~
15416 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15417 dldir=$destdir/`dirname \$dlpath`~
15418 test -d \$dldir || mkdir -p \$dldir~
15419 $install_prog $dir/$dlname \$dldir/$dlname~
15420 chmod a+x \$dldir/$dlname'
15421 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15422 dlpath=$dir/\$dldll~
15424 shlibpath_overrides_runpath=yes
15428 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15429 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15430 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15433 # MinGW DLLs use traditional 'lib' prefix
15434 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15435 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15436 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15437 # It is most probably a Windows format PATH printed by
15438 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15439 # path with ; separators, and with drive letters. We can handle the
15440 # drive letters (cygwin fileutils understands them), so leave them,
15441 # especially as we might pass files found there to a mingw objdump,
15442 # which wouldn't understand a cygwinified path. Ahh.
15443 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15445 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15449 # pw32 DLLs use 'pw' prefix rather than 'lib'
15450 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15456 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15459 dynamic_linker='Win32 ld.exe'
15460 # FIXME: first we should search . and the directory the executable is in
15464 darwin* | rhapsody*)
15465 dynamic_linker="$host_os dyld"
15466 version_type=darwin
15469 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15470 soname_spec='${libname}${release}${major}$shared_ext'
15471 shlibpath_overrides_runpath=yes
15472 shlibpath_var=DYLD_LIBRARY_PATH
15473 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15474 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15475 if test "$GCC" = yes; then
15476 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"`
15478 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15480 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15488 soname_spec='${libname}${release}${shared_ext}$major'
15489 shlibpath_var=LD_LIBRARY_PATH
15496 freebsd* | dragonfly*)
15497 # DragonFly does not have aout. When/if they implement a new
15498 # versioning mechanism, adjust this.
15499 if test -x /usr/bin/objformat; then
15500 objformat=`/usr/bin/objformat`
15503 freebsd[123]*) objformat=aout ;;
15504 *) objformat=elf ;;
15507 version_type=freebsd-$objformat
15508 case $version_type in
15510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15515 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15519 shlibpath_var=LD_LIBRARY_PATH
15522 shlibpath_overrides_runpath=yes
15524 freebsd3.[01]* | freebsdelf3.[01]*)
15525 shlibpath_overrides_runpath=yes
15526 hardcode_into_libs=yes
15528 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15529 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15530 shlibpath_overrides_runpath=no
15531 hardcode_into_libs=yes
15533 freebsd*) # from 4.6 on
15534 shlibpath_overrides_runpath=yes
15535 hardcode_into_libs=yes
15544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15545 soname_spec='${libname}${release}${shared_ext}$major'
15546 shlibpath_var=LD_LIBRARY_PATH
15547 hardcode_into_libs=yes
15550 hpux9* | hpux10* | hpux11*)
15551 # Give a soname corresponding to the major version so that dld.sl refuses to
15552 # link against other versions.
15559 hardcode_into_libs=yes
15560 dynamic_linker="$host_os dld.so"
15561 shlibpath_var=LD_LIBRARY_PATH
15562 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15564 soname_spec='${libname}${release}${shared_ext}$major'
15565 if test "X$HPUX_IA64_MODE" = X32; then
15566 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15568 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15570 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15574 hardcode_into_libs=yes
15575 dynamic_linker="$host_os dld.sl"
15576 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15577 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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'
15580 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15581 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15585 dynamic_linker="$host_os dld.sl"
15586 shlibpath_var=SHLIB_PATH
15587 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15589 soname_spec='${libname}${release}${shared_ext}$major'
15592 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15593 postinstall_cmds='chmod 555 $lib'
15600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15601 soname_spec='${libname}${release}${shared_ext}$major'
15602 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15603 shlibpath_var=LD_LIBRARY_PATH
15604 shlibpath_overrides_runpath=no
15605 hardcode_into_libs=yes
15608 irix5* | irix6* | nonstopux*)
15610 nonstopux*) version_type=nonstopux ;;
15612 if test "$lt_cv_prog_gnu_ld" = yes; then
15620 soname_spec='${libname}${release}${shared_ext}$major'
15621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15623 irix5* | nonstopux*)
15624 libsuff= shlibsuff=
15627 case $LD in # libtool.m4 will add one of these switches to LD
15628 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15629 libsuff= shlibsuff= libmagic=32-bit;;
15630 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15631 libsuff=32 shlibsuff=N32 libmagic=N32;;
15632 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15633 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15634 *) libsuff= shlibsuff= libmagic=never-match;;
15638 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15639 shlibpath_overrides_runpath=no
15640 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15641 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15642 hardcode_into_libs=yes
15645 # No shared lib support for Linux oldld, aout, or coff.
15646 linux*oldld* | linux*aout* | linux*coff*)
15650 # This must be Linux ELF.
15651 linux* | k*bsd*-gnu)
15655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15656 soname_spec='${libname}${release}${shared_ext}$major'
15657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15658 shlibpath_var=LD_LIBRARY_PATH
15659 shlibpath_overrides_runpath=no
15660 # This implies no fast_install, which is unacceptable.
15661 # Some rework will be needed to allow for fast_install
15662 # before this can be enabled.
15663 hardcode_into_libs=yes
15665 # Append ld.so.conf contents to the search path
15666 if test -f /etc/ld.so.conf; then
15667 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' ' '`
15668 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15671 # We used to test for /lib/ld.so.1 and disable shared libraries on
15672 # powerpc, because MkLinux only supported shared libraries with the
15673 # GNU dynamic linker. Since this was broken with cross compilers,
15674 # most powerpc-linux boxes support dynamic linking these days and
15675 # people can always --disable-shared, the test was removed, and we
15676 # assume the GNU/Linux dynamic linker is in use.
15677 dynamic_linker='GNU/Linux ld.so'
15684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15685 soname_spec='${libname}${release}${shared_ext}$major'
15686 shlibpath_var=LD_LIBRARY_PATH
15687 shlibpath_overrides_runpath=no
15688 hardcode_into_libs=yes
15689 dynamic_linker='NetBSD ld.elf_so'
15696 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15699 dynamic_linker='NetBSD (a.out) ld.so'
15701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15702 soname_spec='${libname}${release}${shared_ext}$major'
15703 dynamic_linker='NetBSD ld.elf_so'
15705 shlibpath_var=LD_LIBRARY_PATH
15706 shlibpath_overrides_runpath=yes
15707 hardcode_into_libs=yes
15712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15713 shlibpath_var=LD_LIBRARY_PATH
15714 shlibpath_overrides_runpath=yes
15721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15722 soname_spec='${libname}${release}${shared_ext}$major'
15723 shlibpath_var=LD_LIBRARY_PATH
15724 shlibpath_overrides_runpath=yes
15729 sys_lib_dlsearch_path_spec="/usr/lib"
15731 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15733 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15734 *) need_version=no ;;
15736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15737 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15738 shlibpath_var=LD_LIBRARY_PATH
15739 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15741 openbsd2.[89] | openbsd2.[89].*)
15742 shlibpath_overrides_runpath=no
15745 shlibpath_overrides_runpath=yes
15749 shlibpath_overrides_runpath=yes
15754 libname_spec='$name'
15757 library_names_spec='$libname${shared_ext} $libname.a'
15758 dynamic_linker='OS/2 ld.exe'
15759 shlibpath_var=LIBPATH
15762 osf3* | osf4* | osf5*)
15766 soname_spec='${libname}${release}${shared_ext}$major'
15767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15768 shlibpath_var=LD_LIBRARY_PATH
15769 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15770 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15778 soname_spec='${libname}${release}${shared_ext}$major'
15779 shlibpath_var=LD_LIBRARY_PATH
15780 shlibpath_overrides_runpath=yes
15781 hardcode_into_libs=yes
15782 # ldd complains unless libraries are executable
15783 postinstall_cmds='chmod +x $lib'
15788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15789 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15790 shlibpath_var=LD_LIBRARY_PATH
15791 shlibpath_overrides_runpath=yes
15792 if test "$with_gnu_ld" = yes; then
15800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15801 soname_spec='${libname}${release}${shared_ext}$major'
15802 shlibpath_var=LD_LIBRARY_PATH
15803 case $host_vendor in
15805 shlibpath_overrides_runpath=no
15807 export_dynamic_flag_spec='${wl}-Blargedynsym'
15808 runpath_var=LD_RUN_PATH
15816 shlibpath_overrides_runpath=no
15817 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15823 if test -d /usr/nec ;then
15825 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15826 soname_spec='$libname${shared_ext}.$major'
15827 shlibpath_var=LD_LIBRARY_PATH
15831 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15832 version_type=freebsd-elf
15835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15836 soname_spec='${libname}${release}${shared_ext}$major'
15837 shlibpath_var=LD_LIBRARY_PATH
15838 hardcode_into_libs=yes
15839 if test "$with_gnu_ld" = yes; then
15840 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15841 shlibpath_overrides_runpath=no
15843 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15844 shlibpath_overrides_runpath=yes
15847 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15851 sys_lib_dlsearch_path_spec='/usr/lib'
15856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15857 soname_spec='${libname}${release}${shared_ext}$major'
15858 shlibpath_var=LD_LIBRARY_PATH
15865 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15866 echo "${ECHO_T}$dynamic_linker" >&6; }
15867 test "$dynamic_linker" = no && can_build_shared=no
15869 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15870 if test "$GCC" = yes; then
15871 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15874 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15875 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15876 hardcode_action_F77=
15877 if test -n "$hardcode_libdir_flag_spec_F77" || \
15878 test -n "$runpath_var_F77" || \
15879 test "X$hardcode_automatic_F77" = "Xyes" ; then
15881 # We can hardcode non-existant directories.
15882 if test "$hardcode_direct_F77" != no &&
15883 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15884 # have to relink, otherwise we might link with an installed library
15885 # when we should be linking with a yet-to-be-installed one
15886 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15887 test "$hardcode_minus_L_F77" != no; then
15888 # Linking always hardcodes the temporary library directory.
15889 hardcode_action_F77=relink
15891 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15892 hardcode_action_F77=immediate
15895 # We cannot hardcode anything, or else we can only hardcode existing
15897 hardcode_action_F77=unsupported
15899 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15900 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15902 if test "$hardcode_action_F77" = relink; then
15903 # Fast installation is not supported
15904 enable_fast_install=no
15905 elif test "$shlibpath_overrides_runpath" = yes ||
15906 test "$enable_shared" = no; then
15907 # Fast installation is not necessary
15908 enable_fast_install=needless
15912 # The else clause should only fire when bootstrapping the
15913 # libtool distribution, otherwise you forgot to ship ltmain.sh
15914 # with your package, and you will get complaints that there are
15915 # no rules to generate ltmain.sh.
15916 if test -f "$ltmain"; then
15917 # See if we are running on zsh, and set the options which allow our commands through
15918 # without removal of \ escapes.
15919 if test -n "${ZSH_VERSION+set}" ; then
15920 setopt NO_GLOB_SUBST
15922 # Now quote all the things that may contain metacharacters while being
15923 # careful not to overquote the AC_SUBSTed values. We take copies of the
15924 # variables and quote the copies for generation of the libtool script.
15925 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15927 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15928 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15929 deplibs_check_method reload_flag reload_cmds need_locks \
15930 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15931 lt_cv_sys_global_symbol_to_c_name_address \
15932 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15933 old_postinstall_cmds old_postuninstall_cmds \
15937 lt_prog_compiler_wl_F77 \
15938 lt_prog_compiler_pic_F77 \
15939 lt_prog_compiler_static_F77 \
15940 lt_prog_compiler_no_builtin_flag_F77 \
15941 export_dynamic_flag_spec_F77 \
15942 thread_safe_flag_spec_F77 \
15943 whole_archive_flag_spec_F77 \
15944 enable_shared_with_static_runtimes_F77 \
15945 old_archive_cmds_F77 \
15946 old_archive_from_new_cmds_F77 \
15947 predep_objects_F77 \
15948 postdep_objects_F77 \
15951 compiler_lib_search_path_F77 \
15953 archive_expsym_cmds_F77 \
15954 postinstall_cmds_F77 \
15955 postuninstall_cmds_F77 \
15956 old_archive_from_expsyms_cmds_F77 \
15957 allow_undefined_flag_F77 \
15958 no_undefined_flag_F77 \
15959 export_symbols_cmds_F77 \
15960 hardcode_libdir_flag_spec_F77 \
15961 hardcode_libdir_flag_spec_ld_F77 \
15962 hardcode_libdir_separator_F77 \
15963 hardcode_automatic_F77 \
15965 module_expsym_cmds_F77 \
15966 lt_cv_prog_compiler_c_o_F77 \
15967 exclude_expsyms_F77 \
15968 include_expsyms_F77; do
15971 old_archive_cmds_F77 | \
15972 old_archive_from_new_cmds_F77 | \
15973 archive_cmds_F77 | \
15974 archive_expsym_cmds_F77 | \
15975 module_cmds_F77 | \
15976 module_expsym_cmds_F77 | \
15977 old_archive_from_expsyms_cmds_F77 | \
15978 export_symbols_cmds_F77 | \
15979 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15980 postinstall_cmds | postuninstall_cmds | \
15981 old_postinstall_cmds | old_postuninstall_cmds | \
15982 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15983 # Double-quote double-evaled strings.
15984 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15987 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15993 *'\$0 --fallback-echo"')
15994 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16000 cat <<__EOF__ >> "$cfgfile"
16001 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16003 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16005 # Shell to use when invoking shell scripts.
16008 # Whether or not to build shared libraries.
16009 build_libtool_libs=$enable_shared
16011 # Whether or not to build static libraries.
16012 build_old_libs=$enable_static
16014 # Whether or not to add -lc for building shared libraries.
16015 build_libtool_need_lc=$archive_cmds_need_lc_F77
16017 # Whether or not to disallow shared libs when runtime libs are static
16018 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16020 # Whether or not to optimize for fast installation.
16021 fast_install=$enable_fast_install
16024 host_alias=$host_alias
16028 # The build system.
16029 build_alias=$build_alias
16033 # An echo program that does not interpret backslashes.
16038 AR_FLAGS=$lt_AR_FLAGS
16043 # LTCC compiler flags.
16044 LTCFLAGS=$lt_LTCFLAGS
16046 # A language-specific compiler.
16047 CC=$lt_compiler_F77
16049 # Is the compiler the GNU C compiler?
16055 # The linker used to build libraries.
16058 # Whether we need hard or soft links.
16061 # A BSD-compatible nm program.
16064 # A symbol stripping program
16067 # Used to examine libraries when file_magic_cmd begins "file"
16068 MAGIC_CMD=$MAGIC_CMD
16070 # Used on cygwin: DLL creation program.
16073 # Used on cygwin: object dumper.
16076 # Used on cygwin: assembler.
16079 # The name of the directory that contains temporary libtool files.
16082 # How to create reloadable object files.
16083 reload_flag=$lt_reload_flag
16084 reload_cmds=$lt_reload_cmds
16086 # How to pass a linker flag through the compiler.
16087 wl=$lt_lt_prog_compiler_wl_F77
16089 # Object file suffix (normally "o").
16090 objext="$ac_objext"
16092 # Old archive suffix (normally "a").
16095 # Shared library suffix (normally ".so").
16096 shrext_cmds='$shrext_cmds'
16098 # Executable file suffix (normally "").
16101 # Additional compiler flags for building library objects.
16102 pic_flag=$lt_lt_prog_compiler_pic_F77
16105 # What is the maximum length of a command?
16106 max_cmd_len=$lt_cv_sys_max_cmd_len
16108 # Does compiler simultaneously support -c and -o options?
16109 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16111 # Must we lock files when doing compilation?
16112 need_locks=$lt_need_locks
16114 # Do we need the lib prefix for modules?
16115 need_lib_prefix=$need_lib_prefix
16117 # Do we need a version for libraries?
16118 need_version=$need_version
16120 # Whether dlopen is supported.
16121 dlopen_support=$enable_dlopen
16123 # Whether dlopen of programs is supported.
16124 dlopen_self=$enable_dlopen_self
16126 # Whether dlopen of statically linked programs is supported.
16127 dlopen_self_static=$enable_dlopen_self_static
16129 # Compiler flag to prevent dynamic linking.
16130 link_static_flag=$lt_lt_prog_compiler_static_F77
16132 # Compiler flag to turn off builtin functions.
16133 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16135 # Compiler flag to allow reflexive dlopens.
16136 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16138 # Compiler flag to generate shared objects directly from archives.
16139 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16141 # Compiler flag to generate thread-safe objects.
16142 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16144 # Library versioning type.
16145 version_type=$version_type
16147 # Format of library name prefix.
16148 libname_spec=$lt_libname_spec
16150 # List of archive names. First name is the real one, the rest are links.
16151 # The last name is the one that the linker finds with -lNAME.
16152 library_names_spec=$lt_library_names_spec
16154 # The coded name of the library, if different from the real name.
16155 soname_spec=$lt_soname_spec
16157 # Commands used to build and install an old-style archive.
16159 old_archive_cmds=$lt_old_archive_cmds_F77
16160 old_postinstall_cmds=$lt_old_postinstall_cmds
16161 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16163 # Create an old-style archive from a shared archive.
16164 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16166 # Create a temporary old-style archive to link instead of a shared archive.
16167 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16169 # Commands used to build and install a shared archive.
16170 archive_cmds=$lt_archive_cmds_F77
16171 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16172 postinstall_cmds=$lt_postinstall_cmds
16173 postuninstall_cmds=$lt_postuninstall_cmds
16175 # Commands used to build a loadable module (assumed same as above if empty)
16176 module_cmds=$lt_module_cmds_F77
16177 module_expsym_cmds=$lt_module_expsym_cmds_F77
16179 # Commands to strip libraries.
16180 old_striplib=$lt_old_striplib
16181 striplib=$lt_striplib
16183 # Dependencies to place before the objects being linked to create a
16185 predep_objects=$lt_predep_objects_F77
16187 # Dependencies to place after the objects being linked to create a
16189 postdep_objects=$lt_postdep_objects_F77
16191 # Dependencies to place before the objects being linked to create a
16193 predeps=$lt_predeps_F77
16195 # Dependencies to place after the objects being linked to create a
16197 postdeps=$lt_postdeps_F77
16199 # The library search path used internally by the compiler when linking
16200 # a shared library.
16201 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16203 # Method to check whether dependent libraries are shared objects.
16204 deplibs_check_method=$lt_deplibs_check_method
16206 # Command to use when deplibs_check_method == file_magic.
16207 file_magic_cmd=$lt_file_magic_cmd
16209 # Flag that allows shared libraries with undefined symbols to be built.
16210 allow_undefined_flag=$lt_allow_undefined_flag_F77
16212 # Flag that forces no undefined symbols.
16213 no_undefined_flag=$lt_no_undefined_flag_F77
16215 # Commands used to finish a libtool library installation in a directory.
16216 finish_cmds=$lt_finish_cmds
16218 # Same as above, but a single script fragment to be evaled but not shown.
16219 finish_eval=$lt_finish_eval
16221 # Take the output of nm and produce a listing of raw symbols and C names.
16222 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16224 # Transform the output of nm in a proper C declaration
16225 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16227 # Transform the output of nm in a C name address pair
16228 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16230 # This is the shared library runtime path variable.
16231 runpath_var=$runpath_var
16233 # This is the shared library path variable.
16234 shlibpath_var=$shlibpath_var
16236 # Is shlibpath searched before the hard-coded library search path?
16237 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16239 # How to hardcode a shared library path into an executable.
16240 hardcode_action=$hardcode_action_F77
16242 # Whether we should hardcode library paths into libraries.
16243 hardcode_into_libs=$hardcode_into_libs
16245 # Flag to hardcode \$libdir into a binary during linking.
16246 # This must work even if \$libdir does not exist.
16247 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16249 # If ld is used when linking, flag to hardcode \$libdir into
16250 # a binary during linking. This must work even if \$libdir does
16252 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16254 # Whether we need a single -rpath flag with a separated argument.
16255 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16257 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16258 # resulting binary.
16259 hardcode_direct=$hardcode_direct_F77
16261 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16262 # resulting binary.
16263 hardcode_minus_L=$hardcode_minus_L_F77
16265 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16266 # the resulting binary.
16267 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16269 # Set to yes if building a shared library automatically hardcodes DIR into the library
16270 # and all subsequent libraries and executables linked against it.
16271 hardcode_automatic=$hardcode_automatic_F77
16273 # Variables whose values should be saved in libtool wrapper scripts and
16274 # restored at relink time.
16275 variables_saved_for_relink="$variables_saved_for_relink"
16277 # Whether libtool must link a program against all its dependency libraries.
16278 link_all_deplibs=$link_all_deplibs_F77
16280 # Compile-time system search path for libraries
16281 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16283 # Run-time system search path for libraries
16284 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16286 # Fix the shell variable \$srcfile for the compiler.
16287 fix_srcfile_path="$fix_srcfile_path_F77"
16289 # Set to yes if exported symbols are required.
16290 always_export_symbols=$always_export_symbols_F77
16292 # The commands to list exported symbols.
16293 export_symbols_cmds=$lt_export_symbols_cmds_F77
16295 # The commands to extract the exported symbol list from a shared archive.
16296 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16298 # Symbols that should not be listed in the preloaded symbols.
16299 exclude_expsyms=$lt_exclude_expsyms_F77
16301 # Symbols that must always be exported.
16302 include_expsyms=$lt_include_expsyms_F77
16304 # ### END LIBTOOL TAG CONFIG: $tagname
16310 # If there is no Makefile yet, we rely on a make rule to execute
16311 # `config.status --recheck' to rerun these tests and create the
16312 # libtool script then.
16313 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16314 if test -f "$ltmain_in"; then
16315 test -f Makefile && make "$ltmain"
16321 ac_cpp='$CPP $CPPFLAGS'
16322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16334 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16337 # Source file extension for Java test sources.
16340 # Object file extension for compiled Java test sources.
16344 # Code to be used in simple compile tests
16345 lt_simple_compile_test_code="class foo {}\n"
16347 # Code to be used in simple link tests
16348 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16350 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16352 # If no C compiler was specified, use CC.
16355 # If no C compiler flags were specified, use CFLAGS.
16356 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16358 # Allow CC to be a program name with arguments.
16362 # save warnings/boilerplate of simple test code
16363 ac_outfile=conftest.$ac_objext
16364 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16365 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16366 _lt_compiler_boilerplate=`cat conftest.err`
16369 ac_outfile=conftest.$ac_objext
16370 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16371 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16372 _lt_linker_boilerplate=`cat conftest.err`
16376 # Allow CC to be a program name with arguments.
16381 for cc_temp in $compiler""; do
16383 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16384 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16389 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16392 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16393 archive_cmds_need_lc_GCJ=no
16395 old_archive_cmds_GCJ=$old_archive_cmds
16398 lt_prog_compiler_no_builtin_flag_GCJ=
16400 if test "$GCC" = yes; then
16401 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16404 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16405 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16406 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16407 echo $ECHO_N "(cached) $ECHO_C" >&6
16409 lt_cv_prog_compiler_rtti_exceptions=no
16410 ac_outfile=conftest.$ac_objext
16411 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16412 lt_compiler_flag="-fno-rtti -fno-exceptions"
16413 # Insert the option either (1) after the last *FLAGS variable, or
16414 # (2) before a word containing "conftest.", or (3) at the end.
16415 # Note that $ac_compile itself does not contain backslashes and begins
16416 # with a dollar sign (not a hyphen), so the echo should work correctly.
16417 # The option is referenced via a variable to avoid confusing sed.
16418 lt_compile=`echo "$ac_compile" | $SED \
16419 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16420 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16421 -e 's:$: $lt_compiler_flag:'`
16422 (eval echo "\"\$as_me:16422: $lt_compile\"" >&5)
16423 (eval "$lt_compile" 2>conftest.err)
16425 cat conftest.err >&5
16426 echo "$as_me:16426: \$? = $ac_status" >&5
16427 if (exit $ac_status) && test -s "$ac_outfile"; then
16428 # The compiler can only warn and ignore the option if not recognized
16429 # So say no if there are warnings other than the usual output.
16430 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16431 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16432 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16433 lt_cv_prog_compiler_rtti_exceptions=yes
16439 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16440 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16442 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16443 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16450 lt_prog_compiler_wl_GCJ=
16451 lt_prog_compiler_pic_GCJ=
16452 lt_prog_compiler_static_GCJ=
16454 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16455 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16457 if test "$GCC" = yes; then
16458 lt_prog_compiler_wl_GCJ='-Wl,'
16459 lt_prog_compiler_static_GCJ='-static'
16463 # All AIX code is PIC.
16464 if test "$host_cpu" = ia64; then
16465 # AIX 5 now supports IA64 processor
16466 lt_prog_compiler_static_GCJ='-Bstatic'
16471 # FIXME: we need at least 68020 code to build shared libraries, but
16472 # adding the `-m68020' flag to GCC prevents building anything better,
16474 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16477 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16478 # PIC is the default for these OSes.
16481 mingw* | pw32* | os2*)
16482 # This hack is so that the source file can tell whether it is being
16483 # built for inclusion in a dll (and should export symbols for example).
16484 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16487 darwin* | rhapsody*)
16488 # PIC is the default on this platform
16489 # Common symbols not allowed in MH_DYLIB files
16490 lt_prog_compiler_pic_GCJ='-fno-common'
16494 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16495 # Instead, we relocate shared libraries at runtime.
16499 # Just because we use GCC doesn't mean we suddenly get shared libraries
16500 # on systems that don't support them.
16501 lt_prog_compiler_can_build_shared_GCJ=no
16506 if test -d /usr/nec; then
16507 lt_prog_compiler_pic_GCJ=-Kconform_pic
16512 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16513 # not for PA HP-UX.
16519 lt_prog_compiler_pic_GCJ='-fPIC'
16525 lt_prog_compiler_pic_GCJ='-fPIC'
16529 # PORTME Check for flag to pass linker flags through the system compiler.
16532 lt_prog_compiler_wl_GCJ='-Wl,'
16533 if test "$host_cpu" = ia64; then
16534 # AIX 5 now supports IA64 processor
16535 lt_prog_compiler_static_GCJ='-Bstatic'
16537 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16541 # PIC is the default on this platform
16542 # Common symbols not allowed in MH_DYLIB files
16543 case $cc_basename in
16545 lt_prog_compiler_pic_GCJ='-qnocommon'
16546 lt_prog_compiler_wl_GCJ='-Wl,'
16551 mingw* | pw32* | os2*)
16552 # This hack is so that the source file can tell whether it is being
16553 # built for inclusion in a dll (and should export symbols for example).
16554 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16557 hpux9* | hpux10* | hpux11*)
16558 lt_prog_compiler_wl_GCJ='-Wl,'
16559 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16560 # not for PA HP-UX.
16566 lt_prog_compiler_pic_GCJ='+Z'
16569 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16570 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16573 irix5* | irix6* | nonstopux*)
16574 lt_prog_compiler_wl_GCJ='-Wl,'
16575 # PIC (with -KPIC) is the default.
16576 lt_prog_compiler_static_GCJ='-non_shared'
16580 lt_prog_compiler_pic_GCJ='-KPIC'
16581 lt_prog_compiler_static_GCJ='-Bstatic'
16584 linux* | k*bsd*-gnu)
16585 case $cc_basename in
16587 lt_prog_compiler_wl_GCJ='-Wl,'
16588 lt_prog_compiler_pic_GCJ='-KPIC'
16589 lt_prog_compiler_static_GCJ='-static'
16591 pgcc* | pgf77* | pgf90* | pgf95*)
16592 # Portland Group compilers (*not* the Pentium gcc compiler,
16593 # which looks to be a dead project)
16594 lt_prog_compiler_wl_GCJ='-Wl,'
16595 lt_prog_compiler_pic_GCJ='-fpic'
16596 lt_prog_compiler_static_GCJ='-Bstatic'
16599 lt_prog_compiler_wl_GCJ='-Wl,'
16600 # All Alpha code is PIC.
16601 lt_prog_compiler_static_GCJ='-non_shared'
16606 osf3* | osf4* | osf5*)
16607 lt_prog_compiler_wl_GCJ='-Wl,'
16608 # All OSF/1 code is PIC.
16609 lt_prog_compiler_static_GCJ='-non_shared'
16613 lt_prog_compiler_pic_GCJ='-KPIC'
16614 lt_prog_compiler_static_GCJ='-Bstatic'
16615 case $cc_basename in
16616 f77* | f90* | f95*)
16617 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16619 lt_prog_compiler_wl_GCJ='-Wl,';;
16624 lt_prog_compiler_wl_GCJ='-Qoption ld '
16625 lt_prog_compiler_pic_GCJ='-PIC'
16626 lt_prog_compiler_static_GCJ='-Bstatic'
16629 sysv4 | sysv4.2uw2* | sysv4.3*)
16630 lt_prog_compiler_wl_GCJ='-Wl,'
16631 lt_prog_compiler_pic_GCJ='-KPIC'
16632 lt_prog_compiler_static_GCJ='-Bstatic'
16636 if test -d /usr/nec ;then
16637 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16638 lt_prog_compiler_static_GCJ='-Bstatic'
16642 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16643 lt_prog_compiler_wl_GCJ='-Wl,'
16644 lt_prog_compiler_pic_GCJ='-KPIC'
16645 lt_prog_compiler_static_GCJ='-Bstatic'
16649 lt_prog_compiler_wl_GCJ='-Wl,'
16650 lt_prog_compiler_can_build_shared_GCJ=no
16654 lt_prog_compiler_pic_GCJ='-pic'
16655 lt_prog_compiler_static_GCJ='-Bstatic'
16659 lt_prog_compiler_can_build_shared_GCJ=no
16664 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16665 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16668 # Check to make sure the PIC flag actually works.
16670 if test -n "$lt_prog_compiler_pic_GCJ"; then
16672 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16673 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16674 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16675 echo $ECHO_N "(cached) $ECHO_C" >&6
16677 lt_prog_compiler_pic_works_GCJ=no
16678 ac_outfile=conftest.$ac_objext
16679 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16680 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16681 # Insert the option either (1) after the last *FLAGS variable, or
16682 # (2) before a word containing "conftest.", or (3) at the end.
16683 # Note that $ac_compile itself does not contain backslashes and begins
16684 # with a dollar sign (not a hyphen), so the echo should work correctly.
16685 # The option is referenced via a variable to avoid confusing sed.
16686 lt_compile=`echo "$ac_compile" | $SED \
16687 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16688 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16689 -e 's:$: $lt_compiler_flag:'`
16690 (eval echo "\"\$as_me:16690: $lt_compile\"" >&5)
16691 (eval "$lt_compile" 2>conftest.err)
16693 cat conftest.err >&5
16694 echo "$as_me:16694: \$? = $ac_status" >&5
16695 if (exit $ac_status) && test -s "$ac_outfile"; then
16696 # The compiler can only warn and ignore the option if not recognized
16697 # So say no if there are warnings other than the usual output.
16698 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16699 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16700 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16701 lt_prog_compiler_pic_works_GCJ=yes
16707 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16708 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16710 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16711 case $lt_prog_compiler_pic_GCJ in
16713 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16716 lt_prog_compiler_pic_GCJ=
16717 lt_prog_compiler_can_build_shared_GCJ=no
16722 # For platforms which do not support PIC, -DPIC is meaningless:
16724 lt_prog_compiler_pic_GCJ=
16727 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16732 # Check to make sure the static flag actually works.
16734 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16735 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16736 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16737 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16738 echo $ECHO_N "(cached) $ECHO_C" >&6
16740 lt_prog_compiler_static_works_GCJ=no
16741 save_LDFLAGS="$LDFLAGS"
16742 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16743 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16744 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16745 # The linker can only warn and ignore the option if not recognized
16746 # So say no if there are warnings
16747 if test -s conftest.err; then
16748 # Append any errors to the config.log.
16749 cat conftest.err 1>&5
16750 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16751 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16752 if diff conftest.exp conftest.er2 >/dev/null; then
16753 lt_prog_compiler_static_works_GCJ=yes
16756 lt_prog_compiler_static_works_GCJ=yes
16760 LDFLAGS="$save_LDFLAGS"
16763 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16764 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16766 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16769 lt_prog_compiler_static_GCJ=
16773 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16774 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16775 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16776 echo $ECHO_N "(cached) $ECHO_C" >&6
16778 lt_cv_prog_compiler_c_o_GCJ=no
16779 $rm -r conftest 2>/dev/null
16783 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16785 lt_compiler_flag="-o out/conftest2.$ac_objext"
16786 # Insert the option either (1) after the last *FLAGS variable, or
16787 # (2) before a word containing "conftest.", or (3) at the end.
16788 # Note that $ac_compile itself does not contain backslashes and begins
16789 # with a dollar sign (not a hyphen), so the echo should work correctly.
16790 lt_compile=`echo "$ac_compile" | $SED \
16791 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16792 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16793 -e 's:$: $lt_compiler_flag:'`
16794 (eval echo "\"\$as_me:16794: $lt_compile\"" >&5)
16795 (eval "$lt_compile" 2>out/conftest.err)
16797 cat out/conftest.err >&5
16798 echo "$as_me:16798: \$? = $ac_status" >&5
16799 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16801 # The compiler can only warn and ignore the option if not recognized
16802 # So say no if there are warnings
16803 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16804 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16805 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16806 lt_cv_prog_compiler_c_o_GCJ=yes
16811 # SGI C++ compiler will create directory out/ii_files/ for
16812 # template instantiation
16813 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16814 $rm out/* && rmdir out
16820 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16821 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16824 hard_links="nottested"
16825 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16826 # do not overwrite the value of need_locks provided by the user
16827 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16828 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16831 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16833 ln conftest.a conftest.b 2>&5 || hard_links=no
16834 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16835 { echo "$as_me:$LINENO: result: $hard_links" >&5
16836 echo "${ECHO_T}$hard_links" >&6; }
16837 if test "$hard_links" = no; then
16838 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16839 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16846 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16847 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16850 allow_undefined_flag_GCJ=
16851 enable_shared_with_static_runtimes_GCJ=no
16853 archive_expsym_cmds_GCJ=
16854 old_archive_From_new_cmds_GCJ=
16855 old_archive_from_expsyms_cmds_GCJ=
16856 export_dynamic_flag_spec_GCJ=
16857 whole_archive_flag_spec_GCJ=
16858 thread_safe_flag_spec_GCJ=
16859 hardcode_libdir_flag_spec_GCJ=
16860 hardcode_libdir_flag_spec_ld_GCJ=
16861 hardcode_libdir_separator_GCJ=
16862 hardcode_direct_GCJ=no
16863 hardcode_minus_L_GCJ=no
16864 hardcode_shlibpath_var_GCJ=unsupported
16865 link_all_deplibs_GCJ=unknown
16866 hardcode_automatic_GCJ=no
16868 module_expsym_cmds_GCJ=
16869 always_export_symbols_GCJ=no
16870 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16871 # include_expsyms should be a list of space-separated symbols to be *always*
16872 # included in the symbol list
16873 include_expsyms_GCJ=
16874 # exclude_expsyms can be an extended regexp of symbols to exclude
16875 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16876 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16877 # as well as any symbol that contains `d'.
16878 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16879 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16880 # platforms (ab)use it in PIC code, but their linkers get confused if
16881 # the symbol is explicitly referenced. Since portable code cannot
16882 # rely on this symbol name, it's probably fine to never include it in
16883 # preloaded symbol tables.
16884 extract_expsyms_cmds=
16885 # Just being paranoid about ensuring that cc_basename is set.
16886 for cc_temp in $compiler""; do
16888 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16889 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16894 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16897 cygwin* | mingw* | pw32*)
16898 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16899 # When not using gcc, we currently assume that we are using
16900 # Microsoft Visual C++.
16901 if test "$GCC" != yes; then
16906 # we just hope/assume this is gcc and not c89 (= MSVC++)
16915 if test "$with_gnu_ld" = yes; then
16916 # If archive_cmds runs LD, not CC, wlarc should be empty
16919 # Set some defaults for GNU ld with shared library support. These
16920 # are reset later if shared libraries are not supported. Putting them
16921 # here allows them to be overridden if necessary.
16922 runpath_var=LD_RUN_PATH
16923 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16924 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16925 # ancient GNU ld didn't support --whole-archive et. al.
16926 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16927 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16929 whole_archive_flag_spec_GCJ=
16931 supports_anon_versioning=no
16932 case `$LD -v 2>/dev/null` in
16933 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16934 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16935 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16936 *\ 2.11.*) ;; # other 2.11 versions
16937 *) supports_anon_versioning=yes ;;
16940 # See if GNU ld supports shared libraries.
16942 aix3* | aix4* | aix5*)
16943 # On AIX/PPC, the GNU linker is very broken
16944 if test "$host_cpu" != ia64; then
16948 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16949 *** to be unable to reliably create shared libraries on AIX.
16950 *** Therefore, libtool is disabling shared libraries support. If you
16951 *** really care for shared libraries, you may want to modify your PATH
16952 *** so that a non-GNU linker is found, and then restart.
16959 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)'
16960 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16961 hardcode_minus_L_GCJ=yes
16963 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16964 # that the semantics of dynamic libraries on AmigaOS, at least up
16965 # to version 4, is to share data among multiple programs linked
16966 # with the same dynamic library. Since this doesn't match the
16967 # behavior of shared libraries on other platforms, we can't use
16973 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16974 allow_undefined_flag_GCJ=unsupported
16975 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16976 # support --undefined. This deserves some investigation. FIXME
16977 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16983 cygwin* | mingw* | pw32*)
16984 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16985 # as there is no search path for DLLs.
16986 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16987 allow_undefined_flag_GCJ=unsupported
16988 always_export_symbols_GCJ=no
16989 enable_shared_with_static_runtimes_GCJ=yes
16990 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16992 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16993 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16994 # If the export-symbols file already is a .def file (1st line
16995 # is EXPORTS), use it as is; otherwise, prepend...
16996 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16997 cp $export_symbols $output_objdir/$soname.def;
16999 echo EXPORTS > $output_objdir/$soname.def;
17000 cat $export_symbols >> $output_objdir/$soname.def;
17002 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17009 hardcode_direct_GCJ=no
17010 hardcode_shlibpath_var_GCJ=no
17011 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17012 export_dynamic_flag_spec_GCJ='${wl}-E'
17013 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17014 # Instead, shared libraries are loaded at an image base (0x10000000 by
17015 # default) and relocated if they conflict, which is a slow very memory
17016 # consuming and fragmenting process. To avoid this, we pick a random,
17017 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17018 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17019 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'
17020 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'
17023 linux* | k*bsd*-gnu)
17024 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17026 case $cc_basename,$host_cpu in
17027 pgcc*) # Portland Group C compiler
17028 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'
17029 tmp_addflag=' $pic_flag'
17031 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17032 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'
17033 tmp_addflag=' $pic_flag -Mnomain' ;;
17034 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17035 tmp_addflag=' -i_dynamic' ;;
17036 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17037 tmp_addflag=' -i_dynamic -nofor_main' ;;
17038 ifc* | ifort*) # Intel Fortran compiler
17039 tmp_addflag=' -nofor_main' ;;
17041 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17043 if test $supports_anon_versioning = yes; then
17044 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17045 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17046 $echo "local: *; };" >> $output_objdir/$libname.ver~
17047 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17049 link_all_deplibs_GCJ=no
17055 netbsd* | netbsdelf*-gnu)
17056 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17057 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17060 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17061 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17066 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17070 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17071 *** create shared libraries on Solaris systems. Therefore, libtool
17072 *** is disabling shared libraries support. We urge you to upgrade GNU
17073 *** binutils to release 2.9.1 or newer. Another option is to modify
17074 *** your PATH or compiler configuration so that the native linker is
17075 *** used, and then restart.
17078 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17079 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17080 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17086 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17087 case `$LD -v 2>&1` in
17088 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17092 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17093 *** reliably create shared libraries on SCO systems. Therefore, libtool
17094 *** is disabling shared libraries support. We urge you to upgrade GNU
17095 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17096 *** your PATH or compiler configuration so that the native linker is
17097 *** used, and then restart.
17102 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17103 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17104 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17105 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17114 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17116 hardcode_direct_GCJ=yes
17117 hardcode_shlibpath_var_GCJ=no
17121 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17122 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17123 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17130 if test "$ld_shlibs_GCJ" = no; then
17132 hardcode_libdir_flag_spec_GCJ=
17133 export_dynamic_flag_spec_GCJ=
17134 whole_archive_flag_spec_GCJ=
17137 # PORTME fill in a description of your system's linker (not GNU ld)
17140 allow_undefined_flag_GCJ=unsupported
17141 always_export_symbols_GCJ=yes
17142 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'
17143 # Note: this linker hardcodes the directories in LIBPATH if there
17144 # are no directories specified by -L.
17145 hardcode_minus_L_GCJ=yes
17146 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17147 # Neither direct hardcoding nor static linking is supported with a
17149 hardcode_direct_GCJ=unsupported
17154 if test "$host_cpu" = ia64; then
17155 # On IA64, the linker does run time linking by default, so we don't
17156 # have to do anything special.
17157 aix_use_runtimelinking=no
17158 exp_sym_flag='-Bexport'
17161 # If we're using GNU nm, then we don't want the "-C" option.
17162 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17163 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17164 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'
17166 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'
17168 aix_use_runtimelinking=no
17170 # Test if we are trying to use run time linking or normal
17171 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17172 # need to do runtime linking.
17173 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17174 for ld_flag in $LDFLAGS; do
17175 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17176 aix_use_runtimelinking=yes
17183 exp_sym_flag='-bexport'
17184 no_entry_flag='-bnoentry'
17187 # When large executables or shared objects are built, AIX ld can
17188 # have problems creating the table of contents. If linking a library
17189 # or program results in "error TOC overflow" add -mminimal-toc to
17190 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17191 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17193 archive_cmds_GCJ=''
17194 hardcode_direct_GCJ=yes
17195 hardcode_libdir_separator_GCJ=':'
17196 link_all_deplibs_GCJ=yes
17198 if test "$GCC" = yes; then
17199 case $host_os in aix4.[012]|aix4.[012].*)
17200 # We only want to do this on AIX 4.2 and lower, the check
17201 # below for broken collect2 doesn't work under 4.3+
17202 collect2name=`${CC} -print-prog-name=collect2`
17203 if test -f "$collect2name" && \
17204 strings "$collect2name" | grep resolve_lib_name >/dev/null
17206 # We have reworked collect2
17207 hardcode_direct_GCJ=yes
17209 # We have old collect2
17210 hardcode_direct_GCJ=unsupported
17211 # It fails to find uninstalled libraries when the uninstalled
17212 # path is not listed in the libpath. Setting hardcode_minus_L
17213 # to unsupported forces relinking
17214 hardcode_minus_L_GCJ=yes
17215 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17216 hardcode_libdir_separator_GCJ=
17220 shared_flag='-shared'
17221 if test "$aix_use_runtimelinking" = yes; then
17222 shared_flag="$shared_flag "'${wl}-G'
17226 if test "$host_cpu" = ia64; then
17227 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17228 # chokes on -Wl,-G. The following line is correct:
17231 if test "$aix_use_runtimelinking" = yes; then
17232 shared_flag='${wl}-G'
17234 shared_flag='${wl}-bM:SRE'
17239 # It seems that -bexpall does not export symbols beginning with
17240 # underscore (_), so it is better to generate a list of symbols to export.
17241 always_export_symbols_GCJ=yes
17242 if test "$aix_use_runtimelinking" = yes; then
17243 # Warning - without using the other runtime loading flags (-brtl),
17244 # -berok will link without error, but may produce a broken library.
17245 allow_undefined_flag_GCJ='-berok'
17246 # Determine the default libpath from the value encoded in an empty executable.
17247 cat >conftest.$ac_ext <<_ACEOF
17250 cat confdefs.h >>conftest.$ac_ext
17251 cat >>conftest.$ac_ext <<_ACEOF
17252 /* end confdefs.h. */
17262 rm -f conftest.$ac_objext conftest$ac_exeext
17263 if { (ac_try="$ac_link"
17264 case "(($ac_try" in
17265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17266 *) ac_try_echo=$ac_try;;
17268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17269 (eval "$ac_link") 2>conftest.er1
17271 grep -v '^ *+' conftest.er1 >conftest.err
17273 cat conftest.err >&5
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); } && {
17276 test -z "$ac_c_werror_flag" ||
17277 test ! -s conftest.err
17278 } && test -s conftest$ac_exeext &&
17279 $as_test_x conftest$ac_exeext; then
17281 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17283 # Check for a 64-bit object if we didn't find anything.
17284 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; }
17287 echo "$as_me: failed program was:" >&5
17288 sed 's/^/| /' conftest.$ac_ext >&5
17293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17294 conftest$ac_exeext conftest.$ac_ext
17295 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17297 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17298 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"
17300 if test "$host_cpu" = ia64; then
17301 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17302 allow_undefined_flag_GCJ="-z nodefs"
17303 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"
17305 # Determine the default libpath from the value encoded in an empty executable.
17306 cat >conftest.$ac_ext <<_ACEOF
17309 cat confdefs.h >>conftest.$ac_ext
17310 cat >>conftest.$ac_ext <<_ACEOF
17311 /* end confdefs.h. */
17321 rm -f conftest.$ac_objext conftest$ac_exeext
17322 if { (ac_try="$ac_link"
17323 case "(($ac_try" in
17324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17325 *) ac_try_echo=$ac_try;;
17327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17328 (eval "$ac_link") 2>conftest.er1
17330 grep -v '^ *+' conftest.er1 >conftest.err
17332 cat conftest.err >&5
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); } && {
17335 test -z "$ac_c_werror_flag" ||
17336 test ! -s conftest.err
17337 } && test -s conftest$ac_exeext &&
17338 $as_test_x conftest$ac_exeext; then
17340 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17342 # Check for a 64-bit object if we didn't find anything.
17343 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; }
17346 echo "$as_me: failed program was:" >&5
17347 sed 's/^/| /' conftest.$ac_ext >&5
17352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17353 conftest$ac_exeext conftest.$ac_ext
17354 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17356 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17357 # Warning - without using the other run time loading flags,
17358 # -berok will link without error, but may produce a broken library.
17359 no_undefined_flag_GCJ=' ${wl}-bernotok'
17360 allow_undefined_flag_GCJ=' ${wl}-berok'
17361 # Exported symbols can be pulled into shared objects from archives
17362 whole_archive_flag_spec_GCJ='$convenience'
17363 archive_cmds_need_lc_GCJ=yes
17364 # This is similar to how AIX traditionally builds its shared libraries.
17365 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'
17371 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)'
17372 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17373 hardcode_minus_L_GCJ=yes
17374 # see comment about different semantics on the GNU ld section
17379 export_dynamic_flag_spec_GCJ=-rdynamic
17382 cygwin* | mingw* | pw32*)
17383 # When not using gcc, we currently assume that we are using
17384 # Microsoft Visual C++.
17385 # hardcode_libdir_flag_spec is actually meaningless, as there is
17386 # no search path for DLLs.
17387 hardcode_libdir_flag_spec_GCJ=' '
17388 allow_undefined_flag_GCJ=unsupported
17389 # Tell ltmain to make .lib files, not .a files.
17391 # Tell ltmain to make .dll files, not .so files.
17393 # FIXME: Setting linknames here is a bad hack.
17394 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17395 # The linker will automatically build a .lib file if we build a DLL.
17396 old_archive_From_new_cmds_GCJ='true'
17397 # FIXME: Should let the user specify the lib program.
17398 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17399 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17400 enable_shared_with_static_runtimes_GCJ=yes
17403 darwin* | rhapsody*)
17405 rhapsody* | darwin1.[012])
17406 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17409 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17410 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17412 case ${MACOSX_DEPLOYMENT_TARGET} in
17414 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17417 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17423 archive_cmds_need_lc_GCJ=no
17424 hardcode_direct_GCJ=no
17425 hardcode_automatic_GCJ=yes
17426 hardcode_shlibpath_var_GCJ=unsupported
17427 whole_archive_flag_spec_GCJ=''
17428 link_all_deplibs_GCJ=yes
17429 if test "$GCC" = yes ; then
17430 output_verbose_link_cmd='echo'
17431 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17432 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17433 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17434 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}'
17435 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}'
17437 case $cc_basename in
17439 output_verbose_link_cmd='echo'
17440 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17441 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17442 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17443 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}'
17444 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}'
17454 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17455 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17456 hardcode_shlibpath_var_GCJ=no
17463 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17464 # support. Future versions do this automatically, but an explicit c++rt0.o
17465 # does not break anything, and helps significantly (at the cost of a little
17468 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17469 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17470 hardcode_direct_GCJ=yes
17471 hardcode_shlibpath_var_GCJ=no
17474 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17476 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17477 hardcode_direct_GCJ=yes
17478 hardcode_minus_L_GCJ=yes
17479 hardcode_shlibpath_var_GCJ=no
17482 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17483 freebsd* | dragonfly*)
17484 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17485 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17486 hardcode_direct_GCJ=yes
17487 hardcode_shlibpath_var_GCJ=no
17491 if test "$GCC" = yes; then
17492 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'
17494 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'
17496 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17497 hardcode_libdir_separator_GCJ=:
17498 hardcode_direct_GCJ=yes
17500 # hardcode_minus_L: Not really in the search PATH,
17501 # but as the default location of the library.
17502 hardcode_minus_L_GCJ=yes
17503 export_dynamic_flag_spec_GCJ='${wl}-E'
17507 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17508 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17510 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17512 if test "$with_gnu_ld" = no; then
17513 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17514 hardcode_libdir_separator_GCJ=:
17516 hardcode_direct_GCJ=yes
17517 export_dynamic_flag_spec_GCJ='${wl}-E'
17519 # hardcode_minus_L: Not really in the search PATH,
17520 # but as the default location of the library.
17521 hardcode_minus_L_GCJ=yes
17526 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17529 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17532 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17535 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17541 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17544 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17547 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17551 if test "$with_gnu_ld" = no; then
17552 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17553 hardcode_libdir_separator_GCJ=:
17557 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17558 hardcode_direct_GCJ=no
17559 hardcode_shlibpath_var_GCJ=no
17562 hardcode_direct_GCJ=yes
17563 export_dynamic_flag_spec_GCJ='${wl}-E'
17565 # hardcode_minus_L: Not really in the search PATH,
17566 # but as the default location of the library.
17567 hardcode_minus_L_GCJ=yes
17573 irix5* | irix6* | nonstopux*)
17574 if test "$GCC" = yes; then
17575 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'
17577 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'
17578 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17580 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17581 hardcode_libdir_separator_GCJ=:
17582 link_all_deplibs_GCJ=yes
17585 netbsd* | netbsdelf*-gnu)
17586 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17587 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17589 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17591 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17592 hardcode_direct_GCJ=yes
17593 hardcode_shlibpath_var_GCJ=no
17597 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17598 hardcode_direct_GCJ=yes
17599 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17600 hardcode_libdir_separator_GCJ=:
17601 hardcode_shlibpath_var_GCJ=no
17605 hardcode_direct_GCJ=yes
17606 hardcode_shlibpath_var_GCJ=no
17607 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17608 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17609 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17610 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17611 export_dynamic_flag_spec_GCJ='${wl}-E'
17614 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17615 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17616 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17619 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17620 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17627 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17628 hardcode_minus_L_GCJ=yes
17629 allow_undefined_flag_GCJ=unsupported
17630 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'
17631 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17635 if test "$GCC" = yes; then
17636 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17637 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'
17639 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17640 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'
17642 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17643 hardcode_libdir_separator_GCJ=:
17646 osf4* | osf5*) # as osf3* with the addition of -msym flag
17647 if test "$GCC" = yes; then
17648 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17649 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'
17650 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17652 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17653 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'
17654 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~
17655 $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'
17657 # Both c and cxx compiler support -rpath directly
17658 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17660 hardcode_libdir_separator_GCJ=:
17664 no_undefined_flag_GCJ=' -z text'
17665 if test "$GCC" = yes; then
17667 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17668 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17669 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17672 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17673 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17674 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17676 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17677 hardcode_shlibpath_var_GCJ=no
17679 solaris2.[0-5] | solaris2.[0-5].*) ;;
17681 # The compiler driver will combine linker options so we
17682 # cannot just pass the convience library names through
17683 # without $wl, iff we do not link with $LD.
17684 # Luckily, gcc supports the same syntax we need for Sun Studio.
17685 # Supported since Solaris 2.6 (maybe 2.5.1?)
17688 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17690 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' ;;
17693 link_all_deplibs_GCJ=yes
17697 if test "x$host_vendor" = xsequent; then
17698 # Use $CC to link under sequent, because it throws in some extra .o
17699 # files that make .init and .fini sections work.
17700 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17702 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17704 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17705 hardcode_direct_GCJ=yes
17706 hardcode_minus_L_GCJ=yes
17707 hardcode_shlibpath_var_GCJ=no
17711 case $host_vendor in
17713 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17714 hardcode_direct_GCJ=yes # is this really true???
17717 ## LD is ld it makes a PLAMLIB
17718 ## CC just makes a GrossModule.
17719 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17720 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17721 hardcode_direct_GCJ=no
17724 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17725 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17728 runpath_var='LD_RUN_PATH'
17729 hardcode_shlibpath_var_GCJ=no
17733 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17734 hardcode_shlibpath_var_GCJ=no
17735 export_dynamic_flag_spec_GCJ='-Bexport'
17739 if test -d /usr/nec; then
17740 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17741 hardcode_shlibpath_var_GCJ=no
17742 runpath_var=LD_RUN_PATH
17743 hardcode_runpath_var=yes
17748 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17749 no_undefined_flag_GCJ='${wl}-z,text'
17750 archive_cmds_need_lc_GCJ=no
17751 hardcode_shlibpath_var_GCJ=no
17752 runpath_var='LD_RUN_PATH'
17754 if test "$GCC" = yes; then
17755 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17756 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17758 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17759 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17763 sysv5* | sco3.2v5* | sco5v6*)
17764 # Note: We can NOT use -z defs as we might desire, because we do not
17765 # link with -lc, and that would cause any symbols used from libc to
17766 # always be unresolved, which means just about no library would
17767 # ever link correctly. If we're not using GNU ld we use -z text
17768 # though, which does catch some bad symbols but isn't as heavy-handed
17770 no_undefined_flag_GCJ='${wl}-z,text'
17771 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17772 archive_cmds_need_lc_GCJ=no
17773 hardcode_shlibpath_var_GCJ=no
17774 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17775 hardcode_libdir_separator_GCJ=':'
17776 link_all_deplibs_GCJ=yes
17777 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17778 runpath_var='LD_RUN_PATH'
17780 if test "$GCC" = yes; then
17781 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17782 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17784 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17785 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17790 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17791 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17792 hardcode_shlibpath_var_GCJ=no
17801 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17802 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17803 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17806 # Do we need to explicitly link libc?
17808 case "x$archive_cmds_need_lc_GCJ" in
17810 # Assume -lc should be added
17811 archive_cmds_need_lc_GCJ=yes
17813 if test "$enable_shared" = yes && test "$GCC" = yes; then
17814 case $archive_cmds_GCJ in
17816 # FIXME: we may have to deal with multi-command sequences.
17819 # Test whether the compiler implicitly links with -lc since on some
17820 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17821 # to ld, don't add -lc before -lgcc.
17822 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17823 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17825 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17828 (eval $ac_compile) 2>&5
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); } 2>conftest.err; then
17834 libobjs=conftest.$ac_objext
17836 wl=$lt_prog_compiler_wl_GCJ
17837 pic_flag=$lt_prog_compiler_pic_GCJ
17843 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17844 allow_undefined_flag_GCJ=
17845 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17846 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); }
17851 archive_cmds_need_lc_GCJ=no
17853 archive_cmds_need_lc_GCJ=yes
17855 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17857 cat conftest.err 1>&5
17860 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17861 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17868 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17869 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17870 library_names_spec=
17871 libname_spec='lib$name'
17875 postuninstall_cmds=
17879 shlibpath_overrides_runpath=unknown
17881 dynamic_linker="$host_os ld.so"
17882 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17883 if test "$GCC" = yes; then
17884 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17885 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17886 # if the path contains ";" then we assume it to be the separator
17887 # otherwise default to the standard path separator (i.e. ":") - it is
17888 # assumed that no part of a normal pathname contains ";" but that should
17889 # okay in the real world where ";" in dirpaths is itself problematic.
17890 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17892 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17895 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17897 need_lib_prefix=unknown
17898 hardcode_into_libs=no
17900 # when you set need_version to no, make sure it does not cause -set_version
17901 # flags to be left without arguments
17902 need_version=unknown
17907 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17908 shlibpath_var=LIBPATH
17910 # AIX 3 has no versioning support, so we append a major version to the name.
17911 soname_spec='${libname}${release}${shared_ext}$major'
17918 hardcode_into_libs=yes
17919 if test "$host_cpu" = ia64; then
17920 # AIX 5 supports IA64
17921 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17922 shlibpath_var=LD_LIBRARY_PATH
17924 # With GCC up to 2.95.x, collect2 would create an import file
17925 # for dependence libraries. The import file would start with
17926 # the line `#! .'. This would cause the generated library to
17927 # depend on `.', always an invalid library. This was fixed in
17928 # development snapshots of GCC prior to 3.0.
17930 aix4 | aix4.[01] | aix4.[01].*)
17931 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17933 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17936 can_build_shared=no
17940 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17941 # soname into executable. Probably we can add versioning support to
17942 # collect2, so additional links can be useful in future.
17943 if test "$aix_use_runtimelinking" = yes; then
17944 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17945 # instead of lib<name>.a to let people know that these are not
17946 # typical AIX shared libraries.
17947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17949 # We preserve .a as extension for shared libraries through AIX4.2
17950 # and later when we are not doing run time linking.
17951 library_names_spec='${libname}${release}.a $libname.a'
17952 soname_spec='${libname}${release}${shared_ext}$major'
17954 shlibpath_var=LIBPATH
17959 library_names_spec='$libname.ixlibrary $libname.a'
17960 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17961 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'
17965 library_names_spec='${libname}${shared_ext}'
17966 dynamic_linker="$host_os ld.so"
17967 shlibpath_var=LIBRARY_PATH
17973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17974 soname_spec='${libname}${release}${shared_ext}$major'
17975 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17976 shlibpath_var=LD_LIBRARY_PATH
17977 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17978 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17979 # the default ld.so.conf also contains /usr/contrib/lib and
17980 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17981 # libtool to hard-code these into programs
17984 cygwin* | mingw* | pw32*)
17985 version_type=windows
17990 case $GCC,$host_os in
17991 yes,cygwin* | yes,mingw* | yes,pw32*)
17992 library_names_spec='$libname.dll.a'
17993 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17994 postinstall_cmds='base_file=`basename \${file}`~
17995 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17996 dldir=$destdir/`dirname \$dlpath`~
17997 test -d \$dldir || mkdir -p \$dldir~
17998 $install_prog $dir/$dlname \$dldir/$dlname~
17999 chmod a+x \$dldir/$dlname'
18000 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18001 dlpath=$dir/\$dldll~
18003 shlibpath_overrides_runpath=yes
18007 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18008 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18009 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18012 # MinGW DLLs use traditional 'lib' prefix
18013 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18014 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18015 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18016 # It is most probably a Windows format PATH printed by
18017 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18018 # path with ; separators, and with drive letters. We can handle the
18019 # drive letters (cygwin fileutils understands them), so leave them,
18020 # especially as we might pass files found there to a mingw objdump,
18021 # which wouldn't understand a cygwinified path. Ahh.
18022 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18024 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18028 # pw32 DLLs use 'pw' prefix rather than 'lib'
18029 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18035 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18038 dynamic_linker='Win32 ld.exe'
18039 # FIXME: first we should search . and the directory the executable is in
18043 darwin* | rhapsody*)
18044 dynamic_linker="$host_os dyld"
18045 version_type=darwin
18048 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18049 soname_spec='${libname}${release}${major}$shared_ext'
18050 shlibpath_overrides_runpath=yes
18051 shlibpath_var=DYLD_LIBRARY_PATH
18052 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18053 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18054 if test "$GCC" = yes; then
18055 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"`
18057 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18059 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18067 soname_spec='${libname}${release}${shared_ext}$major'
18068 shlibpath_var=LD_LIBRARY_PATH
18075 freebsd* | dragonfly*)
18076 # DragonFly does not have aout. When/if they implement a new
18077 # versioning mechanism, adjust this.
18078 if test -x /usr/bin/objformat; then
18079 objformat=`/usr/bin/objformat`
18082 freebsd[123]*) objformat=aout ;;
18083 *) objformat=elf ;;
18086 version_type=freebsd-$objformat
18087 case $version_type in
18089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18094 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18098 shlibpath_var=LD_LIBRARY_PATH
18101 shlibpath_overrides_runpath=yes
18103 freebsd3.[01]* | freebsdelf3.[01]*)
18104 shlibpath_overrides_runpath=yes
18105 hardcode_into_libs=yes
18107 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18108 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18109 shlibpath_overrides_runpath=no
18110 hardcode_into_libs=yes
18112 freebsd*) # from 4.6 on
18113 shlibpath_overrides_runpath=yes
18114 hardcode_into_libs=yes
18123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18124 soname_spec='${libname}${release}${shared_ext}$major'
18125 shlibpath_var=LD_LIBRARY_PATH
18126 hardcode_into_libs=yes
18129 hpux9* | hpux10* | hpux11*)
18130 # Give a soname corresponding to the major version so that dld.sl refuses to
18131 # link against other versions.
18138 hardcode_into_libs=yes
18139 dynamic_linker="$host_os dld.so"
18140 shlibpath_var=LD_LIBRARY_PATH
18141 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18143 soname_spec='${libname}${release}${shared_ext}$major'
18144 if test "X$HPUX_IA64_MODE" = X32; then
18145 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18147 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18149 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18153 hardcode_into_libs=yes
18154 dynamic_linker="$host_os dld.sl"
18155 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18156 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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'
18159 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18160 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18164 dynamic_linker="$host_os dld.sl"
18165 shlibpath_var=SHLIB_PATH
18166 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18168 soname_spec='${libname}${release}${shared_ext}$major'
18171 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18172 postinstall_cmds='chmod 555 $lib'
18179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18180 soname_spec='${libname}${release}${shared_ext}$major'
18181 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18182 shlibpath_var=LD_LIBRARY_PATH
18183 shlibpath_overrides_runpath=no
18184 hardcode_into_libs=yes
18187 irix5* | irix6* | nonstopux*)
18189 nonstopux*) version_type=nonstopux ;;
18191 if test "$lt_cv_prog_gnu_ld" = yes; then
18199 soname_spec='${libname}${release}${shared_ext}$major'
18200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18202 irix5* | nonstopux*)
18203 libsuff= shlibsuff=
18206 case $LD in # libtool.m4 will add one of these switches to LD
18207 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18208 libsuff= shlibsuff= libmagic=32-bit;;
18209 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18210 libsuff=32 shlibsuff=N32 libmagic=N32;;
18211 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18212 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18213 *) libsuff= shlibsuff= libmagic=never-match;;
18217 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18218 shlibpath_overrides_runpath=no
18219 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18220 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18221 hardcode_into_libs=yes
18224 # No shared lib support for Linux oldld, aout, or coff.
18225 linux*oldld* | linux*aout* | linux*coff*)
18229 # This must be Linux ELF.
18230 linux* | k*bsd*-gnu)
18234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18235 soname_spec='${libname}${release}${shared_ext}$major'
18236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18237 shlibpath_var=LD_LIBRARY_PATH
18238 shlibpath_overrides_runpath=no
18239 # This implies no fast_install, which is unacceptable.
18240 # Some rework will be needed to allow for fast_install
18241 # before this can be enabled.
18242 hardcode_into_libs=yes
18244 # Append ld.so.conf contents to the search path
18245 if test -f /etc/ld.so.conf; then
18246 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' ' '`
18247 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18250 # We used to test for /lib/ld.so.1 and disable shared libraries on
18251 # powerpc, because MkLinux only supported shared libraries with the
18252 # GNU dynamic linker. Since this was broken with cross compilers,
18253 # most powerpc-linux boxes support dynamic linking these days and
18254 # people can always --disable-shared, the test was removed, and we
18255 # assume the GNU/Linux dynamic linker is in use.
18256 dynamic_linker='GNU/Linux ld.so'
18263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18264 soname_spec='${libname}${release}${shared_ext}$major'
18265 shlibpath_var=LD_LIBRARY_PATH
18266 shlibpath_overrides_runpath=no
18267 hardcode_into_libs=yes
18268 dynamic_linker='NetBSD ld.elf_so'
18275 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18277 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18278 dynamic_linker='NetBSD (a.out) ld.so'
18280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18281 soname_spec='${libname}${release}${shared_ext}$major'
18282 dynamic_linker='NetBSD ld.elf_so'
18284 shlibpath_var=LD_LIBRARY_PATH
18285 shlibpath_overrides_runpath=yes
18286 hardcode_into_libs=yes
18291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18292 shlibpath_var=LD_LIBRARY_PATH
18293 shlibpath_overrides_runpath=yes
18300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18301 soname_spec='${libname}${release}${shared_ext}$major'
18302 shlibpath_var=LD_LIBRARY_PATH
18303 shlibpath_overrides_runpath=yes
18308 sys_lib_dlsearch_path_spec="/usr/lib"
18310 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18312 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18313 *) need_version=no ;;
18315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18316 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18317 shlibpath_var=LD_LIBRARY_PATH
18318 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18320 openbsd2.[89] | openbsd2.[89].*)
18321 shlibpath_overrides_runpath=no
18324 shlibpath_overrides_runpath=yes
18328 shlibpath_overrides_runpath=yes
18333 libname_spec='$name'
18336 library_names_spec='$libname${shared_ext} $libname.a'
18337 dynamic_linker='OS/2 ld.exe'
18338 shlibpath_var=LIBPATH
18341 osf3* | osf4* | osf5*)
18345 soname_spec='${libname}${release}${shared_ext}$major'
18346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18347 shlibpath_var=LD_LIBRARY_PATH
18348 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18349 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18357 soname_spec='${libname}${release}${shared_ext}$major'
18358 shlibpath_var=LD_LIBRARY_PATH
18359 shlibpath_overrides_runpath=yes
18360 hardcode_into_libs=yes
18361 # ldd complains unless libraries are executable
18362 postinstall_cmds='chmod +x $lib'
18367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18368 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18369 shlibpath_var=LD_LIBRARY_PATH
18370 shlibpath_overrides_runpath=yes
18371 if test "$with_gnu_ld" = yes; then
18379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18380 soname_spec='${libname}${release}${shared_ext}$major'
18381 shlibpath_var=LD_LIBRARY_PATH
18382 case $host_vendor in
18384 shlibpath_overrides_runpath=no
18386 export_dynamic_flag_spec='${wl}-Blargedynsym'
18387 runpath_var=LD_RUN_PATH
18395 shlibpath_overrides_runpath=no
18396 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18402 if test -d /usr/nec ;then
18404 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18405 soname_spec='$libname${shared_ext}.$major'
18406 shlibpath_var=LD_LIBRARY_PATH
18410 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18411 version_type=freebsd-elf
18414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18415 soname_spec='${libname}${release}${shared_ext}$major'
18416 shlibpath_var=LD_LIBRARY_PATH
18417 hardcode_into_libs=yes
18418 if test "$with_gnu_ld" = yes; then
18419 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18420 shlibpath_overrides_runpath=no
18422 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18423 shlibpath_overrides_runpath=yes
18426 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18430 sys_lib_dlsearch_path_spec='/usr/lib'
18435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18436 soname_spec='${libname}${release}${shared_ext}$major'
18437 shlibpath_var=LD_LIBRARY_PATH
18444 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18445 echo "${ECHO_T}$dynamic_linker" >&6; }
18446 test "$dynamic_linker" = no && can_build_shared=no
18448 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18449 if test "$GCC" = yes; then
18450 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18453 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18454 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18455 hardcode_action_GCJ=
18456 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18457 test -n "$runpath_var_GCJ" || \
18458 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18460 # We can hardcode non-existant directories.
18461 if test "$hardcode_direct_GCJ" != no &&
18462 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18463 # have to relink, otherwise we might link with an installed library
18464 # when we should be linking with a yet-to-be-installed one
18465 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18466 test "$hardcode_minus_L_GCJ" != no; then
18467 # Linking always hardcodes the temporary library directory.
18468 hardcode_action_GCJ=relink
18470 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18471 hardcode_action_GCJ=immediate
18474 # We cannot hardcode anything, or else we can only hardcode existing
18476 hardcode_action_GCJ=unsupported
18478 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18479 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18481 if test "$hardcode_action_GCJ" = relink; then
18482 # Fast installation is not supported
18483 enable_fast_install=no
18484 elif test "$shlibpath_overrides_runpath" = yes ||
18485 test "$enable_shared" = no; then
18486 # Fast installation is not necessary
18487 enable_fast_install=needless
18491 # The else clause should only fire when bootstrapping the
18492 # libtool distribution, otherwise you forgot to ship ltmain.sh
18493 # with your package, and you will get complaints that there are
18494 # no rules to generate ltmain.sh.
18495 if test -f "$ltmain"; then
18496 # See if we are running on zsh, and set the options which allow our commands through
18497 # without removal of \ escapes.
18498 if test -n "${ZSH_VERSION+set}" ; then
18499 setopt NO_GLOB_SUBST
18501 # Now quote all the things that may contain metacharacters while being
18502 # careful not to overquote the AC_SUBSTed values. We take copies of the
18503 # variables and quote the copies for generation of the libtool script.
18504 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18506 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18507 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18508 deplibs_check_method reload_flag reload_cmds need_locks \
18509 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18510 lt_cv_sys_global_symbol_to_c_name_address \
18511 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18512 old_postinstall_cmds old_postuninstall_cmds \
18516 lt_prog_compiler_wl_GCJ \
18517 lt_prog_compiler_pic_GCJ \
18518 lt_prog_compiler_static_GCJ \
18519 lt_prog_compiler_no_builtin_flag_GCJ \
18520 export_dynamic_flag_spec_GCJ \
18521 thread_safe_flag_spec_GCJ \
18522 whole_archive_flag_spec_GCJ \
18523 enable_shared_with_static_runtimes_GCJ \
18524 old_archive_cmds_GCJ \
18525 old_archive_from_new_cmds_GCJ \
18526 predep_objects_GCJ \
18527 postdep_objects_GCJ \
18530 compiler_lib_search_path_GCJ \
18532 archive_expsym_cmds_GCJ \
18533 postinstall_cmds_GCJ \
18534 postuninstall_cmds_GCJ \
18535 old_archive_from_expsyms_cmds_GCJ \
18536 allow_undefined_flag_GCJ \
18537 no_undefined_flag_GCJ \
18538 export_symbols_cmds_GCJ \
18539 hardcode_libdir_flag_spec_GCJ \
18540 hardcode_libdir_flag_spec_ld_GCJ \
18541 hardcode_libdir_separator_GCJ \
18542 hardcode_automatic_GCJ \
18544 module_expsym_cmds_GCJ \
18545 lt_cv_prog_compiler_c_o_GCJ \
18546 exclude_expsyms_GCJ \
18547 include_expsyms_GCJ; do
18550 old_archive_cmds_GCJ | \
18551 old_archive_from_new_cmds_GCJ | \
18552 archive_cmds_GCJ | \
18553 archive_expsym_cmds_GCJ | \
18554 module_cmds_GCJ | \
18555 module_expsym_cmds_GCJ | \
18556 old_archive_from_expsyms_cmds_GCJ | \
18557 export_symbols_cmds_GCJ | \
18558 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18559 postinstall_cmds | postuninstall_cmds | \
18560 old_postinstall_cmds | old_postuninstall_cmds | \
18561 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18562 # Double-quote double-evaled strings.
18563 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18566 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18572 *'\$0 --fallback-echo"')
18573 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18579 cat <<__EOF__ >> "$cfgfile"
18580 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18582 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18584 # Shell to use when invoking shell scripts.
18587 # Whether or not to build shared libraries.
18588 build_libtool_libs=$enable_shared
18590 # Whether or not to build static libraries.
18591 build_old_libs=$enable_static
18593 # Whether or not to add -lc for building shared libraries.
18594 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18596 # Whether or not to disallow shared libs when runtime libs are static
18597 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18599 # Whether or not to optimize for fast installation.
18600 fast_install=$enable_fast_install
18603 host_alias=$host_alias
18607 # The build system.
18608 build_alias=$build_alias
18612 # An echo program that does not interpret backslashes.
18617 AR_FLAGS=$lt_AR_FLAGS
18622 # LTCC compiler flags.
18623 LTCFLAGS=$lt_LTCFLAGS
18625 # A language-specific compiler.
18626 CC=$lt_compiler_GCJ
18628 # Is the compiler the GNU C compiler?
18634 # The linker used to build libraries.
18637 # Whether we need hard or soft links.
18640 # A BSD-compatible nm program.
18643 # A symbol stripping program
18646 # Used to examine libraries when file_magic_cmd begins "file"
18647 MAGIC_CMD=$MAGIC_CMD
18649 # Used on cygwin: DLL creation program.
18652 # Used on cygwin: object dumper.
18655 # Used on cygwin: assembler.
18658 # The name of the directory that contains temporary libtool files.
18661 # How to create reloadable object files.
18662 reload_flag=$lt_reload_flag
18663 reload_cmds=$lt_reload_cmds
18665 # How to pass a linker flag through the compiler.
18666 wl=$lt_lt_prog_compiler_wl_GCJ
18668 # Object file suffix (normally "o").
18669 objext="$ac_objext"
18671 # Old archive suffix (normally "a").
18674 # Shared library suffix (normally ".so").
18675 shrext_cmds='$shrext_cmds'
18677 # Executable file suffix (normally "").
18680 # Additional compiler flags for building library objects.
18681 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18684 # What is the maximum length of a command?
18685 max_cmd_len=$lt_cv_sys_max_cmd_len
18687 # Does compiler simultaneously support -c and -o options?
18688 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18690 # Must we lock files when doing compilation?
18691 need_locks=$lt_need_locks
18693 # Do we need the lib prefix for modules?
18694 need_lib_prefix=$need_lib_prefix
18696 # Do we need a version for libraries?
18697 need_version=$need_version
18699 # Whether dlopen is supported.
18700 dlopen_support=$enable_dlopen
18702 # Whether dlopen of programs is supported.
18703 dlopen_self=$enable_dlopen_self
18705 # Whether dlopen of statically linked programs is supported.
18706 dlopen_self_static=$enable_dlopen_self_static
18708 # Compiler flag to prevent dynamic linking.
18709 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18711 # Compiler flag to turn off builtin functions.
18712 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18714 # Compiler flag to allow reflexive dlopens.
18715 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18717 # Compiler flag to generate shared objects directly from archives.
18718 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18720 # Compiler flag to generate thread-safe objects.
18721 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18723 # Library versioning type.
18724 version_type=$version_type
18726 # Format of library name prefix.
18727 libname_spec=$lt_libname_spec
18729 # List of archive names. First name is the real one, the rest are links.
18730 # The last name is the one that the linker finds with -lNAME.
18731 library_names_spec=$lt_library_names_spec
18733 # The coded name of the library, if different from the real name.
18734 soname_spec=$lt_soname_spec
18736 # Commands used to build and install an old-style archive.
18738 old_archive_cmds=$lt_old_archive_cmds_GCJ
18739 old_postinstall_cmds=$lt_old_postinstall_cmds
18740 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18742 # Create an old-style archive from a shared archive.
18743 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18745 # Create a temporary old-style archive to link instead of a shared archive.
18746 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18748 # Commands used to build and install a shared archive.
18749 archive_cmds=$lt_archive_cmds_GCJ
18750 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18751 postinstall_cmds=$lt_postinstall_cmds
18752 postuninstall_cmds=$lt_postuninstall_cmds
18754 # Commands used to build a loadable module (assumed same as above if empty)
18755 module_cmds=$lt_module_cmds_GCJ
18756 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18758 # Commands to strip libraries.
18759 old_striplib=$lt_old_striplib
18760 striplib=$lt_striplib
18762 # Dependencies to place before the objects being linked to create a
18764 predep_objects=$lt_predep_objects_GCJ
18766 # Dependencies to place after the objects being linked to create a
18768 postdep_objects=$lt_postdep_objects_GCJ
18770 # Dependencies to place before the objects being linked to create a
18772 predeps=$lt_predeps_GCJ
18774 # Dependencies to place after the objects being linked to create a
18776 postdeps=$lt_postdeps_GCJ
18778 # The library search path used internally by the compiler when linking
18779 # a shared library.
18780 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18782 # Method to check whether dependent libraries are shared objects.
18783 deplibs_check_method=$lt_deplibs_check_method
18785 # Command to use when deplibs_check_method == file_magic.
18786 file_magic_cmd=$lt_file_magic_cmd
18788 # Flag that allows shared libraries with undefined symbols to be built.
18789 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18791 # Flag that forces no undefined symbols.
18792 no_undefined_flag=$lt_no_undefined_flag_GCJ
18794 # Commands used to finish a libtool library installation in a directory.
18795 finish_cmds=$lt_finish_cmds
18797 # Same as above, but a single script fragment to be evaled but not shown.
18798 finish_eval=$lt_finish_eval
18800 # Take the output of nm and produce a listing of raw symbols and C names.
18801 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18803 # Transform the output of nm in a proper C declaration
18804 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18806 # Transform the output of nm in a C name address pair
18807 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18809 # This is the shared library runtime path variable.
18810 runpath_var=$runpath_var
18812 # This is the shared library path variable.
18813 shlibpath_var=$shlibpath_var
18815 # Is shlibpath searched before the hard-coded library search path?
18816 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18818 # How to hardcode a shared library path into an executable.
18819 hardcode_action=$hardcode_action_GCJ
18821 # Whether we should hardcode library paths into libraries.
18822 hardcode_into_libs=$hardcode_into_libs
18824 # Flag to hardcode \$libdir into a binary during linking.
18825 # This must work even if \$libdir does not exist.
18826 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18828 # If ld is used when linking, flag to hardcode \$libdir into
18829 # a binary during linking. This must work even if \$libdir does
18831 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18833 # Whether we need a single -rpath flag with a separated argument.
18834 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18836 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18837 # resulting binary.
18838 hardcode_direct=$hardcode_direct_GCJ
18840 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18841 # resulting binary.
18842 hardcode_minus_L=$hardcode_minus_L_GCJ
18844 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18845 # the resulting binary.
18846 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18848 # Set to yes if building a shared library automatically hardcodes DIR into the library
18849 # and all subsequent libraries and executables linked against it.
18850 hardcode_automatic=$hardcode_automatic_GCJ
18852 # Variables whose values should be saved in libtool wrapper scripts and
18853 # restored at relink time.
18854 variables_saved_for_relink="$variables_saved_for_relink"
18856 # Whether libtool must link a program against all its dependency libraries.
18857 link_all_deplibs=$link_all_deplibs_GCJ
18859 # Compile-time system search path for libraries
18860 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18862 # Run-time system search path for libraries
18863 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18865 # Fix the shell variable \$srcfile for the compiler.
18866 fix_srcfile_path="$fix_srcfile_path_GCJ"
18868 # Set to yes if exported symbols are required.
18869 always_export_symbols=$always_export_symbols_GCJ
18871 # The commands to list exported symbols.
18872 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18874 # The commands to extract the exported symbol list from a shared archive.
18875 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18877 # Symbols that should not be listed in the preloaded symbols.
18878 exclude_expsyms=$lt_exclude_expsyms_GCJ
18880 # Symbols that must always be exported.
18881 include_expsyms=$lt_include_expsyms_GCJ
18883 # ### END LIBTOOL TAG CONFIG: $tagname
18889 # If there is no Makefile yet, we rely on a make rule to execute
18890 # `config.status --recheck' to rerun these tests and create the
18891 # libtool script then.
18892 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18893 if test -f "$ltmain_in"; then
18894 test -f Makefile && make "$ltmain"
18900 ac_cpp='$CPP $CPPFLAGS'
18901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18915 # Source file extension for RC test sources.
18918 # Object file extension for compiled RC test sources.
18922 # Code to be used in simple compile tests
18923 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18925 # Code to be used in simple link tests
18926 lt_simple_link_test_code="$lt_simple_compile_test_code"
18928 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18930 # If no C compiler was specified, use CC.
18933 # If no C compiler flags were specified, use CFLAGS.
18934 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18936 # Allow CC to be a program name with arguments.
18940 # save warnings/boilerplate of simple test code
18941 ac_outfile=conftest.$ac_objext
18942 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18943 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18944 _lt_compiler_boilerplate=`cat conftest.err`
18947 ac_outfile=conftest.$ac_objext
18948 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18949 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18950 _lt_linker_boilerplate=`cat conftest.err`
18954 # Allow CC to be a program name with arguments.
18959 for cc_temp in $compiler""; do
18961 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18962 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18967 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18969 lt_cv_prog_compiler_c_o_RC=yes
18971 # The else clause should only fire when bootstrapping the
18972 # libtool distribution, otherwise you forgot to ship ltmain.sh
18973 # with your package, and you will get complaints that there are
18974 # no rules to generate ltmain.sh.
18975 if test -f "$ltmain"; then
18976 # See if we are running on zsh, and set the options which allow our commands through
18977 # without removal of \ escapes.
18978 if test -n "${ZSH_VERSION+set}" ; then
18979 setopt NO_GLOB_SUBST
18981 # Now quote all the things that may contain metacharacters while being
18982 # careful not to overquote the AC_SUBSTed values. We take copies of the
18983 # variables and quote the copies for generation of the libtool script.
18984 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18986 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18987 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18988 deplibs_check_method reload_flag reload_cmds need_locks \
18989 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18990 lt_cv_sys_global_symbol_to_c_name_address \
18991 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18992 old_postinstall_cmds old_postuninstall_cmds \
18996 lt_prog_compiler_wl_RC \
18997 lt_prog_compiler_pic_RC \
18998 lt_prog_compiler_static_RC \
18999 lt_prog_compiler_no_builtin_flag_RC \
19000 export_dynamic_flag_spec_RC \
19001 thread_safe_flag_spec_RC \
19002 whole_archive_flag_spec_RC \
19003 enable_shared_with_static_runtimes_RC \
19004 old_archive_cmds_RC \
19005 old_archive_from_new_cmds_RC \
19006 predep_objects_RC \
19007 postdep_objects_RC \
19010 compiler_lib_search_path_RC \
19012 archive_expsym_cmds_RC \
19013 postinstall_cmds_RC \
19014 postuninstall_cmds_RC \
19015 old_archive_from_expsyms_cmds_RC \
19016 allow_undefined_flag_RC \
19017 no_undefined_flag_RC \
19018 export_symbols_cmds_RC \
19019 hardcode_libdir_flag_spec_RC \
19020 hardcode_libdir_flag_spec_ld_RC \
19021 hardcode_libdir_separator_RC \
19022 hardcode_automatic_RC \
19024 module_expsym_cmds_RC \
19025 lt_cv_prog_compiler_c_o_RC \
19026 exclude_expsyms_RC \
19027 include_expsyms_RC; do
19030 old_archive_cmds_RC | \
19031 old_archive_from_new_cmds_RC | \
19032 archive_cmds_RC | \
19033 archive_expsym_cmds_RC | \
19035 module_expsym_cmds_RC | \
19036 old_archive_from_expsyms_cmds_RC | \
19037 export_symbols_cmds_RC | \
19038 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19039 postinstall_cmds | postuninstall_cmds | \
19040 old_postinstall_cmds | old_postuninstall_cmds | \
19041 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19042 # Double-quote double-evaled strings.
19043 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19046 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19052 *'\$0 --fallback-echo"')
19053 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19059 cat <<__EOF__ >> "$cfgfile"
19060 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19062 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19064 # Shell to use when invoking shell scripts.
19067 # Whether or not to build shared libraries.
19068 build_libtool_libs=$enable_shared
19070 # Whether or not to build static libraries.
19071 build_old_libs=$enable_static
19073 # Whether or not to add -lc for building shared libraries.
19074 build_libtool_need_lc=$archive_cmds_need_lc_RC
19076 # Whether or not to disallow shared libs when runtime libs are static
19077 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19079 # Whether or not to optimize for fast installation.
19080 fast_install=$enable_fast_install
19083 host_alias=$host_alias
19087 # The build system.
19088 build_alias=$build_alias
19092 # An echo program that does not interpret backslashes.
19097 AR_FLAGS=$lt_AR_FLAGS
19102 # LTCC compiler flags.
19103 LTCFLAGS=$lt_LTCFLAGS
19105 # A language-specific compiler.
19108 # Is the compiler the GNU C compiler?
19114 # The linker used to build libraries.
19117 # Whether we need hard or soft links.
19120 # A BSD-compatible nm program.
19123 # A symbol stripping program
19126 # Used to examine libraries when file_magic_cmd begins "file"
19127 MAGIC_CMD=$MAGIC_CMD
19129 # Used on cygwin: DLL creation program.
19132 # Used on cygwin: object dumper.
19135 # Used on cygwin: assembler.
19138 # The name of the directory that contains temporary libtool files.
19141 # How to create reloadable object files.
19142 reload_flag=$lt_reload_flag
19143 reload_cmds=$lt_reload_cmds
19145 # How to pass a linker flag through the compiler.
19146 wl=$lt_lt_prog_compiler_wl_RC
19148 # Object file suffix (normally "o").
19149 objext="$ac_objext"
19151 # Old archive suffix (normally "a").
19154 # Shared library suffix (normally ".so").
19155 shrext_cmds='$shrext_cmds'
19157 # Executable file suffix (normally "").
19160 # Additional compiler flags for building library objects.
19161 pic_flag=$lt_lt_prog_compiler_pic_RC
19164 # What is the maximum length of a command?
19165 max_cmd_len=$lt_cv_sys_max_cmd_len
19167 # Does compiler simultaneously support -c and -o options?
19168 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19170 # Must we lock files when doing compilation?
19171 need_locks=$lt_need_locks
19173 # Do we need the lib prefix for modules?
19174 need_lib_prefix=$need_lib_prefix
19176 # Do we need a version for libraries?
19177 need_version=$need_version
19179 # Whether dlopen is supported.
19180 dlopen_support=$enable_dlopen
19182 # Whether dlopen of programs is supported.
19183 dlopen_self=$enable_dlopen_self
19185 # Whether dlopen of statically linked programs is supported.
19186 dlopen_self_static=$enable_dlopen_self_static
19188 # Compiler flag to prevent dynamic linking.
19189 link_static_flag=$lt_lt_prog_compiler_static_RC
19191 # Compiler flag to turn off builtin functions.
19192 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19194 # Compiler flag to allow reflexive dlopens.
19195 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19197 # Compiler flag to generate shared objects directly from archives.
19198 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19200 # Compiler flag to generate thread-safe objects.
19201 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19203 # Library versioning type.
19204 version_type=$version_type
19206 # Format of library name prefix.
19207 libname_spec=$lt_libname_spec
19209 # List of archive names. First name is the real one, the rest are links.
19210 # The last name is the one that the linker finds with -lNAME.
19211 library_names_spec=$lt_library_names_spec
19213 # The coded name of the library, if different from the real name.
19214 soname_spec=$lt_soname_spec
19216 # Commands used to build and install an old-style archive.
19218 old_archive_cmds=$lt_old_archive_cmds_RC
19219 old_postinstall_cmds=$lt_old_postinstall_cmds
19220 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19222 # Create an old-style archive from a shared archive.
19223 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19225 # Create a temporary old-style archive to link instead of a shared archive.
19226 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19228 # Commands used to build and install a shared archive.
19229 archive_cmds=$lt_archive_cmds_RC
19230 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19231 postinstall_cmds=$lt_postinstall_cmds
19232 postuninstall_cmds=$lt_postuninstall_cmds
19234 # Commands used to build a loadable module (assumed same as above if empty)
19235 module_cmds=$lt_module_cmds_RC
19236 module_expsym_cmds=$lt_module_expsym_cmds_RC
19238 # Commands to strip libraries.
19239 old_striplib=$lt_old_striplib
19240 striplib=$lt_striplib
19242 # Dependencies to place before the objects being linked to create a
19244 predep_objects=$lt_predep_objects_RC
19246 # Dependencies to place after the objects being linked to create a
19248 postdep_objects=$lt_postdep_objects_RC
19250 # Dependencies to place before the objects being linked to create a
19252 predeps=$lt_predeps_RC
19254 # Dependencies to place after the objects being linked to create a
19256 postdeps=$lt_postdeps_RC
19258 # The library search path used internally by the compiler when linking
19259 # a shared library.
19260 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19262 # Method to check whether dependent libraries are shared objects.
19263 deplibs_check_method=$lt_deplibs_check_method
19265 # Command to use when deplibs_check_method == file_magic.
19266 file_magic_cmd=$lt_file_magic_cmd
19268 # Flag that allows shared libraries with undefined symbols to be built.
19269 allow_undefined_flag=$lt_allow_undefined_flag_RC
19271 # Flag that forces no undefined symbols.
19272 no_undefined_flag=$lt_no_undefined_flag_RC
19274 # Commands used to finish a libtool library installation in a directory.
19275 finish_cmds=$lt_finish_cmds
19277 # Same as above, but a single script fragment to be evaled but not shown.
19278 finish_eval=$lt_finish_eval
19280 # Take the output of nm and produce a listing of raw symbols and C names.
19281 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19283 # Transform the output of nm in a proper C declaration
19284 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19286 # Transform the output of nm in a C name address pair
19287 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19289 # This is the shared library runtime path variable.
19290 runpath_var=$runpath_var
19292 # This is the shared library path variable.
19293 shlibpath_var=$shlibpath_var
19295 # Is shlibpath searched before the hard-coded library search path?
19296 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19298 # How to hardcode a shared library path into an executable.
19299 hardcode_action=$hardcode_action_RC
19301 # Whether we should hardcode library paths into libraries.
19302 hardcode_into_libs=$hardcode_into_libs
19304 # Flag to hardcode \$libdir into a binary during linking.
19305 # This must work even if \$libdir does not exist.
19306 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19308 # If ld is used when linking, flag to hardcode \$libdir into
19309 # a binary during linking. This must work even if \$libdir does
19311 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19313 # Whether we need a single -rpath flag with a separated argument.
19314 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19316 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19317 # resulting binary.
19318 hardcode_direct=$hardcode_direct_RC
19320 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19321 # resulting binary.
19322 hardcode_minus_L=$hardcode_minus_L_RC
19324 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19325 # the resulting binary.
19326 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19328 # Set to yes if building a shared library automatically hardcodes DIR into the library
19329 # and all subsequent libraries and executables linked against it.
19330 hardcode_automatic=$hardcode_automatic_RC
19332 # Variables whose values should be saved in libtool wrapper scripts and
19333 # restored at relink time.
19334 variables_saved_for_relink="$variables_saved_for_relink"
19336 # Whether libtool must link a program against all its dependency libraries.
19337 link_all_deplibs=$link_all_deplibs_RC
19339 # Compile-time system search path for libraries
19340 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19342 # Run-time system search path for libraries
19343 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19345 # Fix the shell variable \$srcfile for the compiler.
19346 fix_srcfile_path="$fix_srcfile_path_RC"
19348 # Set to yes if exported symbols are required.
19349 always_export_symbols=$always_export_symbols_RC
19351 # The commands to list exported symbols.
19352 export_symbols_cmds=$lt_export_symbols_cmds_RC
19354 # The commands to extract the exported symbol list from a shared archive.
19355 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19357 # Symbols that should not be listed in the preloaded symbols.
19358 exclude_expsyms=$lt_exclude_expsyms_RC
19360 # Symbols that must always be exported.
19361 include_expsyms=$lt_include_expsyms_RC
19363 # ### END LIBTOOL TAG CONFIG: $tagname
19369 # If there is no Makefile yet, we rely on a make rule to execute
19370 # `config.status --recheck' to rerun these tests and create the
19371 # libtool script then.
19372 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19373 if test -f "$ltmain_in"; then
19374 test -f Makefile && make "$ltmain"
19380 ac_cpp='$CPP $CPPFLAGS'
19381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19390 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19391 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19392 { (exit 1); exit 1; }; }
19396 # Append the new tag name to the list of available tags.
19397 if test -n "$tagname" ; then
19398 available_tags="$available_tags $tagname"
19404 # Now substitute the updated list of available tags.
19405 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19406 mv "${ofile}T" "$ofile"
19410 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19411 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19412 { (exit 1); exit 1; }; }
19418 # This can be used to rebuild libtool when needed
19419 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19421 # Always use our own libtool.
19422 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19424 # Prevent multiple expansion
19453 { echo "$as_me:$LINENO: result: " >&5
19454 echo "${ECHO_T}" >&6; }
19455 { echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
19456 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6; }
19459 ac_cpp='$CPP $CPPFLAGS'
19460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19463 if test -n "$ac_tool_prefix"; then
19464 for ac_prog in xlC gcc cc
19466 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19467 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19470 if test "${ac_cv_prog_CC+set}" = set; then
19471 echo $ECHO_N "(cached) $ECHO_C" >&6
19473 if test -n "$CC"; then
19474 ac_cv_prog_CC="$CC" # Let the user override the test.
19476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19477 for as_dir in $PATH
19480 test -z "$as_dir" && as_dir=.
19481 for ac_exec_ext in '' $ac_executable_extensions; do
19482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19483 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19494 if test -n "$CC"; then
19495 { echo "$as_me:$LINENO: result: $CC" >&5
19496 echo "${ECHO_T}$CC" >&6; }
19498 { echo "$as_me:$LINENO: result: no" >&5
19499 echo "${ECHO_T}no" >&6; }
19503 test -n "$CC" && break
19506 if test -z "$CC"; then
19508 for ac_prog in xlC gcc cc
19510 # Extract the first word of "$ac_prog", so it can be a program name with args.
19511 set dummy $ac_prog; ac_word=$2
19512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19514 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19515 echo $ECHO_N "(cached) $ECHO_C" >&6
19517 if test -n "$ac_ct_CC"; then
19518 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19521 for as_dir in $PATH
19524 test -z "$as_dir" && as_dir=.
19525 for ac_exec_ext in '' $ac_executable_extensions; do
19526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19527 ac_cv_prog_ac_ct_CC="$ac_prog"
19528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19537 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19538 if test -n "$ac_ct_CC"; then
19539 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19540 echo "${ECHO_T}$ac_ct_CC" >&6; }
19542 { echo "$as_me:$LINENO: result: no" >&5
19543 echo "${ECHO_T}no" >&6; }
19547 test -n "$ac_ct_CC" && break
19550 if test "x$ac_ct_CC" = x; then
19553 case $cross_compiling:$ac_tool_warned in
19555 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19556 whose name does not start with the host triplet. If you think this
19557 configuration is useful to you, please write to autoconf@gnu.org." >&5
19558 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19559 whose name does not start with the host triplet. If you think this
19560 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19561 ac_tool_warned=yes ;;
19568 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19569 See \`config.log' for more details." >&5
19570 echo "$as_me: error: no acceptable C compiler found in \$PATH
19571 See \`config.log' for more details." >&2;}
19572 { (exit 1); exit 1; }; }
19574 # Provide some information about the compiler.
19575 echo "$as_me:$LINENO: checking for C compiler version" >&5
19576 ac_compiler=`set X $ac_compile; echo $2`
19577 { (ac_try="$ac_compiler --version >&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 --version >&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); }
19597 { (ac_try="$ac_compiler -V >&5"
19598 case "(($ac_try" in
19599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19600 *) ac_try_echo=$ac_try;;
19602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19603 (eval "$ac_compiler -V >&5") 2>&5
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); }
19608 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19609 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19610 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19611 echo $ECHO_N "(cached) $ECHO_C" >&6
19613 cat >conftest.$ac_ext <<_ACEOF
19616 cat confdefs.h >>conftest.$ac_ext
19617 cat >>conftest.$ac_ext <<_ACEOF
19618 /* end confdefs.h. */
19631 rm -f conftest.$ac_objext
19632 if { (ac_try="$ac_compile"
19633 case "(($ac_try" in
19634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19635 *) ac_try_echo=$ac_try;;
19637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19638 (eval "$ac_compile") 2>conftest.er1
19640 grep -v '^ *+' conftest.er1 >conftest.err
19642 cat conftest.err >&5
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); } && {
19645 test -z "$ac_c_werror_flag" ||
19646 test ! -s conftest.err
19647 } && test -s conftest.$ac_objext; then
19648 ac_compiler_gnu=yes
19650 echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19657 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19660 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19661 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19662 GCC=`test $ac_compiler_gnu = yes && echo yes`
19663 ac_test_CFLAGS=${CFLAGS+set}
19664 ac_save_CFLAGS=$CFLAGS
19665 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19666 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19667 if test "${ac_cv_prog_cc_g+set}" = set; then
19668 echo $ECHO_N "(cached) $ECHO_C" >&6
19670 ac_save_c_werror_flag=$ac_c_werror_flag
19671 ac_c_werror_flag=yes
19674 cat >conftest.$ac_ext <<_ACEOF
19677 cat confdefs.h >>conftest.$ac_ext
19678 cat >>conftest.$ac_ext <<_ACEOF
19679 /* end confdefs.h. */
19689 rm -f conftest.$ac_objext
19690 if { (ac_try="$ac_compile"
19691 case "(($ac_try" in
19692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19693 *) ac_try_echo=$ac_try;;
19695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19696 (eval "$ac_compile") 2>conftest.er1
19698 grep -v '^ *+' conftest.er1 >conftest.err
19700 cat conftest.err >&5
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); } && {
19703 test -z "$ac_c_werror_flag" ||
19704 test ! -s conftest.err
19705 } && test -s conftest.$ac_objext; then
19706 ac_cv_prog_cc_g=yes
19708 echo "$as_me: failed program was:" >&5
19709 sed 's/^/| /' conftest.$ac_ext >&5
19712 cat >conftest.$ac_ext <<_ACEOF
19715 cat confdefs.h >>conftest.$ac_ext
19716 cat >>conftest.$ac_ext <<_ACEOF
19717 /* end confdefs.h. */
19727 rm -f conftest.$ac_objext
19728 if { (ac_try="$ac_compile"
19729 case "(($ac_try" in
19730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19731 *) ac_try_echo=$ac_try;;
19733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19734 (eval "$ac_compile") 2>conftest.er1
19736 grep -v '^ *+' conftest.er1 >conftest.err
19738 cat conftest.err >&5
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); } && {
19741 test -z "$ac_c_werror_flag" ||
19742 test ! -s conftest.err
19743 } && test -s conftest.$ac_objext; then
19746 echo "$as_me: failed program was:" >&5
19747 sed 's/^/| /' conftest.$ac_ext >&5
19749 ac_c_werror_flag=$ac_save_c_werror_flag
19751 cat >conftest.$ac_ext <<_ACEOF
19754 cat confdefs.h >>conftest.$ac_ext
19755 cat >>conftest.$ac_ext <<_ACEOF
19756 /* end confdefs.h. */
19766 rm -f conftest.$ac_objext
19767 if { (ac_try="$ac_compile"
19768 case "(($ac_try" in
19769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770 *) ac_try_echo=$ac_try;;
19772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773 (eval "$ac_compile") 2>conftest.er1
19775 grep -v '^ *+' conftest.er1 >conftest.err
19777 cat conftest.err >&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); } && {
19780 test -z "$ac_c_werror_flag" ||
19781 test ! -s conftest.err
19782 } && test -s conftest.$ac_objext; then
19783 ac_cv_prog_cc_g=yes
19785 echo "$as_me: failed program was:" >&5
19786 sed 's/^/| /' conftest.$ac_ext >&5
19791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19798 ac_c_werror_flag=$ac_save_c_werror_flag
19800 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19801 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19802 if test "$ac_test_CFLAGS" = set; then
19803 CFLAGS=$ac_save_CFLAGS
19804 elif test $ac_cv_prog_cc_g = yes; then
19805 if test "$GCC" = yes; then
19811 if test "$GCC" = yes; then
19817 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19818 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19819 if test "${ac_cv_prog_cc_c89+set}" = set; then
19820 echo $ECHO_N "(cached) $ECHO_C" >&6
19822 ac_cv_prog_cc_c89=no
19824 cat >conftest.$ac_ext <<_ACEOF
19827 cat confdefs.h >>conftest.$ac_ext
19828 cat >>conftest.$ac_ext <<_ACEOF
19829 /* end confdefs.h. */
19830 #include <stdarg.h>
19832 #include <sys/types.h>
19833 #include <sys/stat.h>
19834 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19835 struct buf { int x; };
19836 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19837 static char *e (p, i)
19843 static char *f (char * (*g) (char **, int), char **p, ...)
19848 s = g (p, va_arg (v,int));
19853 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19854 function prototypes and stuff, but not '\xHH' hex character constants.
19855 These don't provoke an error unfortunately, instead are silently treated
19856 as 'x'. The following induces an error, until -std is added to get
19857 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19858 array size at least. It's necessary to write '\x00'==0 to get something
19859 that's true only with -std. */
19860 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19862 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19863 inside strings and character constants. */
19865 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19867 int test (int i, double x);
19868 struct s1 {int (*f) (int a);};
19869 struct s2 {int (*f) (double a);};
19870 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19876 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19881 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19882 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19884 CC="$ac_save_CC $ac_arg"
19885 rm -f conftest.$ac_objext
19886 if { (ac_try="$ac_compile"
19887 case "(($ac_try" in
19888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19889 *) ac_try_echo=$ac_try;;
19891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19892 (eval "$ac_compile") 2>conftest.er1
19894 grep -v '^ *+' conftest.er1 >conftest.err
19896 cat conftest.err >&5
19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); } && {
19899 test -z "$ac_c_werror_flag" ||
19900 test ! -s conftest.err
19901 } && test -s conftest.$ac_objext; then
19902 ac_cv_prog_cc_c89=$ac_arg
19904 echo "$as_me: failed program was:" >&5
19905 sed 's/^/| /' conftest.$ac_ext >&5
19910 rm -f core conftest.err conftest.$ac_objext
19911 test "x$ac_cv_prog_cc_c89" != "xno" && break
19913 rm -f conftest.$ac_ext
19918 case "x$ac_cv_prog_cc_c89" in
19920 { echo "$as_me:$LINENO: result: none needed" >&5
19921 echo "${ECHO_T}none needed" >&6; } ;;
19923 { echo "$as_me:$LINENO: result: unsupported" >&5
19924 echo "${ECHO_T}unsupported" >&6; } ;;
19926 CC="$CC $ac_cv_prog_cc_c89"
19927 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19928 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19933 ac_cpp='$CPP $CPPFLAGS'
19934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19938 depcc="$CC" am_compiler_list=
19940 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19941 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19942 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19943 echo $ECHO_N "(cached) $ECHO_C" >&6
19945 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19946 # We make a subdir and do the tests there. Otherwise we can end up
19947 # making bogus files that we don't know about and never remove. For
19948 # instance it was reported that on HP-UX the gcc test will end up
19949 # making a dummy file named `D' -- because `-MD' means `put the output
19952 # Copy depcomp to subdir because otherwise we won't find it if we're
19953 # using a relative directory.
19954 cp "$am_depcomp" conftest.dir
19956 # We will build objects and dependencies in a subdirectory because
19957 # it helps to detect inapplicable dependency modes. For instance
19958 # both Tru64's cc and ICC support -MD to output dependencies as a
19959 # side effect of compilation, but ICC will put the dependencies in
19960 # the current directory while Tru64 will put them in the object
19964 am_cv_CC_dependencies_compiler_type=none
19965 if test "$am_compiler_list" = ""; then
19966 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19968 for depmode in $am_compiler_list; do
19969 # Setup a source with many dependencies, because some compilers
19970 # like to wrap large dependency lists on column 80 (with \), and
19971 # we should not choose a depcomp mode which is confused by this.
19973 # We need to recreate these files for each test, as the compiler may
19974 # overwrite some of them when testing with obscure command lines.
19975 # This happens at least with the AIX C compiler.
19977 for i in 1 2 3 4 5 6; do
19978 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19979 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19980 # Solaris 8's {/usr,}/bin/sh.
19981 touch sub/conftst$i.h
19983 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19987 # after this tag, mechanisms are not by side-effect, so they'll
19988 # only be used when explicitly requested
19989 if test "x$enable_dependency_tracking" = xyes; then
19997 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19998 # mode. It turns out that the SunPro C++ compiler does not properly
19999 # handle `-M -o', and we need to detect this.
20000 if depmode=$depmode \
20001 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20002 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20003 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20004 >/dev/null 2>conftest.err &&
20005 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20006 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20007 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20008 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20009 # icc doesn't choke on unknown options, it will just issue warnings
20010 # or remarks (even with -Werror). So we grep stderr for any message
20011 # that says an option was ignored or not supported.
20012 # When given -MP, icc 7.0 and 7.1 complain thusly:
20013 # icc: Command line warning: ignoring option '-M'; no argument required
20014 # The diagnosis changed in icc 8.0:
20015 # icc: Command line remark: option '-MP' not supported
20016 if (grep 'ignoring option' conftest.err ||
20017 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20018 am_cv_CC_dependencies_compiler_type=$depmode
20025 rm -rf conftest.dir
20027 am_cv_CC_dependencies_compiler_type=none
20031 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20032 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20033 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20036 test "x$enable_dependency_tracking" != xno \
20037 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20038 am__fastdepCC_TRUE=
20039 am__fastdepCC_FALSE='#'
20041 am__fastdepCC_TRUE='#'
20042 am__fastdepCC_FALSE=
20046 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20047 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
20050 echo timestamp > conftest.file
20051 # Do `set' in a subshell so we don't clobber the current shell's
20052 # arguments. Must try -L first in case configure is actually a
20053 # symlink; some systems play weird games with the mod time of symlinks
20054 # (eg FreeBSD returns the mod time of the symlink's containing
20057 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
20058 if test "$*" = "X"; then
20060 set X `ls -t $srcdir/configure conftest.file`
20062 rm -f conftest.file
20063 if test "$*" != "X $srcdir/configure conftest.file" \
20064 && test "$*" != "X conftest.file $srcdir/configure"; then
20066 # If neither matched, then we have a broken ls. This can happen
20067 # if, for instance, CONFIG_SHELL is bash and it inherits a
20068 # broken ls alias from the environment. This has actually
20069 # happened. Such a system could not be considered "sane".
20070 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
20071 alias in your environment" >&5
20072 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
20073 alias in your environment" >&2;}
20074 { (exit 1); exit 1; }; }
20077 test "$2" = conftest.file
20083 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20084 Check your system clock" >&5
20085 echo "$as_me: error: newly created file is older than distributed files!
20086 Check your system clock" >&2;}
20087 { (exit 1); exit 1; }; }
20089 { echo "$as_me:$LINENO: result: yes" >&5
20090 echo "${ECHO_T}yes" >&6; }
20091 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20092 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20093 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20094 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20095 echo $ECHO_N "(cached) $ECHO_C" >&6
20097 cat >conftest.make <<\_ACEOF
20100 @echo '@@@%%%=$(MAKE)=@@@%%%'
20102 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20103 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20104 *@@@%%%=?*=@@@%%%*)
20105 eval ac_cv_prog_make_${ac_make}_set=yes;;
20107 eval ac_cv_prog_make_${ac_make}_set=no;;
20109 rm -f conftest.make
20111 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20112 { echo "$as_me:$LINENO: result: yes" >&5
20113 echo "${ECHO_T}yes" >&6; }
20116 { echo "$as_me:$LINENO: result: no" >&5
20117 echo "${ECHO_T}no" >&6; }
20118 SET_MAKE="MAKE=${MAKE-make}"
20122 { echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
20123 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6; }
20124 if test "$cross_compiling" = yes; then
20125 { echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
20126 echo "${ECHO_T}assuming the worse in cross-compilation" >&6; }
20128 cat >conftest.$ac_ext <<_ACEOF
20131 cat confdefs.h >>conftest.$ac_ext
20132 cat >>conftest.$ac_ext <<_ACEOF
20133 /* end confdefs.h. */
20143 rm -f conftest$ac_exeext
20144 if { (ac_try="$ac_link"
20145 case "(($ac_try" in
20146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20147 *) ac_try_echo=$ac_try;;
20149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20150 (eval "$ac_link") 2>&5
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20154 { (case "(($ac_try" in
20155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20156 *) ac_try_echo=$ac_try;;
20158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20159 (eval "$ac_try") 2>&5
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); }; }; then
20164 cat >>confdefs.h <<\_ACEOF
20165 #define PRINTF_NULL_WORKING 1
20168 { echo "$as_me:$LINENO: result: yes" >&5
20169 echo "${ECHO_T}yes" >&6; }
20171 echo "$as_me: program exited with status $ac_status" >&5
20172 echo "$as_me: failed program was:" >&5
20173 sed 's/^/| /' conftest.$ac_ext >&5
20175 ( exit $ac_status )
20176 { echo "$as_me:$LINENO: result: no" >&5
20177 echo "${ECHO_T}no" >&6; }
20179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20185 { echo "$as_me:$LINENO: checking for va_copy() function" >&5
20186 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6; }
20187 if test "${ac_cv_va_copy+set}" = set; then
20188 echo $ECHO_N "(cached) $ECHO_C" >&6
20195 if test ".$ac_cv_va_copy" = .; then
20196 if test "$cross_compiling" = yes; then
20197 ac_cv_va_copy="C99"
20199 cat >conftest.$ac_ext <<_ACEOF
20202 cat confdefs.h >>conftest.$ac_ext
20203 cat >>conftest.$ac_ext <<_ACEOF
20204 /* end confdefs.h. */
20206 #include <stdlib.h>
20207 #include <stdarg.h>
20208 #include <string.h>
20209 #define DO_VA_COPY(d, s) va_copy((d), (s))
20210 void test(char *str, ...)
20215 DO_VA_COPY(ap2, ap);
20216 for (i = 1; i <= 9; i++) {
20217 int k = (int)va_arg(ap, int);
20221 DO_VA_COPY(ap, ap2);
20222 for (i = 1; i <= 9; i++) {
20223 int k = (int)va_arg(ap, int);
20229 int main(int argc, char *argv[])
20231 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20236 rm -f conftest$ac_exeext
20237 if { (ac_try="$ac_link"
20238 case "(($ac_try" in
20239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20240 *) ac_try_echo=$ac_try;;
20242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20243 (eval "$ac_link") 2>&5
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20247 { (case "(($ac_try" in
20248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20249 *) ac_try_echo=$ac_try;;
20251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20252 (eval "$ac_try") 2>&5
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); }; }; then
20256 ac_cv_va_copy="C99"
20258 echo "$as_me: program exited with status $ac_status" >&5
20259 echo "$as_me: failed program was:" >&5
20260 sed 's/^/| /' conftest.$ac_ext >&5
20263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20272 if test ".$ac_cv_va_copy" = .; then
20273 if test "$cross_compiling" = yes; then
20274 ac_cv_va_copy="GCM"
20276 cat >conftest.$ac_ext <<_ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h. */
20283 #include <stdlib.h>
20284 #include <stdarg.h>
20285 #include <string.h>
20286 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
20287 void test(char *str, ...)
20292 DO_VA_COPY(ap2, ap);
20293 for (i = 1; i <= 9; i++) {
20294 int k = (int)va_arg(ap, int);
20298 DO_VA_COPY(ap, ap2);
20299 for (i = 1; i <= 9; i++) {
20300 int k = (int)va_arg(ap, int);
20306 int main(int argc, char *argv[])
20308 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20313 rm -f conftest$ac_exeext
20314 if { (ac_try="$ac_link"
20315 case "(($ac_try" in
20316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20317 *) ac_try_echo=$ac_try;;
20319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20320 (eval "$ac_link") 2>&5
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20324 { (case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329 (eval "$ac_try") 2>&5
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); }; }; then
20333 ac_cv_va_copy="GCM"
20335 echo "$as_me: program exited with status $ac_status" >&5
20336 echo "$as_me: failed program was:" >&5
20337 sed 's/^/| /' conftest.$ac_ext >&5
20340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20349 if test ".$ac_cv_va_copy" = .; then
20350 if test "$cross_compiling" = yes; then
20351 ac_cv_va_copy="GCH"
20353 cat >conftest.$ac_ext <<_ACEOF
20356 cat confdefs.h >>conftest.$ac_ext
20357 cat >>conftest.$ac_ext <<_ACEOF
20358 /* end confdefs.h. */
20360 #include <stdlib.h>
20361 #include <stdarg.h>
20362 #include <string.h>
20363 #define DO_VA_COPY(d, s) __va_copy((d), (s))
20364 void test(char *str, ...)
20369 DO_VA_COPY(ap2, ap);
20370 for (i = 1; i <= 9; i++) {
20371 int k = (int)va_arg(ap, int);
20375 DO_VA_COPY(ap, ap2);
20376 for (i = 1; i <= 9; i++) {
20377 int k = (int)va_arg(ap, int);
20383 int main(int argc, char *argv[])
20385 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20390 rm -f conftest$ac_exeext
20391 if { (ac_try="$ac_link"
20392 case "(($ac_try" in
20393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20394 *) ac_try_echo=$ac_try;;
20396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20397 (eval "$ac_link") 2>&5
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20401 { (case "(($ac_try" in
20402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20403 *) ac_try_echo=$ac_try;;
20405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20406 (eval "$ac_try") 2>&5
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); }; }; then
20410 ac_cv_va_copy="GCH"
20412 echo "$as_me: program exited with status $ac_status" >&5
20413 echo "$as_me: failed program was:" >&5
20414 sed 's/^/| /' conftest.$ac_ext >&5
20417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20426 if test ".$ac_cv_va_copy" = .; then
20427 if test "$cross_compiling" = yes; then
20428 ac_cv_va_copy="GCB"
20430 cat >conftest.$ac_ext <<_ACEOF
20433 cat confdefs.h >>conftest.$ac_ext
20434 cat >>conftest.$ac_ext <<_ACEOF
20435 /* end confdefs.h. */
20437 #include <stdlib.h>
20438 #include <stdarg.h>
20439 #include <string.h>
20440 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
20441 void test(char *str, ...)
20446 DO_VA_COPY(ap2, ap);
20447 for (i = 1; i <= 9; i++) {
20448 int k = (int)va_arg(ap, int);
20452 DO_VA_COPY(ap, ap2);
20453 for (i = 1; i <= 9; i++) {
20454 int k = (int)va_arg(ap, int);
20460 int main(int argc, char *argv[])
20462 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20467 rm -f conftest$ac_exeext
20468 if { (ac_try="$ac_link"
20469 case "(($ac_try" in
20470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20471 *) ac_try_echo=$ac_try;;
20473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20474 (eval "$ac_link") 2>&5
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20478 { (case "(($ac_try" in
20479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20480 *) ac_try_echo=$ac_try;;
20482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20483 (eval "$ac_try") 2>&5
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); }; }; then
20487 ac_cv_va_copy="GCB"
20489 echo "$as_me: program exited with status $ac_status" >&5
20490 echo "$as_me: failed program was:" >&5
20491 sed 's/^/| /' conftest.$ac_ext >&5
20494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20503 if test ".$ac_cv_va_copy" = .; then
20504 if test "$cross_compiling" = yes; then
20505 ac_cv_va_copy="ASS"
20507 cat >conftest.$ac_ext <<_ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h. */
20514 #include <stdlib.h>
20515 #include <stdarg.h>
20516 #include <string.h>
20517 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
20518 void test(char *str, ...)
20523 DO_VA_COPY(ap2, ap);
20524 for (i = 1; i <= 9; i++) {
20525 int k = (int)va_arg(ap, int);
20529 DO_VA_COPY(ap, ap2);
20530 for (i = 1; i <= 9; i++) {
20531 int k = (int)va_arg(ap, int);
20537 int main(int argc, char *argv[])
20539 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20544 rm -f conftest$ac_exeext
20545 if { (ac_try="$ac_link"
20546 case "(($ac_try" in
20547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20548 *) ac_try_echo=$ac_try;;
20550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20551 (eval "$ac_link") 2>&5
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20555 { (case "(($ac_try" in
20556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20557 *) ac_try_echo=$ac_try;;
20559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20560 (eval "$ac_try") 2>&5
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); }; }; then
20564 ac_cv_va_copy="ASS"
20566 echo "$as_me: program exited with status $ac_status" >&5
20567 echo "$as_me: failed program was:" >&5
20568 sed 's/^/| /' conftest.$ac_ext >&5
20571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20580 if test ".$ac_cv_va_copy" = .; then
20581 if test "$cross_compiling" = yes; then
20582 ac_cv_va_copy="ASP"
20584 cat >conftest.$ac_ext <<_ACEOF
20587 cat confdefs.h >>conftest.$ac_ext
20588 cat >>conftest.$ac_ext <<_ACEOF
20589 /* end confdefs.h. */
20591 #include <stdlib.h>
20592 #include <stdarg.h>
20593 #include <string.h>
20594 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
20595 void test(char *str, ...)
20600 DO_VA_COPY(ap2, ap);
20601 for (i = 1; i <= 9; i++) {
20602 int k = (int)va_arg(ap, int);
20606 DO_VA_COPY(ap, ap2);
20607 for (i = 1; i <= 9; i++) {
20608 int k = (int)va_arg(ap, int);
20614 int main(int argc, char *argv[])
20616 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20621 rm -f conftest$ac_exeext
20622 if { (ac_try="$ac_link"
20623 case "(($ac_try" in
20624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625 *) ac_try_echo=$ac_try;;
20627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628 (eval "$ac_link") 2>&5
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20632 { (case "(($ac_try" in
20633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20634 *) ac_try_echo=$ac_try;;
20636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20637 (eval "$ac_try") 2>&5
20639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640 (exit $ac_status); }; }; then
20641 ac_cv_va_copy="ASP"
20643 echo "$as_me: program exited with status $ac_status" >&5
20644 echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20657 if test ".$ac_cv_va_copy" = .; then
20658 if test "$cross_compiling" = yes; then
20659 ac_cv_va_copy="CPS"
20661 cat >conftest.$ac_ext <<_ACEOF
20664 cat confdefs.h >>conftest.$ac_ext
20665 cat >>conftest.$ac_ext <<_ACEOF
20666 /* end confdefs.h. */
20668 #include <stdlib.h>
20669 #include <stdarg.h>
20670 #include <string.h>
20671 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
20672 void test(char *str, ...)
20677 DO_VA_COPY(ap2, ap);
20678 for (i = 1; i <= 9; i++) {
20679 int k = (int)va_arg(ap, int);
20683 DO_VA_COPY(ap, ap2);
20684 for (i = 1; i <= 9; i++) {
20685 int k = (int)va_arg(ap, int);
20691 int main(int argc, char *argv[])
20693 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20698 rm -f conftest$ac_exeext
20699 if { (ac_try="$ac_link"
20700 case "(($ac_try" in
20701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20702 *) ac_try_echo=$ac_try;;
20704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20705 (eval "$ac_link") 2>&5
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20709 { (case "(($ac_try" in
20710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711 *) ac_try_echo=$ac_try;;
20713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20714 (eval "$ac_try") 2>&5
20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); }; }; then
20718 ac_cv_va_copy="CPS"
20720 echo "$as_me: program exited with status $ac_status" >&5
20721 echo "$as_me: failed program was:" >&5
20722 sed 's/^/| /' conftest.$ac_ext >&5
20725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20734 if test ".$ac_cv_va_copy" = .; then
20735 if test "$cross_compiling" = yes; then
20736 ac_cv_va_copy="CPP"
20738 cat >conftest.$ac_ext <<_ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h. */
20745 #include <stdlib.h>
20746 #include <stdarg.h>
20747 #include <string.h>
20748 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
20749 void test(char *str, ...)
20754 DO_VA_COPY(ap2, ap);
20755 for (i = 1; i <= 9; i++) {
20756 int k = (int)va_arg(ap, int);
20760 DO_VA_COPY(ap, ap2);
20761 for (i = 1; i <= 9; i++) {
20762 int k = (int)va_arg(ap, int);
20768 int main(int argc, char *argv[])
20770 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20775 rm -f conftest$ac_exeext
20776 if { (ac_try="$ac_link"
20777 case "(($ac_try" in
20778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779 *) ac_try_echo=$ac_try;;
20781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20782 (eval "$ac_link") 2>&5
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20786 { (case "(($ac_try" in
20787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20788 *) ac_try_echo=$ac_try;;
20790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20791 (eval "$ac_try") 2>&5
20793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794 (exit $ac_status); }; }; then
20795 ac_cv_va_copy="CPP"
20797 echo "$as_me: program exited with status $ac_status" >&5
20798 echo "$as_me: failed program was:" >&5
20799 sed 's/^/| /' conftest.$ac_ext >&5
20802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20808 if test ".$ac_cv_va_copy" = .; then
20809 { { echo "$as_me:$LINENO: error: no working implementation found" >&5
20810 echo "$as_me: error: no working implementation found" >&2;}
20811 { (exit 1); exit 1; }; }
20816 if test ".$ac_cv_va_copy" = ".C99"; then
20818 cat >>confdefs.h <<\_ACEOF
20819 #define HAVE_VA_COPY 1
20824 cat >>confdefs.h <<_ACEOF
20825 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
20830 if test ".$ac_cv_va_copy" = ".C99"; then
20831 { echo "$as_me:$LINENO: result: yes" >&5
20832 echo "${ECHO_T}yes" >&6; }
20834 { echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
20835 echo "${ECHO_T}no (using fallback implementation)" >&6; }
20839 # Checks for header files.
20840 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20841 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20842 if test "${ac_cv_header_stdc+set}" = set; then
20843 echo $ECHO_N "(cached) $ECHO_C" >&6
20845 cat >conftest.$ac_ext <<_ACEOF
20848 cat confdefs.h >>conftest.$ac_ext
20849 cat >>conftest.$ac_ext <<_ACEOF
20850 /* end confdefs.h. */
20851 #include <stdlib.h>
20852 #include <stdarg.h>
20853 #include <string.h>
20864 rm -f conftest.$ac_objext
20865 if { (ac_try="$ac_compile"
20866 case "(($ac_try" in
20867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20868 *) ac_try_echo=$ac_try;;
20870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20871 (eval "$ac_compile") 2>conftest.er1
20873 grep -v '^ *+' conftest.er1 >conftest.err
20875 cat conftest.err >&5
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); } && {
20878 test -z "$ac_c_werror_flag" ||
20879 test ! -s conftest.err
20880 } && test -s conftest.$ac_objext; then
20881 ac_cv_header_stdc=yes
20883 echo "$as_me: failed program was:" >&5
20884 sed 's/^/| /' conftest.$ac_ext >&5
20886 ac_cv_header_stdc=no
20889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20891 if test $ac_cv_header_stdc = yes; then
20892 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20893 cat >conftest.$ac_ext <<_ACEOF
20896 cat confdefs.h >>conftest.$ac_ext
20897 cat >>conftest.$ac_ext <<_ACEOF
20898 /* end confdefs.h. */
20899 #include <string.h>
20902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20903 $EGREP "memchr" >/dev/null 2>&1; then
20906 ac_cv_header_stdc=no
20912 if test $ac_cv_header_stdc = yes; then
20913 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20914 cat >conftest.$ac_ext <<_ACEOF
20917 cat confdefs.h >>conftest.$ac_ext
20918 cat >>conftest.$ac_ext <<_ACEOF
20919 /* end confdefs.h. */
20920 #include <stdlib.h>
20923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20924 $EGREP "free" >/dev/null 2>&1; then
20927 ac_cv_header_stdc=no
20933 if test $ac_cv_header_stdc = yes; then
20934 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20935 if test "$cross_compiling" = yes; then
20938 cat >conftest.$ac_ext <<_ACEOF
20941 cat confdefs.h >>conftest.$ac_ext
20942 cat >>conftest.$ac_ext <<_ACEOF
20943 /* end confdefs.h. */
20945 #include <stdlib.h>
20946 #if ((' ' & 0x0FF) == 0x020)
20947 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20948 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20950 # define ISLOWER(c) \
20951 (('a' <= (c) && (c) <= 'i') \
20952 || ('j' <= (c) && (c) <= 'r') \
20953 || ('s' <= (c) && (c) <= 'z'))
20954 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20957 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20962 for (i = 0; i < 256; i++)
20963 if (XOR (islower (i), ISLOWER (i))
20964 || toupper (i) != TOUPPER (i))
20969 rm -f conftest$ac_exeext
20970 if { (ac_try="$ac_link"
20971 case "(($ac_try" in
20972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20973 *) ac_try_echo=$ac_try;;
20975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20976 (eval "$ac_link") 2>&5
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20980 { (case "(($ac_try" in
20981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20982 *) ac_try_echo=$ac_try;;
20984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20985 (eval "$ac_try") 2>&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); }; }; then
20991 echo "$as_me: program exited with status $ac_status" >&5
20992 echo "$as_me: failed program was:" >&5
20993 sed 's/^/| /' conftest.$ac_ext >&5
20995 ( exit $ac_status )
20996 ac_cv_header_stdc=no
20998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21004 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21005 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21006 if test $ac_cv_header_stdc = yes; then
21008 cat >>confdefs.h <<\_ACEOF
21009 #define STDC_HEADERS 1
21014 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21015 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21016 if test "${ac_cv_header_time+set}" = set; then
21017 echo $ECHO_N "(cached) $ECHO_C" >&6
21019 cat >conftest.$ac_ext <<_ACEOF
21022 cat confdefs.h >>conftest.$ac_ext
21023 cat >>conftest.$ac_ext <<_ACEOF
21024 /* end confdefs.h. */
21025 #include <sys/types.h>
21026 #include <sys/time.h>
21032 if ((struct tm *) 0)
21038 rm -f conftest.$ac_objext
21039 if { (ac_try="$ac_compile"
21040 case "(($ac_try" in
21041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21042 *) ac_try_echo=$ac_try;;
21044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21045 (eval "$ac_compile") 2>conftest.er1
21047 grep -v '^ *+' conftest.er1 >conftest.err
21049 cat conftest.err >&5
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); } && {
21052 test -z "$ac_c_werror_flag" ||
21053 test ! -s conftest.err
21054 } && test -s conftest.$ac_objext; then
21055 ac_cv_header_time=yes
21057 echo "$as_me: failed program was:" >&5
21058 sed 's/^/| /' conftest.$ac_ext >&5
21060 ac_cv_header_time=no
21063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21065 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21066 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21067 if test $ac_cv_header_time = yes; then
21069 cat >>confdefs.h <<\_ACEOF
21070 #define TIME_WITH_SYS_TIME 1
21085 for ac_header in sys/socket.h \
21087 windows.h winsock.h winsock2.h \
21093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21098 echo $ECHO_N "(cached) $ECHO_C" >&6
21100 ac_res=`eval echo '${'$as_ac_Header'}'`
21101 { echo "$as_me:$LINENO: result: $ac_res" >&5
21102 echo "${ECHO_T}$ac_res" >&6; }
21104 # Is the header compilable?
21105 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21107 cat >conftest.$ac_ext <<_ACEOF
21110 cat confdefs.h >>conftest.$ac_ext
21111 cat >>conftest.$ac_ext <<_ACEOF
21112 /* end confdefs.h. */
21113 $ac_includes_default
21114 #include <$ac_header>
21116 rm -f conftest.$ac_objext
21117 if { (ac_try="$ac_compile"
21118 case "(($ac_try" in
21119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21120 *) ac_try_echo=$ac_try;;
21122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21123 (eval "$ac_compile") 2>conftest.er1
21125 grep -v '^ *+' conftest.er1 >conftest.err
21127 cat conftest.err >&5
21128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); } && {
21130 test -z "$ac_c_werror_flag" ||
21131 test ! -s conftest.err
21132 } && test -s conftest.$ac_objext; then
21133 ac_header_compiler=yes
21135 echo "$as_me: failed program was:" >&5
21136 sed 's/^/| /' conftest.$ac_ext >&5
21138 ac_header_compiler=no
21141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21142 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21143 echo "${ECHO_T}$ac_header_compiler" >&6; }
21145 # Is the header present?
21146 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21148 cat >conftest.$ac_ext <<_ACEOF
21151 cat confdefs.h >>conftest.$ac_ext
21152 cat >>conftest.$ac_ext <<_ACEOF
21153 /* end confdefs.h. */
21154 #include <$ac_header>
21156 if { (ac_try="$ac_cpp conftest.$ac_ext"
21157 case "(($ac_try" in
21158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21159 *) ac_try_echo=$ac_try;;
21161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21164 grep -v '^ *+' conftest.er1 >conftest.err
21166 cat conftest.err >&5
21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); } >/dev/null && {
21169 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21170 test ! -s conftest.err
21172 ac_header_preproc=yes
21174 echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21177 ac_header_preproc=no
21180 rm -f conftest.err conftest.$ac_ext
21181 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21182 echo "${ECHO_T}$ac_header_preproc" >&6; }
21184 # So? What about this header?
21185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21187 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21191 ac_header_preproc=yes
21194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21198 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21200 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21201 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21204 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21207 ## -------------------------------------------------- ##
21208 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
21209 ## -------------------------------------------------- ##
21211 ) | sed "s/^/$as_me: WARNING: /" >&2
21214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21217 echo $ECHO_N "(cached) $ECHO_C" >&6
21219 eval "$as_ac_Header=\$ac_header_preproc"
21221 ac_res=`eval echo '${'$as_ac_Header'}'`
21222 { echo "$as_me:$LINENO: result: $ac_res" >&5
21223 echo "${ECHO_T}$ac_res" >&6; }
21226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21227 cat >>confdefs.h <<_ACEOF
21228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21243 for ac_func in gettimeofday usleep \
21251 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21252 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21254 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21255 echo $ECHO_N "(cached) $ECHO_C" >&6
21257 cat >conftest.$ac_ext <<_ACEOF
21260 cat confdefs.h >>conftest.$ac_ext
21261 cat >>conftest.$ac_ext <<_ACEOF
21262 /* end confdefs.h. */
21263 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21265 #define $ac_func innocuous_$ac_func
21267 /* System header to define __stub macros and hopefully few prototypes,
21268 which can conflict with char $ac_func (); below.
21269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21270 <limits.h> exists even on freestanding compilers. */
21273 # include <limits.h>
21275 # include <assert.h>
21280 /* Override any GCC internal prototype to avoid an error.
21281 Use char because int might match the return type of a GCC
21282 builtin and then its argument prototype would still apply. */
21287 /* The GNU C library defines this for functions which it implements
21288 to always fail with ENOSYS. Some functions are actually named
21289 something starting with __ and the normal name is an alias. */
21290 #if defined __stub_$ac_func || defined __stub___$ac_func
21297 return $ac_func ();
21302 rm -f conftest.$ac_objext conftest$ac_exeext
21303 if { (ac_try="$ac_link"
21304 case "(($ac_try" in
21305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21306 *) ac_try_echo=$ac_try;;
21308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21309 (eval "$ac_link") 2>conftest.er1
21311 grep -v '^ *+' conftest.er1 >conftest.err
21313 cat conftest.err >&5
21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); } && {
21316 test -z "$ac_c_werror_flag" ||
21317 test ! -s conftest.err
21318 } && test -s conftest$ac_exeext &&
21319 $as_test_x conftest$ac_exeext; then
21320 eval "$as_ac_var=yes"
21322 echo "$as_me: failed program was:" >&5
21323 sed 's/^/| /' conftest.$ac_ext >&5
21325 eval "$as_ac_var=no"
21328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21329 conftest$ac_exeext conftest.$ac_ext
21331 ac_res=`eval echo '${'$as_ac_var'}'`
21332 { echo "$as_me:$LINENO: result: $ac_res" >&5
21333 echo "${ECHO_T}$ac_res" >&6; }
21334 if test `eval echo '${'$as_ac_var'}'` = yes; then
21335 cat >>confdefs.h <<_ACEOF
21336 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21343 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
21346 for ac_func in snprintf vsnprintf
21348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21349 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21351 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21352 echo $ECHO_N "(cached) $ECHO_C" >&6
21354 cat >conftest.$ac_ext <<_ACEOF
21357 cat confdefs.h >>conftest.$ac_ext
21358 cat >>conftest.$ac_ext <<_ACEOF
21359 /* end confdefs.h. */
21360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21362 #define $ac_func innocuous_$ac_func
21364 /* System header to define __stub macros and hopefully few prototypes,
21365 which can conflict with char $ac_func (); below.
21366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21367 <limits.h> exists even on freestanding compilers. */
21370 # include <limits.h>
21372 # include <assert.h>
21377 /* Override any GCC internal prototype to avoid an error.
21378 Use char because int might match the return type of a GCC
21379 builtin and then its argument prototype would still apply. */
21384 /* The GNU C library defines this for functions which it implements
21385 to always fail with ENOSYS. Some functions are actually named
21386 something starting with __ and the normal name is an alias. */
21387 #if defined __stub_$ac_func || defined __stub___$ac_func
21394 return $ac_func ();
21399 rm -f conftest.$ac_objext conftest$ac_exeext
21400 if { (ac_try="$ac_link"
21401 case "(($ac_try" in
21402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21403 *) ac_try_echo=$ac_try;;
21405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21406 (eval "$ac_link") 2>conftest.er1
21408 grep -v '^ *+' conftest.er1 >conftest.err
21410 cat conftest.err >&5
21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); } && {
21413 test -z "$ac_c_werror_flag" ||
21414 test ! -s conftest.err
21415 } && test -s conftest$ac_exeext &&
21416 $as_test_x conftest$ac_exeext; then
21417 eval "$as_ac_var=yes"
21419 echo "$as_me: failed program was:" >&5
21420 sed 's/^/| /' conftest.$ac_ext >&5
21422 eval "$as_ac_var=no"
21425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21426 conftest$ac_exeext conftest.$ac_ext
21428 ac_res=`eval echo '${'$as_ac_var'}'`
21429 { echo "$as_me:$LINENO: result: $ac_res" >&5
21430 echo "${ECHO_T}$ac_res" >&6; }
21431 if test `eval echo '${'$as_ac_var'}'` = yes; then
21432 cat >>confdefs.h <<_ACEOF
21433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21439 { echo "$as_me:$LINENO: checking for working snprintf" >&5
21440 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
21441 if test "${ac_cv_have_working_snprintf+set}" = set; then
21442 echo $ECHO_N "(cached) $ECHO_C" >&6
21444 if test "$cross_compiling" = yes; then
21445 ac_cv_have_working_snprintf=cross
21447 cat >conftest.$ac_ext <<_ACEOF
21450 cat confdefs.h >>conftest.$ac_ext
21451 cat >>conftest.$ac_ext <<_ACEOF
21452 /* end confdefs.h. */
21457 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21458 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21460 i = snprintf (bufs, 2, "%s", "111");
21461 if (strcmp (bufs, "1")) exit (1);
21462 if (i != 3) exit (1);
21463 i = snprintf (bufd, 2, "%d", 111);
21464 if (strcmp (bufd, "1")) exit (1);
21465 if (i != 3) exit (1);
21469 rm -f conftest$ac_exeext
21470 if { (ac_try="$ac_link"
21471 case "(($ac_try" in
21472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21473 *) ac_try_echo=$ac_try;;
21475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21476 (eval "$ac_link") 2>&5
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21480 { (case "(($ac_try" in
21481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21482 *) ac_try_echo=$ac_try;;
21484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21485 (eval "$ac_try") 2>&5
21487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488 (exit $ac_status); }; }; then
21489 ac_cv_have_working_snprintf=yes
21491 echo "$as_me: program exited with status $ac_status" >&5
21492 echo "$as_me: failed program was:" >&5
21493 sed 's/^/| /' conftest.$ac_ext >&5
21495 ( exit $ac_status )
21496 ac_cv_have_working_snprintf=no
21498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21504 { echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
21505 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; }
21506 { echo "$as_me:$LINENO: checking for working vsnprintf" >&5
21507 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
21508 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
21509 echo $ECHO_N "(cached) $ECHO_C" >&6
21511 if test "$cross_compiling" = yes; then
21512 ac_cv_have_working_vsnprintf=cross
21514 cat >conftest.$ac_ext <<_ACEOF
21517 cat confdefs.h >>conftest.$ac_ext
21518 cat >>conftest.$ac_ext <<_ACEOF
21519 /* end confdefs.h. */
21521 #include <stdarg.h>
21523 int my_vsnprintf (char *buf, const char *tmpl, ...)
21527 va_start (args, tmpl);
21528 i = vsnprintf (buf, 2, tmpl, args);
21535 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21536 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21538 i = my_vsnprintf (bufs, "%s", "111");
21539 if (strcmp (bufs, "1")) exit (1);
21540 if (i != 3) exit (1);
21541 i = my_vsnprintf (bufd, "%d", 111);
21542 if (strcmp (bufd, "1")) exit (1);
21543 if (i != 3) exit (1);
21547 rm -f conftest$ac_exeext
21548 if { (ac_try="$ac_link"
21549 case "(($ac_try" in
21550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21551 *) ac_try_echo=$ac_try;;
21553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21554 (eval "$ac_link") 2>&5
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21558 { (case "(($ac_try" in
21559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21560 *) ac_try_echo=$ac_try;;
21562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21563 (eval "$ac_try") 2>&5
21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); }; }; then
21567 ac_cv_have_working_vsnprintf=yes
21569 echo "$as_me: program exited with status $ac_status" >&5
21570 echo "$as_me: failed program was:" >&5
21571 sed 's/^/| /' conftest.$ac_ext >&5
21573 ( exit $ac_status )
21574 ac_cv_have_working_vsnprintf=no
21576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21582 { echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
21583 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; }
21584 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
21585 case " $LIBOBJS " in
21586 *" snprintf.$ac_objext "* ) ;;
21587 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21591 { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
21592 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
21594 cat >>confdefs.h <<\_ACEOF
21595 #define PREFER_PORTABLE_SNPRINTF 1
21599 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
21600 { echo "$as_me:$LINENO: checking for asprintf" >&5
21601 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6; }
21602 if test "${ac_cv_func_asprintf+set}" = set; then
21603 echo $ECHO_N "(cached) $ECHO_C" >&6
21605 cat >conftest.$ac_ext <<_ACEOF
21608 cat confdefs.h >>conftest.$ac_ext
21609 cat >>conftest.$ac_ext <<_ACEOF
21610 /* end confdefs.h. */
21611 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
21612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21613 #define asprintf innocuous_asprintf
21615 /* System header to define __stub macros and hopefully few prototypes,
21616 which can conflict with char asprintf (); below.
21617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21618 <limits.h> exists even on freestanding compilers. */
21621 # include <limits.h>
21623 # include <assert.h>
21628 /* Override any GCC internal prototype to avoid an error.
21629 Use char because int might match the return type of a GCC
21630 builtin and then its argument prototype would still apply. */
21635 /* The GNU C library defines this for functions which it implements
21636 to always fail with ENOSYS. Some functions are actually named
21637 something starting with __ and the normal name is an alias. */
21638 #if defined __stub_asprintf || defined __stub___asprintf
21645 return asprintf ();
21650 rm -f conftest.$ac_objext conftest$ac_exeext
21651 if { (ac_try="$ac_link"
21652 case "(($ac_try" in
21653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21654 *) ac_try_echo=$ac_try;;
21656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21657 (eval "$ac_link") 2>conftest.er1
21659 grep -v '^ *+' conftest.er1 >conftest.err
21661 cat conftest.err >&5
21662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663 (exit $ac_status); } && {
21664 test -z "$ac_c_werror_flag" ||
21665 test ! -s conftest.err
21666 } && test -s conftest$ac_exeext &&
21667 $as_test_x conftest$ac_exeext; then
21668 ac_cv_func_asprintf=yes
21670 echo "$as_me: failed program was:" >&5
21671 sed 's/^/| /' conftest.$ac_ext >&5
21673 ac_cv_func_asprintf=no
21676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21677 conftest$ac_exeext conftest.$ac_ext
21679 { echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
21680 echo "${ECHO_T}$ac_cv_func_asprintf" >&6; }
21681 if test $ac_cv_func_asprintf = yes; then
21685 cat >>confdefs.h <<\_ACEOF
21686 #define NEED_ASPRINTF 1
21691 { echo "$as_me:$LINENO: checking for vasprintf" >&5
21692 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6; }
21693 if test "${ac_cv_func_vasprintf+set}" = set; then
21694 echo $ECHO_N "(cached) $ECHO_C" >&6
21696 cat >conftest.$ac_ext <<_ACEOF
21699 cat confdefs.h >>conftest.$ac_ext
21700 cat >>conftest.$ac_ext <<_ACEOF
21701 /* end confdefs.h. */
21702 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
21703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21704 #define vasprintf innocuous_vasprintf
21706 /* System header to define __stub macros and hopefully few prototypes,
21707 which can conflict with char vasprintf (); below.
21708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21709 <limits.h> exists even on freestanding compilers. */
21712 # include <limits.h>
21714 # include <assert.h>
21719 /* Override any GCC internal prototype to avoid an error.
21720 Use char because int might match the return type of a GCC
21721 builtin and then its argument prototype would still apply. */
21726 /* The GNU C library defines this for functions which it implements
21727 to always fail with ENOSYS. Some functions are actually named
21728 something starting with __ and the normal name is an alias. */
21729 #if defined __stub_vasprintf || defined __stub___vasprintf
21736 return vasprintf ();
21741 rm -f conftest.$ac_objext conftest$ac_exeext
21742 if { (ac_try="$ac_link"
21743 case "(($ac_try" in
21744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21745 *) ac_try_echo=$ac_try;;
21747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21748 (eval "$ac_link") 2>conftest.er1
21750 grep -v '^ *+' conftest.er1 >conftest.err
21752 cat conftest.err >&5
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); } && {
21755 test -z "$ac_c_werror_flag" ||
21756 test ! -s conftest.err
21757 } && test -s conftest$ac_exeext &&
21758 $as_test_x conftest$ac_exeext; then
21759 ac_cv_func_vasprintf=yes
21761 echo "$as_me: failed program was:" >&5
21762 sed 's/^/| /' conftest.$ac_ext >&5
21764 ac_cv_func_vasprintf=no
21767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21768 conftest$ac_exeext conftest.$ac_ext
21770 { echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
21771 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6; }
21772 if test $ac_cv_func_vasprintf = yes; then
21776 cat >>confdefs.h <<\_ACEOF
21777 #define NEED_VASPRINTF 1
21783 # Checks for typedefs, structures, and compiler characteristics.
21784 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21785 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21786 if test "${ac_cv_c_const+set}" = set; then
21787 echo $ECHO_N "(cached) $ECHO_C" >&6
21789 cat >conftest.$ac_ext <<_ACEOF
21792 cat confdefs.h >>conftest.$ac_ext
21793 cat >>conftest.$ac_ext <<_ACEOF
21794 /* end confdefs.h. */
21799 /* FIXME: Include the comments suggested by Paul. */
21800 #ifndef __cplusplus
21801 /* Ultrix mips cc rejects this. */
21802 typedef int charset[2];
21804 /* SunOS 4.1.1 cc rejects this. */
21805 char const *const *pcpcc;
21807 /* NEC SVR4.0.2 mips cc rejects this. */
21808 struct point {int x, y;};
21809 static struct point const zero = {0,0};
21810 /* AIX XL C 1.02.0.0 rejects this.
21811 It does not let you subtract one const X* pointer from another in
21812 an arm of an if-expression whose if-part is not a constant
21814 const char *g = "string";
21815 pcpcc = &g + (g ? g-g : 0);
21816 /* HPUX 7.0 cc rejects these. */
21818 ppc = (char**) pcpcc;
21819 pcpcc = (char const *const *) ppc;
21820 { /* SCO 3.2v4 cc rejects this. */
21822 char const *s = 0 ? (char *) 0 : (char const *) 0;
21827 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21828 int x[] = {25, 17};
21829 const int *foo = &x[0];
21832 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21833 typedef const int *iptr;
21837 { /* AIX XL C 1.02.0.0 rejects this saying
21838 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21839 struct s { int j; const int *ap[3]; };
21840 struct s *b; b->j = 5;
21842 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21843 const int foo = 10;
21844 if (!foo) return 0;
21846 return !cs[0] && !zero.x;
21853 rm -f conftest.$ac_objext
21854 if { (ac_try="$ac_compile"
21855 case "(($ac_try" in
21856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21857 *) ac_try_echo=$ac_try;;
21859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21860 (eval "$ac_compile") 2>conftest.er1
21862 grep -v '^ *+' conftest.er1 >conftest.err
21864 cat conftest.err >&5
21865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866 (exit $ac_status); } && {
21867 test -z "$ac_c_werror_flag" ||
21868 test ! -s conftest.err
21869 } && test -s conftest.$ac_objext; then
21872 echo "$as_me: failed program was:" >&5
21873 sed 's/^/| /' conftest.$ac_ext >&5
21878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21880 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21881 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21882 if test $ac_cv_c_const = no; then
21884 cat >>confdefs.h <<\_ACEOF
21890 { echo "$as_me:$LINENO: checking for inline" >&5
21891 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21892 if test "${ac_cv_c_inline+set}" = set; then
21893 echo $ECHO_N "(cached) $ECHO_C" >&6
21896 for ac_kw in inline __inline__ __inline; do
21897 cat >conftest.$ac_ext <<_ACEOF
21900 cat confdefs.h >>conftest.$ac_ext
21901 cat >>conftest.$ac_ext <<_ACEOF
21902 /* end confdefs.h. */
21903 #ifndef __cplusplus
21905 static $ac_kw foo_t static_foo () {return 0; }
21906 $ac_kw foo_t foo () {return 0; }
21910 rm -f conftest.$ac_objext
21911 if { (ac_try="$ac_compile"
21912 case "(($ac_try" in
21913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21914 *) ac_try_echo=$ac_try;;
21916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21917 (eval "$ac_compile") 2>conftest.er1
21919 grep -v '^ *+' conftest.er1 >conftest.err
21921 cat conftest.err >&5
21922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923 (exit $ac_status); } && {
21924 test -z "$ac_c_werror_flag" ||
21925 test ! -s conftest.err
21926 } && test -s conftest.$ac_objext; then
21927 ac_cv_c_inline=$ac_kw
21929 echo "$as_me: failed program was:" >&5
21930 sed 's/^/| /' conftest.$ac_ext >&5
21935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21936 test "$ac_cv_c_inline" != no && break
21940 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21941 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21944 case $ac_cv_c_inline in
21947 case $ac_cv_c_inline in
21949 *) ac_val=$ac_cv_c_inline;;
21951 cat >>confdefs.h <<_ACEOF
21952 #ifndef __cplusplus
21953 #define inline $ac_val
21959 { echo "$as_me:$LINENO: checking for size_t" >&5
21960 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21961 if test "${ac_cv_type_size_t+set}" = set; then
21962 echo $ECHO_N "(cached) $ECHO_C" >&6
21964 cat >conftest.$ac_ext <<_ACEOF
21967 cat confdefs.h >>conftest.$ac_ext
21968 cat >>conftest.$ac_ext <<_ACEOF
21969 /* end confdefs.h. */
21970 $ac_includes_default
21971 typedef size_t ac__type_new_;
21975 if ((ac__type_new_ *) 0)
21977 if (sizeof (ac__type_new_))
21983 rm -f conftest.$ac_objext
21984 if { (ac_try="$ac_compile"
21985 case "(($ac_try" in
21986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21987 *) ac_try_echo=$ac_try;;
21989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21990 (eval "$ac_compile") 2>conftest.er1
21992 grep -v '^ *+' conftest.er1 >conftest.err
21994 cat conftest.err >&5
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); } && {
21997 test -z "$ac_c_werror_flag" ||
21998 test ! -s conftest.err
21999 } && test -s conftest.$ac_objext; then
22000 ac_cv_type_size_t=yes
22002 echo "$as_me: failed program was:" >&5
22003 sed 's/^/| /' conftest.$ac_ext >&5
22005 ac_cv_type_size_t=no
22008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22010 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22011 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22012 if test $ac_cv_type_size_t = yes; then
22016 cat >>confdefs.h <<_ACEOF
22017 #define size_t unsigned int
22023 ###################################
22024 ## SimGrid and GRAS specific checks
22028 { echo "$as_me:$LINENO: result: " >&5
22029 echo "${ECHO_T}" >&6; }
22030 { echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
22031 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6; }
22033 # Check architecture signature begin
22035 # Check for the architecture
22036 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22037 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22038 if test "${ac_cv_c_bigendian+set}" = set; then
22039 echo $ECHO_N "(cached) $ECHO_C" >&6
22041 # See if sys/param.h defines the BYTE_ORDER macro.
22042 cat >conftest.$ac_ext <<_ACEOF
22045 cat confdefs.h >>conftest.$ac_ext
22046 cat >>conftest.$ac_ext <<_ACEOF
22047 /* end confdefs.h. */
22048 #include <sys/types.h>
22049 #include <sys/param.h>
22054 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22055 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22056 bogus endian macros
22063 rm -f conftest.$ac_objext
22064 if { (ac_try="$ac_compile"
22065 case "(($ac_try" in
22066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22067 *) ac_try_echo=$ac_try;;
22069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22070 (eval "$ac_compile") 2>conftest.er1
22072 grep -v '^ *+' conftest.er1 >conftest.err
22074 cat conftest.err >&5
22075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076 (exit $ac_status); } && {
22077 test -z "$ac_c_werror_flag" ||
22078 test ! -s conftest.err
22079 } && test -s conftest.$ac_objext; then
22080 # It does; now see whether it defined to BIG_ENDIAN or not.
22081 cat >conftest.$ac_ext <<_ACEOF
22084 cat confdefs.h >>conftest.$ac_ext
22085 cat >>conftest.$ac_ext <<_ACEOF
22086 /* end confdefs.h. */
22087 #include <sys/types.h>
22088 #include <sys/param.h>
22093 #if BYTE_ORDER != BIG_ENDIAN
22101 rm -f conftest.$ac_objext
22102 if { (ac_try="$ac_compile"
22103 case "(($ac_try" in
22104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22105 *) ac_try_echo=$ac_try;;
22107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22108 (eval "$ac_compile") 2>conftest.er1
22110 grep -v '^ *+' conftest.er1 >conftest.err
22112 cat conftest.err >&5
22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); } && {
22115 test -z "$ac_c_werror_flag" ||
22116 test ! -s conftest.err
22117 } && test -s conftest.$ac_objext; then
22118 ac_cv_c_bigendian=yes
22120 echo "$as_me: failed program was:" >&5
22121 sed 's/^/| /' conftest.$ac_ext >&5
22123 ac_cv_c_bigendian=no
22126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22128 echo "$as_me: failed program was:" >&5
22129 sed 's/^/| /' conftest.$ac_ext >&5
22131 # It does not; compile a test program.
22132 if test "$cross_compiling" = yes; then
22133 # try to guess the endianness by grepping values into an object file
22134 ac_cv_c_bigendian=unknown
22135 cat >conftest.$ac_ext <<_ACEOF
22138 cat confdefs.h >>conftest.$ac_ext
22139 cat >>conftest.$ac_ext <<_ACEOF
22140 /* end confdefs.h. */
22141 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22142 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22143 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22144 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22145 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22146 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22150 _ascii (); _ebcdic ();
22155 rm -f conftest.$ac_objext
22156 if { (ac_try="$ac_compile"
22157 case "(($ac_try" in
22158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22159 *) ac_try_echo=$ac_try;;
22161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22162 (eval "$ac_compile") 2>conftest.er1
22164 grep -v '^ *+' conftest.er1 >conftest.err
22166 cat conftest.err >&5
22167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168 (exit $ac_status); } && {
22169 test -z "$ac_c_werror_flag" ||
22170 test ! -s conftest.err
22171 } && test -s conftest.$ac_objext; then
22172 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22173 ac_cv_c_bigendian=yes
22175 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22176 if test "$ac_cv_c_bigendian" = unknown; then
22177 ac_cv_c_bigendian=no
22179 # finding both strings is unlikely to happen, but who knows?
22180 ac_cv_c_bigendian=unknown
22184 echo "$as_me: failed program was:" >&5
22185 sed 's/^/| /' conftest.$ac_ext >&5
22190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22192 cat >conftest.$ac_ext <<_ACEOF
22195 cat confdefs.h >>conftest.$ac_ext
22196 cat >>conftest.$ac_ext <<_ACEOF
22197 /* end confdefs.h. */
22198 $ac_includes_default
22203 /* Are we little or big endian? From Harbison&Steele. */
22207 char c[sizeof (long int)];
22210 return u.c[sizeof (long int) - 1] == 1;
22216 rm -f conftest$ac_exeext
22217 if { (ac_try="$ac_link"
22218 case "(($ac_try" in
22219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22220 *) ac_try_echo=$ac_try;;
22222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22223 (eval "$ac_link") 2>&5
22225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22227 { (case "(($ac_try" in
22228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22229 *) ac_try_echo=$ac_try;;
22231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22232 (eval "$ac_try") 2>&5
22234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235 (exit $ac_status); }; }; then
22236 ac_cv_c_bigendian=no
22238 echo "$as_me: program exited with status $ac_status" >&5
22239 echo "$as_me: failed program was:" >&5
22240 sed 's/^/| /' conftest.$ac_ext >&5
22242 ( exit $ac_status )
22243 ac_cv_c_bigendian=yes
22245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22253 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22254 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22255 case $ac_cv_c_bigendian in
22261 { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
22262 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
22263 { (exit 1); exit 1; }; } ;;
22267 cat >>confdefs.h <<_ACEOF
22268 #define GRAS_BIGENDIAN $endian
22272 { echo "$as_me:$LINENO: checking size of char" >&5
22273 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22274 if test "${ac_cv_sizeof_char+set}" = set; then
22275 echo $ECHO_N "(cached) $ECHO_C" >&6
22277 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22278 cat >conftest.$ac_ext <<_ACEOF
22281 cat confdefs.h >>conftest.$ac_ext
22282 cat >>conftest.$ac_ext <<_ACEOF
22283 /* end confdefs.h. */
22284 #include "confdefs.h"
22285 #include <sys/types.h>
22291 switch (0) case 0: case (sizeof (char) == $ac_size):;
22296 rm -f conftest.$ac_objext
22297 if { (ac_try="$ac_compile"
22298 case "(($ac_try" in
22299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22300 *) ac_try_echo=$ac_try;;
22302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22303 (eval "$ac_compile") 2>conftest.er1
22305 grep -v '^ *+' conftest.er1 >conftest.err
22307 cat conftest.err >&5
22308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309 (exit $ac_status); } && {
22310 test -z "$ac_c_werror_flag" ||
22311 test ! -s conftest.err
22312 } && test -s conftest.$ac_objext; then
22313 ac_cv_sizeof_char=$ac_size
22315 echo "$as_me: failed program was:" >&5
22316 sed 's/^/| /' conftest.$ac_ext >&5
22321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22322 if test x$ac_cv_sizeof_char != x ; then break; fi
22328 unspecif=$ac_cv_sizeof_char
22329 if test x$unspecif = x ; then
22330 { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
22331 echo "$as_me: error: cannot determine a size for char" >&2;}
22332 { (exit 1); exit 1; }; }
22335 if test "${ac_cv_sizeof_signed_char+set}" = set; then
22336 echo $ECHO_N "(cached) $ECHO_C" >&6
22338 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22339 cat >conftest.$ac_ext <<_ACEOF
22342 cat confdefs.h >>conftest.$ac_ext
22343 cat >>conftest.$ac_ext <<_ACEOF
22344 /* end confdefs.h. */
22345 #include "confdefs.h"
22346 #include <sys/types.h>
22352 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
22357 rm -f conftest.$ac_objext
22358 if { (ac_try="$ac_compile"
22359 case "(($ac_try" in
22360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22361 *) ac_try_echo=$ac_try;;
22363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22364 (eval "$ac_compile") 2>conftest.er1
22366 grep -v '^ *+' conftest.er1 >conftest.err
22368 cat conftest.err >&5
22369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22370 (exit $ac_status); } && {
22371 test -z "$ac_c_werror_flag" ||
22372 test ! -s conftest.err
22373 } && test -s conftest.$ac_objext; then
22374 ac_cv_sizeof_signed_char=$ac_size
22376 echo "$as_me: failed program was:" >&5
22377 sed 's/^/| /' conftest.$ac_ext >&5
22382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22383 if test x$ac_cv_sizeof_signed_char != x ; then break; fi
22389 signed=$ac_cv_sizeof_signed_char
22390 if test x$signed = x ; then
22391 { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
22392 echo "$as_me: error: cannot determine a size for signed char" >&2;}
22393 { (exit 1); exit 1; }; }
22395 if test x$unspecif != x$signed ; then
22396 { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
22397 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
22398 { (exit 1); exit 1; }; }
22401 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
22402 echo $ECHO_N "(cached) $ECHO_C" >&6
22404 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22405 cat >conftest.$ac_ext <<_ACEOF
22408 cat confdefs.h >>conftest.$ac_ext
22409 cat >>conftest.$ac_ext <<_ACEOF
22410 /* end confdefs.h. */
22411 #include "confdefs.h"
22412 #include <sys/types.h>
22418 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
22423 rm -f conftest.$ac_objext
22424 if { (ac_try="$ac_compile"
22425 case "(($ac_try" in
22426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22427 *) ac_try_echo=$ac_try;;
22429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22430 (eval "$ac_compile") 2>conftest.er1
22432 grep -v '^ *+' conftest.er1 >conftest.err
22434 cat conftest.err >&5
22435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436 (exit $ac_status); } && {
22437 test -z "$ac_c_werror_flag" ||
22438 test ! -s conftest.err
22439 } && test -s conftest.$ac_objext; then
22440 ac_cv_sizeof_unsigned_char=$ac_size
22442 echo "$as_me: failed program was:" >&5
22443 sed 's/^/| /' conftest.$ac_ext >&5
22448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22449 if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
22455 unsigned=$ac_cv_sizeof_unsigned_char
22456 if test x$unsigned = x ; then
22457 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
22458 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
22459 { (exit 1); exit 1; }; }
22461 if test x$unsigned != x$signed ; then
22462 { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
22463 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
22464 { (exit 1); exit 1; }; }
22467 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
22468 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
22469 { echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
22470 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6; }
22472 if test "${ac_cv_struct_boundary_char+set}" = set; then
22473 echo $ECHO_N "(cached) $ECHO_C" >&6
22475 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22476 cat >conftest.$ac_ext <<_ACEOF
22479 cat confdefs.h >>conftest.$ac_ext
22480 cat >>conftest.$ac_ext <<_ACEOF
22481 /* end confdefs.h. */
22482 #include "confdefs.h"
22483 #include <sys/types.h>
22484 struct s { char c; char i; };
22489 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
22494 rm -f conftest.$ac_objext
22495 if { (ac_try="$ac_compile"
22496 case "(($ac_try" in
22497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22498 *) ac_try_echo=$ac_try;;
22500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22501 (eval "$ac_compile") 2>conftest.er1
22503 grep -v '^ *+' conftest.er1 >conftest.err
22505 cat conftest.err >&5
22506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22507 (exit $ac_status); } && {
22508 test -z "$ac_c_werror_flag" ||
22509 test ! -s conftest.err
22510 } && test -s conftest.$ac_objext; then
22511 ac_cv_struct_boundary_char=$ac_size
22513 echo "$as_me: failed program was:" >&5
22514 sed 's/^/| /' conftest.$ac_ext >&5
22519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22520 if test x$ac_cv_struct_boundary_char != x ; then break; fi
22525 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
22526 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6; }
22527 if test x$ac_cv_struct_boundary_char = x ; then
22528 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
22529 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
22530 { (exit 1); exit 1; }; }
22533 { echo "$as_me:$LINENO: checking size of short int" >&5
22534 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
22535 if test "${ac_cv_sizeof_short_int+set}" = set; then
22536 echo $ECHO_N "(cached) $ECHO_C" >&6
22538 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22539 cat >conftest.$ac_ext <<_ACEOF
22542 cat confdefs.h >>conftest.$ac_ext
22543 cat >>conftest.$ac_ext <<_ACEOF
22544 /* end confdefs.h. */
22545 #include "confdefs.h"
22546 #include <sys/types.h>
22552 switch (0) case 0: case (sizeof (short int) == $ac_size):;
22557 rm -f conftest.$ac_objext
22558 if { (ac_try="$ac_compile"
22559 case "(($ac_try" in
22560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22561 *) ac_try_echo=$ac_try;;
22563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22564 (eval "$ac_compile") 2>conftest.er1
22566 grep -v '^ *+' conftest.er1 >conftest.err
22568 cat conftest.err >&5
22569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570 (exit $ac_status); } && {
22571 test -z "$ac_c_werror_flag" ||
22572 test ! -s conftest.err
22573 } && test -s conftest.$ac_objext; then
22574 ac_cv_sizeof_short_int=$ac_size
22576 echo "$as_me: failed program was:" >&5
22577 sed 's/^/| /' conftest.$ac_ext >&5
22582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22583 if test x$ac_cv_sizeof_short_int != x ; then break; fi
22589 unspecif=$ac_cv_sizeof_short_int
22590 if test x$unspecif = x ; then
22591 { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
22592 echo "$as_me: error: cannot determine a size for short int" >&2;}
22593 { (exit 1); exit 1; }; }
22596 if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
22597 echo $ECHO_N "(cached) $ECHO_C" >&6
22599 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22600 cat >conftest.$ac_ext <<_ACEOF
22603 cat confdefs.h >>conftest.$ac_ext
22604 cat >>conftest.$ac_ext <<_ACEOF
22605 /* end confdefs.h. */
22606 #include "confdefs.h"
22607 #include <sys/types.h>
22613 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
22618 rm -f conftest.$ac_objext
22619 if { (ac_try="$ac_compile"
22620 case "(($ac_try" in
22621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22622 *) ac_try_echo=$ac_try;;
22624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22625 (eval "$ac_compile") 2>conftest.er1
22627 grep -v '^ *+' conftest.er1 >conftest.err
22629 cat conftest.err >&5
22630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631 (exit $ac_status); } && {
22632 test -z "$ac_c_werror_flag" ||
22633 test ! -s conftest.err
22634 } && test -s conftest.$ac_objext; then
22635 ac_cv_sizeof_signed_short_int=$ac_size
22637 echo "$as_me: failed program was:" >&5
22638 sed 's/^/| /' conftest.$ac_ext >&5
22643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22644 if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
22650 signed=$ac_cv_sizeof_signed_short_int
22651 if test x$signed = x ; then
22652 { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
22653 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
22654 { (exit 1); exit 1; }; }
22656 if test x$unspecif != x$signed ; then
22657 { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
22658 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
22659 { (exit 1); exit 1; }; }
22662 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
22663 echo $ECHO_N "(cached) $ECHO_C" >&6
22665 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22666 cat >conftest.$ac_ext <<_ACEOF
22669 cat confdefs.h >>conftest.$ac_ext
22670 cat >>conftest.$ac_ext <<_ACEOF
22671 /* end confdefs.h. */
22672 #include "confdefs.h"
22673 #include <sys/types.h>
22679 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
22684 rm -f conftest.$ac_objext
22685 if { (ac_try="$ac_compile"
22686 case "(($ac_try" in
22687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22688 *) ac_try_echo=$ac_try;;
22690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22691 (eval "$ac_compile") 2>conftest.er1
22693 grep -v '^ *+' conftest.er1 >conftest.err
22695 cat conftest.err >&5
22696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); } && {
22698 test -z "$ac_c_werror_flag" ||
22699 test ! -s conftest.err
22700 } && test -s conftest.$ac_objext; then
22701 ac_cv_sizeof_unsigned_short_int=$ac_size
22703 echo "$as_me: failed program was:" >&5
22704 sed 's/^/| /' conftest.$ac_ext >&5
22709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22710 if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
22716 unsigned=$ac_cv_sizeof_unsigned_short_int
22717 if test x$unsigned = x ; then
22718 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
22719 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
22720 { (exit 1); exit 1; }; }
22722 if test x$unsigned != x$signed ; then
22723 { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
22724 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
22725 { (exit 1); exit 1; }; }
22728 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
22729 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
22730 { echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
22731 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6; }
22733 if test "${ac_cv_struct_boundary_short_int+set}" = set; then
22734 echo $ECHO_N "(cached) $ECHO_C" >&6
22736 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22737 cat >conftest.$ac_ext <<_ACEOF
22740 cat confdefs.h >>conftest.$ac_ext
22741 cat >>conftest.$ac_ext <<_ACEOF
22742 /* end confdefs.h. */
22743 #include "confdefs.h"
22744 #include <sys/types.h>
22745 struct s { char c; short int i; };
22750 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
22755 rm -f conftest.$ac_objext
22756 if { (ac_try="$ac_compile"
22757 case "(($ac_try" in
22758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22759 *) ac_try_echo=$ac_try;;
22761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22762 (eval "$ac_compile") 2>conftest.er1
22764 grep -v '^ *+' conftest.er1 >conftest.err
22766 cat conftest.err >&5
22767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22768 (exit $ac_status); } && {
22769 test -z "$ac_c_werror_flag" ||
22770 test ! -s conftest.err
22771 } && test -s conftest.$ac_objext; then
22772 ac_cv_struct_boundary_short_int=$ac_size
22774 echo "$as_me: failed program was:" >&5
22775 sed 's/^/| /' conftest.$ac_ext >&5
22780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22781 if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
22786 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
22787 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6; }
22788 if test x$ac_cv_struct_boundary_short_int = x ; then
22789 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
22790 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
22791 { (exit 1); exit 1; }; }
22794 { echo "$as_me:$LINENO: checking size of int" >&5
22795 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22796 if test "${ac_cv_sizeof_int+set}" = set; then
22797 echo $ECHO_N "(cached) $ECHO_C" >&6
22799 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22800 cat >conftest.$ac_ext <<_ACEOF
22803 cat confdefs.h >>conftest.$ac_ext
22804 cat >>conftest.$ac_ext <<_ACEOF
22805 /* end confdefs.h. */
22806 #include "confdefs.h"
22807 #include <sys/types.h>
22813 switch (0) case 0: case (sizeof (int) == $ac_size):;
22818 rm -f conftest.$ac_objext
22819 if { (ac_try="$ac_compile"
22820 case "(($ac_try" in
22821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22822 *) ac_try_echo=$ac_try;;
22824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22825 (eval "$ac_compile") 2>conftest.er1
22827 grep -v '^ *+' conftest.er1 >conftest.err
22829 cat conftest.err >&5
22830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831 (exit $ac_status); } && {
22832 test -z "$ac_c_werror_flag" ||
22833 test ! -s conftest.err
22834 } && test -s conftest.$ac_objext; then
22835 ac_cv_sizeof_int=$ac_size
22837 echo "$as_me: failed program was:" >&5
22838 sed 's/^/| /' conftest.$ac_ext >&5
22843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22844 if test x$ac_cv_sizeof_int != x ; then break; fi
22850 unspecif=$ac_cv_sizeof_int
22851 if test x$unspecif = x ; then
22852 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
22853 echo "$as_me: error: cannot determine a size for int" >&2;}
22854 { (exit 1); exit 1; }; }
22857 if test "${ac_cv_sizeof_signed_int+set}" = set; then
22858 echo $ECHO_N "(cached) $ECHO_C" >&6
22860 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22861 cat >conftest.$ac_ext <<_ACEOF
22864 cat confdefs.h >>conftest.$ac_ext
22865 cat >>conftest.$ac_ext <<_ACEOF
22866 /* end confdefs.h. */
22867 #include "confdefs.h"
22868 #include <sys/types.h>
22874 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
22879 rm -f conftest.$ac_objext
22880 if { (ac_try="$ac_compile"
22881 case "(($ac_try" in
22882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22883 *) ac_try_echo=$ac_try;;
22885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22886 (eval "$ac_compile") 2>conftest.er1
22888 grep -v '^ *+' conftest.er1 >conftest.err
22890 cat conftest.err >&5
22891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892 (exit $ac_status); } && {
22893 test -z "$ac_c_werror_flag" ||
22894 test ! -s conftest.err
22895 } && test -s conftest.$ac_objext; then
22896 ac_cv_sizeof_signed_int=$ac_size
22898 echo "$as_me: failed program was:" >&5
22899 sed 's/^/| /' conftest.$ac_ext >&5
22904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22905 if test x$ac_cv_sizeof_signed_int != x ; then break; fi
22911 signed=$ac_cv_sizeof_signed_int
22912 if test x$signed = x ; then
22913 { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
22914 echo "$as_me: error: cannot determine a size for signed int" >&2;}
22915 { (exit 1); exit 1; }; }
22917 if test x$unspecif != x$signed ; then
22918 { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
22919 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
22920 { (exit 1); exit 1; }; }
22923 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
22924 echo $ECHO_N "(cached) $ECHO_C" >&6
22926 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22927 cat >conftest.$ac_ext <<_ACEOF
22930 cat confdefs.h >>conftest.$ac_ext
22931 cat >>conftest.$ac_ext <<_ACEOF
22932 /* end confdefs.h. */
22933 #include "confdefs.h"
22934 #include <sys/types.h>
22940 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
22945 rm -f conftest.$ac_objext
22946 if { (ac_try="$ac_compile"
22947 case "(($ac_try" in
22948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22949 *) ac_try_echo=$ac_try;;
22951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22952 (eval "$ac_compile") 2>conftest.er1
22954 grep -v '^ *+' conftest.er1 >conftest.err
22956 cat conftest.err >&5
22957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22958 (exit $ac_status); } && {
22959 test -z "$ac_c_werror_flag" ||
22960 test ! -s conftest.err
22961 } && test -s conftest.$ac_objext; then
22962 ac_cv_sizeof_unsigned_int=$ac_size
22964 echo "$as_me: failed program was:" >&5
22965 sed 's/^/| /' conftest.$ac_ext >&5
22970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22971 if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
22977 unsigned=$ac_cv_sizeof_unsigned_int
22978 if test x$unsigned = x ; then
22979 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
22980 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
22981 { (exit 1); exit 1; }; }
22983 if test x$unsigned != x$signed ; then
22984 { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
22985 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
22986 { (exit 1); exit 1; }; }
22989 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
22990 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
22991 { echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
22992 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6; }
22994 if test "${ac_cv_struct_boundary_int+set}" = set; then
22995 echo $ECHO_N "(cached) $ECHO_C" >&6
22997 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22998 cat >conftest.$ac_ext <<_ACEOF
23001 cat confdefs.h >>conftest.$ac_ext
23002 cat >>conftest.$ac_ext <<_ACEOF
23003 /* end confdefs.h. */
23004 #include "confdefs.h"
23005 #include <sys/types.h>
23006 struct s { char c; int i; };
23011 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
23016 rm -f conftest.$ac_objext
23017 if { (ac_try="$ac_compile"
23018 case "(($ac_try" in
23019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23020 *) ac_try_echo=$ac_try;;
23022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23023 (eval "$ac_compile") 2>conftest.er1
23025 grep -v '^ *+' conftest.er1 >conftest.err
23027 cat conftest.err >&5
23028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029 (exit $ac_status); } && {
23030 test -z "$ac_c_werror_flag" ||
23031 test ! -s conftest.err
23032 } && test -s conftest.$ac_objext; then
23033 ac_cv_struct_boundary_int=$ac_size
23035 echo "$as_me: failed program was:" >&5
23036 sed 's/^/| /' conftest.$ac_ext >&5
23041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23042 if test x$ac_cv_struct_boundary_int != x ; then break; fi
23047 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
23048 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6; }
23049 if test x$ac_cv_struct_boundary_int = x ; then
23050 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
23051 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
23052 { (exit 1); exit 1; }; }
23055 { echo "$as_me:$LINENO: checking size of long int" >&5
23056 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
23057 if test "${ac_cv_sizeof_long_int+set}" = set; then
23058 echo $ECHO_N "(cached) $ECHO_C" >&6
23060 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23061 cat >conftest.$ac_ext <<_ACEOF
23064 cat confdefs.h >>conftest.$ac_ext
23065 cat >>conftest.$ac_ext <<_ACEOF
23066 /* end confdefs.h. */
23067 #include "confdefs.h"
23068 #include <sys/types.h>
23074 switch (0) case 0: case (sizeof (long int) == $ac_size):;
23079 rm -f conftest.$ac_objext
23080 if { (ac_try="$ac_compile"
23081 case "(($ac_try" in
23082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23083 *) ac_try_echo=$ac_try;;
23085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23086 (eval "$ac_compile") 2>conftest.er1
23088 grep -v '^ *+' conftest.er1 >conftest.err
23090 cat conftest.err >&5
23091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092 (exit $ac_status); } && {
23093 test -z "$ac_c_werror_flag" ||
23094 test ! -s conftest.err
23095 } && test -s conftest.$ac_objext; then
23096 ac_cv_sizeof_long_int=$ac_size
23098 echo "$as_me: failed program was:" >&5
23099 sed 's/^/| /' conftest.$ac_ext >&5
23104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23105 if test x$ac_cv_sizeof_long_int != x ; then break; fi
23111 unspecif=$ac_cv_sizeof_long_int
23112 if test x$unspecif = x ; then
23113 { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
23114 echo "$as_me: error: cannot determine a size for long int" >&2;}
23115 { (exit 1); exit 1; }; }
23118 if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
23119 echo $ECHO_N "(cached) $ECHO_C" >&6
23121 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23122 cat >conftest.$ac_ext <<_ACEOF
23125 cat confdefs.h >>conftest.$ac_ext
23126 cat >>conftest.$ac_ext <<_ACEOF
23127 /* end confdefs.h. */
23128 #include "confdefs.h"
23129 #include <sys/types.h>
23135 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
23140 rm -f conftest.$ac_objext
23141 if { (ac_try="$ac_compile"
23142 case "(($ac_try" in
23143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23144 *) ac_try_echo=$ac_try;;
23146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23147 (eval "$ac_compile") 2>conftest.er1
23149 grep -v '^ *+' conftest.er1 >conftest.err
23151 cat conftest.err >&5
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); } && {
23154 test -z "$ac_c_werror_flag" ||
23155 test ! -s conftest.err
23156 } && test -s conftest.$ac_objext; then
23157 ac_cv_sizeof_signed_long_int=$ac_size
23159 echo "$as_me: failed program was:" >&5
23160 sed 's/^/| /' conftest.$ac_ext >&5
23165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23166 if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
23172 signed=$ac_cv_sizeof_signed_long_int
23173 if test x$signed = x ; then
23174 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
23175 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
23176 { (exit 1); exit 1; }; }
23178 if test x$unspecif != x$signed ; then
23179 { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
23180 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
23181 { (exit 1); exit 1; }; }
23184 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
23185 echo $ECHO_N "(cached) $ECHO_C" >&6
23187 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23188 cat >conftest.$ac_ext <<_ACEOF
23191 cat confdefs.h >>conftest.$ac_ext
23192 cat >>conftest.$ac_ext <<_ACEOF
23193 /* end confdefs.h. */
23194 #include "confdefs.h"
23195 #include <sys/types.h>
23201 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
23206 rm -f conftest.$ac_objext
23207 if { (ac_try="$ac_compile"
23208 case "(($ac_try" in
23209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23210 *) ac_try_echo=$ac_try;;
23212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23213 (eval "$ac_compile") 2>conftest.er1
23215 grep -v '^ *+' conftest.er1 >conftest.err
23217 cat conftest.err >&5
23218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23219 (exit $ac_status); } && {
23220 test -z "$ac_c_werror_flag" ||
23221 test ! -s conftest.err
23222 } && test -s conftest.$ac_objext; then
23223 ac_cv_sizeof_unsigned_long_int=$ac_size
23225 echo "$as_me: failed program was:" >&5
23226 sed 's/^/| /' conftest.$ac_ext >&5
23231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23232 if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
23238 unsigned=$ac_cv_sizeof_unsigned_long_int
23239 if test x$unsigned = x ; then
23240 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
23241 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
23242 { (exit 1); exit 1; }; }
23244 if test x$unsigned != x$signed ; then
23245 { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
23246 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
23247 { (exit 1); exit 1; }; }
23250 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
23251 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
23252 { echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
23253 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6; }
23255 if test "${ac_cv_struct_boundary_long_int+set}" = set; then
23256 echo $ECHO_N "(cached) $ECHO_C" >&6
23258 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23259 cat >conftest.$ac_ext <<_ACEOF
23262 cat confdefs.h >>conftest.$ac_ext
23263 cat >>conftest.$ac_ext <<_ACEOF
23264 /* end confdefs.h. */
23265 #include "confdefs.h"
23266 #include <sys/types.h>
23267 struct s { char c; long int i; };
23272 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
23277 rm -f conftest.$ac_objext
23278 if { (ac_try="$ac_compile"
23279 case "(($ac_try" in
23280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23281 *) ac_try_echo=$ac_try;;
23283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23284 (eval "$ac_compile") 2>conftest.er1
23286 grep -v '^ *+' conftest.er1 >conftest.err
23288 cat conftest.err >&5
23289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290 (exit $ac_status); } && {
23291 test -z "$ac_c_werror_flag" ||
23292 test ! -s conftest.err
23293 } && test -s conftest.$ac_objext; then
23294 ac_cv_struct_boundary_long_int=$ac_size
23296 echo "$as_me: failed program was:" >&5
23297 sed 's/^/| /' conftest.$ac_ext >&5
23302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23303 if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
23308 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
23309 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6; }
23310 if test x$ac_cv_struct_boundary_long_int = x ; then
23311 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
23312 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
23313 { (exit 1); exit 1; }; }
23316 { echo "$as_me:$LINENO: checking size of long long int" >&5
23317 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
23318 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
23319 echo $ECHO_N "(cached) $ECHO_C" >&6
23321 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23322 cat >conftest.$ac_ext <<_ACEOF
23325 cat confdefs.h >>conftest.$ac_ext
23326 cat >>conftest.$ac_ext <<_ACEOF
23327 /* end confdefs.h. */
23328 #include "confdefs.h"
23329 #include <sys/types.h>
23335 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
23340 rm -f conftest.$ac_objext
23341 if { (ac_try="$ac_compile"
23342 case "(($ac_try" in
23343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23344 *) ac_try_echo=$ac_try;;
23346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23347 (eval "$ac_compile") 2>conftest.er1
23349 grep -v '^ *+' conftest.er1 >conftest.err
23351 cat conftest.err >&5
23352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353 (exit $ac_status); } && {
23354 test -z "$ac_c_werror_flag" ||
23355 test ! -s conftest.err
23356 } && test -s conftest.$ac_objext; then
23357 ac_cv_sizeof_long_long_int=$ac_size
23359 echo "$as_me: failed program was:" >&5
23360 sed 's/^/| /' conftest.$ac_ext >&5
23365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23366 if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
23372 unspecif=$ac_cv_sizeof_long_long_int
23373 if test x$unspecif = x ; then
23374 { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
23375 echo "$as_me: error: cannot determine a size for long long int" >&2;}
23376 { (exit 1); exit 1; }; }
23379 if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
23380 echo $ECHO_N "(cached) $ECHO_C" >&6
23382 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23383 cat >conftest.$ac_ext <<_ACEOF
23386 cat confdefs.h >>conftest.$ac_ext
23387 cat >>conftest.$ac_ext <<_ACEOF
23388 /* end confdefs.h. */
23389 #include "confdefs.h"
23390 #include <sys/types.h>
23396 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
23401 rm -f conftest.$ac_objext
23402 if { (ac_try="$ac_compile"
23403 case "(($ac_try" in
23404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23405 *) ac_try_echo=$ac_try;;
23407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23408 (eval "$ac_compile") 2>conftest.er1
23410 grep -v '^ *+' conftest.er1 >conftest.err
23412 cat conftest.err >&5
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); } && {
23415 test -z "$ac_c_werror_flag" ||
23416 test ! -s conftest.err
23417 } && test -s conftest.$ac_objext; then
23418 ac_cv_sizeof_signed_long_long_int=$ac_size
23420 echo "$as_me: failed program was:" >&5
23421 sed 's/^/| /' conftest.$ac_ext >&5
23426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23427 if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
23433 signed=$ac_cv_sizeof_signed_long_long_int
23434 if test x$signed = x ; then
23435 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
23436 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
23437 { (exit 1); exit 1; }; }
23439 if test x$unspecif != x$signed ; then
23440 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
23441 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
23442 { (exit 1); exit 1; }; }
23445 if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
23446 echo $ECHO_N "(cached) $ECHO_C" >&6
23448 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23449 cat >conftest.$ac_ext <<_ACEOF
23452 cat confdefs.h >>conftest.$ac_ext
23453 cat >>conftest.$ac_ext <<_ACEOF
23454 /* end confdefs.h. */
23455 #include "confdefs.h"
23456 #include <sys/types.h>
23462 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
23467 rm -f conftest.$ac_objext
23468 if { (ac_try="$ac_compile"
23469 case "(($ac_try" in
23470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23471 *) ac_try_echo=$ac_try;;
23473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23474 (eval "$ac_compile") 2>conftest.er1
23476 grep -v '^ *+' conftest.er1 >conftest.err
23478 cat conftest.err >&5
23479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480 (exit $ac_status); } && {
23481 test -z "$ac_c_werror_flag" ||
23482 test ! -s conftest.err
23483 } && test -s conftest.$ac_objext; then
23484 ac_cv_sizeof_unsigned_long_long_int=$ac_size
23486 echo "$as_me: failed program was:" >&5
23487 sed 's/^/| /' conftest.$ac_ext >&5
23492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23493 if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
23499 unsigned=$ac_cv_sizeof_unsigned_long_long_int
23500 if test x$unsigned = x ; then
23501 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
23502 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
23503 { (exit 1); exit 1; }; }
23505 if test x$unsigned != x$signed ; then
23506 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
23507 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
23508 { (exit 1); exit 1; }; }
23511 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
23512 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6; }
23513 { echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
23514 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6; }
23516 if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
23517 echo $ECHO_N "(cached) $ECHO_C" >&6
23519 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23520 cat >conftest.$ac_ext <<_ACEOF
23523 cat confdefs.h >>conftest.$ac_ext
23524 cat >>conftest.$ac_ext <<_ACEOF
23525 /* end confdefs.h. */
23526 #include "confdefs.h"
23527 #include <sys/types.h>
23528 struct s { char c; long long int i; };
23533 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
23538 rm -f conftest.$ac_objext
23539 if { (ac_try="$ac_compile"
23540 case "(($ac_try" in
23541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23542 *) ac_try_echo=$ac_try;;
23544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23545 (eval "$ac_compile") 2>conftest.er1
23547 grep -v '^ *+' conftest.er1 >conftest.err
23549 cat conftest.err >&5
23550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551 (exit $ac_status); } && {
23552 test -z "$ac_c_werror_flag" ||
23553 test ! -s conftest.err
23554 } && test -s conftest.$ac_objext; then
23555 ac_cv_struct_boundary_long_long_int=$ac_size
23557 echo "$as_me: failed program was:" >&5
23558 sed 's/^/| /' conftest.$ac_ext >&5
23563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23564 if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
23569 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
23570 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6; }
23571 if test x$ac_cv_struct_boundary_long_long_int = x ; then
23572 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
23573 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
23574 { (exit 1); exit 1; }; }
23578 { echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
23579 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6; }
23581 if test "${ac_cv_struct_boundary_float+set}" = set; then
23582 echo $ECHO_N "(cached) $ECHO_C" >&6
23584 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23585 cat >conftest.$ac_ext <<_ACEOF
23588 cat confdefs.h >>conftest.$ac_ext
23589 cat >>conftest.$ac_ext <<_ACEOF
23590 /* end confdefs.h. */
23591 #include "confdefs.h"
23592 #include <sys/types.h>
23593 struct s { char c; float i; };
23598 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
23603 rm -f conftest.$ac_objext
23604 if { (ac_try="$ac_compile"
23605 case "(($ac_try" in
23606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23607 *) ac_try_echo=$ac_try;;
23609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23610 (eval "$ac_compile") 2>conftest.er1
23612 grep -v '^ *+' conftest.er1 >conftest.err
23614 cat conftest.err >&5
23615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23616 (exit $ac_status); } && {
23617 test -z "$ac_c_werror_flag" ||
23618 test ! -s conftest.err
23619 } && test -s conftest.$ac_objext; then
23620 ac_cv_struct_boundary_float=$ac_size
23622 echo "$as_me: failed program was:" >&5
23623 sed 's/^/| /' conftest.$ac_ext >&5
23628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23629 if test x$ac_cv_struct_boundary_float != x ; then break; fi
23634 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
23635 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6; }
23636 if test x$ac_cv_struct_boundary_float = x ; then
23637 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
23638 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
23639 { (exit 1); exit 1; }; }
23641 { echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
23642 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6; }
23644 if test "${ac_cv_struct_boundary_double+set}" = set; then
23645 echo $ECHO_N "(cached) $ECHO_C" >&6
23647 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23648 cat >conftest.$ac_ext <<_ACEOF
23651 cat confdefs.h >>conftest.$ac_ext
23652 cat >>conftest.$ac_ext <<_ACEOF
23653 /* end confdefs.h. */
23654 #include "confdefs.h"
23655 #include <sys/types.h>
23656 struct s { char c; double i; };
23661 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
23666 rm -f conftest.$ac_objext
23667 if { (ac_try="$ac_compile"
23668 case "(($ac_try" in
23669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23670 *) ac_try_echo=$ac_try;;
23672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23673 (eval "$ac_compile") 2>conftest.er1
23675 grep -v '^ *+' conftest.er1 >conftest.err
23677 cat conftest.err >&5
23678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23679 (exit $ac_status); } && {
23680 test -z "$ac_c_werror_flag" ||
23681 test ! -s conftest.err
23682 } && test -s conftest.$ac_objext; then
23683 ac_cv_struct_boundary_double=$ac_size
23685 echo "$as_me: failed program was:" >&5
23686 sed 's/^/| /' conftest.$ac_ext >&5
23691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23692 if test x$ac_cv_struct_boundary_double != x ; then break; fi
23697 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
23698 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6; }
23699 if test x$ac_cv_struct_boundary_double = x ; then
23700 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
23701 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
23702 { (exit 1); exit 1; }; }
23706 { echo "$as_me:$LINENO: checking size of void *" >&5
23707 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
23708 if test "${ac_cv_sizeof_void_p+set}" = set; then
23709 echo $ECHO_N "(cached) $ECHO_C" >&6
23711 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23712 cat >conftest.$ac_ext <<_ACEOF
23715 cat confdefs.h >>conftest.$ac_ext
23716 cat >>conftest.$ac_ext <<_ACEOF
23717 /* end confdefs.h. */
23718 #include "confdefs.h"
23719 #include <sys/types.h>
23725 switch (0) case 0: case (sizeof (void *) == $ac_size):;
23730 rm -f conftest.$ac_objext
23731 if { (ac_try="$ac_compile"
23732 case "(($ac_try" in
23733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23734 *) ac_try_echo=$ac_try;;
23736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23737 (eval "$ac_compile") 2>conftest.er1
23739 grep -v '^ *+' conftest.er1 >conftest.err
23741 cat conftest.err >&5
23742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743 (exit $ac_status); } && {
23744 test -z "$ac_c_werror_flag" ||
23745 test ! -s conftest.err
23746 } && test -s conftest.$ac_objext; then
23747 ac_cv_sizeof_void_p=$ac_size
23749 echo "$as_me: failed program was:" >&5
23750 sed 's/^/| /' conftest.$ac_ext >&5
23755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23756 if test x$ac_cv_sizeof_void_p != x ; then break; fi
23762 if test x$ac_cv_sizeof_void_p = x ; then
23763 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
23764 echo "$as_me: error: cannot determine a size for void *" >&2;}
23765 { (exit 1); exit 1; }; }
23767 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23768 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
23769 { echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
23770 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6; }
23772 if test "${ac_cv_struct_boundary_void_p+set}" = set; then
23773 echo $ECHO_N "(cached) $ECHO_C" >&6
23775 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23776 cat >conftest.$ac_ext <<_ACEOF
23779 cat confdefs.h >>conftest.$ac_ext
23780 cat >>conftest.$ac_ext <<_ACEOF
23781 /* end confdefs.h. */
23782 #include "confdefs.h"
23783 #include <sys/types.h>
23784 struct s { char c; void * i; };
23789 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
23794 rm -f conftest.$ac_objext
23795 if { (ac_try="$ac_compile"
23796 case "(($ac_try" in
23797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23798 *) ac_try_echo=$ac_try;;
23800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23801 (eval "$ac_compile") 2>conftest.er1
23803 grep -v '^ *+' conftest.er1 >conftest.err
23805 cat conftest.err >&5
23806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807 (exit $ac_status); } && {
23808 test -z "$ac_c_werror_flag" ||
23809 test ! -s conftest.err
23810 } && test -s conftest.$ac_objext; then
23811 ac_cv_struct_boundary_void_p=$ac_size
23813 echo "$as_me: failed program was:" >&5
23814 sed 's/^/| /' conftest.$ac_ext >&5
23819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23820 if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
23825 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
23826 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6; }
23827 if test x$ac_cv_struct_boundary_void_p = x ; then
23828 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
23829 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
23830 { (exit 1); exit 1; }; }
23833 { echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
23834 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6; }
23835 if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
23836 echo $ECHO_N "(cached) $ECHO_C" >&6
23838 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23839 cat >conftest.$ac_ext <<_ACEOF
23842 cat confdefs.h >>conftest.$ac_ext
23843 cat >>conftest.$ac_ext <<_ACEOF
23844 /* end confdefs.h. */
23845 #include "confdefs.h"
23846 #include <sys/types.h>
23852 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
23857 rm -f conftest.$ac_objext
23858 if { (ac_try="$ac_compile"
23859 case "(($ac_try" in
23860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23861 *) ac_try_echo=$ac_try;;
23863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23864 (eval "$ac_compile") 2>conftest.er1
23866 grep -v '^ *+' conftest.er1 >conftest.err
23868 cat conftest.err >&5
23869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870 (exit $ac_status); } && {
23871 test -z "$ac_c_werror_flag" ||
23872 test ! -s conftest.err
23873 } && test -s conftest.$ac_objext; then
23874 ac_cv_sizeof_void_LpR_LvoidR=$ac_size
23876 echo "$as_me: failed program was:" >&5
23877 sed 's/^/| /' conftest.$ac_ext >&5
23882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23883 if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
23889 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
23890 { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
23891 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
23892 { (exit 1); exit 1; }; }
23894 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
23895 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6; }
23899 { echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
23900 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6; }
23901 if test x$endian = x1 ; then
23907 trace="$trace_endian"
23909 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
23911 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
23912 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
23913 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
23914 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
23916 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
23917 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
23919 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
23921 # sizeof float/double are not tested since IEEE 754 is assumed.
23922 # Check README.IEEE for rational.
23924 # The numbers after the _ in the arch name are the maximal packing boundary.
23925 # big32_2 means that all data are aligned on a 2 bytes boundary. (ARM)
23926 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
23928 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;;
23929 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;;
23930 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;;
23931 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;;
23933 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;;
23935 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;;
23936 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;;
23937 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;;
23938 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;;
23940 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;;
23941 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;;
23943 if test x$gras_arch = xunknown ; then
23944 { echo "$as_me:$LINENO: result: damnit ($trace)" >&5
23945 echo "${ECHO_T}damnit ($trace)" >&6; }
23946 { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
23947 Please report this architecture trace ($trace) and what it corresponds to." >&5
23948 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
23949 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
23950 { (exit 1); exit 1; }; }
23952 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
23954 cat >>confdefs.h <<_ACEOF
23955 #define GRAS_THISARCH $gras_arch
23958 { echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
23959 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6; }
23961 if test "$gras_size" = 32; then
23962 GRAS_ARCH_32_BITS_TRUE=
23963 GRAS_ARCH_32_BITS_FALSE='#'
23965 GRAS_ARCH_32_BITS_TRUE='#'
23966 GRAS_ARCH_32_BITS_FALSE=
23970 { echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
23971 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6; }
23973 for s in $ac_cv_sizeof_char \
23974 $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
23975 $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
23978 if test $ac_cv_sizeof_max -lt $s ; then
23979 ac_cv_sizeof_max=$s
23982 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
23983 echo "${ECHO_T}$ac_cv_sizeof_max" >&6; }
23985 cat >>confdefs.h <<_ACEOF
23986 #define SIZEOF_MAX $ac_cv_sizeof_max
23991 # Check architecture signature end
23992 { echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
23993 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6; }
23994 cat >conftest.$ac_ext <<_ACEOF
23997 cat confdefs.h >>conftest.$ac_ext
23998 cat >>conftest.$ac_ext <<_ACEOF
23999 /* end confdefs.h. */
24000 #include "confdefs.h"
24001 #include <sys/types.h>
24002 #include <stddef.h> /* offsetof() */
24003 struct s {char c; double d;};
24010 case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
24016 rm -f conftest.$ac_objext
24017 if { (ac_try="$ac_compile"
24018 case "(($ac_try" in
24019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24020 *) ac_try_echo=$ac_try;;
24022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24023 (eval "$ac_compile") 2>conftest.er1
24025 grep -v '^ *+' conftest.er1 >conftest.err
24027 cat conftest.err >&5
24028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24029 (exit $ac_status); } && {
24030 test -z "$ac_c_werror_flag" ||
24031 test ! -s conftest.err
24032 } && test -s conftest.$ac_objext; then
24033 gras_struct_packed=yes
24035 echo "$as_me: failed program was:" >&5
24036 sed 's/^/| /' conftest.$ac_ext >&5
24038 gras_struct_packed=no
24041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24043 { echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
24044 echo "${ECHO_T}$gras_struct_packed" >&6; }
24045 if test x$gras_struct_packed = "xyes" ; then
24046 { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
24047 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
24048 { (exit 1); exit 1; }; }
24051 { echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
24052 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6; }
24053 cat >conftest.$ac_ext <<_ACEOF
24056 cat confdefs.h >>conftest.$ac_ext
24057 cat >>conftest.$ac_ext <<_ACEOF
24058 /* end confdefs.h. */
24059 #include "confdefs.h"
24060 #include <sys/types.h>
24061 #include <stddef.h> /* offsetof() */
24062 struct s {double d; int i; char c;};
24069 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24075 rm -f conftest.$ac_objext
24076 if { (ac_try="$ac_compile"
24077 case "(($ac_try" in
24078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24079 *) ac_try_echo=$ac_try;;
24081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24082 (eval "$ac_compile") 2>conftest.er1
24084 grep -v '^ *+' conftest.er1 >conftest.err
24086 cat conftest.err >&5
24087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24088 (exit $ac_status); } && {
24089 test -z "$ac_c_werror_flag" ||
24090 test ! -s conftest.err
24091 } && test -s conftest.$ac_objext; then
24092 gras_struct_compact=yes
24094 echo "$as_me: failed program was:" >&5
24095 sed 's/^/| /' conftest.$ac_ext >&5
24097 gras_struct_compact=no
24100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24102 { echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
24103 echo "${ECHO_T}$gras_struct_compact" >&6; }
24105 if test x$gras_struct_compact != xyes ; then
24106 { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
24107 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
24108 { (exit 1); exit 1; }; }
24111 cat >>confdefs.h <<_ACEOF
24112 #define GRAS_STRUCT_COMPACT 1
24115 { echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
24116 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6; }
24118 cat >conftest.$ac_ext <<_ACEOF
24121 cat confdefs.h >>conftest.$ac_ext
24122 cat >>conftest.$ac_ext <<_ACEOF
24123 /* end confdefs.h. */
24124 #include "confdefs.h"
24125 #include <sys/types.h>
24126 #include <stddef.h> /* offsetof() */
24127 struct s { double d; int i; char c[6]; };
24134 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24140 rm -f conftest.$ac_objext
24141 if { (ac_try="$ac_compile"
24142 case "(($ac_try" in
24143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24144 *) ac_try_echo=$ac_try;;
24146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24147 (eval "$ac_compile") 2>conftest.er1
24149 grep -v '^ *+' conftest.er1 >conftest.err
24151 cat conftest.err >&5
24152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24153 (exit $ac_status); } && {
24154 test -z "$ac_c_werror_flag" ||
24155 test ! -s conftest.err
24156 } && test -s conftest.$ac_objext; then
24157 gras_array_straddle_struct=yes
24159 echo "$as_me: failed program was:" >&5
24160 sed 's/^/| /' conftest.$ac_ext >&5
24162 gras_array_straddle_struct=no
24165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24167 { echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
24168 echo "${ECHO_T}$gras_array_straddle_struct" >&6; }
24170 if test x$gras_array_straddle_struct = xyes ; then
24172 cat >>confdefs.h <<_ACEOF
24173 #define GRAS_ARRAY_STRADDLE_STRUCT 1
24177 { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
24178 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
24179 { (exit 1); exit 1; }; }
24186 { echo "$as_me:$LINENO: result: " >&5
24187 echo "${ECHO_T}" >&6; }
24188 { echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
24189 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6; }
24194 { echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
24195 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6; }
24196 if test "${ac_cv_check_mcsc+set}" = set; then
24197 echo $ECHO_N "(cached) $ECHO_C" >&6
24200 if test "$cross_compiling" = yes; then
24201 ac_cv_check_mcsc=no
24204 cat >conftest.$ac_ext <<_ACEOF
24207 cat confdefs.h >>conftest.$ac_ext
24208 cat >>conftest.$ac_ext <<_ACEOF
24209 /* end confdefs.h. */
24213 #include <stdlib.h>
24214 #include <ucontext.h>
24216 ucontext_t uc_child;
24217 ucontext_t uc_main;
24219 void child(void *arg)
24221 if (arg != (void *)12345)
24223 if (swapcontext(&uc_child, &uc_main) != 0)
24227 int main(int argc, char *argv[])
24232 /* the default is that it fails */
24233 if ((fp = fopen("conftestval", "w")) == NULL)
24235 fprintf(fp, "no\n");
24238 /* configure a child user-space context */
24239 if ((stack = malloc(64*1024)) == NULL)
24241 if (getcontext(&uc_child) != 0)
24243 uc_child.uc_link = NULL;
24244 uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
24245 uc_child.uc_stack.ss_size = 32*1024;
24246 uc_child.uc_stack.ss_flags = 0;
24247 makecontext(&uc_child, child, 2, (void *)12345);
24249 /* switch into the user context */
24250 if (swapcontext(&uc_main, &uc_child) != 0)
24253 /* Fine, child came home */
24254 if ((fp = fopen("conftestval", "w")) == NULL)
24256 fprintf(fp, "yes\n");
24259 /* die successfully */
24264 rm -f conftest$ac_exeext
24265 if { (ac_try="$ac_link"
24266 case "(($ac_try" in
24267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24268 *) ac_try_echo=$ac_try;;
24270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24271 (eval "$ac_link") 2>&5
24273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24275 { (case "(($ac_try" in
24276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24277 *) ac_try_echo=$ac_try;;
24279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24280 (eval "$ac_try") 2>&5
24282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24283 (exit $ac_status); }; }; then
24284 ac_cv_check_mcsc=`cat conftestval`
24286 echo "$as_me: program exited with status $ac_status" >&5
24287 echo "$as_me: failed program was:" >&5
24288 sed 's/^/| /' conftest.$ac_ext >&5
24290 ( exit $ac_status )
24291 ac_cv_check_mcsc=no
24293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24298 { echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
24299 echo "${ECHO_T}$ac_cv_check_mcsc" >&6; }
24300 if test ".$ac_cv_check_mcsc" = .yes; then
24308 for ac_header in pthread.h
24310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24312 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24315 echo $ECHO_N "(cached) $ECHO_C" >&6
24317 ac_res=`eval echo '${'$as_ac_Header'}'`
24318 { echo "$as_me:$LINENO: result: $ac_res" >&5
24319 echo "${ECHO_T}$ac_res" >&6; }
24321 # Is the header compilable?
24322 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24324 cat >conftest.$ac_ext <<_ACEOF
24327 cat confdefs.h >>conftest.$ac_ext
24328 cat >>conftest.$ac_ext <<_ACEOF
24329 /* end confdefs.h. */
24330 $ac_includes_default
24331 #include <$ac_header>
24333 rm -f conftest.$ac_objext
24334 if { (ac_try="$ac_compile"
24335 case "(($ac_try" in
24336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24337 *) ac_try_echo=$ac_try;;
24339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24340 (eval "$ac_compile") 2>conftest.er1
24342 grep -v '^ *+' conftest.er1 >conftest.err
24344 cat conftest.err >&5
24345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24346 (exit $ac_status); } && {
24347 test -z "$ac_c_werror_flag" ||
24348 test ! -s conftest.err
24349 } && test -s conftest.$ac_objext; then
24350 ac_header_compiler=yes
24352 echo "$as_me: failed program was:" >&5
24353 sed 's/^/| /' conftest.$ac_ext >&5
24355 ac_header_compiler=no
24358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24359 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24360 echo "${ECHO_T}$ac_header_compiler" >&6; }
24362 # Is the header present?
24363 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24364 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24365 cat >conftest.$ac_ext <<_ACEOF
24368 cat confdefs.h >>conftest.$ac_ext
24369 cat >>conftest.$ac_ext <<_ACEOF
24370 /* end confdefs.h. */
24371 #include <$ac_header>
24373 if { (ac_try="$ac_cpp conftest.$ac_ext"
24374 case "(($ac_try" in
24375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24376 *) ac_try_echo=$ac_try;;
24378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24381 grep -v '^ *+' conftest.er1 >conftest.err
24383 cat conftest.err >&5
24384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24385 (exit $ac_status); } >/dev/null && {
24386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24387 test ! -s conftest.err
24389 ac_header_preproc=yes
24391 echo "$as_me: failed program was:" >&5
24392 sed 's/^/| /' conftest.$ac_ext >&5
24394 ac_header_preproc=no
24397 rm -f conftest.err conftest.$ac_ext
24398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24399 echo "${ECHO_T}$ac_header_preproc" >&6; }
24401 # So? What about this header?
24402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24408 ac_header_preproc=yes
24411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24418 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24424 ## -------------------------------------------------- ##
24425 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24426 ## -------------------------------------------------- ##
24428 ) | sed "s/^/$as_me: WARNING: /" >&2
24431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24434 echo $ECHO_N "(cached) $ECHO_C" >&6
24436 eval "$as_ac_Header=\$ac_header_preproc"
24438 ac_res=`eval echo '${'$as_ac_Header'}'`
24439 { echo "$as_me:$LINENO: result: $ac_res" >&5
24440 echo "${ECHO_T}$ac_res" >&6; }
24443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24444 cat >>confdefs.h <<_ACEOF
24445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24452 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24453 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24454 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24455 echo $ECHO_N "(cached) $ECHO_C" >&6
24457 ac_check_lib_save_LIBS=$LIBS
24458 LIBS="-lpthread $LIBS"
24459 cat >conftest.$ac_ext <<_ACEOF
24462 cat confdefs.h >>conftest.$ac_ext
24463 cat >>conftest.$ac_ext <<_ACEOF
24464 /* end confdefs.h. */
24466 /* Override any GCC internal prototype to avoid an error.
24467 Use char because int might match the return type of a GCC
24468 builtin and then its argument prototype would still apply. */
24472 char pthread_create ();
24476 return pthread_create ();
24481 rm -f conftest.$ac_objext conftest$ac_exeext
24482 if { (ac_try="$ac_link"
24483 case "(($ac_try" in
24484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24485 *) ac_try_echo=$ac_try;;
24487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24488 (eval "$ac_link") 2>conftest.er1
24490 grep -v '^ *+' conftest.er1 >conftest.err
24492 cat conftest.err >&5
24493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24494 (exit $ac_status); } && {
24495 test -z "$ac_c_werror_flag" ||
24496 test ! -s conftest.err
24497 } && test -s conftest$ac_exeext &&
24498 $as_test_x conftest$ac_exeext; then
24499 ac_cv_lib_pthread_pthread_create=yes
24501 echo "$as_me: failed program was:" >&5
24502 sed 's/^/| /' conftest.$ac_ext >&5
24504 ac_cv_lib_pthread_pthread_create=no
24507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24508 conftest$ac_exeext conftest.$ac_ext
24509 LIBS=$ac_check_lib_save_LIBS
24511 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24512 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24513 if test $ac_cv_lib_pthread_pthread_create = yes; then
24521 if test ".$mcsc" = .yes; then
24523 elif test ".$pthread" = .yes; then
24526 ac_header=windows.h
24527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24529 windows_context=yes
24531 { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
24532 echo "$as_me: error: no appropriate backend found" >&2;}
24533 { (exit 1); exit 1; }; }
24536 if test x$windows_context = xyes; then
24538 IS_WINDOWS_FALSE='#'
24540 IS_WINDOWS_TRUE='#'
24547 { echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
24548 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6; }
24551 # Check whether --with-pthread was given.
24552 if test "${with_pthread+set}" = set; then
24553 withval=$with_pthread; with_context=pthread
24557 # Check whether --with-pthread was given.
24558 if test "${with_pthread+set}" = set; then
24559 withval=$with_pthread; with_context=pthread
24564 # Check whether --with-context was given.
24565 if test "${with_context+set}" = set; then
24566 withval=$with_context;
24572 if test "x$with_context$mcsc" = "xucontextno" ; then
24573 { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
24574 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
24575 { (exit 77); exit 77; }; }
24578 case $with_context in
24583 auto) with_context=ucontext;;
24584 *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
24585 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
24586 { (exit 1); exit 1; }; } ;;
24589 if test "x$with_context" = "xucontext" ; then
24590 if test ".$mcsc" = .yes; then
24591 { echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
24592 echo "${ECHO_T}found working ucontext. Great!" >&6; }
24594 cat >>confdefs.h <<\_ACEOF
24595 #define CONTEXT_UCONTEXT 1
24599 if test ".$windows_context" = .yes ; then
24600 { echo "$as_me:$LINENO: result: use windows context portability layer." >&5
24601 echo "${ECHO_T}use windows context portability layer." >&6; }
24602 with_context=windows
24604 { echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
24605 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6; }
24606 with_context=pthread
24611 if test "x$with_context" = "xpthreads"; then
24612 with_context=pthread
24614 if test "x$with_context" = "xpthread"; then
24616 for ac_header in pthread.h
24618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24623 echo $ECHO_N "(cached) $ECHO_C" >&6
24625 ac_res=`eval echo '${'$as_ac_Header'}'`
24626 { echo "$as_me:$LINENO: result: $ac_res" >&5
24627 echo "${ECHO_T}$ac_res" >&6; }
24629 # Is the header compilable?
24630 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24632 cat >conftest.$ac_ext <<_ACEOF
24635 cat confdefs.h >>conftest.$ac_ext
24636 cat >>conftest.$ac_ext <<_ACEOF
24637 /* end confdefs.h. */
24638 $ac_includes_default
24639 #include <$ac_header>
24641 rm -f conftest.$ac_objext
24642 if { (ac_try="$ac_compile"
24643 case "(($ac_try" in
24644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24645 *) ac_try_echo=$ac_try;;
24647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24648 (eval "$ac_compile") 2>conftest.er1
24650 grep -v '^ *+' conftest.er1 >conftest.err
24652 cat conftest.err >&5
24653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24654 (exit $ac_status); } && {
24655 test -z "$ac_c_werror_flag" ||
24656 test ! -s conftest.err
24657 } && test -s conftest.$ac_objext; then
24658 ac_header_compiler=yes
24660 echo "$as_me: failed program was:" >&5
24661 sed 's/^/| /' conftest.$ac_ext >&5
24663 ac_header_compiler=no
24666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24667 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24668 echo "${ECHO_T}$ac_header_compiler" >&6; }
24670 # Is the header present?
24671 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24673 cat >conftest.$ac_ext <<_ACEOF
24676 cat confdefs.h >>conftest.$ac_ext
24677 cat >>conftest.$ac_ext <<_ACEOF
24678 /* end confdefs.h. */
24679 #include <$ac_header>
24681 if { (ac_try="$ac_cpp conftest.$ac_ext"
24682 case "(($ac_try" in
24683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24684 *) ac_try_echo=$ac_try;;
24686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24689 grep -v '^ *+' conftest.er1 >conftest.err
24691 cat conftest.err >&5
24692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24693 (exit $ac_status); } >/dev/null && {
24694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24695 test ! -s conftest.err
24697 ac_header_preproc=yes
24699 echo "$as_me: failed program was:" >&5
24700 sed 's/^/| /' conftest.$ac_ext >&5
24702 ac_header_preproc=no
24705 rm -f conftest.err conftest.$ac_ext
24706 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24707 echo "${ECHO_T}$ac_header_preproc" >&6; }
24709 # So? What about this header?
24710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24715 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24716 ac_header_preproc=yes
24719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24722 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24724 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24726 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24730 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24732 ## -------------------------------------------------- ##
24733 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24734 ## -------------------------------------------------- ##
24736 ) | sed "s/^/$as_me: WARNING: /" >&2
24739 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24742 echo $ECHO_N "(cached) $ECHO_C" >&6
24744 eval "$as_ac_Header=\$ac_header_preproc"
24746 ac_res=`eval echo '${'$as_ac_Header'}'`
24747 { echo "$as_me:$LINENO: result: $ac_res" >&5
24748 echo "${ECHO_T}$ac_res" >&6; }
24751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24752 cat >>confdefs.h <<_ACEOF
24753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24761 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24762 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24763 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24764 echo $ECHO_N "(cached) $ECHO_C" >&6
24766 ac_check_lib_save_LIBS=$LIBS
24767 LIBS="-lpthread $LIBS"
24768 cat >conftest.$ac_ext <<_ACEOF
24771 cat confdefs.h >>conftest.$ac_ext
24772 cat >>conftest.$ac_ext <<_ACEOF
24773 /* end confdefs.h. */
24775 /* Override any GCC internal prototype to avoid an error.
24776 Use char because int might match the return type of a GCC
24777 builtin and then its argument prototype would still apply. */
24781 char pthread_create ();
24785 return pthread_create ();
24790 rm -f conftest.$ac_objext conftest$ac_exeext
24791 if { (ac_try="$ac_link"
24792 case "(($ac_try" in
24793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24794 *) ac_try_echo=$ac_try;;
24796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24797 (eval "$ac_link") 2>conftest.er1
24799 grep -v '^ *+' conftest.er1 >conftest.err
24801 cat conftest.err >&5
24802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24803 (exit $ac_status); } && {
24804 test -z "$ac_c_werror_flag" ||
24805 test ! -s conftest.err
24806 } && test -s conftest$ac_exeext &&
24807 $as_test_x conftest$ac_exeext; then
24808 ac_cv_lib_pthread_pthread_create=yes
24810 echo "$as_me: failed program was:" >&5
24811 sed 's/^/| /' conftest.$ac_ext >&5
24813 ac_cv_lib_pthread_pthread_create=no
24816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24817 conftest$ac_exeext conftest.$ac_ext
24818 LIBS=$ac_check_lib_save_LIBS
24820 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24821 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24822 if test $ac_cv_lib_pthread_pthread_create = yes; then
24823 cat >>confdefs.h <<_ACEOF
24824 #define HAVE_LIBPTHREAD 1
24827 LIBS="-lpthread $LIBS"
24830 { { echo "$as_me:$LINENO: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&5
24831 echo "$as_me: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&2;}
24832 { (exit 1); exit 1; }; }
24836 cat >>confdefs.h <<\_ACEOF
24837 #define CONTEXT_THREADS 1
24840 { echo "$as_me:$LINENO: result: You have pthreads and requested for them. Fine." >&5
24841 echo "${ECHO_T}You have pthreads and requested for them. Fine." >&6; }
24843 if test "x$with_context" != xucontext; then
24844 CONTEXT_THREADS_TRUE=
24845 CONTEXT_THREADS_FALSE='#'
24847 CONTEXT_THREADS_TRUE='#'
24848 CONTEXT_THREADS_FALSE=
24853 if test "x$with_context" = "xucontext" ; then
24854 { echo "$as_me:$LINENO: checking for direction of stack growth" >&5
24855 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6; }
24856 if test "${ac_cv_check_stackgrowth+set}" = set; then
24857 echo $ECHO_N "(cached) $ECHO_C" >&6
24861 if test "$cross_compiling" = yes; then
24862 ac_cv_check_stackgrowth=down
24865 cat >conftest.$ac_ext <<_ACEOF
24868 cat confdefs.h >>conftest.$ac_ext
24869 cat >>conftest.$ac_ext <<_ACEOF
24870 /* end confdefs.h. */
24873 #include <stdlib.h>
24874 static int iterate = 10;
24875 static int growsdown(int *x)
24885 int main(int argc, char *argv[])
24889 if ((f = fopen("conftestval", "w")) == NULL)
24891 fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
24898 rm -f conftest$ac_exeext
24899 if { (ac_try="$ac_link"
24900 case "(($ac_try" in
24901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24902 *) ac_try_echo=$ac_try;;
24904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24905 (eval "$ac_link") 2>&5
24907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24909 { (case "(($ac_try" in
24910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24911 *) ac_try_echo=$ac_try;;
24913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24914 (eval "$ac_try") 2>&5
24916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24917 (exit $ac_status); }; }; then
24918 ac_cv_check_stackgrowth=`cat conftestval`
24920 echo "$as_me: program exited with status $ac_status" >&5
24921 echo "$as_me: failed program was:" >&5
24922 sed 's/^/| /' conftest.$ac_ext >&5
24924 ( exit $ac_status )
24925 ac_cv_check_stackgrowth=down
24927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24932 { echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
24933 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6; }
24934 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24940 cat >>confdefs.h <<_ACEOF
24941 #define PTH_STACKGROWTH $val
24945 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24946 PTH_STACK_GROWTH="down"
24948 PTH_STACK_GROWTH="up"
24956 for ac_func in makecontext
24958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24959 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24961 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24962 echo $ECHO_N "(cached) $ECHO_C" >&6
24964 cat >conftest.$ac_ext <<_ACEOF
24967 cat confdefs.h >>conftest.$ac_ext
24968 cat >>conftest.$ac_ext <<_ACEOF
24969 /* end confdefs.h. */
24970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24972 #define $ac_func innocuous_$ac_func
24974 /* System header to define __stub macros and hopefully few prototypes,
24975 which can conflict with char $ac_func (); below.
24976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24977 <limits.h> exists even on freestanding compilers. */
24980 # include <limits.h>
24982 # include <assert.h>
24987 /* Override any GCC internal prototype to avoid an error.
24988 Use char because int might match the return type of a GCC
24989 builtin and then its argument prototype would still apply. */
24994 /* The GNU C library defines this for functions which it implements
24995 to always fail with ENOSYS. Some functions are actually named
24996 something starting with __ and the normal name is an alias. */
24997 #if defined __stub_$ac_func || defined __stub___$ac_func
25004 return $ac_func ();
25009 rm -f conftest.$ac_objext conftest$ac_exeext
25010 if { (ac_try="$ac_link"
25011 case "(($ac_try" in
25012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25013 *) ac_try_echo=$ac_try;;
25015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25016 (eval "$ac_link") 2>conftest.er1
25018 grep -v '^ *+' conftest.er1 >conftest.err
25020 cat conftest.err >&5
25021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022 (exit $ac_status); } && {
25023 test -z "$ac_c_werror_flag" ||
25024 test ! -s conftest.err
25025 } && test -s conftest$ac_exeext &&
25026 $as_test_x conftest$ac_exeext; then
25027 eval "$as_ac_var=yes"
25029 echo "$as_me: failed program was:" >&5
25030 sed 's/^/| /' conftest.$ac_ext >&5
25032 eval "$as_ac_var=no"
25035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25036 conftest$ac_exeext conftest.$ac_ext
25038 ac_res=`eval echo '${'$as_ac_var'}'`
25039 { echo "$as_me:$LINENO: result: $ac_res" >&5
25040 echo "${ECHO_T}$ac_res" >&6; }
25041 if test `eval echo '${'$as_ac_var'}'` = yes; then
25042 cat >>confdefs.h <<_ACEOF
25043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25050 { echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
25051 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6; }
25052 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
25053 echo $ECHO_N "(cached) $ECHO_C" >&6
25056 if test ".$ac_cv_func_makecontext" = .no; then
25057 ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
25060 CFLAGS="$CFLAGS -DTEST_makecontext"
25062 if test "$cross_compiling" = yes; then
25064 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25067 cat >conftest.$ac_ext <<_ACEOF
25070 cat confdefs.h >>conftest.$ac_ext
25071 cat >>conftest.$ac_ext <<_ACEOF
25072 /* end confdefs.h. */
25075 #include <stdlib.h>
25076 #include <string.h>
25077 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25078 #include <sys/types.h>
25079 #include <signal.h>
25080 #include <unistd.h>
25082 #if defined(TEST_makecontext)
25083 #include <ucontext.h>
25092 static volatile char *handler_addr = (char *)0xDEAD;
25093 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25094 static volatile int handler_done = 0;
25095 void handler(int sig)
25097 char garbage[1024];
25100 for (i = 0; i < 1024; i++)
25102 handler_addr = (char *)&dummy;
25107 #if defined(TEST_makecontext)
25108 static ucontext_t uc_handler;
25109 static ucontext_t uc_main;
25112 char garbage[1024];
25115 for (i = 0; i < 1024; i++)
25117 handler_addr = (char *)&dummy;
25118 swapcontext(&uc_handler, &uc_main);
25122 int main(int argc, char *argv[])
25131 skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
25134 for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
25136 skaddr = skbuf+sizeof(union alltypes);
25137 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25139 struct sigaction sa;
25140 #if defined(TEST_sigstack)
25141 struct sigstack ss;
25142 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
25145 struct sigaltstack ss;
25147 #if defined(TEST_sigstack)
25148 ss.ss_sp = (void *)(skaddr + sksize);
25150 if (sigstack(&ss, NULL) < 0)
25152 #elif defined(TEST_sigaltstack)
25153 ss.ss_sp = (void *)(skaddr + sksize);
25154 ss.ss_size = sksize;
25156 if (sigaltstack(&ss, NULL) < 0)
25159 memset((void *)&sa, 0, sizeof(struct sigaction));
25160 sa.sa_handler = handler;
25161 sa.sa_flags = SA_ONSTACK;
25162 sigemptyset(&sa.sa_mask);
25163 sigaction(SIGUSR1, &sa, NULL);
25164 kill(getpid(), SIGUSR1);
25165 while (!handler_done)
25169 #if defined(TEST_makecontext)
25171 if (getcontext(&uc_handler) != 0)
25173 uc_handler.uc_link = NULL;
25174 uc_handler.uc_stack.ss_sp = (void *)(skaddr + sksize);
25175 uc_handler.uc_stack.ss_size = sksize;
25176 uc_handler.uc_stack.ss_flags = 0;
25177 makecontext(&uc_handler, handler, 1);
25178 swapcontext(&uc_main, &uc_handler);
25181 if (handler_addr == (char *)0xDEAD)
25183 if (handler_addr < skaddr+sksize) {
25184 /* stack was placed into lower area */
25185 if (*(skaddr+sksize) != 'A')
25186 sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
25187 sizeof(union alltypes), sizeof(union alltypes));
25189 strcpy(result, "(skaddr)+(sksize),(sksize)");
25192 /* stack was placed into higher area */
25193 if (*(skaddr+sksize*2) != 'A')
25194 sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
25196 strcpy(result, "(skaddr),(sksize)");
25198 if ((f = fopen("conftestval", "w")) == NULL)
25200 fprintf(f, "%s\n", result);
25206 rm -f conftest$ac_exeext
25207 if { (ac_try="$ac_link"
25208 case "(($ac_try" in
25209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25210 *) ac_try_echo=$ac_try;;
25212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25213 (eval "$ac_link") 2>&5
25215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25217 { (case "(($ac_try" in
25218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25219 *) ac_try_echo=$ac_try;;
25221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25222 (eval "$ac_try") 2>&5
25224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225 (exit $ac_status); }; }; then
25227 ac_cv_stacksetup_makecontext=`cat conftestval`
25228 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
25231 echo "$as_me: program exited with status $ac_status" >&5
25232 echo "$as_me: failed program was:" >&5
25233 sed 's/^/| /' conftest.$ac_ext >&5
25235 ( exit $ac_status )
25237 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25248 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
25249 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
25250 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
25251 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
25252 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
25253 { echo "$as_me:$LINENO: result: $type" >&5
25254 echo "${ECHO_T}$type" >&6; }
25255 if test ".$verbose" = .yes; then
25256 { echo "$as_me:$LINENO: result: $pth_skaddr_makecontext" >&5
25257 echo "${ECHO_T} $pth_skaddr_makecontext" >&6; }
25260 if test ".$verbose" = .yes; then
25261 { echo "$as_me:$LINENO: result: $pth_sksize_makecontext" >&5
25262 echo "${ECHO_T} $pth_sksize_makecontext" >&6; }
25268 #########################################
25269 ## Check for libraries extra-dependencies
25273 { echo "$as_me:$LINENO: result: " >&5
25274 echo "${ECHO_T}" >&6; }
25275 { echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
25276 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6; }
25283 if test xpthread=xyes ; then
25284 # if the pthreads are usable
25285 if test "x$with_context" = "xpthread" ; then
25286 # if we use them to implement the xbt_context
25287 SIMGRID_DEP="-lpthread"
25289 # we need them in any case for the gras lib (which is multithreaded), but on windows (of course)
25290 if test "x$with_context" != "xwindows" ; then
25291 GRAS_DEP="-lpthread"
25295 #########################################
25296 ## Build optional modules (gtnets)
25300 # Check whether --with-gtnets was given.
25301 if test "${with_gtnets+set}" = set; then
25302 withval=$with_gtnets; gtnets_path="$withval"
25307 if test "x$gtnets_path" = "xno" ; then
25308 { echo "$as_me:$LINENO: result: Eventually you will come to GTNetS." >&5
25309 echo "${ECHO_T}Eventually you will come to GTNetS." >&6; }
25311 { echo "$as_me:$LINENO: result: ***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. *****" >&5
25312 echo "${ECHO_T}***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. *****" >&6; }
25313 { echo "$as_me:$LINENO: checking for gtnets" >&5
25314 echo $ECHO_N "checking for gtnets... $ECHO_C" >&6; }
25316 ac_cpp='$CXXCPP $CPPFLAGS'
25317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25321 GTNETS_LDFLAGS="-lgtnets -L$gtnets_path/lib"
25322 GTNETS_CPPFLAGS="-I$gtnets_path/include -I$gtnets_path/include/gtnets"
25323 LDFLAGS_SAV=$LDFLAGS
25324 CPPFLAGS_SAV=$CPPFLAGS
25325 CPPFLAGS+=$GTNETS_CPPFLAGS
25326 LDFLAGS+=$GTNETS_LDFLAGS
25327 cat >conftest.$ac_ext <<_ACEOF
25330 cat confdefs.h >>conftest.$ac_ext
25331 cat >>conftest.$ac_ext <<_ACEOF
25332 /* end confdefs.h. */
25333 #include <simulator.h>
25338 Simulator s; s.RunUntilNextCompletion();
25343 rm -f conftest.$ac_objext conftest$ac_exeext
25344 if { (ac_try="$ac_link"
25345 case "(($ac_try" in
25346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25347 *) ac_try_echo=$ac_try;;
25349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25350 (eval "$ac_link") 2>conftest.er1
25352 grep -v '^ *+' conftest.er1 >conftest.err
25354 cat conftest.err >&5
25355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356 (exit $ac_status); } && {
25357 test -z "$ac_cxx_werror_flag" ||
25358 test ! -s conftest.err
25359 } && test -s conftest$ac_exeext &&
25360 $as_test_x conftest$ac_exeext; then
25363 echo "$as_me: failed program was:" >&5
25364 sed 's/^/| /' conftest.$ac_ext >&5
25369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25370 conftest$ac_exeext conftest.$ac_ext
25371 CPPFLAGS=$CPPFLAGS_SAV
25372 LDFLAGS=$LDFLAGS_SAV
25374 ac_cpp='$CPP $CPPFLAGS'
25375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25380 if test "x$gtnets" = xyes ; then
25381 AM_CPPFLAGS="$AM_CPPFLAGS $GTNETS_CPPFLAGS"
25382 SIMGRID_DEP="$SIMGRID_DEP $GTNETS_LDFLAGS"
25383 { echo "$as_me:$LINENO: result: Found working gtnets library." >&5
25384 echo "${ECHO_T}Found working gtnets library." >&6; }
25386 cat >>confdefs.h <<\_ACEOF
25387 #define HAVE_GTNETS 1
25391 { echo "$as_me:$LINENO: result: Could not find any working gtnets library or not patched version" >&5
25392 echo "${ECHO_T}Could not find any working gtnets library or not patched version" >&6; }
25395 if test "x$gtnets" != xno; then
25397 HAVE_GTNETS_FALSE='#'
25399 HAVE_GTNETS_TRUE='#'
25404 #########################################
25405 ## Build optional modules (csdp)
25409 # Check whether --with-csdp was given.
25410 if test "${with_csdp+set}" = set; then
25411 withval=$with_csdp; csdp_path="$withval"
25416 if test "x$csdp_path" = "xno" ; then
25417 { echo "$as_me:$LINENO: result: Eventually you will come to csdp." >&5
25418 echo "${ECHO_T}Eventually you will come to csdp." >&6; }
25420 { echo "$as_me:$LINENO: result: ***** You have decided to use csdp. Let's check whether it works or not *****" >&5
25421 echo "${ECHO_T}***** You have decided to use csdp. Let's check whether it works or not *****" >&6; }
25422 { echo "$as_me:$LINENO: checking for csdp" >&5
25423 echo $ECHO_N "checking for csdp... $ECHO_C" >&6; }
25424 CSDP_LDFLAGS="-L$csdp_path/lib -lsdp -llapack -lblas -lm"
25425 CSDP_CPPFLAGS="-I$csdp_path/include -I$csdp_path/include/csdp"
25427 { echo "$as_me:$LINENO: checking for easy_sdp in -lsdp" >&5
25428 echo $ECHO_N "checking for easy_sdp in -lsdp... $ECHO_C" >&6; }
25429 if test "${ac_cv_lib_sdp_easy_sdp+set}" = set; then
25430 echo $ECHO_N "(cached) $ECHO_C" >&6
25432 ac_check_lib_save_LIBS=$LIBS
25433 LIBS="-lsdp $CSDP_LDFLAGS $LIBS"
25434 cat >conftest.$ac_ext <<_ACEOF
25437 cat confdefs.h >>conftest.$ac_ext
25438 cat >>conftest.$ac_ext <<_ACEOF
25439 /* end confdefs.h. */
25441 /* Override any GCC internal prototype to avoid an error.
25442 Use char because int might match the return type of a GCC
25443 builtin and then its argument prototype would still apply. */
25451 return easy_sdp ();
25456 rm -f conftest.$ac_objext conftest$ac_exeext
25457 if { (ac_try="$ac_link"
25458 case "(($ac_try" in
25459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25460 *) ac_try_echo=$ac_try;;
25462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25463 (eval "$ac_link") 2>conftest.er1
25465 grep -v '^ *+' conftest.er1 >conftest.err
25467 cat conftest.err >&5
25468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469 (exit $ac_status); } && {
25470 test -z "$ac_c_werror_flag" ||
25471 test ! -s conftest.err
25472 } && test -s conftest$ac_exeext &&
25473 $as_test_x conftest$ac_exeext; then
25474 ac_cv_lib_sdp_easy_sdp=yes
25476 echo "$as_me: failed program was:" >&5
25477 sed 's/^/| /' conftest.$ac_ext >&5
25479 ac_cv_lib_sdp_easy_sdp=no
25482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25483 conftest$ac_exeext conftest.$ac_ext
25484 LIBS=$ac_check_lib_save_LIBS
25486 { echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_easy_sdp" >&5
25487 echo "${ECHO_T}$ac_cv_lib_sdp_easy_sdp" >&6; }
25488 if test $ac_cv_lib_sdp_easy_sdp = yes; then
25495 CPPFLAGS_SAV=$CPPFLAGS
25496 CPPFLAGS+=$CSDP_CPPFLAGS
25497 if test "${ac_cv_header_declarations_h+set}" = set; then
25498 { echo "$as_me:$LINENO: checking for declarations.h" >&5
25499 echo $ECHO_N "checking for declarations.h... $ECHO_C" >&6; }
25500 if test "${ac_cv_header_declarations_h+set}" = set; then
25501 echo $ECHO_N "(cached) $ECHO_C" >&6
25503 { echo "$as_me:$LINENO: result: $ac_cv_header_declarations_h" >&5
25504 echo "${ECHO_T}$ac_cv_header_declarations_h" >&6; }
25506 # Is the header compilable?
25507 { echo "$as_me:$LINENO: checking declarations.h usability" >&5
25508 echo $ECHO_N "checking declarations.h usability... $ECHO_C" >&6; }
25509 cat >conftest.$ac_ext <<_ACEOF
25512 cat confdefs.h >>conftest.$ac_ext
25513 cat >>conftest.$ac_ext <<_ACEOF
25514 /* end confdefs.h. */
25515 $ac_includes_default
25516 #include <declarations.h>
25518 rm -f conftest.$ac_objext
25519 if { (ac_try="$ac_compile"
25520 case "(($ac_try" in
25521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25522 *) ac_try_echo=$ac_try;;
25524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25525 (eval "$ac_compile") 2>conftest.er1
25527 grep -v '^ *+' conftest.er1 >conftest.err
25529 cat conftest.err >&5
25530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531 (exit $ac_status); } && {
25532 test -z "$ac_c_werror_flag" ||
25533 test ! -s conftest.err
25534 } && test -s conftest.$ac_objext; then
25535 ac_header_compiler=yes
25537 echo "$as_me: failed program was:" >&5
25538 sed 's/^/| /' conftest.$ac_ext >&5
25540 ac_header_compiler=no
25543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25545 echo "${ECHO_T}$ac_header_compiler" >&6; }
25547 # Is the header present?
25548 { echo "$as_me:$LINENO: checking declarations.h presence" >&5
25549 echo $ECHO_N "checking declarations.h presence... $ECHO_C" >&6; }
25550 cat >conftest.$ac_ext <<_ACEOF
25553 cat confdefs.h >>conftest.$ac_ext
25554 cat >>conftest.$ac_ext <<_ACEOF
25555 /* end confdefs.h. */
25556 #include <declarations.h>
25558 if { (ac_try="$ac_cpp conftest.$ac_ext"
25559 case "(($ac_try" in
25560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25561 *) ac_try_echo=$ac_try;;
25563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25566 grep -v '^ *+' conftest.er1 >conftest.err
25568 cat conftest.err >&5
25569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25570 (exit $ac_status); } >/dev/null && {
25571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25572 test ! -s conftest.err
25574 ac_header_preproc=yes
25576 echo "$as_me: failed program was:" >&5
25577 sed 's/^/| /' conftest.$ac_ext >&5
25579 ac_header_preproc=no
25582 rm -f conftest.err conftest.$ac_ext
25583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25584 echo "${ECHO_T}$ac_header_preproc" >&6; }
25586 # So? What about this header?
25587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25589 { echo "$as_me:$LINENO: WARNING: declarations.h: accepted by the compiler, rejected by the preprocessor!" >&5
25590 echo "$as_me: WARNING: declarations.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25591 { echo "$as_me:$LINENO: WARNING: declarations.h: proceeding with the compiler's result" >&5
25592 echo "$as_me: WARNING: declarations.h: proceeding with the compiler's result" >&2;}
25593 ac_header_preproc=yes
25596 { echo "$as_me:$LINENO: WARNING: declarations.h: present but cannot be compiled" >&5
25597 echo "$as_me: WARNING: declarations.h: present but cannot be compiled" >&2;}
25598 { echo "$as_me:$LINENO: WARNING: declarations.h: check for missing prerequisite headers?" >&5
25599 echo "$as_me: WARNING: declarations.h: check for missing prerequisite headers?" >&2;}
25600 { echo "$as_me:$LINENO: WARNING: declarations.h: see the Autoconf documentation" >&5
25601 echo "$as_me: WARNING: declarations.h: see the Autoconf documentation" >&2;}
25602 { echo "$as_me:$LINENO: WARNING: declarations.h: section \"Present But Cannot Be Compiled\"" >&5
25603 echo "$as_me: WARNING: declarations.h: section \"Present But Cannot Be Compiled\"" >&2;}
25604 { echo "$as_me:$LINENO: WARNING: declarations.h: proceeding with the preprocessor's result" >&5
25605 echo "$as_me: WARNING: declarations.h: proceeding with the preprocessor's result" >&2;}
25606 { echo "$as_me:$LINENO: WARNING: declarations.h: in the future, the compiler will take precedence" >&5
25607 echo "$as_me: WARNING: declarations.h: in the future, the compiler will take precedence" >&2;}
25609 ## -------------------------------------------------- ##
25610 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
25611 ## -------------------------------------------------- ##
25613 ) | sed "s/^/$as_me: WARNING: /" >&2
25616 { echo "$as_me:$LINENO: checking for declarations.h" >&5
25617 echo $ECHO_N "checking for declarations.h... $ECHO_C" >&6; }
25618 if test "${ac_cv_header_declarations_h+set}" = set; then
25619 echo $ECHO_N "(cached) $ECHO_C" >&6
25621 ac_cv_header_declarations_h=$ac_header_preproc
25623 { echo "$as_me:$LINENO: result: $ac_cv_header_declarations_h" >&5
25624 echo "${ECHO_T}$ac_cv_header_declarations_h" >&6; }
25627 if test $ac_cv_header_declarations_h = yes; then
25634 CPPFLAGS=$CPPFLAGS_SAV
25638 if test "x$csdp_lib = xyes" -a "x$csdp_header = xyes" ; then
25643 if test "x$csdp" = xyes; then
25644 AM_CPPFLAGS="$AM_CPPFLAGS $CSDP_CPPFLAGS"
25645 SIMGRID_DEP="$SIMGRID_DEP $CSDP_LDFLAGS"
25646 { echo "$as_me:$LINENO: result: Found working sdp library." >&5
25647 echo "${ECHO_T}Found working sdp library." >&6; }
25649 cat >>confdefs.h <<\_ACEOF
25654 { echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
25655 echo "${ECHO_T}Could not find any working sdp library." >&6; }
25658 if test x$csdp != xno; then
25670 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25671 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
25672 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25673 echo $ECHO_N "(cached) $ECHO_C" >&6
25675 ac_check_lib_save_LIBS=$LIBS
25677 cat >conftest.$ac_ext <<_ACEOF
25680 cat confdefs.h >>conftest.$ac_ext
25681 cat >>conftest.$ac_ext <<_ACEOF
25682 /* end confdefs.h. */
25684 /* Override any GCC internal prototype to avoid an error.
25685 Use char because int might match the return type of a GCC
25686 builtin and then its argument prototype would still apply. */
25690 char gethostbyname ();
25694 return gethostbyname ();
25699 rm -f conftest.$ac_objext conftest$ac_exeext
25700 if { (ac_try="$ac_link"
25701 case "(($ac_try" in
25702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25703 *) ac_try_echo=$ac_try;;
25705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25706 (eval "$ac_link") 2>conftest.er1
25708 grep -v '^ *+' conftest.er1 >conftest.err
25710 cat conftest.err >&5
25711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25712 (exit $ac_status); } && {
25713 test -z "$ac_c_werror_flag" ||
25714 test ! -s conftest.err
25715 } && test -s conftest$ac_exeext &&
25716 $as_test_x conftest$ac_exeext; then
25717 ac_cv_lib_nsl_gethostbyname=yes
25719 echo "$as_me: failed program was:" >&5
25720 sed 's/^/| /' conftest.$ac_ext >&5
25722 ac_cv_lib_nsl_gethostbyname=no
25725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25726 conftest$ac_exeext conftest.$ac_ext
25727 LIBS=$ac_check_lib_save_LIBS
25729 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25730 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
25731 if test $ac_cv_lib_nsl_gethostbyname = yes; then
25732 GRAS_DEP="$GRAS_DEP -lnsl"
25735 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25736 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
25737 if test "${ac_cv_lib_socket_connect+set}" = set; then
25738 echo $ECHO_N "(cached) $ECHO_C" >&6
25740 ac_check_lib_save_LIBS=$LIBS
25741 LIBS="-lsocket $LIBS"
25742 cat >conftest.$ac_ext <<_ACEOF
25745 cat confdefs.h >>conftest.$ac_ext
25746 cat >>conftest.$ac_ext <<_ACEOF
25747 /* end confdefs.h. */
25749 /* Override any GCC internal prototype to avoid an error.
25750 Use char because int might match the return type of a GCC
25751 builtin and then its argument prototype would still apply. */
25764 rm -f conftest.$ac_objext conftest$ac_exeext
25765 if { (ac_try="$ac_link"
25766 case "(($ac_try" in
25767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25768 *) ac_try_echo=$ac_try;;
25770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25771 (eval "$ac_link") 2>conftest.er1
25773 grep -v '^ *+' conftest.er1 >conftest.err
25775 cat conftest.err >&5
25776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777 (exit $ac_status); } && {
25778 test -z "$ac_c_werror_flag" ||
25779 test ! -s conftest.err
25780 } && test -s conftest$ac_exeext &&
25781 $as_test_x conftest$ac_exeext; then
25782 ac_cv_lib_socket_connect=yes
25784 echo "$as_me: failed program was:" >&5
25785 sed 's/^/| /' conftest.$ac_ext >&5
25787 ac_cv_lib_socket_connect=no
25790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25791 conftest$ac_exeext conftest.$ac_ext
25792 LIBS=$ac_check_lib_save_LIBS
25794 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25795 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
25796 if test $ac_cv_lib_socket_connect = yes; then
25797 GRAS_DEP="$GRAS_DEP -lsocket"
25801 { echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
25802 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6; }
25804 *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32";
25805 AM_CPPFLAGS="$AM_CPPFLAGS -DDLL_EXPORT"
25806 cat >>confdefs.h <<\_ACEOF
25807 #define CONTEXT_THREADS 1
25814 if test "x$GRAS_DEP" = x; then
25815 { echo "$as_me:$LINENO: result: none" >&5
25816 echo "${ECHO_T}none" >&6; }
25818 { echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
25819 echo "${ECHO_T}$GRAS_DEP" >&6; }
25823 ##############################################
25824 ## Enhance maintainer mode and SUBST variables
25825 ## (must be placed after any compilation tests since our overprotective flags
25826 ## let some tests fail)
25828 # Check whether we are doing a regular build or a GRAMINE (minimal) one
25829 # Next line is modified by sed when building gramine source tree
25831 if test x$gramine_mode = xyes
25833 USE_MAINTAINER_MODE=no
25835 if test x$gramine_mode != xno; then
25837 GRAMINE_MODE_FALSE='#'
25839 GRAMINE_MODE_TRUE='#'
25840 GRAMINE_MODE_FALSE=
25845 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
25846 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
25847 # Check whether --enable-maintainer-mode was given.
25848 if test "${enable_maintainer_mode+set}" = set; then
25849 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
25851 USE_MAINTAINER_MODE=no
25854 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
25855 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
25856 if test $USE_MAINTAINER_MODE = yes; then
25857 MAINTAINER_MODE_TRUE=
25858 MAINTAINER_MODE_FALSE='#'
25860 MAINTAINER_MODE_TRUE='#'
25861 MAINTAINER_MODE_FALSE=
25864 MAINT=$MAINTAINER_MODE_TRUE
25867 if test x$USE_MAINTAINER_MODE = xyes
25869 # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
25870 enable_compile_warnings=yes
25873 # Check whether --enable-compile-warnings was given.
25874 if test "${enable_compile_warnings+set}" = set; then
25875 enableval=$enable_compile_warnings; enable_compile_warnings=$enableval
25877 enable_compile_warnings=no
25881 # Check whether --enable-compile-optimizations was given.
25882 if test "${enable_compile_optimizations+set}" = set; then
25883 enableval=$enable_compile_optimizations; enable_compile_optimizations=$enableval
25885 enable_compile_optimizations=auto
25889 # AC PROG CC tests whether -g is accepted.
25890 # Cool, but it also tries to set -O2 and -g.
25891 # I don't want it with gcc, but -O3 and -g2, and optimization only when asked by user
25894 if test "$CFLAGS" = "-g -O2" ; then
25897 if test "$CXXFLAGS" = "-g -O2" ; then
25900 if test "$GCJFLAGS" = "-g -O2" ; then
25905 if test "x$enable_compile_warnings" = "xyes" ; then
25906 { echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
25907 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6; }
25909 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25910 case " $CFLAGS " in
25912 *) warnCFLAGS="-Wall -Wunused" ;;
25915 ## -W is not all that useful. And it cannot be controlled
25916 ## with individual -Wno-xxx flags, unlike -Wall
25918 ##Â -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
25919 ## -Wshadow chokes on try{ try{} } constructs
25920 if test "x$enable_compile_warnings" = "xyes"; then
25921 warnCFLAGS=`echo $warnCFLAGS -Wmissing-prototypes -Wmissing-declarations \
25922 -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
25923 -Wno-unused-function -Wno-strict-aliasing \
25926 # -Wno-unused-variable -Wno-unused-label
25929 { echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
25930 echo "${ECHO_T}$warnCFLAGS" >&6; }
25931 # placed before since gcc remembers the last one on conflict
25932 CFLAGS="$warnCFLAGS $CFLAGS"
25935 if test "x$enable_compile_optimizations" = "xyes" ||
25936 test "x$enable_compile_optimizations" = "xauto" ; then
25937 { echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
25938 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6; }
25940 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25941 case " $CFLAGS " in
25943 *) optCFLAGS="$optCFLAGS -O3" ;;
25945 optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
25947 GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
25948 GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
25949 if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" == "x3" ; then
25950 # avoid gcc bug #12828, which apeared in 3.x branch and is fixed in 3.4.0
25951 # but the check would be too complicated to get 3.4.
25952 # Instead, rule out any 3.x compiler.
25954 # Note that the flag didn't exist before gcc 3.0
25955 optCFLAGS="$optCFLAGS -fno-loop-optimize"
25958 { echo "$as_me:$LINENO: result: $optCFLAGS" >&5
25959 echo "${ECHO_T}$optCFLAGS" >&6; }
25960 # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
25961 if test "x$cflags_set" != "xyes" ; then
25962 CFLAGS="$optCFLAGS $CFLAGS"
25966 if test x$lt_cv_prog_gnu_ld = xyes ; then
25967 LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
25984 ##############################################
25985 ## Specific mode for build daemons.
25986 ## (they compile the SVN without having the autotools installed)
25987 # Check whether --enable-botbuild was given.
25988 if test "${enable_botbuild+set}" = set; then
25989 enableval=$enable_botbuild; botbuild=$enableval
25994 if test x$botbuild != xno; then
25995 BOTBUILD_MODE_TRUE=
25996 BOTBUILD_MODE_FALSE='#'
25998 BOTBUILD_MODE_TRUE='#'
25999 BOTBUILD_MODE_FALSE=
26003 if test -e .svn && test x$USE_MAINTAINER_MODE != xyes && test x$botbuild != xyes ; then
26005 echo "ERROR: You have to enable the maintainer mode to compile the SVN."
26006 echo "ERROR: For this, just call configure this way:"
26008 echo "ERROR: ./configure '--enable-maintainer-mode' $ac_configure_args"
26015 { echo "$as_me:$LINENO: result: " >&5
26016 echo "${ECHO_T}" >&6; }
26017 { echo "$as_me:$LINENO: result: ${T_MD}Check for Java bindings...${T_ME}" >&5
26018 echo "${ECHO_T}${T_MD}Check for Java bindings...${T_ME}" >&6; }
26021 # Check whether --enable-java was given.
26022 if test "${enable_java+set}" = set; then
26023 enableval=$enable_java; disable_java=$enableval
26028 { echo "$as_me:$LINENO: checking whether to compile java bindings" >&5
26029 echo $ECHO_N "checking whether to compile java bindings... $ECHO_C" >&6; }
26030 if test "x$disable_java" != "xyes" ; then
26031 use_java="disabled by user"
26033 # Extract the first word of "javac", so it can be a program name with args.
26034 set dummy javac; ac_word=$2
26035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26037 if test "${ac_cv_path_JAVAC+set}" = set; then
26038 echo $ECHO_N "(cached) $ECHO_C" >&6
26042 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
26045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26046 for as_dir in $PATH
26049 test -z "$as_dir" && as_dir=.
26050 for ac_exec_ext in '' $ac_executable_extensions; do
26051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26052 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
26053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26060 test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="`which javac`"
26064 JAVAC=$ac_cv_path_JAVAC
26065 if test -n "$JAVAC"; then
26066 { echo "$as_me:$LINENO: result: $JAVAC" >&5
26067 echo "${ECHO_T}$JAVAC" >&6; }
26069 { echo "$as_me:$LINENO: result: no" >&5
26070 echo "${ECHO_T}no" >&6; }
26074 # Extract the first word of "java ", so it can be a program name with args.
26075 set dummy java ; ac_word=$2
26076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26078 if test "${ac_cv_path_JAVA+set}" = set; then
26079 echo $ECHO_N "(cached) $ECHO_C" >&6
26083 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
26086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26087 for as_dir in $PATH
26090 test -z "$as_dir" && as_dir=.
26091 for ac_exec_ext in '' $ac_executable_extensions; do
26092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26093 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
26094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26101 test -z "$ac_cv_path_JAVA" && ac_cv_path_JAVA="`which java`"
26105 JAVA=$ac_cv_path_JAVA
26106 if test -n "$JAVA"; then
26107 { echo "$as_me:$LINENO: result: $JAVA" >&5
26108 echo "${ECHO_T}$JAVA" >&6; }
26110 { echo "$as_me:$LINENO: result: no" >&5
26111 echo "${ECHO_T}no" >&6; }
26115 # Extract the first word of "jar ", so it can be a program name with args.
26116 set dummy jar ; ac_word=$2
26117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26119 if test "${ac_cv_path_JAR+set}" = set; then
26120 echo $ECHO_N "(cached) $ECHO_C" >&6
26124 ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
26127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26128 for as_dir in $PATH
26131 test -z "$as_dir" && as_dir=.
26132 for ac_exec_ext in '' $ac_executable_extensions; do
26133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26134 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
26135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26142 test -z "$ac_cv_path_JAR" && ac_cv_path_JAR="`which jar`"
26146 JAR=$ac_cv_path_JAR
26147 if test -n "$JAR"; then
26148 { echo "$as_me:$LINENO: result: $JAR" >&5
26149 echo "${ECHO_T}$JAR" >&6; }
26151 { echo "$as_me:$LINENO: result: no" >&5
26152 echo "${ECHO_T}no" >&6; }
26157 for ac_header in jni.h
26159 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26164 echo $ECHO_N "(cached) $ECHO_C" >&6
26166 ac_res=`eval echo '${'$as_ac_Header'}'`
26167 { echo "$as_me:$LINENO: result: $ac_res" >&5
26168 echo "${ECHO_T}$ac_res" >&6; }
26170 # Is the header compilable?
26171 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26172 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26173 cat >conftest.$ac_ext <<_ACEOF
26176 cat confdefs.h >>conftest.$ac_ext
26177 cat >>conftest.$ac_ext <<_ACEOF
26178 /* end confdefs.h. */
26179 $ac_includes_default
26180 #include <$ac_header>
26182 rm -f conftest.$ac_objext
26183 if { (ac_try="$ac_compile"
26184 case "(($ac_try" in
26185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26186 *) ac_try_echo=$ac_try;;
26188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26189 (eval "$ac_compile") 2>conftest.er1
26191 grep -v '^ *+' conftest.er1 >conftest.err
26193 cat conftest.err >&5
26194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26195 (exit $ac_status); } && {
26196 test -z "$ac_c_werror_flag" ||
26197 test ! -s conftest.err
26198 } && test -s conftest.$ac_objext; then
26199 ac_header_compiler=yes
26201 echo "$as_me: failed program was:" >&5
26202 sed 's/^/| /' conftest.$ac_ext >&5
26204 ac_header_compiler=no
26207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26208 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26209 echo "${ECHO_T}$ac_header_compiler" >&6; }
26211 # Is the header present?
26212 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26213 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26214 cat >conftest.$ac_ext <<_ACEOF
26217 cat confdefs.h >>conftest.$ac_ext
26218 cat >>conftest.$ac_ext <<_ACEOF
26219 /* end confdefs.h. */
26220 #include <$ac_header>
26222 if { (ac_try="$ac_cpp conftest.$ac_ext"
26223 case "(($ac_try" in
26224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26225 *) ac_try_echo=$ac_try;;
26227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26230 grep -v '^ *+' conftest.er1 >conftest.err
26232 cat conftest.err >&5
26233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26234 (exit $ac_status); } >/dev/null && {
26235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26236 test ! -s conftest.err
26238 ac_header_preproc=yes
26240 echo "$as_me: failed program was:" >&5
26241 sed 's/^/| /' conftest.$ac_ext >&5
26243 ac_header_preproc=no
26246 rm -f conftest.err conftest.$ac_ext
26247 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26248 echo "${ECHO_T}$ac_header_preproc" >&6; }
26250 # So? What about this header?
26251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26253 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26254 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26256 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26257 ac_header_preproc=yes
26260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26263 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26264 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26265 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26266 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26267 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26270 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26271 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26273 ## -------------------------------------------------- ##
26274 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
26275 ## -------------------------------------------------- ##
26277 ) | sed "s/^/$as_me: WARNING: /" >&2
26280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26283 echo $ECHO_N "(cached) $ECHO_C" >&6
26285 eval "$as_ac_Header=\$ac_header_preproc"
26287 ac_res=`eval echo '${'$as_ac_Header'}'`
26288 { echo "$as_me:$LINENO: result: $ac_res" >&5
26289 echo "${ECHO_T}$ac_res" >&6; }
26292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26293 cat >>confdefs.h <<_ACEOF
26294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26301 if test -n "$JAVAC" \
26302 && test -n "$JAVA" \
26303 && test -n "$JAR" \
26304 && test "x$ac_cv_header_jni_h" = "xyes" ; then
26311 { echo "$as_me:$LINENO: result: $use_java" >&5
26312 echo "${ECHO_T}$use_java" >&6; }
26313 if test "x$use_java" = "xyes"; then
26315 HAVE_JAVA_FALSE='#'
26322 #####################
26323 ## Check for programs
26327 { echo "$as_me:$LINENO: result: " >&5
26328 echo "${ECHO_T}" >&6; }
26329 { echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
26330 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6; }
26332 # Extract the first word of "bash", so it can be a program name with args.
26333 set dummy bash; ac_word=$2
26334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26336 if test "${ac_cv_prog_BASH+set}" = set; then
26337 echo $ECHO_N "(cached) $ECHO_C" >&6
26339 if test -n "$BASH"; then
26340 ac_cv_prog_BASH="$BASH" # Let the user override the test.
26342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26343 for as_dir in $PATH
26346 test -z "$as_dir" && as_dir=.
26347 for ac_exec_ext in '' $ac_executable_extensions; do
26348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26349 ac_cv_prog_BASH="`which bash`"
26350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26357 test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
26360 BASH=$ac_cv_prog_BASH
26361 if test -n "$BASH"; then
26362 { echo "$as_me:$LINENO: result: $BASH" >&5
26363 echo "${ECHO_T}$BASH" >&6; }
26365 { echo "$as_me:$LINENO: result: no" >&5
26366 echo "${ECHO_T}no" >&6; }
26370 WARNING="This file is generated, do not edit"
26374 # Can we rebuild the parsers?
26375 # We really want flex and refuse other lex. So, the parser is portable and
26376 # does not induce extra lib dependency
26377 for ac_prog in flex lex
26379 # Extract the first word of "$ac_prog", so it can be a program name with args.
26380 set dummy $ac_prog; ac_word=$2
26381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26383 if test "${ac_cv_prog_LEX+set}" = set; then
26384 echo $ECHO_N "(cached) $ECHO_C" >&6
26386 if test -n "$LEX"; then
26387 ac_cv_prog_LEX="$LEX" # Let the user override the test.
26389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26390 for as_dir in $PATH
26393 test -z "$as_dir" && as_dir=.
26394 for ac_exec_ext in '' $ac_executable_extensions; do
26395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26396 ac_cv_prog_LEX="$ac_prog"
26397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26406 LEX=$ac_cv_prog_LEX
26407 if test -n "$LEX"; then
26408 { echo "$as_me:$LINENO: result: $LEX" >&5
26409 echo "${ECHO_T}$LEX" >&6; }
26411 { echo "$as_me:$LINENO: result: no" >&5
26412 echo "${ECHO_T}no" >&6; }
26416 test -n "$LEX" && break
26418 test -n "$LEX" || LEX=":"
26420 if test "x$LEX" != "x:"; then
26421 cat >conftest.l <<_ACEOF
26427 e { yyless (input () != 0); }
26428 f { unput (yytext[0]); }
26429 . { BEGIN INITIAL; }
26431 #ifdef YYTEXT_POINTER
26432 extern char *yytext;
26437 return ! yylex () + ! yywrap ();
26440 { (ac_try="$LEX conftest.l"
26441 case "(($ac_try" in
26442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26443 *) ac_try_echo=$ac_try;;
26445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26446 (eval "$LEX conftest.l") 2>&5
26448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26449 (exit $ac_status); }
26450 { echo "$as_me:$LINENO: checking lex output file root" >&5
26451 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
26452 if test "${ac_cv_prog_lex_root+set}" = set; then
26453 echo $ECHO_N "(cached) $ECHO_C" >&6
26456 if test -f lex.yy.c; then
26457 ac_cv_prog_lex_root=lex.yy
26458 elif test -f lexyy.c; then
26459 ac_cv_prog_lex_root=lexyy
26461 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
26462 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
26463 { (exit 1); exit 1; }; }
26466 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
26467 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
26468 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
26470 if test -z "${LEXLIB+set}"; then
26471 { echo "$as_me:$LINENO: checking lex library" >&5
26472 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
26473 if test "${ac_cv_lib_lex+set}" = set; then
26474 echo $ECHO_N "(cached) $ECHO_C" >&6
26478 ac_cv_lib_lex='none needed'
26479 for ac_lib in '' -lfl -ll; do
26480 LIBS="$ac_lib $ac_save_LIBS"
26481 cat >conftest.$ac_ext <<_ACEOF
26482 `cat $LEX_OUTPUT_ROOT.c`
26484 rm -f conftest.$ac_objext conftest$ac_exeext
26485 if { (ac_try="$ac_link"
26486 case "(($ac_try" in
26487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26488 *) ac_try_echo=$ac_try;;
26490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26491 (eval "$ac_link") 2>conftest.er1
26493 grep -v '^ *+' conftest.er1 >conftest.err
26495 cat conftest.err >&5
26496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497 (exit $ac_status); } && {
26498 test -z "$ac_c_werror_flag" ||
26499 test ! -s conftest.err
26500 } && test -s conftest$ac_exeext &&
26501 $as_test_x conftest$ac_exeext; then
26502 ac_cv_lib_lex=$ac_lib
26504 echo "$as_me: failed program was:" >&5
26505 sed 's/^/| /' conftest.$ac_ext >&5
26510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26511 conftest$ac_exeext conftest.$ac_ext
26512 test "$ac_cv_lib_lex" != 'none needed' && break
26517 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
26518 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
26519 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
26523 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
26524 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
26525 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
26526 echo $ECHO_N "(cached) $ECHO_C" >&6
26528 # POSIX says lex can declare yytext either as a pointer or an array; the
26529 # default is implementation-dependent. Figure out which it is, since
26530 # not all implementations provide the %pointer and %array declarations.
26531 ac_cv_prog_lex_yytext_pointer=no
26533 LIBS="$LEXLIB $ac_save_LIBS"
26534 cat >conftest.$ac_ext <<_ACEOF
26535 #define YYTEXT_POINTER 1
26536 `cat $LEX_OUTPUT_ROOT.c`
26538 rm -f conftest.$ac_objext conftest$ac_exeext
26539 if { (ac_try="$ac_link"
26540 case "(($ac_try" in
26541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26542 *) ac_try_echo=$ac_try;;
26544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26545 (eval "$ac_link") 2>conftest.er1
26547 grep -v '^ *+' conftest.er1 >conftest.err
26549 cat conftest.err >&5
26550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551 (exit $ac_status); } && {
26552 test -z "$ac_c_werror_flag" ||
26553 test ! -s conftest.err
26554 } && test -s conftest$ac_exeext &&
26555 $as_test_x conftest$ac_exeext; then
26556 ac_cv_prog_lex_yytext_pointer=yes
26558 echo "$as_me: failed program was:" >&5
26559 sed 's/^/| /' conftest.$ac_ext >&5
26564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26565 conftest$ac_exeext conftest.$ac_ext
26569 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
26570 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
26571 if test $ac_cv_prog_lex_yytext_pointer = yes; then
26573 cat >>confdefs.h <<\_ACEOF
26574 #define YYTEXT_POINTER 1
26578 rm -f conftest.l $LEX_OUTPUT_ROOT.c
26582 if test "$LEX" != flex; then
26583 { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
26584 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
26585 LEX=${am_missing_run}flex
26589 if test "x2.5.30" != "x" ; then
26590 FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
26592 FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
26593 FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
26594 FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
26596 WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
26597 WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
26598 WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
26600 if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
26601 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED" ||
26602 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
26604 { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
26605 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
26606 LEX=${am_missing_run}flex
26610 { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
26611 echo "$as_me: Flex found. Parsers will get updated" >&6;}
26617 # Can we rebuild the xml-lexers from the XML specification?
26618 # if not, simply touch the flex source files (which are distributed in
26619 # tarballs even if generated by flexml) and hope for the best.
26620 # Extract the first word of "flexml", so it can be a program name with args.
26621 set dummy flexml; ac_word=$2
26622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26624 if test "${ac_cv_prog_FLEXML+set}" = set; then
26625 echo $ECHO_N "(cached) $ECHO_C" >&6
26627 if test -n "$FLEXML"; then
26628 ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
26630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26631 for as_dir in $PATH
26634 test -z "$as_dir" && as_dir=.
26635 for ac_exec_ext in '' $ac_executable_extensions; do
26636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26637 ac_cv_prog_FLEXML="`which flexml`"
26638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26645 test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
26648 FLEXML=$ac_cv_prog_FLEXML
26649 if test -n "$FLEXML"; then
26650 { echo "$as_me:$LINENO: result: $FLEXML" >&5
26651 echo "${ECHO_T}$FLEXML" >&6; }
26653 { echo "$as_me:$LINENO: result: no" >&5
26654 echo "${ECHO_T}no" >&6; }
26658 if test x$FLEXML != xNOTFOUND; then
26660 HAVE_FLEXML_FALSE='#'
26662 HAVE_FLEXML_TRUE='#'
26667 if test x$USE_MAINTAINER_MODE = xyes
26669 # Check for doxygen when in maintainer mode since dist* targets fail
26671 # Extract the first word of "doxygen", so it can be a program name with args.
26672 set dummy doxygen; ac_word=$2
26673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26675 if test "${ac_cv_path_DOXYGEN+set}" = set; then
26676 echo $ECHO_N "(cached) $ECHO_C" >&6
26680 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
26683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26684 for as_dir in $PATH
26687 test -z "$as_dir" && as_dir=.
26688 for ac_exec_ext in '' $ac_executable_extensions; do
26689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26690 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
26691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26698 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
26702 DOXYGEN=$ac_cv_path_DOXYGEN
26703 if test -n "$DOXYGEN"; then
26704 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
26705 echo "${ECHO_T}$DOXYGEN" >&6; }
26707 { echo "$as_me:$LINENO: result: no" >&5
26708 echo "${ECHO_T}no" >&6; }
26712 if test x$DOXYGEN = x ; then
26713 { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
26714 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
26715 { (exit 1); exit 1; }; }
26719 # Can we extract really usable backtraces? (also need the popen function)
26720 # Extract the first word of "addr2line", so it can be a program name with args.
26721 set dummy addr2line; ac_word=$2
26722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26724 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
26725 echo $ECHO_N "(cached) $ECHO_C" >&6
26729 ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
26732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26733 for as_dir in $PATH
26736 test -z "$as_dir" && as_dir=.
26737 for ac_exec_ext in '' $ac_executable_extensions; do
26738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26739 ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
26740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26750 ADDR2LINE=$ac_cv_path_ADDR2LINE
26751 if test -n "$ADDR2LINE"; then
26752 { echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
26753 echo "${ECHO_T}$ADDR2LINE" >&6; }
26755 { echo "$as_me:$LINENO: result: no" >&5
26756 echo "${ECHO_T}no" >&6; }
26760 if test x$ADDR2LINE != x ; then
26762 cat >>confdefs.h <<_ACEOF
26763 #define ADDR2LINE "$ADDR2LINE"
26769 # Can we make status line about the compilation result?
26770 # Extract the first word of "md5sum", so it can be a program name with args.
26771 set dummy md5sum; ac_word=$2
26772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26774 if test "${ac_cv_prog_MD5SUM+set}" = set; then
26775 echo $ECHO_N "(cached) $ECHO_C" >&6
26777 if test -n "$MD5SUM"; then
26778 ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
26780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26781 for as_dir in $PATH
26784 test -z "$as_dir" && as_dir=.
26785 for ac_exec_ext in '' $ac_executable_extensions; do
26786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26787 ac_cv_prog_MD5SUM="`which md5sum`"
26788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26797 MD5SUM=$ac_cv_prog_MD5SUM
26798 if test -n "$MD5SUM"; then
26799 { echo "$as_me:$LINENO: result: $MD5SUM" >&5
26800 echo "${ECHO_T}$MD5SUM" >&6; }
26802 { echo "$as_me:$LINENO: result: no" >&5
26803 echo "${ECHO_T}no" >&6; }
26807 if test x$MD5SUM != xno ; then
26808 build_version=`find -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
26809 xargs cat| $MD5SUM | sed 's/ .*$//'`
26811 build_version="no_md5sum_binary"
26813 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
26816 ###################
26817 ## Makes the output
26822 # examples/gras/chord/Makefile examples/gras/chord/test_sg examples/gras/chord/test_rl
26823 # src/amok/Makefile
26826 { echo "$as_me:$LINENO: result: " >&5
26827 echo "${ECHO_T}" >&6; }
26828 { echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
26829 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6; }
26832 # Core of the libraries
26834 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
26837 # Tools being embeeded in gramine (stub generator)
26838 ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile tools/tesh/Makefile"
26842 # GRAMINE_CUT_BEGIN
26844 # Tools NOT being embeeded in gramine
26845 ac_config_files="$ac_config_files tools/graspe-slave"
26850 ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests"
26853 # Teshsuite (testsuite using tesh)
26854 ac_config_files="$ac_config_files teshsuite/Makefile"
26858 ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
26863 # examples/gras/p2p/Makefile
26864 # examples/gras/p2p/chord/Makefile
26865 # examples/gras/p2p/can/Makefile
26867 ac_config_files="$ac_config_files examples/java/Makefile examples/java/basic/Makefile examples/java/comm_time/Makefile examples/java/suspend/Makefile examples/java/ping_pong/Makefile"
26870 ac_config_files="$ac_config_files examples/Makefile examples/msg/Makefile examples/simdag/Makefile 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"
26873 ac_config_files="$ac_config_files src/smpi/smpicc src/smpi/smpirun"
26878 cat >confcache <<\_ACEOF
26879 # This file is a shell script that caches the results of configure
26880 # tests run on this system so they can be shared between configure
26881 # scripts and configure runs, see configure's option --config-cache.
26882 # It is not useful on other systems. If it contains results you don't
26883 # want to keep, you may remove or edit it.
26885 # config.status only pays attention to the cache file if you give it
26886 # the --recheck option to rerun configure.
26888 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26889 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26890 # following values.
26894 # The following way of writing the cache mishandles newlines in values,
26895 # but we know of no workaround that is simple, portable, and efficient.
26896 # So, we kill variables containing newlines.
26897 # Ultrix sh set writes to stderr and can't be redirected directly,
26898 # and sets the high bit in the cache file unless we assign to the vars.
26900 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26901 eval ac_val=\$$ac_var
26905 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26906 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26909 _ | IFS | as_nl) ;; #(
26910 *) $as_unset $ac_var ;;
26916 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26917 *${as_nl}ac_space=\ *)
26918 # `set' does not quote correctly, so add quotes (double-quote
26919 # substitution turns \\\\ into \\, and sed turns \\ into \).
26922 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26925 # `set' quotes correctly as required by POSIX, so do not add quotes.
26926 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26935 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26937 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26939 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26940 if test -w "$cache_file"; then
26941 test "x$cache_file" != "x/dev/null" &&
26942 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26943 echo "$as_me: updating cache $cache_file" >&6;}
26944 cat confcache >$cache_file
26946 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26947 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26952 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26953 # Let make expand exec_prefix.
26954 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26956 DEFS=-DHAVE_CONFIG_H
26960 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26961 # 1. Remove the extension, and $U if already installed.
26962 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26963 ac_i=`echo "$ac_i" | sed "$ac_script"`
26964 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26965 # will be set to the directory where LIBOBJS objects are built.
26966 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26967 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26969 LIBOBJS=$ac_libobjs
26971 LTLIBOBJS=$ac_ltlibobjs
26974 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26975 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26976 Usually this means the macro was only invoked conditionally." >&5
26977 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26978 Usually this means the macro was only invoked conditionally." >&2;}
26979 { (exit 1); exit 1; }; }
26981 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
26982 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
26983 Usually this means the macro was only invoked conditionally." >&5
26984 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
26985 Usually this means the macro was only invoked conditionally." >&2;}
26986 { (exit 1); exit 1; }; }
26988 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26989 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26990 Usually this means the macro was only invoked conditionally." >&5
26991 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26992 Usually this means the macro was only invoked conditionally." >&2;}
26993 { (exit 1); exit 1; }; }
26995 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26996 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26997 Usually this means the macro was only invoked conditionally." >&5
26998 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26999 Usually this means the macro was only invoked conditionally." >&2;}
27000 { (exit 1); exit 1; }; }
27002 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27003 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27004 Usually this means the macro was only invoked conditionally." >&5
27005 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27006 Usually this means the macro was only invoked conditionally." >&2;}
27007 { (exit 1); exit 1; }; }
27009 if test -z "${GRAS_ARCH_32_BITS_TRUE}" && test -z "${GRAS_ARCH_32_BITS_FALSE}"; then
27010 { { echo "$as_me:$LINENO: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
27011 Usually this means the macro was only invoked conditionally." >&5
27012 echo "$as_me: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
27013 Usually this means the macro was only invoked conditionally." >&2;}
27014 { (exit 1); exit 1; }; }
27016 if test -z "${IS_WINDOWS_TRUE}" && test -z "${IS_WINDOWS_FALSE}"; then
27017 { { echo "$as_me:$LINENO: error: conditional \"IS_WINDOWS\" was never defined.
27018 Usually this means the macro was only invoked conditionally." >&5
27019 echo "$as_me: error: conditional \"IS_WINDOWS\" was never defined.
27020 Usually this means the macro was only invoked conditionally." >&2;}
27021 { (exit 1); exit 1; }; }
27023 if test -z "${CONTEXT_THREADS_TRUE}" && test -z "${CONTEXT_THREADS_FALSE}"; then
27024 { { echo "$as_me:$LINENO: error: conditional \"CONTEXT_THREADS\" was never defined.
27025 Usually this means the macro was only invoked conditionally." >&5
27026 echo "$as_me: error: conditional \"CONTEXT_THREADS\" was never defined.
27027 Usually this means the macro was only invoked conditionally." >&2;}
27028 { (exit 1); exit 1; }; }
27030 if test -z "${HAVE_GTNETS_TRUE}" && test -z "${HAVE_GTNETS_FALSE}"; then
27031 { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTNETS\" was never defined.
27032 Usually this means the macro was only invoked conditionally." >&5
27033 echo "$as_me: error: conditional \"HAVE_GTNETS\" was never defined.
27034 Usually this means the macro was only invoked conditionally." >&2;}
27035 { (exit 1); exit 1; }; }
27037 if test -z "${HAVE_SDP_TRUE}" && test -z "${HAVE_SDP_FALSE}"; then
27038 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDP\" was never defined.
27039 Usually this means the macro was only invoked conditionally." >&5
27040 echo "$as_me: error: conditional \"HAVE_SDP\" was never defined.
27041 Usually this means the macro was only invoked conditionally." >&2;}
27042 { (exit 1); exit 1; }; }
27044 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
27045 { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
27046 Usually this means the macro was only invoked conditionally." >&5
27047 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
27048 Usually this means the macro was only invoked conditionally." >&2;}
27049 { (exit 1); exit 1; }; }
27051 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27052 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27053 Usually this means the macro was only invoked conditionally." >&5
27054 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27055 Usually this means the macro was only invoked conditionally." >&2;}
27056 { (exit 1); exit 1; }; }
27058 if test -z "${BOTBUILD_MODE_TRUE}" && test -z "${BOTBUILD_MODE_FALSE}"; then
27059 { { echo "$as_me:$LINENO: error: conditional \"BOTBUILD_MODE\" was never defined.
27060 Usually this means the macro was only invoked conditionally." >&5
27061 echo "$as_me: error: conditional \"BOTBUILD_MODE\" was never defined.
27062 Usually this means the macro was only invoked conditionally." >&2;}
27063 { (exit 1); exit 1; }; }
27065 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
27066 { { echo "$as_me:$LINENO: error: conditional \"HAVE_JAVA\" was never defined.
27067 Usually this means the macro was only invoked conditionally." >&5
27068 echo "$as_me: error: conditional \"HAVE_JAVA\" was never defined.
27069 Usually this means the macro was only invoked conditionally." >&2;}
27070 { (exit 1); exit 1; }; }
27072 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
27073 { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
27074 Usually this means the macro was only invoked conditionally." >&5
27075 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
27076 Usually this means the macro was only invoked conditionally." >&2;}
27077 { (exit 1); exit 1; }; }
27080 : ${CONFIG_STATUS=./config.status}
27081 ac_clean_files_save=$ac_clean_files
27082 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27083 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27084 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27085 cat >$CONFIG_STATUS <<_ACEOF
27087 # Generated by $as_me.
27088 # Run this file to recreate the current configuration.
27089 # Compiler output produced by configure, useful for debugging
27090 # configure, is in config.log if it exists.
27093 ac_cs_recheck=false
27095 SHELL=\${CONFIG_SHELL-$SHELL}
27098 cat >>$CONFIG_STATUS <<\_ACEOF
27099 ## --------------------- ##
27100 ## M4sh Initialization. ##
27101 ## --------------------- ##
27103 # Be more Bourne compatible
27104 DUALCASE=1; export DUALCASE # for MKS sh
27105 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27108 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27109 # is contrary to our usage. Disable this feature.
27110 alias -g '${1+"$@"}'='"$@"'
27111 setopt NO_GLOB_SUBST
27113 case `(set -o) 2>/dev/null` in
27114 *posix*) set -o posix ;;
27123 # Avoid depending upon Character Ranges.
27124 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27125 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27126 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27127 as_cr_digits='0123456789'
27128 as_cr_alnum=$as_cr_Letters$as_cr_digits
27130 # The user is always right.
27131 if test "${PATH_SEPARATOR+set}" != set; then
27132 echo "#! /bin/sh" >conf$$.sh
27133 echo "exit 0" >>conf$$.sh
27135 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27143 # Support unset when possible.
27144 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27152 # We need space, tab and new line, in precisely that order. Quoting is
27153 # there to prevent editors from complaining about space-tab.
27154 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27155 # splitting by setting IFS to empty value.)
27160 # Find who we are. Look in the path if we contain no directory separator.
27162 *[\\/]* ) as_myself=$0 ;;
27163 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27164 for as_dir in $PATH
27167 test -z "$as_dir" && as_dir=.
27168 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27174 # We did not find ourselves, most probably we were run as `sh COMMAND'
27175 # in which case we are not to be found in the path.
27176 if test "x$as_myself" = x; then
27179 if test ! -f "$as_myself"; then
27180 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27181 { (exit 1); exit 1; }
27184 # Work around bugs in pre-3.0 UWIN ksh.
27185 for as_var in ENV MAIL MAILPATH
27186 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27194 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27195 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27196 LC_TELEPHONE LC_TIME
27198 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27199 eval $as_var=C; export $as_var
27201 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27205 # Required to use basename.
27206 if expr a : '\(a\)' >/dev/null 2>&1 &&
27207 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27213 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27214 as_basename=basename
27220 # Name of the executable.
27221 as_me=`$as_basename -- "$0" ||
27222 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27223 X"$0" : 'X\(//\)$' \| \
27224 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27226 sed '/^.*\/\([^/][^/]*\)\/*$/{
27245 as_lineno_1=$LINENO
27246 as_lineno_2=$LINENO
27247 test "x$as_lineno_1" != "x$as_lineno_2" &&
27248 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27250 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27251 # uniformly replaced by the line number. The first 'sed' inserts a
27252 # line-number line after each line using $LINENO; the second 'sed'
27253 # does the real work. The second script uses 'N' to pair each
27254 # line-number line with the line containing $LINENO, and appends
27255 # trailing '-' during substitution so that $LINENO is not a special
27256 # case at line end.
27257 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27258 # scripts with optimization help from Paolo Bonzini. Blame Lee
27259 # E. McMahon (1931-1989) for sed's syntax. :-)
27271 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27274 ' >$as_me.lineno &&
27275 chmod +x "$as_me.lineno" ||
27276 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27277 { (exit 1); exit 1; }; }
27279 # Don't try to exec as it changes $[0], causing all sort of problems
27280 # (the dirname of $[0] is not the place where we might find the
27281 # original and so on. Autoconf is especially sensitive to this).
27282 . "./$as_me.lineno"
27283 # Exit status is that of the last command.
27288 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27294 ECHO_C= ECHO_N= ECHO_T=
27295 case `echo -n x` in
27297 case `echo 'x\c'` in
27298 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27305 if expr a : '\(a\)' >/dev/null 2>&1 &&
27306 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27312 rm -f conf$$ conf$$.exe conf$$.file
27313 if test -d conf$$.dir; then
27314 rm -f conf$$.dir/conf$$.file
27320 if ln -s conf$$.file conf$$ 2>/dev/null; then
27322 # ... but there are two gotchas:
27323 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27324 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27325 # In both cases, we have to default to `cp -p'.
27326 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27328 elif ln conf$$.file conf$$ 2>/dev/null; then
27333 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27334 rmdir conf$$.dir 2>/dev/null
27336 if mkdir -p . 2>/dev/null; then
27339 test -d ./-p && rmdir ./-p
27343 if test -x / >/dev/null 2>&1; then
27344 as_test_x='test -x'
27346 if ls -dL / >/dev/null 2>&1; then
27353 if test -d "$1"; then
27359 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27360 ???[sx]*):;;*)false;;esac;fi
27364 as_executable_p=$as_test_x
27366 # Sed expression to map a string onto a valid CPP name.
27367 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27369 # Sed expression to map a string onto a valid variable name.
27370 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27375 # Save the log message, to keep $[0] and so on meaningful, and to
27376 # report actual input values of CONFIG_FILES etc. instead of their
27377 # values after options handling.
27379 This file was extended by simgrid $as_me 3.3-cvs, which was
27380 generated by GNU Autoconf 2.61. Invocation command line was
27382 CONFIG_FILES = $CONFIG_FILES
27383 CONFIG_HEADERS = $CONFIG_HEADERS
27384 CONFIG_LINKS = $CONFIG_LINKS
27385 CONFIG_COMMANDS = $CONFIG_COMMANDS
27388 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27393 cat >>$CONFIG_STATUS <<_ACEOF
27394 # Files that config.status was made for.
27395 config_files="$ac_config_files"
27396 config_headers="$ac_config_headers"
27397 config_commands="$ac_config_commands"
27401 cat >>$CONFIG_STATUS <<\_ACEOF
27403 \`$as_me' instantiates files from templates according to the
27404 current configuration.
27406 Usage: $0 [OPTIONS] [FILE]...
27408 -h, --help print this help, then exit
27409 -V, --version print version number and configuration settings, then exit
27410 -q, --quiet do not print progress messages
27411 -d, --debug don't remove temporary files
27412 --recheck update $as_me by reconfiguring in the same conditions
27413 --file=FILE[:TEMPLATE]
27414 instantiate the configuration file FILE
27415 --header=FILE[:TEMPLATE]
27416 instantiate the configuration header FILE
27418 Configuration files:
27421 Configuration headers:
27424 Configuration commands:
27427 Report bugs to <bug-autoconf@gnu.org>."
27430 cat >>$CONFIG_STATUS <<_ACEOF
27432 simgrid config.status 3.3-cvs
27433 configured by $0, generated by GNU Autoconf 2.61,
27434 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27436 Copyright (C) 2006 Free Software Foundation, Inc.
27437 This config.status script is free software; the Free Software Foundation
27438 gives unlimited permission to copy, distribute and modify it."
27446 cat >>$CONFIG_STATUS <<\_ACEOF
27447 # If no file are specified by the user, then we need to provide default
27448 # value. By we need to know if files were specified by the user.
27454 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27455 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27466 # Handling of the options.
27467 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27469 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27470 echo "$ac_cs_version"; exit ;;
27471 --debug | --debu | --deb | --de | --d | -d )
27473 --file | --fil | --fi | --f )
27475 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27476 ac_need_defaults=false;;
27477 --header | --heade | --head | --hea )
27479 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27480 ac_need_defaults=false;;
27482 # Conflict between --help and --header
27483 { echo "$as_me: error: ambiguous option: $1
27484 Try \`$0 --help' for more information." >&2
27485 { (exit 1); exit 1; }; };;
27486 --help | --hel | -h )
27487 echo "$ac_cs_usage"; exit ;;
27488 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27489 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27492 # This is an error.
27493 -*) { echo "$as_me: error: unrecognized option: $1
27494 Try \`$0 --help' for more information." >&2
27495 { (exit 1); exit 1; }; } ;;
27497 *) ac_config_targets="$ac_config_targets $1"
27498 ac_need_defaults=false ;;
27504 ac_configure_extra_args=
27506 if $ac_cs_silent; then
27508 ac_configure_extra_args="$ac_configure_extra_args --silent"
27512 cat >>$CONFIG_STATUS <<_ACEOF
27513 if \$ac_cs_recheck; then
27514 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27515 CONFIG_SHELL=$SHELL
27516 export CONFIG_SHELL
27517 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27521 cat >>$CONFIG_STATUS <<\_ACEOF
27525 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27526 ## Running $as_me. ##
27532 cat >>$CONFIG_STATUS <<_ACEOF
27536 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27540 cat >>$CONFIG_STATUS <<\_ACEOF
27542 # Handling of arguments.
27543 for ac_config_target in $ac_config_targets
27545 case $ac_config_target in
27546 "src/gras_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
27547 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27548 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27549 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
27550 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27551 "src/ucontext_stack.h") CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
27552 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
27553 "tools/gras/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
27554 "tools/tesh/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tesh/Makefile" ;;
27555 "tools/graspe-slave") CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
27556 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
27557 "testsuite/run_tests") CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
27558 "teshsuite/Makefile") CONFIG_FILES="$CONFIG_FILES teshsuite/Makefile" ;;
27559 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27560 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
27561 "examples/java/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/Makefile" ;;
27562 "examples/java/basic/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/basic/Makefile" ;;
27563 "examples/java/comm_time/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/comm_time/Makefile" ;;
27564 "examples/java/suspend/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/suspend/Makefile" ;;
27565 "examples/java/ping_pong/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/ping_pong/Makefile" ;;
27566 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
27567 "examples/msg/Makefile") CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
27568 "examples/simdag/Makefile") CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
27569 "examples/gras/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
27570 "examples/gras/ping/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
27571 "examples/gras/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
27572 "examples/gras/spawn/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/spawn/Makefile" ;;
27573 "examples/gras/synchro/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/synchro/Makefile" ;;
27574 "examples/gras/timer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
27575 "examples/gras/chrono/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
27576 "examples/gras/mutual_exclusion/simple_token/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
27577 "examples/gras/mmrpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
27578 "examples/gras/pmm/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
27579 "examples/gras/all2all/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
27580 "examples/amok/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
27581 "src/smpi/smpicc") CONFIG_FILES="$CONFIG_FILES src/smpi/smpicc" ;;
27582 "src/smpi/smpirun") CONFIG_FILES="$CONFIG_FILES src/smpi/smpirun" ;;
27584 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27585 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27586 { (exit 1); exit 1; }; };;
27591 # If the user did not use the arguments to specify the items to instantiate,
27592 # then the envvar interface is used. Set only those that are not.
27593 # We use the long form for the default assignment because of an extremely
27594 # bizarre bug on SunOS 4.1.3.
27595 if $ac_need_defaults; then
27596 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27597 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27598 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27601 # Have a temporary directory for convenience. Make it in the build tree
27602 # simply because there is no reason against having it here, and in addition,
27603 # creating and moving files from /tmp can sometimes cause problems.
27604 # Hook for its removal unless debugging.
27605 # Note that there is a small window in which the directory will not be cleaned:
27606 # after its creation but before its name has been assigned to `$tmp'.
27610 trap 'exit_status=$?
27611 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27613 trap '{ (exit 1); exit 1; }' 1 2 13 15
27615 # Create a (secure) tmp directory for tmp files.
27618 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27619 test -n "$tmp" && test -d "$tmp"
27622 tmp=./conf$$-$RANDOM
27623 (umask 077 && mkdir "$tmp")
27626 echo "$me: cannot create a temporary directory in ." >&2
27627 { (exit 1); exit 1; }
27631 # Set up the sed scripts for CONFIG_FILES section.
27634 # No need to generate the scripts if there are no CONFIG_FILES.
27635 # This happens for instance when ./config.status config.h
27636 if test -n "$CONFIG_FILES"; then
27643 for ac_last_try in false false false false false :; do
27644 cat >conf$$subs.sed <<_ACEOF
27645 SHELL!$SHELL$ac_delim
27646 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27647 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27648 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27649 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27650 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27651 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27652 exec_prefix!$exec_prefix$ac_delim
27653 prefix!$prefix$ac_delim
27654 program_transform_name!$program_transform_name$ac_delim
27655 bindir!$bindir$ac_delim
27656 sbindir!$sbindir$ac_delim
27657 libexecdir!$libexecdir$ac_delim
27658 datarootdir!$datarootdir$ac_delim
27659 datadir!$datadir$ac_delim
27660 sysconfdir!$sysconfdir$ac_delim
27661 sharedstatedir!$sharedstatedir$ac_delim
27662 localstatedir!$localstatedir$ac_delim
27663 includedir!$includedir$ac_delim
27664 oldincludedir!$oldincludedir$ac_delim
27665 docdir!$docdir$ac_delim
27666 infodir!$infodir$ac_delim
27667 htmldir!$htmldir$ac_delim
27668 dvidir!$dvidir$ac_delim
27669 pdfdir!$pdfdir$ac_delim
27670 psdir!$psdir$ac_delim
27671 libdir!$libdir$ac_delim
27672 localedir!$localedir$ac_delim
27673 mandir!$mandir$ac_delim
27674 DEFS!$DEFS$ac_delim
27675 ECHO_C!$ECHO_C$ac_delim
27676 ECHO_N!$ECHO_N$ac_delim
27677 ECHO_T!$ECHO_T$ac_delim
27678 LIBS!$LIBS$ac_delim
27679 build_alias!$build_alias$ac_delim
27680 host_alias!$host_alias$ac_delim
27681 target_alias!$target_alias$ac_delim
27682 build!$build$ac_delim
27683 build_cpu!$build_cpu$ac_delim
27684 build_vendor!$build_vendor$ac_delim
27685 build_os!$build_os$ac_delim
27686 host!$host$ac_delim
27687 host_cpu!$host_cpu$ac_delim
27688 host_vendor!$host_vendor$ac_delim
27689 host_os!$host_os$ac_delim
27690 target!$target$ac_delim
27691 target_cpu!$target_cpu$ac_delim
27692 target_vendor!$target_vendor$ac_delim
27693 target_os!$target_os$ac_delim
27695 GCJFLAGS!$GCJFLAGS$ac_delim
27696 am__leading_dot!$am__leading_dot$ac_delim
27697 DEPDIR!$DEPDIR$ac_delim
27698 am__include!$am__include$ac_delim
27699 am__quote!$am__quote$ac_delim
27700 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27701 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27702 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27703 GCJDEPMODE!$GCJDEPMODE$ac_delim
27704 am__fastdepGCJ_TRUE!$am__fastdepGCJ_TRUE$ac_delim
27705 am__fastdepGCJ_FALSE!$am__fastdepGCJ_FALSE$ac_delim
27706 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27707 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27708 INSTALL_DATA!$INSTALL_DATA$ac_delim
27709 am__isrc!$am__isrc$ac_delim
27710 CYGPATH_W!$CYGPATH_W$ac_delim
27711 PACKAGE!$PACKAGE$ac_delim
27712 VERSION!$VERSION$ac_delim
27713 ACLOCAL!$ACLOCAL$ac_delim
27714 AUTOCONF!$AUTOCONF$ac_delim
27715 AUTOMAKE!$AUTOMAKE$ac_delim
27716 AUTOHEADER!$AUTOHEADER$ac_delim
27717 MAKEINFO!$MAKEINFO$ac_delim
27718 install_sh!$install_sh$ac_delim
27719 STRIP!$STRIP$ac_delim
27720 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27721 mkdir_p!$mkdir_p$ac_delim
27723 SET_MAKE!$SET_MAKE$ac_delim
27724 AMTAR!$AMTAR$ac_delim
27725 am__tar!$am__tar$ac_delim
27726 am__untar!$am__untar$ac_delim
27728 CFLAGS!$CFLAGS$ac_delim
27729 LDFLAGS!$LDFLAGS$ac_delim
27730 CPPFLAGS!$CPPFLAGS$ac_delim
27731 ac_ct_CC!$ac_ct_CC$ac_delim
27732 EXEEXT!$EXEEXT$ac_delim
27733 OBJEXT!$OBJEXT$ac_delim
27734 CCDEPMODE!$CCDEPMODE$ac_delim
27735 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27736 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27737 GREP!$GREP$ac_delim
27738 EGREP!$EGREP$ac_delim
27739 LN_S!$LN_S$ac_delim
27740 ECHO!$ECHO$ac_delim
27744 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27746 elif $ac_last_try; then
27747 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27748 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27749 { (exit 1); exit 1; }; }
27751 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27755 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27756 if test -n "$ac_eof"; then
27757 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27758 ac_eof=`expr $ac_eof + 1`
27761 cat >>$CONFIG_STATUS <<_ACEOF
27762 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27763 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27766 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27767 s/^/s,@/; s/!/@,|#_!!_#|/
27770 s/'"$ac_delim"'$/,g/; t
27772 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27773 ' >>$CONFIG_STATUS <conf$$subs.sed
27774 rm -f conf$$subs.sed
27775 cat >>$CONFIG_STATUS <<_ACEOF
27781 for ac_last_try in false false false false false :; do
27782 cat >conf$$subs.sed <<_ACEOF
27783 RANLIB!$RANLIB$ac_delim
27784 DLLTOOL!$DLLTOOL$ac_delim
27786 OBJDUMP!$OBJDUMP$ac_delim
27789 CXXFLAGS!$CXXFLAGS$ac_delim
27790 ac_ct_CXX!$ac_ct_CXX$ac_delim
27791 CXXDEPMODE!$CXXDEPMODE$ac_delim
27792 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27793 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27794 CXXCPP!$CXXCPP$ac_delim
27795 LIBTOOL!$LIBTOOL$ac_delim
27796 LIBOBJS!$LIBOBJS$ac_delim
27797 GRAS_ARCH_32_BITS_TRUE!$GRAS_ARCH_32_BITS_TRUE$ac_delim
27798 GRAS_ARCH_32_BITS_FALSE!$GRAS_ARCH_32_BITS_FALSE$ac_delim
27799 IS_WINDOWS_TRUE!$IS_WINDOWS_TRUE$ac_delim
27800 IS_WINDOWS_FALSE!$IS_WINDOWS_FALSE$ac_delim
27801 CONTEXT_THREADS_TRUE!$CONTEXT_THREADS_TRUE$ac_delim
27802 CONTEXT_THREADS_FALSE!$CONTEXT_THREADS_FALSE$ac_delim
27803 PTH_STACK_GROWTH!$PTH_STACK_GROWTH$ac_delim
27804 pth_skaddr_makecontext!$pth_skaddr_makecontext$ac_delim
27805 pth_sksize_makecontext!$pth_sksize_makecontext$ac_delim
27806 HAVE_GTNETS_TRUE!$HAVE_GTNETS_TRUE$ac_delim
27807 HAVE_GTNETS_FALSE!$HAVE_GTNETS_FALSE$ac_delim
27808 HAVE_SDP_TRUE!$HAVE_SDP_TRUE$ac_delim
27809 HAVE_SDP_FALSE!$HAVE_SDP_FALSE$ac_delim
27810 SIMGRID_DEP!$SIMGRID_DEP$ac_delim
27811 SMPI_DEP!$SMPI_DEP$ac_delim
27812 GRAS_DEP!$GRAS_DEP$ac_delim
27813 GRAMINE_MODE_TRUE!$GRAMINE_MODE_TRUE$ac_delim
27814 GRAMINE_MODE_FALSE!$GRAMINE_MODE_FALSE$ac_delim
27815 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
27816 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
27817 MAINT!$MAINT$ac_delim
27818 LD_DYNAMIC_FLAGS!$LD_DYNAMIC_FLAGS$ac_delim
27819 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
27820 abs_builddir!$abs_builddir$ac_delim
27821 abs_srcdir!$abs_srcdir$ac_delim
27822 abs_top_builddir!$abs_top_builddir$ac_delim
27823 abs_top_srcdir!$abs_top_srcdir$ac_delim
27824 BOTBUILD_MODE_TRUE!$BOTBUILD_MODE_TRUE$ac_delim
27825 BOTBUILD_MODE_FALSE!$BOTBUILD_MODE_FALSE$ac_delim
27826 JAVAC!$JAVAC$ac_delim
27827 JAVA!$JAVA$ac_delim
27829 HAVE_JAVA_TRUE!$HAVE_JAVA_TRUE$ac_delim
27830 HAVE_JAVA_FALSE!$HAVE_JAVA_FALSE$ac_delim
27831 BASH!$BASH$ac_delim
27832 WARNING!$WARNING$ac_delim
27834 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
27835 LEXLIB!$LEXLIB$ac_delim
27836 FLEXML!$FLEXML$ac_delim
27837 HAVE_FLEXML_TRUE!$HAVE_FLEXML_TRUE$ac_delim
27838 HAVE_FLEXML_FALSE!$HAVE_FLEXML_FALSE$ac_delim
27839 DOXYGEN!$DOXYGEN$ac_delim
27840 ADDR2LINE!$ADDR2LINE$ac_delim
27841 ac_configure_args!$ac_configure_args$ac_delim
27842 MD5SUM!$MD5SUM$ac_delim
27843 build_id!$build_id$ac_delim
27844 LTLIBOBJS!$LTLIBOBJS$ac_delim
27847 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 62; then
27849 elif $ac_last_try; then
27850 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27851 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27852 { (exit 1); exit 1; }; }
27854 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27858 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27859 if test -n "$ac_eof"; then
27860 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27861 ac_eof=`expr $ac_eof + 1`
27864 cat >>$CONFIG_STATUS <<_ACEOF
27865 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27866 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27869 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27870 s/^/s,@/; s/!/@,|#_!!_#|/
27873 s/'"$ac_delim"'$/,g/; t
27875 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27876 ' >>$CONFIG_STATUS <conf$$subs.sed
27877 rm -f conf$$subs.sed
27878 cat >>$CONFIG_STATUS <<_ACEOF
27885 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27886 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27887 # trailing colons and then remove the whole line if VPATH becomes empty
27888 # (actually we leave an empty line to preserve line numbers).
27889 if test "x$srcdir" = x.; then
27890 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27891 s/:*\$(srcdir):*/:/
27892 s/:*\${srcdir}:*/:/
27894 s/^\([^=]*=[ ]*\):*/\1/
27900 cat >>$CONFIG_STATUS <<\_ACEOF
27901 fi # test -n "$CONFIG_FILES"
27904 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
27907 :[FHLC]) ac_mode=$ac_tag; continue;;
27909 case $ac_mode$ac_tag in
27911 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27912 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27913 { (exit 1); exit 1; }; };;
27914 :[FH]-) ac_tag=-:-;;
27915 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27932 -) ac_f="$tmp/stdin";;
27933 *) # Look for the file first in the build tree, then in the source tree
27934 # (if the path is not absolute). The absolute path cannot be DOS-style,
27935 # because $ac_f cannot contain `:'.
27939 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27941 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27942 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27943 { (exit 1); exit 1; }; };;
27945 ac_file_inputs="$ac_file_inputs $ac_f"
27948 # Let's still pretend it is `configure' which instantiates (i.e., don't
27949 # use $as_me), people would be surprised to read:
27950 # /* config.h. Generated by config.status. */
27951 configure_input="Generated from "`IFS=:
27952 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27953 if test x"$ac_file" != x-; then
27954 configure_input="$ac_file. $configure_input"
27955 { echo "$as_me:$LINENO: creating $ac_file" >&5
27956 echo "$as_me: creating $ac_file" >&6;}
27960 *:-:* | *:-) cat >"$tmp/stdin";;
27965 ac_dir=`$as_dirname -- "$ac_file" ||
27966 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27967 X"$ac_file" : 'X\(//\)[^/]' \| \
27968 X"$ac_file" : 'X\(//\)$' \| \
27969 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27975 /^X\(\/\/\)[^/].*/{
27990 -*) as_dir=./$as_dir;;
27992 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27996 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27997 *) as_qdir=$as_dir;;
27999 as_dirs="'$as_qdir' $as_dirs"
28000 as_dir=`$as_dirname -- "$as_dir" ||
28001 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28002 X"$as_dir" : 'X\(//\)[^/]' \| \
28003 X"$as_dir" : 'X\(//\)$' \| \
28004 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28010 /^X\(\/\/\)[^/].*/{
28023 test -d "$as_dir" && break
28025 test -z "$as_dirs" || eval "mkdir $as_dirs"
28026 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28027 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28028 { (exit 1); exit 1; }; }; }
28032 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28034 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28035 # A ".." for each directory in $ac_dir_suffix.
28036 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28037 case $ac_top_builddir_sub in
28038 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28039 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28042 ac_abs_top_builddir=$ac_pwd
28043 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28044 # for backward compatibility:
28045 ac_top_builddir=$ac_top_build_prefix
28048 .) # We are building in place.
28050 ac_top_srcdir=$ac_top_builddir_sub
28051 ac_abs_top_srcdir=$ac_pwd ;;
28052 [\\/]* | ?:[\\/]* ) # Absolute name.
28053 ac_srcdir=$srcdir$ac_dir_suffix;
28054 ac_top_srcdir=$srcdir
28055 ac_abs_top_srcdir=$srcdir ;;
28056 *) # Relative name.
28057 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28058 ac_top_srcdir=$ac_top_build_prefix$srcdir
28059 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28061 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28071 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28072 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28074 ac_MKDIR_P=$MKDIR_P
28076 [\\/$]* | ?:[\\/]* ) ;;
28077 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28081 cat >>$CONFIG_STATUS <<\_ACEOF
28082 # If the template does not know about datarootdir, expand it.
28083 # FIXME: This hack should be removed a few years after 2.60.
28084 ac_datarootdir_hack=; ac_datarootdir_seen=
28086 case `sed -n '/datarootdir/ {
28095 ' $ac_file_inputs` in
28096 *datarootdir*) ac_datarootdir_seen=yes;;
28097 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28098 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28099 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28101 cat >>$CONFIG_STATUS <<_ACEOF
28102 ac_datarootdir_hack='
28103 s&@datadir@&$datadir&g
28104 s&@docdir@&$docdir&g
28105 s&@infodir@&$infodir&g
28106 s&@localedir@&$localedir&g
28107 s&@mandir@&$mandir&g
28108 s&\\\${datarootdir}&$datarootdir&g' ;;
28112 # Neutralize VPATH when `$srcdir' = `.'.
28113 # Shell code in configure.ac might set extrasub.
28114 # FIXME: do we really want to maintain this feature?
28115 cat >>$CONFIG_STATUS <<_ACEOF
28119 cat >>$CONFIG_STATUS <<\_ACEOF
28121 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28122 s&@configure_input@&$configure_input&;t t
28123 s&@top_builddir@&$ac_top_builddir_sub&;t t
28124 s&@srcdir@&$ac_srcdir&;t t
28125 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28126 s&@top_srcdir@&$ac_top_srcdir&;t t
28127 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28128 s&@builddir@&$ac_builddir&;t t
28129 s&@abs_builddir@&$ac_abs_builddir&;t t
28130 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28131 s&@INSTALL@&$ac_INSTALL&;t t
28132 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28133 $ac_datarootdir_hack
28134 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
28136 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28137 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28138 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28139 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28140 which seems to be undefined. Please make sure it is defined." >&5
28141 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28142 which seems to be undefined. Please make sure it is defined." >&2;}
28146 -) cat "$tmp/out"; rm -f "$tmp/out";;
28147 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28156 # Transform confdefs.h into a sed script `conftest.defines', that
28157 # substitutes the proper values into config.h.in to produce config.h.
28158 rm -f conftest.defines conftest.tail
28159 # First, append a space to every undef/define line, to ease matching.
28160 echo 's/$/ /' >conftest.defines
28161 # Then, protect against being on the right side of a sed subst, or in
28162 # an unquoted here document, in config.status. If some macros were
28163 # called several times there might be several #defines for the same
28164 # symbol, which is useless. But do not sort them, since the last
28165 # AC_DEFINE must be honored.
28166 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28167 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28168 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28169 # PARAMS is the parameter list in the macro definition--in most cases, it's
28170 # just an empty string.
28171 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
28172 ac_dB='\\)[ (].*,\\1define\\2'
28180 s/^[ ]*#[ ]*define[ ][ ]*//
28185 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28186 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28187 ' >>conftest.defines
28189 # Remove the space that was appended to ease matching.
28190 # Then replace #undef with comments. This is necessary, for
28191 # example, in the case of _POSIX_SOURCE, which is predefined and required
28192 # on some systems where configure will not decide to define it.
28193 # (The regexp can be short, since the line contains either #define or #undef.)
28195 s,^[ #]*u.*,/* & */,' >>conftest.defines
28197 # Break up conftest.defines:
28198 ac_max_sed_lines=50
28200 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28201 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28202 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28204 ac_in='$ac_file_inputs'
28205 ac_out='"$tmp/out1"'
28206 ac_nxt='"$tmp/out2"'
28210 # Write a here document:
28211 cat >>$CONFIG_STATUS <<_ACEOF
28212 # First, check the format of the line:
28213 cat >"\$tmp/defines.sed" <<\\CEOF
28214 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
28215 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
28219 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28221 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28222 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28223 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28224 grep . conftest.tail >/dev/null || break
28225 rm -f conftest.defines
28226 mv conftest.tail conftest.defines
28228 rm -f conftest.defines conftest.tail
28230 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28231 cat >>$CONFIG_STATUS <<\_ACEOF
28232 if test x"$ac_file" != x-; then
28233 echo "/* $configure_input */" >"$tmp/config.h"
28234 cat "$ac_result" >>"$tmp/config.h"
28235 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28236 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28237 echo "$as_me: $ac_file is unchanged" >&6;}
28240 mv "$tmp/config.h" $ac_file
28243 echo "/* $configure_input */"
28247 # Compute $ac_file's index in $config_headers.
28249 for _am_header in $config_headers :; do
28250 case $_am_header in
28251 $ac_file | $ac_file:* )
28254 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28257 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
28258 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28259 X$ac_file : 'X\(//\)[^/]' \| \
28260 X$ac_file : 'X\(//\)$' \| \
28261 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
28263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28267 /^X\(\/\/\)[^/].*/{
28279 s/.*/./; q'`/stamp-h$_am_stamp_count
28282 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
28283 echo "$as_me: executing $ac_file commands" >&6;}
28288 case $ac_file$ac_mode in
28289 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28290 # Strip MF so we end up with the name of the file.
28291 mf=`echo "$mf" | sed -e 's/:.*$//'`
28292 # Check whether this is an Automake generated Makefile or not.
28293 # We used to match only the files named `Makefile.in', but
28294 # some people rename them; so instead we look at the file content.
28295 # Grep'ing the first line is not enough: some people post-process
28296 # each Makefile.in and add a new line on top of each file to say so.
28297 # Grep'ing the whole file is not good either: AIX grep has a line
28298 # limit of 2048, but all sed's we know have understand at least 4000.
28299 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
28300 dirpart=`$as_dirname -- "$mf" ||
28301 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28302 X"$mf" : 'X\(//\)[^/]' \| \
28303 X"$mf" : 'X\(//\)$' \| \
28304 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28310 /^X\(\/\/\)[^/].*/{
28326 # Extract the definition of DEPDIR, am__include, and am__quote
28327 # from the Makefile without running `make'.
28328 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28329 test -z "$DEPDIR" && continue
28330 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28331 test -z "am__include" && continue
28332 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28333 # When using ansi2knr, U may be empty or an underscore; expand it
28334 U=`sed -n 's/^U = //p' < "$mf"`
28335 # Find all dependency output files, they are included files with
28336 # $(DEPDIR) in their names. We invoke sed twice because it is the
28337 # simplest approach to changing $(DEPDIR) to its actual value in the
28339 for file in `sed -n "
28340 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28341 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28342 # Make sure the directory exists.
28343 test -f "$dirpart/$file" && continue
28344 fdir=`$as_dirname -- "$file" ||
28345 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28346 X"$file" : 'X\(//\)[^/]' \| \
28347 X"$file" : 'X\(//\)$' \| \
28348 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28354 /^X\(\/\/\)[^/].*/{
28367 { as_dir=$dirpart/$fdir
28369 -*) as_dir=./$as_dir;;
28371 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28375 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28376 *) as_qdir=$as_dir;;
28378 as_dirs="'$as_qdir' $as_dirs"
28379 as_dir=`$as_dirname -- "$as_dir" ||
28380 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28381 X"$as_dir" : 'X\(//\)[^/]' \| \
28382 X"$as_dir" : 'X\(//\)$' \| \
28383 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28389 /^X\(\/\/\)[^/].*/{
28402 test -d "$as_dir" && break
28404 test -z "$as_dirs" || eval "mkdir $as_dirs"
28405 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28406 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28407 { (exit 1); exit 1; }; }; }
28408 # echo "creating $dirpart/$file"
28409 echo '# dummy' > "$dirpart/$file"
28413 "tools/graspe-slave":F)
28415 tools/graspe-slave tools/graspe-master \
28417 test -e $file && chmod +x $file; \
28420 "testsuite/Makefile":F)
28422 testsuite/run_tests \
28424 test -e $file && chmod +x $file; \
28427 "testsuite/run_tests":F)
28429 testsuite/run_tests \
28431 test -e $file && chmod +x $file; \
28439 { (exit 0); exit 0; }
28441 chmod +x $CONFIG_STATUS
28442 ac_clean_files=$ac_clean_files_save
28445 # configure is writing to config.log, and then calls config.status.
28446 # config.status does its own redirection, appending to config.log.
28447 # Unfortunately, on DOS this fails, as config.log is still kept open
28448 # by configure, so config.status won't be able to write to it; its
28449 # output is simply discarded. So we exec the FD to /dev/null,
28450 # effectively closing config.log, so it can be properly (re)opened and
28451 # appended to by config.status. When coming back to configure, we
28452 # need to make the FD available again.
28453 if test "$no_create" != yes; then
28455 ac_config_status_args=
28456 test "$silent" = yes &&
28457 ac_config_status_args="$ac_config_status_args --quiet"
28459 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28461 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28462 # would make configure fail if this is the last instruction.
28463 $ac_cs_success || { (exit 1); exit 1; }
28469 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
28471 Compiler: ${CC} (version: ${GCC_VERSION})
28474 CPPFlags: ${CPPFLAGS}
28475 LDFlags: ${LDFLAGS}
28477 Context backend: ${with_context}
28478 Compile Java: ${use_java}
28480 Maintainer mode: ${USE_MAINTAINER_MODE}
28483 if test x$botbuild = xyes ; then
28484 echo " This is a bot build. Do not specify --enable-botbuild if you are not a bot."
28488 if test -e .svn && test x$USE_MAINTAINER_MODE != xyes && test x$botbuild = xyes ; then
28490 echo "WARNING: You are compiling the SVN in botbuild mode. If you are not a daemon, don't do so. "
28491 echo "WARNING: Remove the --enable-botbuild from your configure line, and add --enable-maintainer-mode instead."
28493 echo "WARNING: You won't be able to build archives until then (make dist is likely to fail). "
28497 echo $build_id > stamp.configure