2 # From configure.ac Revision: 5053 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for simgrid 3.3-svn.
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-svn'
735 PACKAGE_STRING='simgrid 3.3-svn'
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
889 GRAS_ARCH_32_BITS_TRUE
890 GRAS_ARCH_32_BITS_FALSE
894 CONTEXT_THREADS_FALSE
896 pth_skaddr_makecontext
897 pth_sksize_makecontext
908 MAINTAINER_MODE_FALSE
938 ac_precious_vars='build_alias
953 # Initialize some variables set by options.
955 ac_init_version=false
956 # The variables have the same names as the options, with
957 # dashes changed to underlines.
965 program_transform_name=s,x,x,
973 # Installation directory options.
974 # These are left unexpanded so users can "make install exec_prefix=/foo"
975 # and all the variables that are supposed to be based on exec_prefix
976 # by default will actually change.
977 # Use braces instead of parens because sh, perl, etc. also accept them.
978 # (The list follows the same order as the GNU Coding Standards.)
979 bindir='${exec_prefix}/bin'
980 sbindir='${exec_prefix}/sbin'
981 libexecdir='${exec_prefix}/libexec'
982 datarootdir='${prefix}/share'
983 datadir='${datarootdir}'
984 sysconfdir='${prefix}/etc'
985 sharedstatedir='${prefix}/com'
986 localstatedir='${prefix}/var'
987 includedir='${prefix}/include'
988 oldincludedir='/usr/include'
989 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
990 infodir='${datarootdir}/info'
995 libdir='${exec_prefix}/lib'
996 localedir='${datarootdir}/locale'
997 mandir='${datarootdir}/man'
1003 # If the previous option needs an argument, assign it.
1004 if test -n "$ac_prev"; then
1005 eval $ac_prev=\$ac_option
1011 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1015 # Accept the important Cygnus configure options, so we can diagnose typos.
1017 case $ac_dashdash$ac_option in
1021 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1023 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1024 bindir=$ac_optarg ;;
1026 -build | --build | --buil | --bui | --bu)
1027 ac_prev=build_alias ;;
1028 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1029 build_alias=$ac_optarg ;;
1031 -cache-file | --cache-file | --cache-fil | --cache-fi \
1032 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1033 ac_prev=cache_file ;;
1034 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1035 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1036 cache_file=$ac_optarg ;;
1038 --config-cache | -C)
1039 cache_file=config.cache ;;
1041 -datadir | --datadir | --datadi | --datad)
1043 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1044 datadir=$ac_optarg ;;
1046 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1047 | --dataroo | --dataro | --datar)
1048 ac_prev=datarootdir ;;
1049 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1050 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1051 datarootdir=$ac_optarg ;;
1053 -disable-* | --disable-*)
1054 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1057 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1058 { (exit 1); exit 1; }; }
1059 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1060 eval enable_$ac_feature=no ;;
1062 -docdir | --docdir | --docdi | --doc | --do)
1064 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1065 docdir=$ac_optarg ;;
1067 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1069 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1070 dvidir=$ac_optarg ;;
1072 -enable-* | --enable-*)
1073 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1076 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1077 { (exit 1); exit 1; }; }
1078 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1079 eval enable_$ac_feature=\$ac_optarg ;;
1081 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083 | --exec | --exe | --ex)
1084 ac_prev=exec_prefix ;;
1085 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087 | --exec=* | --exe=* | --ex=*)
1088 exec_prefix=$ac_optarg ;;
1090 -gas | --gas | --ga | --g)
1091 # Obsolete; use --with-gas.
1094 -help | --help | --hel | --he | -h)
1095 ac_init_help=long ;;
1096 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097 ac_init_help=recursive ;;
1098 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099 ac_init_help=short ;;
1101 -host | --host | --hos | --ho)
1102 ac_prev=host_alias ;;
1103 -host=* | --host=* | --hos=* | --ho=*)
1104 host_alias=$ac_optarg ;;
1106 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1108 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1110 htmldir=$ac_optarg ;;
1112 -includedir | --includedir | --includedi | --included | --include \
1113 | --includ | --inclu | --incl | --inc)
1114 ac_prev=includedir ;;
1115 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116 | --includ=* | --inclu=* | --incl=* | --inc=*)
1117 includedir=$ac_optarg ;;
1119 -infodir | --infodir | --infodi | --infod | --info | --inf)
1121 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122 infodir=$ac_optarg ;;
1124 -libdir | --libdir | --libdi | --libd)
1126 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127 libdir=$ac_optarg ;;
1129 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130 | --libexe | --libex | --libe)
1131 ac_prev=libexecdir ;;
1132 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133 | --libexe=* | --libex=* | --libe=*)
1134 libexecdir=$ac_optarg ;;
1136 -localedir | --localedir | --localedi | --localed | --locale)
1137 ac_prev=localedir ;;
1138 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139 localedir=$ac_optarg ;;
1141 -localstatedir | --localstatedir | --localstatedi | --localstated \
1142 | --localstate | --localstat | --localsta | --localst | --locals)
1143 ac_prev=localstatedir ;;
1144 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146 localstatedir=$ac_optarg ;;
1148 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1150 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151 mandir=$ac_optarg ;;
1153 -nfp | --nfp | --nf)
1154 # Obsolete; use --without-fp.
1157 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158 | --no-cr | --no-c | -n)
1161 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1165 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167 | --oldin | --oldi | --old | --ol | --o)
1168 ac_prev=oldincludedir ;;
1169 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172 oldincludedir=$ac_optarg ;;
1174 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1176 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177 prefix=$ac_optarg ;;
1179 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180 | --program-pre | --program-pr | --program-p)
1181 ac_prev=program_prefix ;;
1182 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184 program_prefix=$ac_optarg ;;
1186 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187 | --program-suf | --program-su | --program-s)
1188 ac_prev=program_suffix ;;
1189 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191 program_suffix=$ac_optarg ;;
1193 -program-transform-name | --program-transform-name \
1194 | --program-transform-nam | --program-transform-na \
1195 | --program-transform-n | --program-transform- \
1196 | --program-transform | --program-transfor \
1197 | --program-transfo | --program-transf \
1198 | --program-trans | --program-tran \
1199 | --progr-tra | --program-tr | --program-t)
1200 ac_prev=program_transform_name ;;
1201 -program-transform-name=* | --program-transform-name=* \
1202 | --program-transform-nam=* | --program-transform-na=* \
1203 | --program-transform-n=* | --program-transform-=* \
1204 | --program-transform=* | --program-transfor=* \
1205 | --program-transfo=* | --program-transf=* \
1206 | --program-trans=* | --program-tran=* \
1207 | --progr-tra=* | --program-tr=* | --program-t=*)
1208 program_transform_name=$ac_optarg ;;
1210 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1212 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213 pdfdir=$ac_optarg ;;
1215 -psdir | --psdir | --psdi | --psd | --ps)
1217 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221 | -silent | --silent | --silen | --sile | --sil)
1224 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1226 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1228 sbindir=$ac_optarg ;;
1230 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232 | --sharedst | --shareds | --shared | --share | --shar \
1234 ac_prev=sharedstatedir ;;
1235 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1239 sharedstatedir=$ac_optarg ;;
1241 -site | --site | --sit)
1243 -site=* | --site=* | --sit=*)
1246 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1248 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249 srcdir=$ac_optarg ;;
1251 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252 | --syscon | --sysco | --sysc | --sys | --sy)
1253 ac_prev=sysconfdir ;;
1254 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256 sysconfdir=$ac_optarg ;;
1258 -target | --target | --targe | --targ | --tar | --ta | --t)
1259 ac_prev=target_alias ;;
1260 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261 target_alias=$ac_optarg ;;
1263 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1266 -version | --version | --versio | --versi | --vers | -V)
1267 ac_init_version=: ;;
1270 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1273 { echo "$as_me: error: invalid package name: $ac_package" >&2
1274 { (exit 1); exit 1; }; }
1275 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1276 eval with_$ac_package=\$ac_optarg ;;
1278 -without-* | --without-*)
1279 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1282 { echo "$as_me: error: invalid package name: $ac_package" >&2
1283 { (exit 1); exit 1; }; }
1284 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1285 eval with_$ac_package=no ;;
1288 # Obsolete; use --with-x.
1291 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1292 | --x-incl | --x-inc | --x-in | --x-i)
1293 ac_prev=x_includes ;;
1294 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1295 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1296 x_includes=$ac_optarg ;;
1298 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1299 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1300 ac_prev=x_libraries ;;
1301 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1302 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1303 x_libraries=$ac_optarg ;;
1305 -*) { echo "$as_me: error: unrecognized option: $ac_option
1306 Try \`$0 --help' for more information." >&2
1307 { (exit 1); exit 1; }; }
1311 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1312 # Reject names that are not valid shell variable names.
1313 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1314 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1315 { (exit 1); exit 1; }; }
1316 eval $ac_envvar=\$ac_optarg
1317 export $ac_envvar ;;
1320 # FIXME: should be removed in autoconf 3.0.
1321 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1322 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1323 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1324 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1330 if test -n "$ac_prev"; then
1331 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1332 { echo "$as_me: error: missing argument to $ac_option" >&2
1333 { (exit 1); exit 1; }; }
1336 # Be sure to have absolute directory names.
1337 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1338 datadir sysconfdir sharedstatedir localstatedir includedir \
1339 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1340 libdir localedir mandir
1342 eval ac_val=\$$ac_var
1344 [\\/$]* | ?:[\\/]* ) continue;;
1345 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1347 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1348 { (exit 1); exit 1; }; }
1351 # There might be people who depend on the old broken behavior: `$host'
1352 # used to hold the argument of --host etc.
1353 # FIXME: To remove some day.
1356 target=$target_alias
1358 # FIXME: To remove some day.
1359 if test "x$host_alias" != x; then
1360 if test "x$build_alias" = x; then
1361 cross_compiling=maybe
1362 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1363 If a cross compiler is detected then cross compile mode will be used." >&2
1364 elif test "x$build_alias" != "x$host_alias"; then
1370 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1372 test "$silent" = yes && exec 6>/dev/null
1375 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1376 ac_ls_di=`ls -di .` &&
1377 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1378 { echo "$as_me: error: Working directory cannot be determined" >&2
1379 { (exit 1); exit 1; }; }
1380 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1381 { echo "$as_me: error: pwd does not report name of working directory" >&2
1382 { (exit 1); exit 1; }; }
1385 # Find the source files, if location was not specified.
1386 if test -z "$srcdir"; then
1387 ac_srcdir_defaulted=yes
1388 # Try the directory containing this script, then the parent directory.
1389 ac_confdir=`$as_dirname -- "$0" ||
1390 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1391 X"$0" : 'X\(//\)[^/]' \| \
1392 X"$0" : 'X\(//\)$' \| \
1393 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1413 if test ! -r "$srcdir/$ac_unique_file"; then
1417 ac_srcdir_defaulted=no
1419 if test ! -r "$srcdir/$ac_unique_file"; then
1420 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1421 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1422 { (exit 1); exit 1; }; }
1424 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1426 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1427 { (exit 1); exit 1; }; }
1429 # When building in place, set srcdir=.
1430 if test "$ac_abs_confdir" = "$ac_pwd"; then
1433 # Remove unnecessary trailing slashes from srcdir.
1434 # Double slashes in file names in object file debugging info
1435 # mess up M-x gdb in Emacs.
1437 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1439 for ac_var in $ac_precious_vars; do
1440 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1441 eval ac_env_${ac_var}_value=\$${ac_var}
1442 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1443 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1447 # Report the --help message.
1449 if test "$ac_init_help" = "long"; then
1450 # Omit some internal or obsolete options to make the list less imposing.
1451 # This message is too long to be a string in the A/UX 3.1 sh.
1453 \`configure' configures simgrid 3.3-svn to adapt to many kinds of systems.
1455 Usage: $0 [OPTION]... [VAR=VALUE]...
1457 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1458 VAR=VALUE. See below for descriptions of some of the useful variables.
1460 Defaults for the options are specified in brackets.
1463 -h, --help display this help and exit
1464 --help=short display options specific to this package
1465 --help=recursive display the short help of all the included packages
1466 -V, --version display version information and exit
1467 -q, --quiet, --silent do not print \`checking...' messages
1468 --cache-file=FILE cache test results in FILE [disabled]
1469 -C, --config-cache alias for \`--cache-file=config.cache'
1470 -n, --no-create do not create output files
1471 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1473 Installation directories:
1474 --prefix=PREFIX install architecture-independent files in PREFIX
1475 [$ac_default_prefix]
1476 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1479 By default, \`make install' will install all the files in
1480 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1481 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1482 for instance \`--prefix=\$HOME'.
1484 For better control, use the options below.
1486 Fine tuning of the installation directories:
1487 --bindir=DIR user executables [EPREFIX/bin]
1488 --sbindir=DIR system admin executables [EPREFIX/sbin]
1489 --libexecdir=DIR program executables [EPREFIX/libexec]
1490 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1491 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1492 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1493 --libdir=DIR object code libraries [EPREFIX/lib]
1494 --includedir=DIR C header files [PREFIX/include]
1495 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1496 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1497 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1498 --infodir=DIR info documentation [DATAROOTDIR/info]
1499 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1500 --mandir=DIR man documentation [DATAROOTDIR/man]
1501 --docdir=DIR documentation root [DATAROOTDIR/doc/simgrid]
1502 --htmldir=DIR html documentation [DOCDIR]
1503 --dvidir=DIR dvi documentation [DOCDIR]
1504 --pdfdir=DIR pdf documentation [DOCDIR]
1505 --psdir=DIR ps documentation [DOCDIR]
1511 --program-prefix=PREFIX prepend PREFIX to installed program names
1512 --program-suffix=SUFFIX append SUFFIX to installed program names
1513 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1516 --build=BUILD configure for building on BUILD [guessed]
1517 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1518 --target=TARGET configure for building compilers for TARGET [HOST]
1522 if test -n "$ac_init_help"; then
1523 case $ac_init_help in
1524 short | recursive ) echo "Configuration of simgrid 3.3-svn:";;
1529 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1530 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1531 --disable-dependency-tracking speeds up one-time build
1532 --enable-dependency-tracking do not reject slow dependency extractors
1533 --enable-shared[=PKGS] build shared libraries [default=yes]
1534 --enable-static[=PKGS] build static libraries [default=yes]
1535 --enable-fast-install[=PKGS]
1536 optimize for fast installation [default=yes]
1537 --disable-libtool-lock avoid locking (might break parallel builds)
1538 --enable-maintainer-mode enable make rules and dependencies not useful
1539 (and sometimes confusing) to the casual installer
1540 --enable-compile-warnings
1541 use compiler warnings (default=no, unless in
1543 --disable-compile-optimizations
1544 use compiler optimizations (default=yes, unless if
1545 CFLAGS is explicitly set)
1546 --enable-botbuild Compilation mode for build daemons -- do not use it
1547 --disable-java To not compile the Java bindings even if the tools
1551 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1552 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1553 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1554 --with-pic try to use only PIC/non-PIC objects [default=use
1556 --with-tags[=TAGS] include additional configurations [automatic]
1557 --with-pthread Use pthread instead of ucontext.
1558 --with-pthreads Use pthread instead of ucontext.
1559 --with-context=ucontext/pthread Use either (System V) swapcontext or pthread [default=auto].
1560 --with-gtnets Path to GTNetS installation (default to empty, ie
1562 --with-csdp Path to csdp installation (default to empty, i.e.
1565 Some influential environment variables:
1566 CC C compiler command
1567 CFLAGS C compiler flags
1568 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1569 nonstandard directory <lib dir>
1570 LIBS libraries to pass to the linker, e.g. -l<library>
1571 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1572 you have headers in a nonstandard directory <include dir>
1574 CXX C++ compiler command
1575 CXXFLAGS C++ compiler flags
1576 CXXCPP C++ preprocessor
1578 Use these variables to override the choices made by `configure' or to help
1579 it to find libraries and programs with nonstandard names/locations.
1581 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1586 if test "$ac_init_help" = "recursive"; then
1587 # If there are subdirs, report their specific --help.
1588 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1589 test -d "$ac_dir" || continue
1593 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1596 # A ".." for each directory in $ac_dir_suffix.
1597 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1598 case $ac_top_builddir_sub in
1599 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1600 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1603 ac_abs_top_builddir=$ac_pwd
1604 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1605 # for backward compatibility:
1606 ac_top_builddir=$ac_top_build_prefix
1609 .) # We are building in place.
1611 ac_top_srcdir=$ac_top_builddir_sub
1612 ac_abs_top_srcdir=$ac_pwd ;;
1613 [\\/]* | ?:[\\/]* ) # Absolute name.
1614 ac_srcdir=$srcdir$ac_dir_suffix;
1615 ac_top_srcdir=$srcdir
1616 ac_abs_top_srcdir=$srcdir ;;
1618 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1619 ac_top_srcdir=$ac_top_build_prefix$srcdir
1620 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1622 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1624 cd "$ac_dir" || { ac_status=$?; continue; }
1625 # Check for guested configure.
1626 if test -f "$ac_srcdir/configure.gnu"; then
1628 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1629 elif test -f "$ac_srcdir/configure"; then
1631 $SHELL "$ac_srcdir/configure" --help=recursive
1633 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1635 cd "$ac_pwd" || { ac_status=$?; break; }
1639 test -n "$ac_init_help" && exit $ac_status
1640 if $ac_init_version; then
1642 simgrid configure 3.3-svn
1643 generated by GNU Autoconf 2.61
1645 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1646 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1647 This configure script is free software; the Free Software Foundation
1648 gives unlimited permission to copy, distribute and modify it.
1652 cat >config.log <<_ACEOF
1653 This file contains any messages produced by compilers while
1654 running configure, to aid debugging if configure makes a mistake.
1656 It was created by simgrid $as_me 3.3-svn, which was
1657 generated by GNU Autoconf 2.61. Invocation command line was
1669 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1670 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1671 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1672 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1673 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1675 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1676 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1678 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1679 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1680 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1681 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1682 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1683 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1684 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692 test -z "$as_dir" && as_dir=.
1693 echo "PATH: $as_dir"
1709 # Keep a trace of the command line.
1710 # Strip out --no-create and --no-recursion so they do not pile up.
1711 # Strip out --silent because we don't want to record it for future runs.
1712 # Also quote any args containing shell meta-characters.
1713 # Make two passes to allow for proper duplicate-argument suppression.
1717 ac_must_keep_next=false
1723 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1724 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1725 | -silent | --silent | --silen | --sile | --sil)
1728 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1731 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1733 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1734 if test $ac_must_keep_next = true; then
1735 ac_must_keep_next=false # Got value, back to normal.
1738 *=* | --config-cache | -C | -disable-* | --disable-* \
1739 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1740 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1741 | -with-* | --with-* | -without-* | --without-* | --x)
1742 case "$ac_configure_args0 " in
1743 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1746 -* ) ac_must_keep_next=true ;;
1749 ac_configure_args="$ac_configure_args '$ac_arg'"
1754 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1755 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1757 # When interrupted or exit'd, cleanup temporary files, and complete
1758 # config.log. We remove comments because anyway the quotes in there
1759 # would cause problems or look ugly.
1760 # WARNING: Use '\'' to represent an apostrophe within the trap.
1761 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1762 trap 'exit_status=$?
1763 # Save into config.log some information that might help in debugging.
1768 ## ---------------- ##
1769 ## Cache variables. ##
1770 ## ---------------- ##
1773 # The following way of writing the cache mishandles newlines in values,
1775 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1776 eval ac_val=\$$ac_var
1780 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1781 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1784 _ | IFS | as_nl) ;; #(
1785 *) $as_unset $ac_var ;;
1790 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1791 *${as_nl}ac_space=\ *)
1793 "s/'\''/'\''\\\\'\'''\''/g;
1794 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1797 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1805 ## ----------------- ##
1806 ## Output variables. ##
1807 ## ----------------- ##
1810 for ac_var in $ac_subst_vars
1812 eval ac_val=\$$ac_var
1814 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1816 echo "$ac_var='\''$ac_val'\''"
1820 if test -n "$ac_subst_files"; then
1822 ## ------------------- ##
1823 ## File substitutions. ##
1824 ## ------------------- ##
1827 for ac_var in $ac_subst_files
1829 eval ac_val=\$$ac_var
1831 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1833 echo "$ac_var='\''$ac_val'\''"
1838 if test -s confdefs.h; then
1848 test "$ac_signal" != 0 &&
1849 echo "$as_me: caught signal $ac_signal"
1850 echo "$as_me: exit $exit_status"
1852 rm -f core *.core core.conftest.* &&
1853 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1856 for ac_signal in 1 2 13 15; do
1857 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1861 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1862 rm -f -r conftest* confdefs.h
1864 # Predefined preprocessor variables.
1866 cat >>confdefs.h <<_ACEOF
1867 #define PACKAGE_NAME "$PACKAGE_NAME"
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1876 cat >>confdefs.h <<_ACEOF
1877 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1881 cat >>confdefs.h <<_ACEOF
1882 #define PACKAGE_STRING "$PACKAGE_STRING"
1886 cat >>confdefs.h <<_ACEOF
1887 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1891 # Let the site file select an alternate cache file if it wants to.
1892 # Prefer explicitly selected file to automatically selected ones.
1893 if test -n "$CONFIG_SITE"; then
1894 set x "$CONFIG_SITE"
1895 elif test "x$prefix" != xNONE; then
1896 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1898 set x "$ac_default_prefix/share/config.site" \
1899 "$ac_default_prefix/etc/config.site"
1904 if test -r "$ac_site_file"; then
1905 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1906 echo "$as_me: loading site script $ac_site_file" >&6;}
1907 sed 's/^/| /' "$ac_site_file" >&5
1912 if test -r "$cache_file"; then
1913 # Some versions of bash will fail to source /dev/null (special
1914 # files actually), so we avoid doing that.
1915 if test -f "$cache_file"; then
1916 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1917 echo "$as_me: loading cache $cache_file" >&6;}
1919 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1920 *) . "./$cache_file";;
1924 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1925 echo "$as_me: creating cache $cache_file" >&6;}
1929 # Check that the precious variables saved in the cache have kept the same
1931 ac_cache_corrupted=false
1932 for ac_var in $ac_precious_vars; do
1933 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1934 eval ac_new_set=\$ac_env_${ac_var}_set
1935 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1936 eval ac_new_val=\$ac_env_${ac_var}_value
1937 case $ac_old_set,$ac_new_set in
1939 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1940 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1941 ac_cache_corrupted=: ;;
1943 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1944 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1945 ac_cache_corrupted=: ;;
1948 if test "x$ac_old_val" != "x$ac_new_val"; then
1949 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1950 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1951 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1952 echo "$as_me: former value: $ac_old_val" >&2;}
1953 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1954 echo "$as_me: current value: $ac_new_val" >&2;}
1955 ac_cache_corrupted=:
1958 # Pass precious variables to config.status.
1959 if test "$ac_new_set" = set; then
1961 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1962 *) ac_arg=$ac_var=$ac_new_val ;;
1964 case " $ac_configure_args " in
1965 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1966 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1970 if $ac_cache_corrupted; then
1971 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1972 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1973 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1974 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1975 { (exit 1); exit 1; }; }
2003 ac_cpp='$CPP $CPPFLAGS'
2004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2010 ac_config_headers="$ac_config_headers src/gras_config.h"
2012 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
2016 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2017 if test -f "$ac_dir/install-sh"; then
2019 ac_install_sh="$ac_aux_dir/install-sh -c"
2021 elif test -f "$ac_dir/install.sh"; then
2023 ac_install_sh="$ac_aux_dir/install.sh -c"
2025 elif test -f "$ac_dir/shtool"; then
2027 ac_install_sh="$ac_aux_dir/shtool install -c"
2031 if test -z "$ac_aux_dir"; then
2032 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2033 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2034 { (exit 1); exit 1; }; }
2037 # These three variables are undocumented and unsupported,
2038 # and are intended to be withdrawn in a future Autoconf release.
2039 # They can cause serious problems if a builder's source tree is in a directory
2040 # whose full name contains unusual characters.
2041 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2042 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2043 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2046 # Make sure we can run config.sub.
2047 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2048 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2049 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2050 { (exit 1); exit 1; }; }
2052 { echo "$as_me:$LINENO: checking build system type" >&5
2053 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2054 if test "${ac_cv_build+set}" = set; then
2055 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 ac_build_alias=$build_alias
2058 test "x$ac_build_alias" = x &&
2059 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2060 test "x$ac_build_alias" = x &&
2061 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2062 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2063 { (exit 1); exit 1; }; }
2064 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2065 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2066 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2067 { (exit 1); exit 1; }; }
2070 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2071 echo "${ECHO_T}$ac_cv_build" >&6; }
2072 case $ac_cv_build in
2074 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2075 echo "$as_me: error: invalid value of canonical build" >&2;}
2076 { (exit 1); exit 1; }; };;
2079 ac_save_IFS=$IFS; IFS='-'
2085 # Remember, the first character of IFS is used to create $*,
2086 # except with old shells:
2089 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2092 { echo "$as_me:$LINENO: checking host system type" >&5
2093 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2094 if test "${ac_cv_host+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2097 if test "x$host_alias" = x; then
2098 ac_cv_host=$ac_cv_build
2100 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2101 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2102 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2103 { (exit 1); exit 1; }; }
2107 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2108 echo "${ECHO_T}$ac_cv_host" >&6; }
2111 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2112 echo "$as_me: error: invalid value of canonical host" >&2;}
2113 { (exit 1); exit 1; }; };;
2116 ac_save_IFS=$IFS; IFS='-'
2122 # Remember, the first character of IFS is used to create $*,
2123 # except with old shells:
2126 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2129 { echo "$as_me:$LINENO: checking target system type" >&5
2130 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2131 if test "${ac_cv_target+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2134 if test "x$target_alias" = x; then
2135 ac_cv_target=$ac_cv_host
2137 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2138 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2139 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2140 { (exit 1); exit 1; }; }
2144 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2145 echo "${ECHO_T}$ac_cv_target" >&6; }
2146 case $ac_cv_target in
2148 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2149 echo "$as_me: error: invalid value of canonical target" >&2;}
2150 { (exit 1); exit 1; }; };;
2152 target=$ac_cv_target
2153 ac_save_IFS=$IFS; IFS='-'
2159 # Remember, the first character of IFS is used to create $*,
2160 # except with old shells:
2163 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2166 # The aliases save the names the user supplied, while $host etc.
2167 # will get canonicalized.
2168 test -n "$target_alias" &&
2169 test "$program_prefix$program_suffix$program_transform_name" = \
2171 program_prefix=${target_alias}-
2173 ac_cpp='$CPP $CPPFLAGS'
2174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2178 rm -rf .tst 2>/dev/null
2179 mkdir .tst 2>/dev/null
2180 if test -d .tst; then
2185 rmdir .tst 2>/dev/null
2187 DEPDIR="${am__leading_dot}deps"
2189 ac_config_commands="$ac_config_commands depfiles"
2192 am_make=${MAKE-make}
2193 cat > confinc << 'END'
2198 # If we don't find an include directive, just comment out the code.
2199 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2200 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2204 # First try GNU make style include.
2205 echo "include confinc" > confmf
2206 # We grep out `Entering directory' and `Leaving directory'
2207 # messages which can occur if `w' ends up in MAKEFLAGS.
2208 # In particular we don't look at `^make:' because GNU make might
2209 # be invoked under some other name (usually "gmake"), in which
2210 # case it prints its new name instead of `make'.
2211 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2216 # Now try BSD make style include.
2217 if test "$am__include" = "#"; then
2218 echo '.include "confinc"' > confmf
2219 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2220 am__include=.include
2227 { echo "$as_me:$LINENO: result: $_am_result" >&5
2228 echo "${ECHO_T}$_am_result" >&6; }
2229 rm -f confinc confmf
2231 # Check whether --enable-dependency-tracking was given.
2232 if test "${enable_dependency_tracking+set}" = set; then
2233 enableval=$enable_dependency_tracking;
2236 if test "x$enable_dependency_tracking" != xno; then
2237 am_depcomp="$ac_aux_dir/depcomp"
2240 if test "x$enable_dependency_tracking" != xno; then
2250 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
2252 # Extract the first word of "$ac_prog", so it can be a program name with args.
2253 set dummy $ac_prog; ac_word=$2
2254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2256 if test "${ac_cv_prog_GCJ+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2259 if test -n "$GCJ"; then
2260 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
2262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266 test -z "$as_dir" && as_dir=.
2267 for ac_exec_ext in '' $ac_executable_extensions; do
2268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2269 ac_cv_prog_GCJ="$ac_prog"
2270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2280 if test -n "$GCJ"; then
2281 { echo "$as_me:$LINENO: result: $GCJ" >&5
2282 echo "${ECHO_T}$GCJ" >&6; }
2284 { echo "$as_me:$LINENO: result: no" >&5
2285 echo "${ECHO_T}no" >&6; }
2289 test -n "$GCJ" && break
2291 test -n "$GCJ" || GCJ="gcj"
2293 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
2294 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
2295 { (exit 1); exit 1; }; }
2296 if test "x${GCJFLAGS-unset}" = xunset; then
2301 depcc="$GCJ" am_compiler_list='gcc3 gcc'
2303 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2304 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2305 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2309 # We make a subdir and do the tests there. Otherwise we can end up
2310 # making bogus files that we don't know about and never remove. For
2311 # instance it was reported that on HP-UX the gcc test will end up
2312 # making a dummy file named `D' -- because `-MD' means `put the output
2315 # Copy depcomp to subdir because otherwise we won't find it if we're
2316 # using a relative directory.
2317 cp "$am_depcomp" conftest.dir
2319 # We will build objects and dependencies in a subdirectory because
2320 # it helps to detect inapplicable dependency modes. For instance
2321 # both Tru64's cc and ICC support -MD to output dependencies as a
2322 # side effect of compilation, but ICC will put the dependencies in
2323 # the current directory while Tru64 will put them in the object
2327 am_cv_GCJ_dependencies_compiler_type=none
2328 if test "$am_compiler_list" = ""; then
2329 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2331 for depmode in $am_compiler_list; do
2332 # Setup a source with many dependencies, because some compilers
2333 # like to wrap large dependency lists on column 80 (with \), and
2334 # we should not choose a depcomp mode which is confused by this.
2336 # We need to recreate these files for each test, as the compiler may
2337 # overwrite some of them when testing with obscure command lines.
2338 # This happens at least with the AIX C compiler.
2340 for i in 1 2 3 4 5 6; do
2341 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2342 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2343 # Solaris 8's {/usr,}/bin/sh.
2344 touch sub/conftst$i.h
2346 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2350 # after this tag, mechanisms are not by side-effect, so they'll
2351 # only be used when explicitly requested
2352 if test "x$enable_dependency_tracking" = xyes; then
2360 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2361 # mode. It turns out that the SunPro C++ compiler does not properly
2362 # handle `-M -o', and we need to detect this.
2363 if depmode=$depmode \
2364 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2365 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2366 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2367 >/dev/null 2>conftest.err &&
2368 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2369 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2370 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2371 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2372 # icc doesn't choke on unknown options, it will just issue warnings
2373 # or remarks (even with -Werror). So we grep stderr for any message
2374 # that says an option was ignored or not supported.
2375 # When given -MP, icc 7.0 and 7.1 complain thusly:
2376 # icc: Command line warning: ignoring option '-M'; no argument required
2377 # The diagnosis changed in icc 8.0:
2378 # icc: Command line remark: option '-MP' not supported
2379 if (grep 'ignoring option' conftest.err ||
2380 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2381 am_cv_GCJ_dependencies_compiler_type=$depmode
2390 am_cv_GCJ_dependencies_compiler_type=none
2394 { echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
2395 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6; }
2396 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
2399 test "x$enable_dependency_tracking" != xno \
2400 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
2401 am__fastdepGCJ_TRUE=
2402 am__fastdepGCJ_FALSE='#'
2404 am__fastdepGCJ_TRUE='#'
2405 am__fastdepGCJ_FALSE=
2411 am__api_version='1.10'
2413 # Find a good install program. We prefer a C program (faster),
2414 # so one script is as good as another. But avoid the broken or
2415 # incompatible versions:
2416 # SysV /etc/install, /usr/sbin/install
2417 # SunOS /usr/etc/install
2418 # IRIX /sbin/install
2420 # AmigaOS /C/install, which installs bootblocks on floppy discs
2421 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2422 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2423 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2424 # OS/2's system install, which has a completely different semantic
2425 # ./install, which can be erroneously created by make from ./install.sh.
2426 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2427 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2428 if test -z "$INSTALL"; then
2429 if test "${ac_cv_path_install+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 test -z "$as_dir" && as_dir=.
2437 # Account for people who put trailing slashes in PATH elements.
2439 ./ | .// | /cC/* | \
2440 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2441 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2444 # OSF1 and SCO ODT 3.0 have their own names for install.
2445 # Don't use installbsd from OSF since it installs stuff as root
2447 for ac_prog in ginstall scoinst install; do
2448 for ac_exec_ext in '' $ac_executable_extensions; do
2449 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2450 if test $ac_prog = install &&
2451 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2452 # AIX install. It has an incompatible calling convention.
2454 elif test $ac_prog = install &&
2455 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2456 # program-specific install script used by HP pwplus--don't use.
2459 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2472 if test "${ac_cv_path_install+set}" = set; then
2473 INSTALL=$ac_cv_path_install
2475 # As a last resort, use the slow shell script. Don't cache a
2476 # value for INSTALL within a source directory, because that will
2477 # break other packages using the cache if that directory is
2478 # removed, or if the value is a relative name.
2479 INSTALL=$ac_install_sh
2482 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2483 echo "${ECHO_T}$INSTALL" >&6; }
2485 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2486 # It thinks the first close brace ends the variable substitution.
2487 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2489 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2491 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2493 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2494 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2497 echo timestamp > conftest.file
2498 # Do `set' in a subshell so we don't clobber the current shell's
2499 # arguments. Must try -L first in case configure is actually a
2500 # symlink; some systems play weird games with the mod time of symlinks
2501 # (eg FreeBSD returns the mod time of the symlink's containing
2504 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2505 if test "$*" = "X"; then
2507 set X `ls -t $srcdir/configure conftest.file`
2510 if test "$*" != "X $srcdir/configure conftest.file" \
2511 && test "$*" != "X conftest.file $srcdir/configure"; then
2513 # If neither matched, then we have a broken ls. This can happen
2514 # if, for instance, CONFIG_SHELL is bash and it inherits a
2515 # broken ls alias from the environment. This has actually
2516 # happened. Such a system could not be considered "sane".
2517 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2518 alias in your environment" >&5
2519 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2520 alias in your environment" >&2;}
2521 { (exit 1); exit 1; }; }
2524 test "$2" = conftest.file
2530 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2531 Check your system clock" >&5
2532 echo "$as_me: error: newly created file is older than distributed files!
2533 Check your system clock" >&2;}
2534 { (exit 1); exit 1; }; }
2536 { echo "$as_me:$LINENO: result: yes" >&5
2537 echo "${ECHO_T}yes" >&6; }
2538 test "$program_prefix" != NONE &&
2539 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2540 # Use a double $ so make ignores it.
2541 test "$program_suffix" != NONE &&
2542 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2543 # Double any \ or $. echo might interpret backslashes.
2544 # By default was `s,x,x', remove it if useless.
2545 cat <<\_ACEOF >conftest.sed
2546 s/[\\$]/&&/g;s/;s,x,x,$//
2548 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2551 # expand $ac_aux_dir to an absolute path
2552 am_aux_dir=`cd $ac_aux_dir && pwd`
2554 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2555 # Use eval to expand $SHELL
2556 if eval "$MISSING --run true"; then
2557 am_missing_run="$MISSING --run "
2560 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2561 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2564 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2565 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2566 if test -z "$MKDIR_P"; then
2567 if test "${ac_cv_path_mkdir+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2574 test -z "$as_dir" && as_dir=.
2575 for ac_prog in mkdir gmkdir; do
2576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2578 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2579 'mkdir (GNU coreutils) '* | \
2580 'mkdir (coreutils) '* | \
2581 'mkdir (fileutils) '4.1*)
2582 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2592 if test "${ac_cv_path_mkdir+set}" = set; then
2593 MKDIR_P="$ac_cv_path_mkdir -p"
2595 # As a last resort, use the slow shell script. Don't cache a
2596 # value for MKDIR_P within a source directory, because that will
2597 # break other packages using the cache if that directory is
2598 # removed, or if the value is a relative name.
2599 test -d ./--version && rmdir ./--version
2600 MKDIR_P="$ac_install_sh -d"
2603 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2604 echo "${ECHO_T}$MKDIR_P" >&6; }
2608 [\\/$]* | ?:[\\/]*) ;;
2609 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2612 for ac_prog in gawk mawk nawk awk
2614 # Extract the first word of "$ac_prog", so it can be a program name with args.
2615 set dummy $ac_prog; ac_word=$2
2616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2618 if test "${ac_cv_prog_AWK+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2621 if test -n "$AWK"; then
2622 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 test -z "$as_dir" && as_dir=.
2629 for ac_exec_ext in '' $ac_executable_extensions; do
2630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2631 ac_cv_prog_AWK="$ac_prog"
2632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2642 if test -n "$AWK"; then
2643 { echo "$as_me:$LINENO: result: $AWK" >&5
2644 echo "${ECHO_T}$AWK" >&6; }
2646 { echo "$as_me:$LINENO: result: no" >&5
2647 echo "${ECHO_T}no" >&6; }
2651 test -n "$AWK" && break
2654 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2655 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2656 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2657 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2658 echo $ECHO_N "(cached) $ECHO_C" >&6
2660 cat >conftest.make <<\_ACEOF
2663 @echo '@@@%%%=$(MAKE)=@@@%%%'
2665 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2666 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2668 eval ac_cv_prog_make_${ac_make}_set=yes;;
2670 eval ac_cv_prog_make_${ac_make}_set=no;;
2674 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2675 { echo "$as_me:$LINENO: result: yes" >&5
2676 echo "${ECHO_T}yes" >&6; }
2679 { echo "$as_me:$LINENO: result: no" >&5
2680 echo "${ECHO_T}no" >&6; }
2681 SET_MAKE="MAKE=${MAKE-make}"
2684 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2685 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2686 # is not polluted with repeated "-I."
2687 am__isrc=' -I$(srcdir)'
2688 # test to see if srcdir already configured
2689 if test -f $srcdir/config.status; then
2690 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2691 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2692 { (exit 1); exit 1; }; }
2696 # test whether we have cygpath
2697 if test -z "$CYGPATH_W"; then
2698 if (cygpath --version) >/dev/null 2>/dev/null; then
2699 CYGPATH_W='cygpath -w'
2706 # Define the identity of the package.
2711 cat >>confdefs.h <<_ACEOF
2712 #define PACKAGE "$PACKAGE"
2716 cat >>confdefs.h <<_ACEOF
2717 #define VERSION "$VERSION"
2720 # Some tools Automake needs.
2722 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2725 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2728 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2731 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2734 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2736 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2738 # Installed binaries are usually stripped using `strip' when the user
2739 # run `make install-strip'. However `strip' might not be the right
2740 # tool to use in cross-compilation environments, therefore Automake
2741 # will honor the `STRIP' environment variable to overrule this program.
2742 if test "$cross_compiling" != no; then
2743 if test -n "$ac_tool_prefix"; then
2744 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2745 set dummy ${ac_tool_prefix}strip; ac_word=$2
2746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2748 if test "${ac_cv_prog_STRIP+set}" = set; then
2749 echo $ECHO_N "(cached) $ECHO_C" >&6
2751 if test -n "$STRIP"; then
2752 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 test -z "$as_dir" && as_dir=.
2759 for ac_exec_ext in '' $ac_executable_extensions; do
2760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2761 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2771 STRIP=$ac_cv_prog_STRIP
2772 if test -n "$STRIP"; then
2773 { echo "$as_me:$LINENO: result: $STRIP" >&5
2774 echo "${ECHO_T}$STRIP" >&6; }
2776 { echo "$as_me:$LINENO: result: no" >&5
2777 echo "${ECHO_T}no" >&6; }
2782 if test -z "$ac_cv_prog_STRIP"; then
2784 # Extract the first word of "strip", so it can be a program name with args.
2785 set dummy strip; ac_word=$2
2786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2788 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2789 echo $ECHO_N "(cached) $ECHO_C" >&6
2791 if test -n "$ac_ct_STRIP"; then
2792 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 test -z "$as_dir" && as_dir=.
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2801 ac_cv_prog_ac_ct_STRIP="strip"
2802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2812 if test -n "$ac_ct_STRIP"; then
2813 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2814 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2816 { echo "$as_me:$LINENO: result: no" >&5
2817 echo "${ECHO_T}no" >&6; }
2820 if test "x$ac_ct_STRIP" = x; then
2823 case $cross_compiling:$ac_tool_warned in
2825 { echo "$as_me:$LINENO: 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." >&5
2828 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2829 whose name does not start with the host triplet. If you think this
2830 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2831 ac_tool_warned=yes ;;
2836 STRIP="$ac_cv_prog_STRIP"
2840 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2842 # We need awk for the "check" target. The system "awk" is bad on
2844 # Always define AMTAR for backward compatibility.
2846 AMTAR=${AMTAR-"${am_missing_run}tar"}
2848 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2855 ACLOCAL="$ACLOCAL -I acmacro"
2862 # Check whether --enable-shared was given.
2863 if test "${enable_shared+set}" = set; then
2864 enableval=$enable_shared; p=${PACKAGE-default}
2866 yes) enable_shared=yes ;;
2867 no) enable_shared=no ;;
2870 # Look at the argument we got. We use all the common list separators.
2871 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2872 for pkg in $enableval; do
2874 if test "X$pkg" = "X$p"; then
2886 # Check whether --enable-static was given.
2887 if test "${enable_static+set}" = set; then
2888 enableval=$enable_static; p=${PACKAGE-default}
2890 yes) enable_static=yes ;;
2891 no) enable_static=no ;;
2894 # Look at the argument we got. We use all the common list separators.
2895 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2896 for pkg in $enableval; do
2898 if test "X$pkg" = "X$p"; then
2910 # Check whether --enable-fast-install was given.
2911 if test "${enable_fast_install+set}" = set; then
2912 enableval=$enable_fast_install; p=${PACKAGE-default}
2914 yes) enable_fast_install=yes ;;
2915 no) enable_fast_install=no ;;
2917 enable_fast_install=no
2918 # Look at the argument we got. We use all the common list separators.
2919 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2920 for pkg in $enableval; do
2922 if test "X$pkg" = "X$p"; then
2923 enable_fast_install=yes
2930 enable_fast_install=yes
2935 ac_cpp='$CPP $CPPFLAGS'
2936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2939 if test -n "$ac_tool_prefix"; then
2940 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2941 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2944 if test "${ac_cv_prog_CC+set}" = set; then
2945 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 if test -n "$CC"; then
2948 ac_cv_prog_CC="$CC" # Let the user override the test.
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 test -z "$as_dir" && as_dir=.
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2957 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 if test -n "$CC"; then
2969 { echo "$as_me:$LINENO: result: $CC" >&5
2970 echo "${ECHO_T}$CC" >&6; }
2972 { echo "$as_me:$LINENO: result: no" >&5
2973 echo "${ECHO_T}no" >&6; }
2978 if test -z "$ac_cv_prog_CC"; then
2980 # Extract the first word of "gcc", so it can be a program name with args.
2981 set dummy gcc; ac_word=$2
2982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2984 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 if test -n "$ac_ct_CC"; then
2988 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2997 ac_cv_prog_ac_ct_CC="gcc"
2998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3008 if test -n "$ac_ct_CC"; then
3009 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3010 echo "${ECHO_T}$ac_ct_CC" >&6; }
3012 { echo "$as_me:$LINENO: result: no" >&5
3013 echo "${ECHO_T}no" >&6; }
3016 if test "x$ac_ct_CC" = x; then
3019 case $cross_compiling:$ac_tool_warned in
3021 { echo "$as_me:$LINENO: 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." >&5
3024 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3025 whose name does not start with the host triplet. If you think this
3026 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3027 ac_tool_warned=yes ;;
3035 if test -z "$CC"; then
3036 if test -n "$ac_tool_prefix"; then
3037 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3038 set dummy ${ac_tool_prefix}cc; ac_word=$2
3039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3041 if test "${ac_cv_prog_CC+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC="$CC" # Let the user override the test.
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054 ac_cv_prog_CC="${ac_tool_prefix}cc"
3055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 if test -n "$CC"; then
3066 { echo "$as_me:$LINENO: result: $CC" >&5
3067 echo "${ECHO_T}$CC" >&6; }
3069 { echo "$as_me:$LINENO: result: no" >&5
3070 echo "${ECHO_T}no" >&6; }
3076 if test -z "$CC"; then
3077 # Extract the first word of "cc", so it can be a program name with args.
3078 set dummy cc; ac_word=$2
3079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3081 if test "${ac_cv_prog_CC+set}" = set; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
3084 if test -n "$CC"; then
3085 ac_cv_prog_CC="$CC" # Let the user override the test.
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 test -z "$as_dir" && as_dir=.
3093 for ac_exec_ext in '' $ac_executable_extensions; do
3094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3095 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3096 ac_prog_rejected=yes
3100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 if test $ac_prog_rejected = yes; then
3108 # We found a bogon in the path, so make sure we never use it.
3109 set dummy $ac_cv_prog_CC
3111 if test $# != 0; then
3112 # We chose a different compiler from the bogus one.
3113 # However, it has the same basename, so the bogon will be chosen
3114 # first if we set CC to just the basename; use the full file name.
3116 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3122 if test -n "$CC"; then
3123 { echo "$as_me:$LINENO: result: $CC" >&5
3124 echo "${ECHO_T}$CC" >&6; }
3126 { echo "$as_me:$LINENO: result: no" >&5
3127 echo "${ECHO_T}no" >&6; }
3132 if test -z "$CC"; then
3133 if test -n "$ac_tool_prefix"; then
3134 for ac_prog in cl.exe
3136 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3137 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3140 if test "${ac_cv_prog_CC+set}" = set; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
3143 if test -n "$CC"; then
3144 ac_cv_prog_CC="$CC" # Let the user override the test.
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 test -z "$as_dir" && as_dir=.
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3153 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3164 if test -n "$CC"; then
3165 { echo "$as_me:$LINENO: result: $CC" >&5
3166 echo "${ECHO_T}$CC" >&6; }
3168 { echo "$as_me:$LINENO: result: no" >&5
3169 echo "${ECHO_T}no" >&6; }
3173 test -n "$CC" && break
3176 if test -z "$CC"; then
3178 for ac_prog in cl.exe
3180 # Extract the first word of "$ac_prog", so it can be a program name with args.
3181 set dummy $ac_prog; ac_word=$2
3182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3184 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3187 if test -n "$ac_ct_CC"; then
3188 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3197 ac_cv_prog_ac_ct_CC="$ac_prog"
3198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3207 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3208 if test -n "$ac_ct_CC"; then
3209 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3210 echo "${ECHO_T}$ac_ct_CC" >&6; }
3212 { echo "$as_me:$LINENO: result: no" >&5
3213 echo "${ECHO_T}no" >&6; }
3217 test -n "$ac_ct_CC" && break
3220 if test "x$ac_ct_CC" = x; then
3223 case $cross_compiling:$ac_tool_warned in
3225 { echo "$as_me:$LINENO: 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." >&5
3228 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3229 whose name does not start with the host triplet. If you think this
3230 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3231 ac_tool_warned=yes ;;
3240 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3241 See \`config.log' for more details." >&5
3242 echo "$as_me: error: no acceptable C compiler found in \$PATH
3243 See \`config.log' for more details." >&2;}
3244 { (exit 1); exit 1; }; }
3246 # Provide some information about the compiler.
3247 echo "$as_me:$LINENO: checking for C compiler version" >&5
3248 ac_compiler=`set X $ac_compile; echo $2`
3249 { (ac_try="$ac_compiler --version >&5"
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255 (eval "$ac_compiler --version >&5") 2>&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }
3259 { (ac_try="$ac_compiler -v >&5"
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3265 (eval "$ac_compiler -v >&5") 2>&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }
3269 { (ac_try="$ac_compiler -V >&5"
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275 (eval "$ac_compiler -V >&5") 2>&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }
3280 cat >conftest.$ac_ext <<_ACEOF
3283 cat confdefs.h >>conftest.$ac_ext
3284 cat >>conftest.$ac_ext <<_ACEOF
3285 /* end confdefs.h. */
3295 ac_clean_files_save=$ac_clean_files
3296 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3297 # Try to create an executable without -o first, disregard a.out.
3298 # It will help us diagnose broken compilers, and finding out an intuition
3300 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3301 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3302 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3304 # List of possible output files, starting from the most likely.
3305 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3306 # only as a last resort. b.out is created by i960 compilers.
3307 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3309 # The IRIX 6 linker writes into existing files which may not be
3310 # executable, retaining their permissions. Remove them first so a
3311 # subsequent execution test works.
3313 for ac_file in $ac_files
3316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3317 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3322 if { (ac_try="$ac_link_default"
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328 (eval "$ac_link_default") 2>&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); }; then
3332 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3333 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3334 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3335 # so that the user can short-circuit this test for compilers unknown to
3337 for ac_file in $ac_files ''
3339 test -f "$ac_file" || continue
3341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3344 # We found the default executable, but exeext='' is most
3348 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3350 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3352 # We set ac_cv_exeext here because the later test for it is not
3353 # safe: cross compilers may not add the suffix if given an `-o'
3354 # argument, so we may need to know it at that point already.
3355 # Even if this section looks crufty: it has the advantage of
3362 test "$ac_cv_exeext" = no && ac_cv_exeext=
3368 { echo "$as_me:$LINENO: result: $ac_file" >&5
3369 echo "${ECHO_T}$ac_file" >&6; }
3370 if test -z "$ac_file"; then
3371 echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3374 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3375 See \`config.log' for more details." >&5
3376 echo "$as_me: error: C compiler cannot create executables
3377 See \`config.log' for more details." >&2;}
3378 { (exit 77); exit 77; }; }
3381 ac_exeext=$ac_cv_exeext
3383 # Check that the compiler produces executables we can run. If not, either
3384 # the compiler is broken, or we cross compile.
3385 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3386 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3387 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3388 # If not cross compiling, check that we can run a simple program.
3389 if test "$cross_compiling" != yes; then
3390 if { ac_try='./$ac_file'
3391 { (case "(($ac_try" in
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_try") 2>&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; }; then
3402 if test "$cross_compiling" = maybe; then
3405 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3406 If you meant to cross compile, use \`--host'.
3407 See \`config.log' for more details." >&5
3408 echo "$as_me: error: cannot run C compiled programs.
3409 If you meant to cross compile, use \`--host'.
3410 See \`config.log' for more details." >&2;}
3411 { (exit 1); exit 1; }; }
3415 { echo "$as_me:$LINENO: result: yes" >&5
3416 echo "${ECHO_T}yes" >&6; }
3418 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3419 ac_clean_files=$ac_clean_files_save
3420 # Check that the compiler produces executables we can run. If not, either
3421 # the compiler is broken, or we cross compile.
3422 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3423 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3424 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3425 echo "${ECHO_T}$cross_compiling" >&6; }
3427 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3428 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3429 if { (ac_try="$ac_link"
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3435 (eval "$ac_link") 2>&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); }; then
3439 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3440 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3441 # work properly (i.e., refer to `conftest.exe'), while it won't with
3443 for ac_file in conftest.exe conftest conftest.*; do
3444 test -f "$ac_file" || continue
3446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3447 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3453 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3454 See \`config.log' for more details." >&5
3455 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3456 See \`config.log' for more details." >&2;}
3457 { (exit 1); exit 1; }; }
3460 rm -f conftest$ac_cv_exeext
3461 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3462 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3464 rm -f conftest.$ac_ext
3465 EXEEXT=$ac_cv_exeext
3467 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3468 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3469 if test "${ac_cv_objext+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 cat >conftest.$ac_ext <<_ACEOF
3475 cat confdefs.h >>conftest.$ac_ext
3476 cat >>conftest.$ac_ext <<_ACEOF
3477 /* end confdefs.h. */
3487 rm -f conftest.o conftest.obj
3488 if { (ac_try="$ac_compile"
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494 (eval "$ac_compile") 2>&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); }; then
3498 for ac_file in conftest.o conftest.obj conftest.*; do
3499 test -f "$ac_file" || continue;
3501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3502 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3507 echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3510 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3511 See \`config.log' for more details." >&5
3512 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3513 See \`config.log' for more details." >&2;}
3514 { (exit 1); exit 1; }; }
3517 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3519 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3520 echo "${ECHO_T}$ac_cv_objext" >&6; }
3521 OBJEXT=$ac_cv_objext
3523 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3524 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3525 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3528 cat >conftest.$ac_ext <<_ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h. */
3546 rm -f conftest.$ac_objext
3547 if { (ac_try="$ac_compile"
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553 (eval "$ac_compile") 2>conftest.er1
3555 grep -v '^ *+' conftest.er1 >conftest.err
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } && {
3560 test -z "$ac_c_werror_flag" ||
3561 test ! -s conftest.err
3562 } && test -s conftest.$ac_objext; then
3565 echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3575 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3576 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3577 GCC=`test $ac_compiler_gnu = yes && echo yes`
3578 ac_test_CFLAGS=${CFLAGS+set}
3579 ac_save_CFLAGS=$CFLAGS
3580 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3581 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3582 if test "${ac_cv_prog_cc_g+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 ac_save_c_werror_flag=$ac_c_werror_flag
3586 ac_c_werror_flag=yes
3589 cat >conftest.$ac_ext <<_ACEOF
3592 cat confdefs.h >>conftest.$ac_ext
3593 cat >>conftest.$ac_ext <<_ACEOF
3594 /* end confdefs.h. */
3604 rm -f conftest.$ac_objext
3605 if { (ac_try="$ac_compile"
3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608 *) ac_try_echo=$ac_try;;
3610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3611 (eval "$ac_compile") 2>conftest.er1
3613 grep -v '^ *+' conftest.er1 >conftest.err
3615 cat conftest.err >&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } && {
3618 test -z "$ac_c_werror_flag" ||
3619 test ! -s conftest.err
3620 } && test -s conftest.$ac_objext; then
3623 echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3627 cat >conftest.$ac_ext <<_ACEOF
3630 cat confdefs.h >>conftest.$ac_ext
3631 cat >>conftest.$ac_ext <<_ACEOF
3632 /* end confdefs.h. */
3642 rm -f conftest.$ac_objext
3643 if { (ac_try="$ac_compile"
3645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646 *) ac_try_echo=$ac_try;;
3648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3649 (eval "$ac_compile") 2>conftest.er1
3651 grep -v '^ *+' conftest.er1 >conftest.err
3653 cat conftest.err >&5
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); } && {
3656 test -z "$ac_c_werror_flag" ||
3657 test ! -s conftest.err
3658 } && test -s conftest.$ac_objext; then
3661 echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3664 ac_c_werror_flag=$ac_save_c_werror_flag
3666 cat >conftest.$ac_ext <<_ACEOF
3669 cat confdefs.h >>conftest.$ac_ext
3670 cat >>conftest.$ac_ext <<_ACEOF
3671 /* end confdefs.h. */
3681 rm -f conftest.$ac_objext
3682 if { (ac_try="$ac_compile"
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3688 (eval "$ac_compile") 2>conftest.er1
3690 grep -v '^ *+' conftest.er1 >conftest.err
3692 cat conftest.err >&5
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); } && {
3695 test -z "$ac_c_werror_flag" ||
3696 test ! -s conftest.err
3697 } && test -s conftest.$ac_objext; then
3700 echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713 ac_c_werror_flag=$ac_save_c_werror_flag
3715 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3716 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3717 if test "$ac_test_CFLAGS" = set; then
3718 CFLAGS=$ac_save_CFLAGS
3719 elif test $ac_cv_prog_cc_g = yes; then
3720 if test "$GCC" = yes; then
3726 if test "$GCC" = yes; then
3732 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3733 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3734 if test "${ac_cv_prog_cc_c89+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 ac_cv_prog_cc_c89=no
3739 cat >conftest.$ac_ext <<_ACEOF
3742 cat confdefs.h >>conftest.$ac_ext
3743 cat >>conftest.$ac_ext <<_ACEOF
3744 /* end confdefs.h. */
3747 #include <sys/types.h>
3748 #include <sys/stat.h>
3749 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3750 struct buf { int x; };
3751 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3752 static char *e (p, i)
3758 static char *f (char * (*g) (char **, int), char **p, ...)
3763 s = g (p, va_arg (v,int));
3768 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3769 function prototypes and stuff, but not '\xHH' hex character constants.
3770 These don't provoke an error unfortunately, instead are silently treated
3771 as 'x'. The following induces an error, until -std is added to get
3772 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3773 array size at least. It's necessary to write '\x00'==0 to get something
3774 that's true only with -std. */
3775 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3777 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3778 inside strings and character constants. */
3780 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3782 int test (int i, double x);
3783 struct s1 {int (*f) (int a);};
3784 struct s2 {int (*f) (double a);};
3785 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3791 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3796 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3797 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3799 CC="$ac_save_CC $ac_arg"
3800 rm -f conftest.$ac_objext
3801 if { (ac_try="$ac_compile"
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3807 (eval "$ac_compile") 2>conftest.er1
3809 grep -v '^ *+' conftest.er1 >conftest.err
3811 cat conftest.err >&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); } && {
3814 test -z "$ac_c_werror_flag" ||
3815 test ! -s conftest.err
3816 } && test -s conftest.$ac_objext; then
3817 ac_cv_prog_cc_c89=$ac_arg
3819 echo "$as_me: failed program was:" >&5
3820 sed 's/^/| /' conftest.$ac_ext >&5
3825 rm -f core conftest.err conftest.$ac_objext
3826 test "x$ac_cv_prog_cc_c89" != "xno" && break
3828 rm -f conftest.$ac_ext
3833 case "x$ac_cv_prog_cc_c89" in
3835 { echo "$as_me:$LINENO: result: none needed" >&5
3836 echo "${ECHO_T}none needed" >&6; } ;;
3838 { echo "$as_me:$LINENO: result: unsupported" >&5
3839 echo "${ECHO_T}unsupported" >&6; } ;;
3841 CC="$CC $ac_cv_prog_cc_c89"
3842 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3843 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3848 ac_cpp='$CPP $CPPFLAGS'
3849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853 depcc="$CC" am_compiler_list=
3855 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3856 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3857 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3860 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3861 # We make a subdir and do the tests there. Otherwise we can end up
3862 # making bogus files that we don't know about and never remove. For
3863 # instance it was reported that on HP-UX the gcc test will end up
3864 # making a dummy file named `D' -- because `-MD' means `put the output
3867 # Copy depcomp to subdir because otherwise we won't find it if we're
3868 # using a relative directory.
3869 cp "$am_depcomp" conftest.dir
3871 # We will build objects and dependencies in a subdirectory because
3872 # it helps to detect inapplicable dependency modes. For instance
3873 # both Tru64's cc and ICC support -MD to output dependencies as a
3874 # side effect of compilation, but ICC will put the dependencies in
3875 # the current directory while Tru64 will put them in the object
3879 am_cv_CC_dependencies_compiler_type=none
3880 if test "$am_compiler_list" = ""; then
3881 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3883 for depmode in $am_compiler_list; do
3884 # Setup a source with many dependencies, because some compilers
3885 # like to wrap large dependency lists on column 80 (with \), and
3886 # we should not choose a depcomp mode which is confused by this.
3888 # We need to recreate these files for each test, as the compiler may
3889 # overwrite some of them when testing with obscure command lines.
3890 # This happens at least with the AIX C compiler.
3892 for i in 1 2 3 4 5 6; do
3893 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3894 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3895 # Solaris 8's {/usr,}/bin/sh.
3896 touch sub/conftst$i.h
3898 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3902 # after this tag, mechanisms are not by side-effect, so they'll
3903 # only be used when explicitly requested
3904 if test "x$enable_dependency_tracking" = xyes; then
3912 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3913 # mode. It turns out that the SunPro C++ compiler does not properly
3914 # handle `-M -o', and we need to detect this.
3915 if depmode=$depmode \
3916 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3917 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3918 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3919 >/dev/null 2>conftest.err &&
3920 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3921 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3922 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3923 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3924 # icc doesn't choke on unknown options, it will just issue warnings
3925 # or remarks (even with -Werror). So we grep stderr for any message
3926 # that says an option was ignored or not supported.
3927 # When given -MP, icc 7.0 and 7.1 complain thusly:
3928 # icc: Command line warning: ignoring option '-M'; no argument required
3929 # The diagnosis changed in icc 8.0:
3930 # icc: Command line remark: option '-MP' not supported
3931 if (grep 'ignoring option' conftest.err ||
3932 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3933 am_cv_CC_dependencies_compiler_type=$depmode
3942 am_cv_CC_dependencies_compiler_type=none
3946 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3947 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3948 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3951 test "x$enable_dependency_tracking" != xno \
3952 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3954 am__fastdepCC_FALSE='#'
3956 am__fastdepCC_TRUE='#'
3957 am__fastdepCC_FALSE=
3961 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3962 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3963 if test "${lt_cv_path_SED+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 # Loop through the user's path and test for sed and gsed.
3967 # Then use that list of sed's as ones to test for truncation.
3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 test -z "$as_dir" && as_dir=.
3973 for lt_ac_prog in sed gsed; do
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3976 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3984 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3985 # along with /bin/sed that truncates output.
3986 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3987 test ! -f $lt_ac_sed && continue
3988 cat /dev/null > conftest.in
3990 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3991 # Check for GNU sed and select it if it is found.
3992 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3993 lt_cv_path_SED=$lt_ac_sed
3997 cat conftest.in conftest.in >conftest.tmp
3998 mv conftest.tmp conftest.in
3999 cp conftest.in conftest.nl
4001 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4002 cmp -s conftest.out conftest.nl || break
4003 # 10000 chars as input seems more than enough
4004 test $lt_ac_count -gt 10 && break
4005 lt_ac_count=`expr $lt_ac_count + 1`
4006 if test $lt_ac_count -gt $lt_ac_max; then
4007 lt_ac_max=$lt_ac_count
4008 lt_cv_path_SED=$lt_ac_sed
4017 { echo "$as_me:$LINENO: result: $SED" >&5
4018 echo "${ECHO_T}$SED" >&6; }
4020 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4021 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4022 if test "${ac_cv_path_GREP+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 # Extract the first word of "grep ggrep" to use in msg output
4026 if test -z "$GREP"; then
4027 set dummy grep ggrep; ac_prog_name=$2
4028 if test "${ac_cv_path_GREP+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 ac_path_GREP_found=false
4032 # Loop through the user's path and test for each of PROGNAME-LIST
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4037 test -z "$as_dir" && as_dir=.
4038 for ac_prog in grep ggrep; do
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4041 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4042 # Check for GNU ac_path_GREP and select it if it is found.
4043 # Check for GNU $ac_path_GREP
4044 case `"$ac_path_GREP" --version 2>&1` in
4046 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4049 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4052 cat "conftest.in" "conftest.in" >"conftest.tmp"
4053 mv "conftest.tmp" "conftest.in"
4054 cp "conftest.in" "conftest.nl"
4055 echo 'GREP' >> "conftest.nl"
4056 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4057 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4058 ac_count=`expr $ac_count + 1`
4059 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4060 # Best one so far, save it but keep looking for a better one
4061 ac_cv_path_GREP="$ac_path_GREP"
4062 ac_path_GREP_max=$ac_count
4064 # 10*(2^10) chars as input seems more than enough
4065 test $ac_count -gt 10 && break
4067 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4071 $ac_path_GREP_found && break 3
4081 GREP="$ac_cv_path_GREP"
4082 if test -z "$GREP"; then
4083 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4084 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4085 { (exit 1); exit 1; }; }
4089 ac_cv_path_GREP=$GREP
4094 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4095 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4096 GREP="$ac_cv_path_GREP"
4099 { echo "$as_me:$LINENO: checking for egrep" >&5
4100 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4101 if test "${ac_cv_path_EGREP+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4105 then ac_cv_path_EGREP="$GREP -E"
4107 # Extract the first word of "egrep" to use in msg output
4108 if test -z "$EGREP"; then
4109 set dummy egrep; ac_prog_name=$2
4110 if test "${ac_cv_path_EGREP+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 ac_path_EGREP_found=false
4114 # Loop through the user's path and test for each of PROGNAME-LIST
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4119 test -z "$as_dir" && as_dir=.
4120 for ac_prog in egrep; do
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4123 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4124 # Check for GNU ac_path_EGREP and select it if it is found.
4125 # Check for GNU $ac_path_EGREP
4126 case `"$ac_path_EGREP" --version 2>&1` in
4128 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4131 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4134 cat "conftest.in" "conftest.in" >"conftest.tmp"
4135 mv "conftest.tmp" "conftest.in"
4136 cp "conftest.in" "conftest.nl"
4137 echo 'EGREP' >> "conftest.nl"
4138 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4139 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4140 ac_count=`expr $ac_count + 1`
4141 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4142 # Best one so far, save it but keep looking for a better one
4143 ac_cv_path_EGREP="$ac_path_EGREP"
4144 ac_path_EGREP_max=$ac_count
4146 # 10*(2^10) chars as input seems more than enough
4147 test $ac_count -gt 10 && break
4149 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4153 $ac_path_EGREP_found && break 3
4163 EGREP="$ac_cv_path_EGREP"
4164 if test -z "$EGREP"; then
4165 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4166 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4167 { (exit 1); exit 1; }; }
4171 ac_cv_path_EGREP=$EGREP
4177 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4178 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4179 EGREP="$ac_cv_path_EGREP"
4183 # Check whether --with-gnu-ld was given.
4184 if test "${with_gnu_ld+set}" = set; then
4185 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4191 if test "$GCC" = yes; then
4192 # Check if gcc -print-prog-name=ld gives a path.
4193 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4194 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4197 # gcc leaves a trailing carriage return which upsets mingw
4198 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4200 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4203 # Accept absolute paths.
4205 re_direlt='/[^/][^/]*/\.\./'
4206 # Canonicalize the pathname of ld
4207 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4208 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4209 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4211 test -z "$LD" && LD="$ac_prog"
4214 # If it fails, then pretend we aren't using GCC.
4218 # If it is relative, then search for the first ld in PATH.
4222 elif test "$with_gnu_ld" = yes; then
4223 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4224 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4226 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4227 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4229 if test "${lt_cv_path_LD+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 if test -z "$LD"; then
4233 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4234 for ac_dir in $PATH; do
4236 test -z "$ac_dir" && ac_dir=.
4237 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4238 lt_cv_path_LD="$ac_dir/$ac_prog"
4239 # Check to see if the program is GNU ld. I'd rather use --version,
4240 # but apparently some variants of GNU ld only accept -v.
4241 # Break only if it was the GNU/non-GNU ld that we prefer.
4242 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4243 *GNU* | *'with BFD'*)
4244 test "$with_gnu_ld" != no && break
4247 test "$with_gnu_ld" != yes && break
4254 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4259 if test -n "$LD"; then
4260 { echo "$as_me:$LINENO: result: $LD" >&5
4261 echo "${ECHO_T}$LD" >&6; }
4263 { echo "$as_me:$LINENO: result: no" >&5
4264 echo "${ECHO_T}no" >&6; }
4266 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4267 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4268 { (exit 1); exit 1; }; }
4269 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4270 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4271 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4275 case `$LD -v 2>&1 </dev/null` in
4276 *GNU* | *'with BFD'*)
4277 lt_cv_prog_gnu_ld=yes
4280 lt_cv_prog_gnu_ld=no
4284 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4285 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4286 with_gnu_ld=$lt_cv_prog_gnu_ld
4289 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4290 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4291 if test "${lt_cv_ld_reload_flag+set}" = set; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 lt_cv_ld_reload_flag='-r'
4296 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4297 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4298 reload_flag=$lt_cv_ld_reload_flag
4299 case $reload_flag in
4301 *) reload_flag=" $reload_flag" ;;
4303 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4306 if test "$GCC" = yes; then
4307 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4309 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4314 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4315 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4316 if test "${lt_cv_path_NM+set}" = set; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4319 if test -n "$NM"; then
4320 # Let the user override the test.
4323 lt_nm_to_check="${ac_tool_prefix}nm"
4324 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4325 lt_nm_to_check="$lt_nm_to_check nm"
4327 for lt_tmp_nm in $lt_nm_to_check; do
4328 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4329 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4331 test -z "$ac_dir" && ac_dir=.
4332 tmp_nm="$ac_dir/$lt_tmp_nm"
4333 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4334 # Check to see if the nm accepts a BSD-compat flag.
4335 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4336 # nm: unknown option "B" ignored
4337 # Tru64's nm complains that /dev/null is an invalid object file
4338 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4339 */dev/null* | *'Invalid file or object type'*)
4340 lt_cv_path_NM="$tmp_nm -B"
4344 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4346 lt_cv_path_NM="$tmp_nm -p"
4350 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4351 continue # so that we can try to find one that supports BSD flags
4360 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4363 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4364 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4367 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4368 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4370 if test "$LN_S" = "ln -s"; then
4371 { echo "$as_me:$LINENO: result: yes" >&5
4372 echo "${ECHO_T}yes" >&6; }
4374 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4375 echo "${ECHO_T}no, using $LN_S" >&6; }
4378 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4379 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4380 if test "${lt_cv_deplibs_check_method+set}" = set; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 lt_cv_file_magic_cmd='$MAGIC_CMD'
4384 lt_cv_file_magic_test_file=
4385 lt_cv_deplibs_check_method='unknown'
4386 # Need to set the preceding variable on all platforms that support
4387 # interlibrary dependencies.
4388 # 'none' -- dependencies not supported.
4389 # `unknown' -- same as none, but documents that we really don't know.
4390 # 'pass_all' -- all dependencies passed with no checks.
4391 # 'test_compile' -- check by making test program.
4392 # 'file_magic [[regex]]' -- check by looking for files in library path
4393 # which responds to the $file_magic_cmd with a given extended regex.
4394 # If you have `file' or equivalent on your system and you're not sure
4395 # whether `pass_all' will *always* work, you probably want this one.
4399 lt_cv_deplibs_check_method=pass_all
4403 lt_cv_deplibs_check_method=pass_all
4407 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4408 lt_cv_file_magic_cmd='/usr/bin/file -L'
4409 lt_cv_file_magic_test_file=/shlib/libc.so
4413 # func_win32_libid is a shell function defined in ltmain.sh
4414 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4415 lt_cv_file_magic_cmd='func_win32_libid'
4419 # Base MSYS/MinGW do not provide the 'file' command needed by
4420 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4421 # unless we find 'file', for example because we are cross-compiling.
4422 if ( file / ) >/dev/null 2>&1; then
4423 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4424 lt_cv_file_magic_cmd='func_win32_libid'
4426 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4427 lt_cv_file_magic_cmd='$OBJDUMP -f'
4431 darwin* | rhapsody*)
4432 lt_cv_deplibs_check_method=pass_all
4435 freebsd* | dragonfly*)
4436 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4439 # Not sure whether the presence of OpenBSD here was a mistake.
4440 # Let's accept both of them until this is cleared up.
4441 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4442 lt_cv_file_magic_cmd=/usr/bin/file
4443 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4447 lt_cv_deplibs_check_method=pass_all
4452 lt_cv_deplibs_check_method=pass_all
4455 hpux10.20* | hpux11*)
4456 lt_cv_file_magic_cmd=/usr/bin/file
4459 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4460 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4463 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]'
4464 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4467 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4468 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4474 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4475 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4478 irix5* | irix6* | nonstopux*)
4480 *-32|*"-32 ") libmagic=32-bit;;
4481 *-n32|*"-n32 ") libmagic=N32;;
4482 *-64|*"-64 ") libmagic=64-bit;;
4483 *) libmagic=never-match;;
4485 lt_cv_deplibs_check_method=pass_all
4488 # This must be Linux ELF.
4489 linux* | k*bsd*-gnu)
4490 lt_cv_deplibs_check_method=pass_all
4493 netbsd* | netbsdelf*-gnu)
4494 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4495 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4497 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4502 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4503 lt_cv_file_magic_cmd=/usr/bin/file
4504 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4508 lt_cv_deplibs_check_method=unknown
4512 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4513 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4515 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4519 osf3* | osf4* | osf5*)
4520 lt_cv_deplibs_check_method=pass_all
4524 lt_cv_deplibs_check_method=pass_all
4528 lt_cv_deplibs_check_method=pass_all
4532 case $host_vendor in
4534 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]'
4535 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4538 lt_cv_deplibs_check_method=pass_all
4541 lt_cv_file_magic_cmd='/bin/file'
4542 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4545 lt_cv_file_magic_cmd='/bin/file'
4546 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4547 lt_cv_file_magic_test_file=/lib/libc.so
4550 lt_cv_deplibs_check_method=pass_all
4553 lt_cv_deplibs_check_method=pass_all
4558 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4559 lt_cv_deplibs_check_method=pass_all
4564 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4565 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4566 file_magic_cmd=$lt_cv_file_magic_cmd
4567 deplibs_check_method=$lt_cv_deplibs_check_method
4568 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4573 # If no C compiler was specified, use CC.
4576 # If no C compiler flags were specified, use CFLAGS.
4577 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4579 # Allow CC to be a program name with arguments.
4583 # Check whether --enable-libtool-lock was given.
4584 if test "${enable_libtool_lock+set}" = set; then
4585 enableval=$enable_libtool_lock;
4588 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4590 # Some flags need to be propagated to the compiler or linker for good
4594 # Find out which ABI we are using.
4595 echo 'int i;' > conftest.$ac_ext
4596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4597 (eval $ac_compile) 2>&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; then
4601 case `/usr/bin/file conftest.$ac_objext` in
4613 # Find out which ABI we are using.
4614 echo '#line 4614 "configure"' > conftest.$ac_ext
4615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4616 (eval $ac_compile) 2>&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }; then
4620 if test "$lt_cv_prog_gnu_ld" = yes; then
4621 case `/usr/bin/file conftest.$ac_objext` in
4623 LD="${LD-ld} -melf32bsmip"
4626 LD="${LD-ld} -melf32bmipn32"
4629 LD="${LD-ld} -melf64bmip"
4633 case `/usr/bin/file conftest.$ac_objext` in
4649 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4650 s390*-*linux*|sparc*-*linux*)
4651 # Find out which ABI we are using.
4652 echo 'int i;' > conftest.$ac_ext
4653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654 (eval $ac_compile) 2>&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); }; then
4658 case `/usr/bin/file conftest.o` in
4661 x86_64-*kfreebsd*-gnu)
4662 LD="${LD-ld} -m elf_i386_fbsd"
4665 LD="${LD-ld} -m elf_i386"
4667 ppc64-*linux*|powerpc64-*linux*)
4668 LD="${LD-ld} -m elf32ppclinux"
4671 LD="${LD-ld} -m elf_s390"
4674 LD="${LD-ld} -m elf32_sparc"
4680 x86_64-*kfreebsd*-gnu)
4681 LD="${LD-ld} -m elf_x86_64_fbsd"
4684 LD="${LD-ld} -m elf_x86_64"
4686 ppc*-*linux*|powerpc*-*linux*)
4687 LD="${LD-ld} -m elf64ppc"
4690 LD="${LD-ld} -m elf64_s390"
4693 LD="${LD-ld} -m elf64_sparc"
4703 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4704 SAVE_CFLAGS="$CFLAGS"
4705 CFLAGS="$CFLAGS -belf"
4706 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4707 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4708 if test "${lt_cv_cc_needs_belf+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4712 ac_cpp='$CPP $CPPFLAGS'
4713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4717 cat >conftest.$ac_ext <<_ACEOF
4720 cat confdefs.h >>conftest.$ac_ext
4721 cat >>conftest.$ac_ext <<_ACEOF
4722 /* end confdefs.h. */
4732 rm -f conftest.$ac_objext conftest$ac_exeext
4733 if { (ac_try="$ac_link"
4735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736 *) ac_try_echo=$ac_try;;
4738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4739 (eval "$ac_link") 2>conftest.er1
4741 grep -v '^ *+' conftest.er1 >conftest.err
4743 cat conftest.err >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); } && {
4746 test -z "$ac_c_werror_flag" ||
4747 test ! -s conftest.err
4748 } && test -s conftest$ac_exeext &&
4749 $as_test_x conftest$ac_exeext; then
4750 lt_cv_cc_needs_belf=yes
4752 echo "$as_me: failed program was:" >&5
4753 sed 's/^/| /' conftest.$ac_ext >&5
4755 lt_cv_cc_needs_belf=no
4758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4759 conftest$ac_exeext conftest.$ac_ext
4761 ac_cpp='$CPP $CPPFLAGS'
4762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4767 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4768 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4769 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4770 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4771 CFLAGS="$SAVE_CFLAGS"
4775 # Find out which ABI we are using.
4776 echo 'int i;' > conftest.$ac_ext
4777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4778 (eval $ac_compile) 2>&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }; then
4782 case `/usr/bin/file conftest.o` in
4784 case $lt_cv_prog_gnu_ld in
4785 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4787 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4798 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4799 if test -n "$ac_tool_prefix"; then
4800 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4801 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4804 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4807 if test -n "$DLLTOOL"; then
4808 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 test -z "$as_dir" && as_dir=.
4815 for ac_exec_ext in '' $ac_executable_extensions; do
4816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4817 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4827 DLLTOOL=$ac_cv_prog_DLLTOOL
4828 if test -n "$DLLTOOL"; then
4829 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4830 echo "${ECHO_T}$DLLTOOL" >&6; }
4832 { echo "$as_me:$LINENO: result: no" >&5
4833 echo "${ECHO_T}no" >&6; }
4838 if test -z "$ac_cv_prog_DLLTOOL"; then
4839 ac_ct_DLLTOOL=$DLLTOOL
4840 # Extract the first word of "dlltool", so it can be a program name with args.
4841 set dummy dlltool; ac_word=$2
4842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4844 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4847 if test -n "$ac_ct_DLLTOOL"; then
4848 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 test -z "$as_dir" && as_dir=.
4855 for ac_exec_ext in '' $ac_executable_extensions; do
4856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4857 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4868 if test -n "$ac_ct_DLLTOOL"; then
4869 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4870 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4872 { echo "$as_me:$LINENO: result: no" >&5
4873 echo "${ECHO_T}no" >&6; }
4876 if test "x$ac_ct_DLLTOOL" = x; then
4879 case $cross_compiling:$ac_tool_warned in
4881 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4882 whose name does not start with the host triplet. If you think this
4883 configuration is useful to you, please write to autoconf@gnu.org." >&5
4884 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4885 whose name does not start with the host triplet. If you think this
4886 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4887 ac_tool_warned=yes ;;
4889 DLLTOOL=$ac_ct_DLLTOOL
4892 DLLTOOL="$ac_cv_prog_DLLTOOL"
4895 if test -n "$ac_tool_prefix"; then
4896 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4897 set dummy ${ac_tool_prefix}as; ac_word=$2
4898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4900 if test "${ac_cv_prog_AS+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 if test -n "$AS"; then
4904 ac_cv_prog_AS="$AS" # Let the user override the test.
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4913 ac_cv_prog_AS="${ac_tool_prefix}as"
4914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4924 if test -n "$AS"; then
4925 { echo "$as_me:$LINENO: result: $AS" >&5
4926 echo "${ECHO_T}$AS" >&6; }
4928 { echo "$as_me:$LINENO: result: no" >&5
4929 echo "${ECHO_T}no" >&6; }
4934 if test -z "$ac_cv_prog_AS"; then
4936 # Extract the first word of "as", so it can be a program name with args.
4937 set dummy as; ac_word=$2
4938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4940 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 if test -n "$ac_ct_AS"; then
4944 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 test -z "$as_dir" && as_dir=.
4951 for ac_exec_ext in '' $ac_executable_extensions; do
4952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4953 ac_cv_prog_ac_ct_AS="as"
4954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4963 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4964 if test -n "$ac_ct_AS"; then
4965 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4966 echo "${ECHO_T}$ac_ct_AS" >&6; }
4968 { echo "$as_me:$LINENO: result: no" >&5
4969 echo "${ECHO_T}no" >&6; }
4972 if test "x$ac_ct_AS" = x; then
4975 case $cross_compiling:$ac_tool_warned in
4977 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4978 whose name does not start with the host triplet. If you think this
4979 configuration is useful to you, please write to autoconf@gnu.org." >&5
4980 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4981 whose name does not start with the host triplet. If you think this
4982 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4983 ac_tool_warned=yes ;;
4991 if test -n "$ac_tool_prefix"; then
4992 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4993 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4996 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 if test -n "$OBJDUMP"; then
5000 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 test -z "$as_dir" && as_dir=.
5007 for ac_exec_ext in '' $ac_executable_extensions; do
5008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5009 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5019 OBJDUMP=$ac_cv_prog_OBJDUMP
5020 if test -n "$OBJDUMP"; then
5021 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5022 echo "${ECHO_T}$OBJDUMP" >&6; }
5024 { echo "$as_me:$LINENO: result: no" >&5
5025 echo "${ECHO_T}no" >&6; }
5030 if test -z "$ac_cv_prog_OBJDUMP"; then
5031 ac_ct_OBJDUMP=$OBJDUMP
5032 # Extract the first word of "objdump", so it can be a program name with args.
5033 set dummy objdump; ac_word=$2
5034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5036 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 if test -n "$ac_ct_OBJDUMP"; then
5040 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 test -z "$as_dir" && as_dir=.
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5049 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5060 if test -n "$ac_ct_OBJDUMP"; then
5061 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5062 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5064 { echo "$as_me:$LINENO: result: no" >&5
5065 echo "${ECHO_T}no" >&6; }
5068 if test "x$ac_ct_OBJDUMP" = x; then
5071 case $cross_compiling:$ac_tool_warned in
5073 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5074 whose name does not start with the host triplet. If you think this
5075 configuration is useful to you, please write to autoconf@gnu.org." >&5
5076 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5077 whose name does not start with the host triplet. If you think this
5078 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5079 ac_tool_warned=yes ;;
5081 OBJDUMP=$ac_ct_OBJDUMP
5084 OBJDUMP="$ac_cv_prog_OBJDUMP"
5091 need_locks="$enable_libtool_lock"
5095 ac_cpp='$CPP $CPPFLAGS'
5096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5099 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5100 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5101 # On Suns, sometimes $CPP names a directory.
5102 if test -n "$CPP" && test -d "$CPP"; then
5105 if test -z "$CPP"; then
5106 if test "${ac_cv_prog_CPP+set}" = set; then
5107 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 # Double quotes because CPP needs to be expanded
5110 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5113 for ac_c_preproc_warn_flag in '' yes
5115 # Use a header file that comes with gcc, so configuring glibc
5116 # with a fresh cross-compiler works.
5117 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5118 # <limits.h> exists even on freestanding compilers.
5119 # On the NeXT, cc -E runs the code through the compiler's parser,
5120 # not just through cpp. "Syntax error" is here to catch this case.
5121 cat >conftest.$ac_ext <<_ACEOF
5124 cat confdefs.h >>conftest.$ac_ext
5125 cat >>conftest.$ac_ext <<_ACEOF
5126 /* end confdefs.h. */
5128 # include <limits.h>
5130 # include <assert.h>
5134 if { (ac_try="$ac_cpp conftest.$ac_ext"
5136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5137 *) ac_try_echo=$ac_try;;
5139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5142 grep -v '^ *+' conftest.er1 >conftest.err
5144 cat conftest.err >&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); } >/dev/null && {
5147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5148 test ! -s conftest.err
5152 echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.$ac_ext >&5
5155 # Broken: fails on valid input.
5159 rm -f conftest.err conftest.$ac_ext
5161 # OK, works on sane cases. Now check whether nonexistent headers
5162 # can be detected and how.
5163 cat >conftest.$ac_ext <<_ACEOF
5166 cat confdefs.h >>conftest.$ac_ext
5167 cat >>conftest.$ac_ext <<_ACEOF
5168 /* end confdefs.h. */
5169 #include <ac_nonexistent.h>
5171 if { (ac_try="$ac_cpp conftest.$ac_ext"
5173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5174 *) ac_try_echo=$ac_try;;
5176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5179 grep -v '^ *+' conftest.er1 >conftest.err
5181 cat conftest.err >&5
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); } >/dev/null && {
5184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5185 test ! -s conftest.err
5187 # Broken: success on invalid input.
5190 echo "$as_me: failed program was:" >&5
5191 sed 's/^/| /' conftest.$ac_ext >&5
5193 # Passes both tests.
5198 rm -f conftest.err conftest.$ac_ext
5201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5202 rm -f conftest.err conftest.$ac_ext
5203 if $ac_preproc_ok; then
5215 { echo "$as_me:$LINENO: result: $CPP" >&5
5216 echo "${ECHO_T}$CPP" >&6; }
5218 for ac_c_preproc_warn_flag in '' yes
5220 # Use a header file that comes with gcc, so configuring glibc
5221 # with a fresh cross-compiler works.
5222 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5223 # <limits.h> exists even on freestanding compilers.
5224 # On the NeXT, cc -E runs the code through the compiler's parser,
5225 # not just through cpp. "Syntax error" is here to catch this case.
5226 cat >conftest.$ac_ext <<_ACEOF
5229 cat confdefs.h >>conftest.$ac_ext
5230 cat >>conftest.$ac_ext <<_ACEOF
5231 /* end confdefs.h. */
5233 # include <limits.h>
5235 # include <assert.h>
5239 if { (ac_try="$ac_cpp conftest.$ac_ext"
5241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242 *) ac_try_echo=$ac_try;;
5244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5247 grep -v '^ *+' conftest.er1 >conftest.err
5249 cat conftest.err >&5
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); } >/dev/null && {
5252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5253 test ! -s conftest.err
5257 echo "$as_me: failed program was:" >&5
5258 sed 's/^/| /' conftest.$ac_ext >&5
5260 # Broken: fails on valid input.
5264 rm -f conftest.err conftest.$ac_ext
5266 # OK, works on sane cases. Now check whether nonexistent headers
5267 # can be detected and how.
5268 cat >conftest.$ac_ext <<_ACEOF
5271 cat confdefs.h >>conftest.$ac_ext
5272 cat >>conftest.$ac_ext <<_ACEOF
5273 /* end confdefs.h. */
5274 #include <ac_nonexistent.h>
5276 if { (ac_try="$ac_cpp conftest.$ac_ext"
5278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5279 *) ac_try_echo=$ac_try;;
5281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5282 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5284 grep -v '^ *+' conftest.er1 >conftest.err
5286 cat conftest.err >&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } >/dev/null && {
5289 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5290 test ! -s conftest.err
5292 # Broken: success on invalid input.
5295 echo "$as_me: failed program was:" >&5
5296 sed 's/^/| /' conftest.$ac_ext >&5
5298 # Passes both tests.
5303 rm -f conftest.err conftest.$ac_ext
5306 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5307 rm -f conftest.err conftest.$ac_ext
5308 if $ac_preproc_ok; then
5311 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5312 See \`config.log' for more details." >&5
5313 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5314 See \`config.log' for more details." >&2;}
5315 { (exit 1); exit 1; }; }
5319 ac_cpp='$CPP $CPPFLAGS'
5320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5325 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5326 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5327 if test "${ac_cv_header_stdc+set}" = set; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5330 cat >conftest.$ac_ext <<_ACEOF
5333 cat confdefs.h >>conftest.$ac_ext
5334 cat >>conftest.$ac_ext <<_ACEOF
5335 /* end confdefs.h. */
5349 rm -f conftest.$ac_objext
5350 if { (ac_try="$ac_compile"
5352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353 *) ac_try_echo=$ac_try;;
5355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5356 (eval "$ac_compile") 2>conftest.er1
5358 grep -v '^ *+' conftest.er1 >conftest.err
5360 cat conftest.err >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); } && {
5363 test -z "$ac_c_werror_flag" ||
5364 test ! -s conftest.err
5365 } && test -s conftest.$ac_objext; then
5366 ac_cv_header_stdc=yes
5368 echo "$as_me: failed program was:" >&5
5369 sed 's/^/| /' conftest.$ac_ext >&5
5371 ac_cv_header_stdc=no
5374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5376 if test $ac_cv_header_stdc = yes; then
5377 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5378 cat >conftest.$ac_ext <<_ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5388 $EGREP "memchr" >/dev/null 2>&1; then
5391 ac_cv_header_stdc=no
5397 if test $ac_cv_header_stdc = yes; then
5398 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5399 cat >conftest.$ac_ext <<_ACEOF
5402 cat confdefs.h >>conftest.$ac_ext
5403 cat >>conftest.$ac_ext <<_ACEOF
5404 /* end confdefs.h. */
5408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5409 $EGREP "free" >/dev/null 2>&1; then
5412 ac_cv_header_stdc=no
5418 if test $ac_cv_header_stdc = yes; then
5419 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5420 if test "$cross_compiling" = yes; then
5423 cat >conftest.$ac_ext <<_ACEOF
5426 cat confdefs.h >>conftest.$ac_ext
5427 cat >>conftest.$ac_ext <<_ACEOF
5428 /* end confdefs.h. */
5431 #if ((' ' & 0x0FF) == 0x020)
5432 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5433 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5435 # define ISLOWER(c) \
5436 (('a' <= (c) && (c) <= 'i') \
5437 || ('j' <= (c) && (c) <= 'r') \
5438 || ('s' <= (c) && (c) <= 'z'))
5439 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5442 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5447 for (i = 0; i < 256; i++)
5448 if (XOR (islower (i), ISLOWER (i))
5449 || toupper (i) != TOUPPER (i))
5454 rm -f conftest$ac_exeext
5455 if { (ac_try="$ac_link"
5457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458 *) ac_try_echo=$ac_try;;
5460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5461 (eval "$ac_link") 2>&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5465 { (case "(($ac_try" in
5466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467 *) ac_try_echo=$ac_try;;
5469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5470 (eval "$ac_try") 2>&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); }; }; then
5476 echo "$as_me: program exited with status $ac_status" >&5
5477 echo "$as_me: failed program was:" >&5
5478 sed 's/^/| /' conftest.$ac_ext >&5
5481 ac_cv_header_stdc=no
5483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5489 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5490 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5491 if test $ac_cv_header_stdc = yes; then
5493 cat >>confdefs.h <<\_ACEOF
5494 #define STDC_HEADERS 1
5499 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5509 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5510 inttypes.h stdint.h unistd.h
5512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5518 cat >conftest.$ac_ext <<_ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h. */
5524 $ac_includes_default
5526 #include <$ac_header>
5528 rm -f conftest.$ac_objext
5529 if { (ac_try="$ac_compile"
5531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5532 *) ac_try_echo=$ac_try;;
5534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5535 (eval "$ac_compile") 2>conftest.er1
5537 grep -v '^ *+' conftest.er1 >conftest.err
5539 cat conftest.err >&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); } && {
5542 test -z "$ac_c_werror_flag" ||
5543 test ! -s conftest.err
5544 } && test -s conftest.$ac_objext; then
5545 eval "$as_ac_Header=yes"
5547 echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5550 eval "$as_ac_Header=no"
5553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5555 ac_res=`eval echo '${'$as_ac_Header'}'`
5556 { echo "$as_me:$LINENO: result: $ac_res" >&5
5557 echo "${ECHO_T}$ac_res" >&6; }
5558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5559 cat >>confdefs.h <<_ACEOF
5560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5569 for ac_header in dlfcn.h
5571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5573 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 ac_res=`eval echo '${'$as_ac_Header'}'`
5579 { echo "$as_me:$LINENO: result: $ac_res" >&5
5580 echo "${ECHO_T}$ac_res" >&6; }
5582 # Is the header compilable?
5583 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5584 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5585 cat >conftest.$ac_ext <<_ACEOF
5588 cat confdefs.h >>conftest.$ac_ext
5589 cat >>conftest.$ac_ext <<_ACEOF
5590 /* end confdefs.h. */
5591 $ac_includes_default
5592 #include <$ac_header>
5594 rm -f conftest.$ac_objext
5595 if { (ac_try="$ac_compile"
5597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598 *) ac_try_echo=$ac_try;;
5600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5601 (eval "$ac_compile") 2>conftest.er1
5603 grep -v '^ *+' conftest.er1 >conftest.err
5605 cat conftest.err >&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); } && {
5608 test -z "$ac_c_werror_flag" ||
5609 test ! -s conftest.err
5610 } && test -s conftest.$ac_objext; then
5611 ac_header_compiler=yes
5613 echo "$as_me: failed program was:" >&5
5614 sed 's/^/| /' conftest.$ac_ext >&5
5616 ac_header_compiler=no
5619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5620 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5621 echo "${ECHO_T}$ac_header_compiler" >&6; }
5623 # Is the header present?
5624 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5626 cat >conftest.$ac_ext <<_ACEOF
5629 cat confdefs.h >>conftest.$ac_ext
5630 cat >>conftest.$ac_ext <<_ACEOF
5631 /* end confdefs.h. */
5632 #include <$ac_header>
5634 if { (ac_try="$ac_cpp conftest.$ac_ext"
5636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5637 *) ac_try_echo=$ac_try;;
5639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5642 grep -v '^ *+' conftest.er1 >conftest.err
5644 cat conftest.err >&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); } >/dev/null && {
5647 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5648 test ! -s conftest.err
5650 ac_header_preproc=yes
5652 echo "$as_me: failed program was:" >&5
5653 sed 's/^/| /' conftest.$ac_ext >&5
5655 ac_header_preproc=no
5658 rm -f conftest.err conftest.$ac_ext
5659 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5660 echo "${ECHO_T}$ac_header_preproc" >&6; }
5662 # So? What about this header?
5663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5665 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5666 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5668 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5669 ac_header_preproc=yes
5672 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5673 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5674 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5675 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5676 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5677 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5678 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5679 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5682 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5683 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5685 ## -------------------------------------------------- ##
5686 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
5687 ## -------------------------------------------------- ##
5689 ) | sed "s/^/$as_me: WARNING: /" >&2
5692 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5697 eval "$as_ac_Header=\$ac_header_preproc"
5699 ac_res=`eval echo '${'$as_ac_Header'}'`
5700 { echo "$as_me:$LINENO: result: $ac_res" >&5
5701 echo "${ECHO_T}$ac_res" >&6; }
5704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5705 cat >>confdefs.h <<_ACEOF
5706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5714 ac_cpp='$CXXCPP $CPPFLAGS'
5715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5718 if test -z "$CXX"; then
5719 if test -n "$CCC"; then
5722 if test -n "$ac_tool_prefix"; then
5723 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5726 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5729 if test "${ac_cv_prog_CXX+set}" = set; then
5730 echo $ECHO_N "(cached) $ECHO_C" >&6
5732 if test -n "$CXX"; then
5733 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 test -z "$as_dir" && as_dir=.
5740 for ac_exec_ext in '' $ac_executable_extensions; do
5741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5742 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5753 if test -n "$CXX"; then
5754 { echo "$as_me:$LINENO: result: $CXX" >&5
5755 echo "${ECHO_T}$CXX" >&6; }
5757 { echo "$as_me:$LINENO: result: no" >&5
5758 echo "${ECHO_T}no" >&6; }
5762 test -n "$CXX" && break
5765 if test -z "$CXX"; then
5767 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5769 # Extract the first word of "$ac_prog", so it can be a program name with args.
5770 set dummy $ac_prog; ac_word=$2
5771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5773 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5774 echo $ECHO_N "(cached) $ECHO_C" >&6
5776 if test -n "$ac_ct_CXX"; then
5777 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783 test -z "$as_dir" && as_dir=.
5784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5786 ac_cv_prog_ac_ct_CXX="$ac_prog"
5787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5796 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5797 if test -n "$ac_ct_CXX"; then
5798 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5799 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5801 { echo "$as_me:$LINENO: result: no" >&5
5802 echo "${ECHO_T}no" >&6; }
5806 test -n "$ac_ct_CXX" && break
5809 if test "x$ac_ct_CXX" = x; then
5812 case $cross_compiling:$ac_tool_warned in
5814 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5815 whose name does not start with the host triplet. If you think this
5816 configuration is useful to you, please write to autoconf@gnu.org." >&5
5817 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5818 whose name does not start with the host triplet. If you think this
5819 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5820 ac_tool_warned=yes ;;
5828 # Provide some information about the compiler.
5829 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5830 ac_compiler=`set X $ac_compile; echo $2`
5831 { (ac_try="$ac_compiler --version >&5"
5833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834 *) ac_try_echo=$ac_try;;
5836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837 (eval "$ac_compiler --version >&5") 2>&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }
5841 { (ac_try="$ac_compiler -v >&5"
5843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5844 *) ac_try_echo=$ac_try;;
5846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847 (eval "$ac_compiler -v >&5") 2>&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }
5851 { (ac_try="$ac_compiler -V >&5"
5853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5854 *) ac_try_echo=$ac_try;;
5856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5857 (eval "$ac_compiler -V >&5") 2>&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }
5862 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5863 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5864 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5867 cat >conftest.$ac_ext <<_ACEOF
5870 cat confdefs.h >>conftest.$ac_ext
5871 cat >>conftest.$ac_ext <<_ACEOF
5872 /* end confdefs.h. */
5885 rm -f conftest.$ac_objext
5886 if { (ac_try="$ac_compile"
5888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889 *) ac_try_echo=$ac_try;;
5891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5892 (eval "$ac_compile") 2>conftest.er1
5894 grep -v '^ *+' conftest.er1 >conftest.err
5896 cat conftest.err >&5
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); } && {
5899 test -z "$ac_cxx_werror_flag" ||
5900 test ! -s conftest.err
5901 } && test -s conftest.$ac_objext; then
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5911 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5914 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5915 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5916 GXX=`test $ac_compiler_gnu = yes && echo yes`
5917 ac_test_CXXFLAGS=${CXXFLAGS+set}
5918 ac_save_CXXFLAGS=$CXXFLAGS
5919 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5920 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5921 if test "${ac_cv_prog_cxx_g+set}" = set; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
5924 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5925 ac_cxx_werror_flag=yes
5928 cat >conftest.$ac_ext <<_ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5943 rm -f conftest.$ac_objext
5944 if { (ac_try="$ac_compile"
5946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947 *) ac_try_echo=$ac_try;;
5949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5950 (eval "$ac_compile") 2>conftest.er1
5952 grep -v '^ *+' conftest.er1 >conftest.err
5954 cat conftest.err >&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } && {
5957 test -z "$ac_cxx_werror_flag" ||
5958 test ! -s conftest.err
5959 } && test -s conftest.$ac_objext; then
5960 ac_cv_prog_cxx_g=yes
5962 echo "$as_me: failed program was:" >&5
5963 sed 's/^/| /' conftest.$ac_ext >&5
5966 cat >conftest.$ac_ext <<_ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5981 rm -f conftest.$ac_objext
5982 if { (ac_try="$ac_compile"
5984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985 *) ac_try_echo=$ac_try;;
5987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5988 (eval "$ac_compile") 2>conftest.er1
5990 grep -v '^ *+' conftest.er1 >conftest.err
5992 cat conftest.err >&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } && {
5995 test -z "$ac_cxx_werror_flag" ||
5996 test ! -s conftest.err
5997 } && test -s conftest.$ac_objext; then
6000 echo "$as_me: failed program was:" >&5
6001 sed 's/^/| /' conftest.$ac_ext >&5
6003 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6005 cat >conftest.$ac_ext <<_ACEOF
6008 cat confdefs.h >>conftest.$ac_ext
6009 cat >>conftest.$ac_ext <<_ACEOF
6010 /* end confdefs.h. */
6020 rm -f conftest.$ac_objext
6021 if { (ac_try="$ac_compile"
6023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6024 *) ac_try_echo=$ac_try;;
6026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6027 (eval "$ac_compile") 2>conftest.er1
6029 grep -v '^ *+' conftest.er1 >conftest.err
6031 cat conftest.err >&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); } && {
6034 test -z "$ac_cxx_werror_flag" ||
6035 test ! -s conftest.err
6036 } && test -s conftest.$ac_objext; then
6037 ac_cv_prog_cxx_g=yes
6039 echo "$as_me: failed program was:" >&5
6040 sed 's/^/| /' conftest.$ac_ext >&5
6045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6054 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6055 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6056 if test "$ac_test_CXXFLAGS" = set; then
6057 CXXFLAGS=$ac_save_CXXFLAGS
6058 elif test $ac_cv_prog_cxx_g = yes; then
6059 if test "$GXX" = yes; then
6065 if test "$GXX" = yes; then
6072 ac_cpp='$CXXCPP $CPPFLAGS'
6073 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6074 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6075 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6077 depcc="$CXX" am_compiler_list=
6079 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6080 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6081 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6084 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6085 # We make a subdir and do the tests there. Otherwise we can end up
6086 # making bogus files that we don't know about and never remove. For
6087 # instance it was reported that on HP-UX the gcc test will end up
6088 # making a dummy file named `D' -- because `-MD' means `put the output
6091 # Copy depcomp to subdir because otherwise we won't find it if we're
6092 # using a relative directory.
6093 cp "$am_depcomp" conftest.dir
6095 # We will build objects and dependencies in a subdirectory because
6096 # it helps to detect inapplicable dependency modes. For instance
6097 # both Tru64's cc and ICC support -MD to output dependencies as a
6098 # side effect of compilation, but ICC will put the dependencies in
6099 # the current directory while Tru64 will put them in the object
6103 am_cv_CXX_dependencies_compiler_type=none
6104 if test "$am_compiler_list" = ""; then
6105 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6107 for depmode in $am_compiler_list; do
6108 # Setup a source with many dependencies, because some compilers
6109 # like to wrap large dependency lists on column 80 (with \), and
6110 # we should not choose a depcomp mode which is confused by this.
6112 # We need to recreate these files for each test, as the compiler may
6113 # overwrite some of them when testing with obscure command lines.
6114 # This happens at least with the AIX C compiler.
6116 for i in 1 2 3 4 5 6; do
6117 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6118 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6119 # Solaris 8's {/usr,}/bin/sh.
6120 touch sub/conftst$i.h
6122 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6126 # after this tag, mechanisms are not by side-effect, so they'll
6127 # only be used when explicitly requested
6128 if test "x$enable_dependency_tracking" = xyes; then
6136 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6137 # mode. It turns out that the SunPro C++ compiler does not properly
6138 # handle `-M -o', and we need to detect this.
6139 if depmode=$depmode \
6140 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6141 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6142 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6143 >/dev/null 2>conftest.err &&
6144 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6145 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6146 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6147 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6148 # icc doesn't choke on unknown options, it will just issue warnings
6149 # or remarks (even with -Werror). So we grep stderr for any message
6150 # that says an option was ignored or not supported.
6151 # When given -MP, icc 7.0 and 7.1 complain thusly:
6152 # icc: Command line warning: ignoring option '-M'; no argument required
6153 # The diagnosis changed in icc 8.0:
6154 # icc: Command line remark: option '-MP' not supported
6155 if (grep 'ignoring option' conftest.err ||
6156 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6157 am_cv_CXX_dependencies_compiler_type=$depmode
6166 am_cv_CXX_dependencies_compiler_type=none
6170 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6171 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6172 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6175 test "x$enable_dependency_tracking" != xno \
6176 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6177 am__fastdepCXX_TRUE=
6178 am__fastdepCXX_FALSE='#'
6180 am__fastdepCXX_TRUE='#'
6181 am__fastdepCXX_FALSE=
6187 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6188 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6189 (test "X$CXX" != "Xg++"))) ; then
6191 ac_cpp='$CXXCPP $CPPFLAGS'
6192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6195 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6196 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6197 if test -z "$CXXCPP"; then
6198 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 # Double quotes because CXXCPP needs to be expanded
6202 for CXXCPP in "$CXX -E" "/lib/cpp"
6205 for ac_cxx_preproc_warn_flag in '' yes
6207 # Use a header file that comes with gcc, so configuring glibc
6208 # with a fresh cross-compiler works.
6209 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6210 # <limits.h> exists even on freestanding compilers.
6211 # On the NeXT, cc -E runs the code through the compiler's parser,
6212 # not just through cpp. "Syntax error" is here to catch this case.
6213 cat >conftest.$ac_ext <<_ACEOF
6216 cat confdefs.h >>conftest.$ac_ext
6217 cat >>conftest.$ac_ext <<_ACEOF
6218 /* end confdefs.h. */
6220 # include <limits.h>
6222 # include <assert.h>
6226 if { (ac_try="$ac_cpp conftest.$ac_ext"
6228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6229 *) ac_try_echo=$ac_try;;
6231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6234 grep -v '^ *+' conftest.er1 >conftest.err
6236 cat conftest.err >&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); } >/dev/null && {
6239 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6240 test ! -s conftest.err
6244 echo "$as_me: failed program was:" >&5
6245 sed 's/^/| /' conftest.$ac_ext >&5
6247 # Broken: fails on valid input.
6251 rm -f conftest.err conftest.$ac_ext
6253 # OK, works on sane cases. Now check whether nonexistent headers
6254 # can be detected and how.
6255 cat >conftest.$ac_ext <<_ACEOF
6258 cat confdefs.h >>conftest.$ac_ext
6259 cat >>conftest.$ac_ext <<_ACEOF
6260 /* end confdefs.h. */
6261 #include <ac_nonexistent.h>
6263 if { (ac_try="$ac_cpp conftest.$ac_ext"
6265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266 *) ac_try_echo=$ac_try;;
6268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6271 grep -v '^ *+' conftest.er1 >conftest.err
6273 cat conftest.err >&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); } >/dev/null && {
6276 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6277 test ! -s conftest.err
6279 # Broken: success on invalid input.
6282 echo "$as_me: failed program was:" >&5
6283 sed 's/^/| /' conftest.$ac_ext >&5
6285 # Passes both tests.
6290 rm -f conftest.err conftest.$ac_ext
6293 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6294 rm -f conftest.err conftest.$ac_ext
6295 if $ac_preproc_ok; then
6300 ac_cv_prog_CXXCPP=$CXXCPP
6303 CXXCPP=$ac_cv_prog_CXXCPP
6305 ac_cv_prog_CXXCPP=$CXXCPP
6307 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6308 echo "${ECHO_T}$CXXCPP" >&6; }
6310 for ac_cxx_preproc_warn_flag in '' yes
6312 # Use a header file that comes with gcc, so configuring glibc
6313 # with a fresh cross-compiler works.
6314 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6315 # <limits.h> exists even on freestanding compilers.
6316 # On the NeXT, cc -E runs the code through the compiler's parser,
6317 # not just through cpp. "Syntax error" is here to catch this case.
6318 cat >conftest.$ac_ext <<_ACEOF
6321 cat confdefs.h >>conftest.$ac_ext
6322 cat >>conftest.$ac_ext <<_ACEOF
6323 /* end confdefs.h. */
6325 # include <limits.h>
6327 # include <assert.h>
6331 if { (ac_try="$ac_cpp conftest.$ac_ext"
6333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6334 *) ac_try_echo=$ac_try;;
6336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6339 grep -v '^ *+' conftest.er1 >conftest.err
6341 cat conftest.err >&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); } >/dev/null && {
6344 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6345 test ! -s conftest.err
6349 echo "$as_me: failed program was:" >&5
6350 sed 's/^/| /' conftest.$ac_ext >&5
6352 # Broken: fails on valid input.
6356 rm -f conftest.err conftest.$ac_ext
6358 # OK, works on sane cases. Now check whether nonexistent headers
6359 # can be detected and how.
6360 cat >conftest.$ac_ext <<_ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h. */
6366 #include <ac_nonexistent.h>
6368 if { (ac_try="$ac_cpp conftest.$ac_ext"
6370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6371 *) ac_try_echo=$ac_try;;
6373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6374 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6376 grep -v '^ *+' conftest.er1 >conftest.err
6378 cat conftest.err >&5
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); } >/dev/null && {
6381 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6382 test ! -s conftest.err
6384 # Broken: success on invalid input.
6387 echo "$as_me: failed program was:" >&5
6388 sed 's/^/| /' conftest.$ac_ext >&5
6390 # Passes both tests.
6395 rm -f conftest.err conftest.$ac_ext
6398 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6399 rm -f conftest.err conftest.$ac_ext
6400 if $ac_preproc_ok; then
6403 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6404 See \`config.log' for more details." >&5
6405 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6406 See \`config.log' for more details." >&2;}
6407 { (exit 1); exit 1; }; }
6411 ac_cpp='$CXXCPP $CPPFLAGS'
6412 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6413 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6414 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6422 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6423 # find the maximum length of command line arguments
6424 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6425 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6426 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6427 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 # On DJGPP, this test can blow up pretty badly due to problems in libc
6435 # (any single argument exceeding 2000 bytes causes a buffer overrun
6436 # during glob expansion). Even if it were fixed, the result of this
6437 # check would be larger than it should be.
6438 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6442 # Under GNU Hurd, this test is not required because there is
6443 # no limit to the length of command line arguments.
6444 # Libtool will interpret -1 as no limit whatsoever
6445 lt_cv_sys_max_cmd_len=-1;
6449 # On Win9x/ME, this test blows up -- it succeeds, but takes
6450 # about 5 minutes as the teststring grows exponentially.
6451 # Worse, since 9x/ME are not pre-emptively multitasking,
6452 # you end up with a "frozen" computer, even though with patience
6453 # the test eventually succeeds (with a max line length of 256k).
6454 # Instead, let's just punt: use the minimum linelength reported by
6455 # all of the supported platforms: 8192 (on NT/2K/XP).
6456 lt_cv_sys_max_cmd_len=8192;
6460 # On AmigaOS with pdksh, this test takes hours, literally.
6461 # So we just punt and use a minimum line length of 8192.
6462 lt_cv_sys_max_cmd_len=8192;
6465 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6466 # This has been around since 386BSD, at least. Likely further.
6467 if test -x /sbin/sysctl; then
6468 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6469 elif test -x /usr/sbin/sysctl; then
6470 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6472 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6474 # And add a safety zone
6475 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6476 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6480 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6481 lt_cv_sys_max_cmd_len=196608
6485 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6486 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6487 # nice to cause kernel panics so lets avoid the loop below.
6488 # First set a reasonable default.
6489 lt_cv_sys_max_cmd_len=16384
6491 if test -x /sbin/sysconfig; then
6492 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6493 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6498 lt_cv_sys_max_cmd_len=102400
6500 sysv5* | sco5v6* | sysv4.2uw2*)
6501 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6502 if test -n "$kargmax"; then
6503 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6505 lt_cv_sys_max_cmd_len=32768
6509 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6510 if test -n "$lt_cv_sys_max_cmd_len"; then
6511 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6512 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6514 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6515 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6516 = "XX$teststring") >/dev/null 2>&1 &&
6517 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6518 lt_cv_sys_max_cmd_len=$new_result &&
6519 test $i != 17 # 1/2 MB should be enough
6522 teststring=$teststring$teststring
6525 # Add a significant safety factor because C++ compilers can tack on massive
6526 # amounts of additional arguments before passing them to the linker.
6527 # It appears as though 1/2 is a usable value.
6528 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6535 if test -n $lt_cv_sys_max_cmd_len ; then
6536 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6537 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6539 { echo "$as_me:$LINENO: result: none" >&5
6540 echo "${ECHO_T}none" >&6; }
6547 # Check for command to grab the raw symbol name followed by C symbol from nm.
6548 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6549 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6550 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6551 echo $ECHO_N "(cached) $ECHO_C" >&6
6554 # These are sane defaults that work on at least a few old systems.
6555 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6557 # Character class describing NM global symbol codes.
6558 symcode='[BCDEGRST]'
6560 # Regexp to match symbols that can be accessed directly from C.
6561 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6563 # Transform an extracted symbol line into a proper C declaration
6564 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6566 # Transform an extracted symbol line into symbol name and symbol address
6567 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'"
6569 # Define system-specific variables.
6574 cygwin* | mingw* | pw32*)
6575 symcode='[ABCDGISTW]'
6577 hpux*) # Its linker distinguishes data from code symbols
6578 if test "$host_cpu" = ia64; then
6579 symcode='[ABCDEGRST]'
6581 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6582 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'"
6584 linux* | k*bsd*-gnu)
6585 if test "$host_cpu" = ia64; then
6586 symcode='[ABCDGIRSTW]'
6587 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6588 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'"
6592 symcode='[BCDEGRST]'
6595 symcode='[BCDEGQRST]'
6606 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6614 # Handle CRLF in mingw tool chain
6618 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6622 # If we're using GNU nm, then use its standard symbol codes.
6623 case `$NM -V 2>&1` in
6624 *GNU* | *'with BFD'*)
6625 symcode='[ABCDGIRSTW]' ;;
6628 # Try without a prefix undercore, then with it.
6629 for ac_symprfx in "" "_"; do
6631 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6632 symxfrm="\\1 $ac_symprfx\\2 \\2"
6634 # Write the raw and C identifiers.
6635 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6637 # Check to see that the pipe works correctly.
6641 cat > conftest.$ac_ext <<EOF
6646 void nm_test_func(){}
6650 int main(){nm_test_var='a';nm_test_func();return(0);}
6653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6654 (eval $ac_compile) 2>&5
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); }; then
6658 # Now try to grab the symbols.
6660 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6661 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); } && test -s "$nlist"; then
6665 # Try sorting and uniquifying the output.
6666 if sort "$nlist" | uniq > "$nlist"T; then
6667 mv -f "$nlist"T "$nlist"
6672 # Make sure that we snagged all the symbols we need.
6673 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6674 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6675 cat <<EOF > conftest.$ac_ext
6681 # Now generate the symbol file.
6682 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6684 cat <<EOF >> conftest.$ac_ext
6685 #if defined (__STDC__) && __STDC__
6686 # define lt_ptr_t void *
6688 # define lt_ptr_t char *
6692 /* The mapping between symbol names and symbols. */
6697 lt_preloaded_symbols[] =
6700 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6701 cat <<\EOF >> conftest.$ac_ext
6709 # Now try linking the two files.
6710 mv conftest.$ac_objext conftstm.$ac_objext
6711 lt_save_LIBS="$LIBS"
6712 lt_save_CFLAGS="$CFLAGS"
6713 LIBS="conftstm.$ac_objext"
6714 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6716 (eval $ac_link) 2>&5
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6722 LIBS="$lt_save_LIBS"
6723 CFLAGS="$lt_save_CFLAGS"
6725 echo "cannot find nm_test_func in $nlist" >&5
6728 echo "cannot find nm_test_var in $nlist" >&5
6731 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6734 echo "$progname: failed program was:" >&5
6735 cat conftest.$ac_ext >&5
6737 rm -rf conftest* conftst*
6739 # Do not use the global_symbol_pipe unless it works.
6740 if test "$pipe_works" = yes; then
6743 lt_cv_sys_global_symbol_pipe=
6749 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6750 lt_cv_sys_global_symbol_to_cdecl=
6752 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6753 { echo "$as_me:$LINENO: result: failed" >&5
6754 echo "${ECHO_T}failed" >&6; }
6756 { echo "$as_me:$LINENO: result: ok" >&5
6757 echo "${ECHO_T}ok" >&6; }
6760 { echo "$as_me:$LINENO: checking for objdir" >&5
6761 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6762 if test "${lt_cv_objdir+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 rm -f .libs 2>/dev/null
6766 mkdir .libs 2>/dev/null
6767 if test -d .libs; then
6770 # MS-DOS does not allow filenames that begin with a dot.
6773 rmdir .libs 2>/dev/null
6775 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6776 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6777 objdir=$lt_cv_objdir
6785 # AIX sometimes has problems with the GCC collect2 program. For some
6786 # reason, if we set the COLLECT_NAMES environment variable, the problems
6787 # vanish in a puff of smoke.
6788 if test "X${COLLECT_NAMES+set}" != Xset; then
6790 export COLLECT_NAMES
6795 # Sed substitution that helps us do robust quoting. It backslashifies
6796 # metacharacters that are still active within double-quoted strings.
6797 Xsed='sed -e 1s/^X//'
6798 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6800 # Same as above, but do not quote variable references.
6801 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6803 # Sed substitution to delay expansion of an escaped shell variable in a
6804 # double_quote_subst'ed string.
6805 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6807 # Sed substitution to avoid accidental globbing in evaled expressions
6808 no_glob_subst='s/\*/\\\*/g'
6814 default_ofile=libtool
6815 can_build_shared=yes
6817 # All known linkers require a `.a' archive for static linking (except MSVC,
6818 # which needs '.lib').
6820 ltmain="$ac_aux_dir/ltmain.sh"
6821 ofile="$default_ofile"
6822 with_gnu_ld="$lt_cv_prog_gnu_ld"
6824 if test -n "$ac_tool_prefix"; then
6825 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6826 set dummy ${ac_tool_prefix}ar; ac_word=$2
6827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6829 if test "${ac_cv_prog_AR+set}" = set; then
6830 echo $ECHO_N "(cached) $ECHO_C" >&6
6832 if test -n "$AR"; then
6833 ac_cv_prog_AR="$AR" # Let the user override the test.
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 test -z "$as_dir" && as_dir=.
6840 for ac_exec_ext in '' $ac_executable_extensions; do
6841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6842 ac_cv_prog_AR="${ac_tool_prefix}ar"
6843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 if test -n "$AR"; then
6854 { echo "$as_me:$LINENO: result: $AR" >&5
6855 echo "${ECHO_T}$AR" >&6; }
6857 { echo "$as_me:$LINENO: result: no" >&5
6858 echo "${ECHO_T}no" >&6; }
6863 if test -z "$ac_cv_prog_AR"; then
6865 # Extract the first word of "ar", so it can be a program name with args.
6866 set dummy ar; ac_word=$2
6867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6869 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6872 if test -n "$ac_ct_AR"; then
6873 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6882 ac_cv_prog_ac_ct_AR="ar"
6883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6892 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6893 if test -n "$ac_ct_AR"; then
6894 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6895 echo "${ECHO_T}$ac_ct_AR" >&6; }
6897 { echo "$as_me:$LINENO: result: no" >&5
6898 echo "${ECHO_T}no" >&6; }
6901 if test "x$ac_ct_AR" = x; then
6904 case $cross_compiling:$ac_tool_warned in
6906 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6907 whose name does not start with the host triplet. If you think this
6908 configuration is useful to you, please write to autoconf@gnu.org." >&5
6909 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6910 whose name does not start with the host triplet. If you think this
6911 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6912 ac_tool_warned=yes ;;
6920 if test -n "$ac_tool_prefix"; then
6921 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6922 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6925 if test "${ac_cv_prog_RANLIB+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6928 if test -n "$RANLIB"; then
6929 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 test -z "$as_dir" && as_dir=.
6936 for ac_exec_ext in '' $ac_executable_extensions; do
6937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6938 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6948 RANLIB=$ac_cv_prog_RANLIB
6949 if test -n "$RANLIB"; then
6950 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6951 echo "${ECHO_T}$RANLIB" >&6; }
6953 { echo "$as_me:$LINENO: result: no" >&5
6954 echo "${ECHO_T}no" >&6; }
6959 if test -z "$ac_cv_prog_RANLIB"; then
6960 ac_ct_RANLIB=$RANLIB
6961 # Extract the first word of "ranlib", so it can be a program name with args.
6962 set dummy ranlib; ac_word=$2
6963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6965 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
6968 if test -n "$ac_ct_RANLIB"; then
6969 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 test -z "$as_dir" && as_dir=.
6976 for ac_exec_ext in '' $ac_executable_extensions; do
6977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6978 ac_cv_prog_ac_ct_RANLIB="ranlib"
6979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6988 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6989 if test -n "$ac_ct_RANLIB"; then
6990 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6991 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6993 { echo "$as_me:$LINENO: result: no" >&5
6994 echo "${ECHO_T}no" >&6; }
6997 if test "x$ac_ct_RANLIB" = x; then
7000 case $cross_compiling:$ac_tool_warned in
7002 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7003 whose name does not start with the host triplet. If you think this
7004 configuration is useful to you, please write to autoconf@gnu.org." >&5
7005 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7006 whose name does not start with the host triplet. If you think this
7007 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7008 ac_tool_warned=yes ;;
7010 RANLIB=$ac_ct_RANLIB
7013 RANLIB="$ac_cv_prog_RANLIB"
7016 if test -n "$ac_tool_prefix"; then
7017 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7018 set dummy ${ac_tool_prefix}strip; ac_word=$2
7019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7021 if test "${ac_cv_prog_STRIP+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7024 if test -n "$STRIP"; then
7025 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 test -z "$as_dir" && as_dir=.
7032 for ac_exec_ext in '' $ac_executable_extensions; do
7033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7034 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7044 STRIP=$ac_cv_prog_STRIP
7045 if test -n "$STRIP"; then
7046 { echo "$as_me:$LINENO: result: $STRIP" >&5
7047 echo "${ECHO_T}$STRIP" >&6; }
7049 { echo "$as_me:$LINENO: result: no" >&5
7050 echo "${ECHO_T}no" >&6; }
7055 if test -z "$ac_cv_prog_STRIP"; then
7057 # Extract the first word of "strip", so it can be a program name with args.
7058 set dummy strip; ac_word=$2
7059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7061 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7064 if test -n "$ac_ct_STRIP"; then
7065 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 test -z "$as_dir" && as_dir=.
7072 for ac_exec_ext in '' $ac_executable_extensions; do
7073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7074 ac_cv_prog_ac_ct_STRIP="strip"
7075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7084 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7085 if test -n "$ac_ct_STRIP"; then
7086 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7087 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7089 { echo "$as_me:$LINENO: result: no" >&5
7090 echo "${ECHO_T}no" >&6; }
7093 if test "x$ac_ct_STRIP" = x; then
7096 case $cross_compiling:$ac_tool_warned in
7098 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7099 whose name does not start with the host triplet. If you think this
7100 configuration is useful to you, please write to autoconf@gnu.org." >&5
7101 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7102 whose name does not start with the host triplet. If you think this
7103 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7104 ac_tool_warned=yes ;;
7109 STRIP="$ac_cv_prog_STRIP"
7114 old_CFLAGS="$CFLAGS"
7116 # Set sane defaults for various variables
7117 test -z "$AR" && AR=ar
7118 test -z "$AR_FLAGS" && AR_FLAGS=cru
7119 test -z "$AS" && AS=as
7120 test -z "$CC" && CC=cc
7121 test -z "$LTCC" && LTCC=$CC
7122 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7123 test -z "$DLLTOOL" && DLLTOOL=dlltool
7124 test -z "$LD" && LD=ld
7125 test -z "$LN_S" && LN_S="ln -s"
7126 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7127 test -z "$NM" && NM=nm
7128 test -z "$SED" && SED=sed
7129 test -z "$OBJDUMP" && OBJDUMP=objdump
7130 test -z "$RANLIB" && RANLIB=:
7131 test -z "$STRIP" && STRIP=:
7132 test -z "$ac_objext" && ac_objext=o
7134 # Determine commands to create old-style static archives.
7135 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7136 old_postinstall_cmds='chmod 644 $oldlib'
7137 old_postuninstall_cmds=
7139 if test -n "$RANLIB"; then
7142 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7145 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7148 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7151 for cc_temp in $compiler""; do
7153 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7154 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7159 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7162 # Only perform the check for file, if the check method requires it
7163 case $deplibs_check_method in
7165 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7166 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7167 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7168 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7173 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7176 lt_save_MAGIC_CMD="$MAGIC_CMD"
7177 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7178 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7179 for ac_dir in $ac_dummy; do
7181 test -z "$ac_dir" && ac_dir=.
7182 if test -f $ac_dir/${ac_tool_prefix}file; then
7183 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7184 if test -n "$file_magic_test_file"; then
7185 case $deplibs_check_method in
7187 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7188 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7189 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7190 $EGREP "$file_magic_regex" > /dev/null; then
7195 *** Warning: the command libtool uses to detect shared libraries,
7196 *** $file_magic_cmd, produces output that libtool cannot recognize.
7197 *** The result is that libtool may fail to recognize shared libraries
7198 *** as such. This will affect the creation of libtool libraries that
7199 *** depend on shared libraries, but programs linked with such libtool
7200 *** libraries will work regardless of this problem. Nevertheless, you
7201 *** may want to report the problem to your system manager and/or to
7202 *** bug-libtool@gnu.org
7212 MAGIC_CMD="$lt_save_MAGIC_CMD"
7217 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7218 if test -n "$MAGIC_CMD"; then
7219 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7220 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7222 { echo "$as_me:$LINENO: result: no" >&5
7223 echo "${ECHO_T}no" >&6; }
7226 if test -z "$lt_cv_path_MAGIC_CMD"; then
7227 if test -n "$ac_tool_prefix"; then
7228 { echo "$as_me:$LINENO: checking for file" >&5
7229 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7230 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7235 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7238 lt_save_MAGIC_CMD="$MAGIC_CMD"
7239 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7240 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7241 for ac_dir in $ac_dummy; do
7243 test -z "$ac_dir" && ac_dir=.
7244 if test -f $ac_dir/file; then
7245 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7246 if test -n "$file_magic_test_file"; then
7247 case $deplibs_check_method in
7249 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7250 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7251 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7252 $EGREP "$file_magic_regex" > /dev/null; then
7257 *** Warning: the command libtool uses to detect shared libraries,
7258 *** $file_magic_cmd, produces output that libtool cannot recognize.
7259 *** The result is that libtool may fail to recognize shared libraries
7260 *** as such. This will affect the creation of libtool libraries that
7261 *** depend on shared libraries, but programs linked with such libtool
7262 *** libraries will work regardless of this problem. Nevertheless, you
7263 *** may want to report the problem to your system manager and/or to
7264 *** bug-libtool@gnu.org
7274 MAGIC_CMD="$lt_save_MAGIC_CMD"
7279 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7280 if test -n "$MAGIC_CMD"; then
7281 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7282 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7284 { echo "$as_me:$LINENO: result: no" >&5
7285 echo "${ECHO_T}no" >&6; }
7299 rhapsody* | darwin*)
7300 if test -n "$ac_tool_prefix"; then
7301 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7302 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7305 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7308 if test -n "$DSYMUTIL"; then
7309 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 test -z "$as_dir" && as_dir=.
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7318 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7329 if test -n "$DSYMUTIL"; then
7330 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7331 echo "${ECHO_T}$DSYMUTIL" >&6; }
7333 { echo "$as_me:$LINENO: result: no" >&5
7334 echo "${ECHO_T}no" >&6; }
7339 if test -z "$ac_cv_prog_DSYMUTIL"; then
7340 ac_ct_DSYMUTIL=$DSYMUTIL
7341 # Extract the first word of "dsymutil", so it can be a program name with args.
7342 set dummy dsymutil; ac_word=$2
7343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7345 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7346 echo $ECHO_N "(cached) $ECHO_C" >&6
7348 if test -n "$ac_ct_DSYMUTIL"; then
7349 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7358 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7369 if test -n "$ac_ct_DSYMUTIL"; then
7370 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7371 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7373 { echo "$as_me:$LINENO: result: no" >&5
7374 echo "${ECHO_T}no" >&6; }
7377 if test "x$ac_ct_DSYMUTIL" = x; then
7380 case $cross_compiling:$ac_tool_warned in
7382 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7383 whose name does not start with the host triplet. If you think this
7384 configuration is useful to you, please write to autoconf@gnu.org." >&5
7385 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7386 whose name does not start with the host triplet. If you think this
7387 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7388 ac_tool_warned=yes ;;
7390 DSYMUTIL=$ac_ct_DSYMUTIL
7393 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7396 if test -n "$ac_tool_prefix"; then
7397 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7398 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7401 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7404 if test -n "$NMEDIT"; then
7405 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411 test -z "$as_dir" && as_dir=.
7412 for ac_exec_ext in '' $ac_executable_extensions; do
7413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7414 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7424 NMEDIT=$ac_cv_prog_NMEDIT
7425 if test -n "$NMEDIT"; then
7426 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7427 echo "${ECHO_T}$NMEDIT" >&6; }
7429 { echo "$as_me:$LINENO: result: no" >&5
7430 echo "${ECHO_T}no" >&6; }
7435 if test -z "$ac_cv_prog_NMEDIT"; then
7436 ac_ct_NMEDIT=$NMEDIT
7437 # Extract the first word of "nmedit", so it can be a program name with args.
7438 set dummy nmedit; ac_word=$2
7439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7441 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 if test -n "$ac_ct_NMEDIT"; then
7445 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451 test -z "$as_dir" && as_dir=.
7452 for ac_exec_ext in '' $ac_executable_extensions; do
7453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7454 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7464 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7465 if test -n "$ac_ct_NMEDIT"; then
7466 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7467 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7469 { echo "$as_me:$LINENO: result: no" >&5
7470 echo "${ECHO_T}no" >&6; }
7473 if test "x$ac_ct_NMEDIT" = x; then
7476 case $cross_compiling:$ac_tool_warned in
7478 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7479 whose name does not start with the host triplet. If you think this
7480 configuration is useful to you, please write to autoconf@gnu.org." >&5
7481 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7482 whose name does not start with the host triplet. If you think this
7483 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7484 ac_tool_warned=yes ;;
7486 NMEDIT=$ac_ct_NMEDIT
7489 NMEDIT="$ac_cv_prog_NMEDIT"
7493 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7494 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7495 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
7498 lt_cv_apple_cc_single_mod=no
7499 if test -z "${LT_MULTI_MODULE}"; then
7500 # By default we will add the -single_module flag. You can override
7501 # by either setting the environment variable LT_MULTI_MODULE
7502 # non-empty at configure time, or by adding -multi_module to the
7504 echo "int foo(void){return 1;}" > conftest.c
7505 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7506 -dynamiclib ${wl}-single_module conftest.c
7507 if test -f libconftest.dylib; then
7508 lt_cv_apple_cc_single_mod=yes
7509 rm -rf libconftest.dylib*
7514 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7515 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7516 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7517 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7518 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 lt_cv_ld_exported_symbols_list=no
7522 save_LDFLAGS=$LDFLAGS
7523 echo "_main" > conftest.sym
7524 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7525 cat >conftest.$ac_ext <<_ACEOF
7528 cat confdefs.h >>conftest.$ac_ext
7529 cat >>conftest.$ac_ext <<_ACEOF
7530 /* end confdefs.h. */
7540 rm -f conftest.$ac_objext conftest$ac_exeext
7541 if { (ac_try="$ac_link"
7543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7544 *) ac_try_echo=$ac_try;;
7546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7547 (eval "$ac_link") 2>conftest.er1
7549 grep -v '^ *+' conftest.er1 >conftest.err
7551 cat conftest.err >&5
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); } && {
7554 test -z "$ac_c_werror_flag" ||
7555 test ! -s conftest.err
7556 } && test -s conftest$ac_exeext &&
7557 $as_test_x conftest$ac_exeext; then
7558 lt_cv_ld_exported_symbols_list=yes
7560 echo "$as_me: failed program was:" >&5
7561 sed 's/^/| /' conftest.$ac_ext >&5
7563 lt_cv_ld_exported_symbols_list=no
7566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7567 conftest$ac_exeext conftest.$ac_ext
7568 LDFLAGS="$save_LDFLAGS"
7571 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7572 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7574 rhapsody* | darwin1.[0123])
7575 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7577 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7579 # if running on 10.5 or later, the deployment target defaults
7580 # to the OS version, if on x86, and 10.4, the deployment
7581 # target defaults to 10.4. Don't you love it?
7582 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7583 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7584 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7586 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7588 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7592 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7593 _lt_dar_single_mod='$single_module'
7595 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7596 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7598 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7600 if test "$DSYMUTIL" != ":"; then
7601 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7610 enable_win32_dll=yes
7612 # Check whether --enable-libtool-lock was given.
7613 if test "${enable_libtool_lock+set}" = set; then
7614 enableval=$enable_libtool_lock;
7617 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7620 # Check whether --with-pic was given.
7621 if test "${with_pic+set}" = set; then
7622 withval=$with_pic; pic_mode="$withval"
7627 test -z "$pic_mode" && pic_mode=default
7629 # Use C for the default configuration in the libtool script
7633 ac_cpp='$CPP $CPPFLAGS'
7634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7639 # Source file extension for C test sources.
7642 # Object file extension for compiled C test sources.
7646 # Code to be used in simple compile tests
7647 lt_simple_compile_test_code="int some_variable = 0;"
7649 # Code to be used in simple link tests
7650 lt_simple_link_test_code='int main(){return(0);}'
7653 # If no C compiler was specified, use CC.
7656 # If no C compiler flags were specified, use CFLAGS.
7657 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7659 # Allow CC to be a program name with arguments.
7663 # save warnings/boilerplate of simple test code
7664 ac_outfile=conftest.$ac_objext
7665 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7666 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7667 _lt_compiler_boilerplate=`cat conftest.err`
7670 ac_outfile=conftest.$ac_objext
7671 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7672 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7673 _lt_linker_boilerplate=`cat conftest.err`
7678 lt_prog_compiler_no_builtin_flag=
7680 if test "$GCC" = yes; then
7681 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7684 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7685 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7686 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7689 lt_cv_prog_compiler_rtti_exceptions=no
7690 ac_outfile=conftest.$ac_objext
7691 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7692 lt_compiler_flag="-fno-rtti -fno-exceptions"
7693 # Insert the option either (1) after the last *FLAGS variable, or
7694 # (2) before a word containing "conftest.", or (3) at the end.
7695 # Note that $ac_compile itself does not contain backslashes and begins
7696 # with a dollar sign (not a hyphen), so the echo should work correctly.
7697 # The option is referenced via a variable to avoid confusing sed.
7698 lt_compile=`echo "$ac_compile" | $SED \
7699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7701 -e 's:$: $lt_compiler_flag:'`
7702 (eval echo "\"\$as_me:7702: $lt_compile\"" >&5)
7703 (eval "$lt_compile" 2>conftest.err)
7705 cat conftest.err >&5
7706 echo "$as_me:7706: \$? = $ac_status" >&5
7707 if (exit $ac_status) && test -s "$ac_outfile"; then
7708 # The compiler can only warn and ignore the option if not recognized
7709 # So say no if there are warnings other than the usual output.
7710 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7712 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7713 lt_cv_prog_compiler_rtti_exceptions=yes
7719 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7720 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7722 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7723 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7730 lt_prog_compiler_wl=
7731 lt_prog_compiler_pic=
7732 lt_prog_compiler_static=
7734 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7735 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7737 if test "$GCC" = yes; then
7738 lt_prog_compiler_wl='-Wl,'
7739 lt_prog_compiler_static='-static'
7743 # All AIX code is PIC.
7744 if test "$host_cpu" = ia64; then
7745 # AIX 5 now supports IA64 processor
7746 lt_prog_compiler_static='-Bstatic'
7751 # FIXME: we need at least 68020 code to build shared libraries, but
7752 # adding the `-m68020' flag to GCC prevents building anything better,
7754 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7757 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7758 # PIC is the default for these OSes.
7761 mingw* | cygwin* | pw32* | os2*)
7762 # This hack is so that the source file can tell whether it is being
7763 # built for inclusion in a dll (and should export symbols for example).
7764 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7765 # (--disable-auto-import) libraries
7766 lt_prog_compiler_pic='-DDLL_EXPORT'
7769 darwin* | rhapsody*)
7770 # PIC is the default on this platform
7771 # Common symbols not allowed in MH_DYLIB files
7772 lt_prog_compiler_pic='-fno-common'
7776 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7777 # Instead, we relocate shared libraries at runtime.
7781 # Just because we use GCC doesn't mean we suddenly get shared libraries
7782 # on systems that don't support them.
7783 lt_prog_compiler_can_build_shared=no
7788 if test -d /usr/nec; then
7789 lt_prog_compiler_pic=-Kconform_pic
7794 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7801 lt_prog_compiler_pic='-fPIC'
7807 lt_prog_compiler_pic='-fPIC'
7811 # PORTME Check for flag to pass linker flags through the system compiler.
7814 lt_prog_compiler_wl='-Wl,'
7815 if test "$host_cpu" = ia64; then
7816 # AIX 5 now supports IA64 processor
7817 lt_prog_compiler_static='-Bstatic'
7819 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7823 # PIC is the default on this platform
7824 # Common symbols not allowed in MH_DYLIB files
7825 case $cc_basename in
7827 lt_prog_compiler_pic='-qnocommon'
7828 lt_prog_compiler_wl='-Wl,'
7833 mingw* | cygwin* | pw32* | os2*)
7834 # This hack is so that the source file can tell whether it is being
7835 # built for inclusion in a dll (and should export symbols for example).
7836 lt_prog_compiler_pic='-DDLL_EXPORT'
7839 hpux9* | hpux10* | hpux11*)
7840 lt_prog_compiler_wl='-Wl,'
7841 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7848 lt_prog_compiler_pic='+Z'
7851 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7852 lt_prog_compiler_static='${wl}-a ${wl}archive'
7855 irix5* | irix6* | nonstopux*)
7856 lt_prog_compiler_wl='-Wl,'
7857 # PIC (with -KPIC) is the default.
7858 lt_prog_compiler_static='-non_shared'
7862 lt_prog_compiler_pic='-KPIC'
7863 lt_prog_compiler_static='-Bstatic'
7866 linux* | k*bsd*-gnu)
7867 case $cc_basename in
7869 lt_prog_compiler_wl='-Wl,'
7870 lt_prog_compiler_pic='-KPIC'
7871 lt_prog_compiler_static='-static'
7873 pgcc* | pgf77* | pgf90* | pgf95*)
7874 # Portland Group compilers (*not* the Pentium gcc compiler,
7875 # which looks to be a dead project)
7876 lt_prog_compiler_wl='-Wl,'
7877 lt_prog_compiler_pic='-fpic'
7878 lt_prog_compiler_static='-Bstatic'
7881 lt_prog_compiler_wl='-Wl,'
7882 # All Alpha code is PIC.
7883 lt_prog_compiler_static='-non_shared'
7886 case `$CC -V 2>&1 | sed 5q` in
7889 lt_prog_compiler_pic='-KPIC'
7890 lt_prog_compiler_static='-Bstatic'
7891 lt_prog_compiler_wl='-Wl,'
7894 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7895 lt_prog_compiler_pic='-KPIC'
7896 lt_prog_compiler_static='-Bstatic'
7897 lt_prog_compiler_wl=''
7904 osf3* | osf4* | osf5*)
7905 lt_prog_compiler_wl='-Wl,'
7906 # All OSF/1 code is PIC.
7907 lt_prog_compiler_static='-non_shared'
7911 lt_prog_compiler_static='-non_shared'
7915 lt_prog_compiler_pic='-KPIC'
7916 lt_prog_compiler_static='-Bstatic'
7917 case $cc_basename in
7919 lt_prog_compiler_wl='-Qoption ld ';;
7921 lt_prog_compiler_wl='-Wl,';;
7926 lt_prog_compiler_wl='-Qoption ld '
7927 lt_prog_compiler_pic='-PIC'
7928 lt_prog_compiler_static='-Bstatic'
7931 sysv4 | sysv4.2uw2* | sysv4.3*)
7932 lt_prog_compiler_wl='-Wl,'
7933 lt_prog_compiler_pic='-KPIC'
7934 lt_prog_compiler_static='-Bstatic'
7938 if test -d /usr/nec ;then
7939 lt_prog_compiler_pic='-Kconform_pic'
7940 lt_prog_compiler_static='-Bstatic'
7944 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7945 lt_prog_compiler_wl='-Wl,'
7946 lt_prog_compiler_pic='-KPIC'
7947 lt_prog_compiler_static='-Bstatic'
7951 lt_prog_compiler_wl='-Wl,'
7952 lt_prog_compiler_can_build_shared=no
7956 lt_prog_compiler_pic='-pic'
7957 lt_prog_compiler_static='-Bstatic'
7961 lt_prog_compiler_can_build_shared=no
7966 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7967 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7970 # Check to make sure the PIC flag actually works.
7972 if test -n "$lt_prog_compiler_pic"; then
7974 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7975 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7976 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7977 echo $ECHO_N "(cached) $ECHO_C" >&6
7979 lt_cv_prog_compiler_pic_works=no
7980 ac_outfile=conftest.$ac_objext
7981 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7982 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7983 # Insert the option either (1) after the last *FLAGS variable, or
7984 # (2) before a word containing "conftest.", or (3) at the end.
7985 # Note that $ac_compile itself does not contain backslashes and begins
7986 # with a dollar sign (not a hyphen), so the echo should work correctly.
7987 # The option is referenced via a variable to avoid confusing sed.
7988 lt_compile=`echo "$ac_compile" | $SED \
7989 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7990 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7991 -e 's:$: $lt_compiler_flag:'`
7992 (eval echo "\"\$as_me:7992: $lt_compile\"" >&5)
7993 (eval "$lt_compile" 2>conftest.err)
7995 cat conftest.err >&5
7996 echo "$as_me:7996: \$? = $ac_status" >&5
7997 if (exit $ac_status) && test -s "$ac_outfile"; then
7998 # The compiler can only warn and ignore the option if not recognized
7999 # So say no if there are warnings other than the usual output.
8000 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8001 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8002 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8003 lt_cv_prog_compiler_pic_works=yes
8009 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8010 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8012 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8013 case $lt_prog_compiler_pic in
8015 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8018 lt_prog_compiler_pic=
8019 lt_prog_compiler_can_build_shared=no
8024 # For platforms which do not support PIC, -DPIC is meaningless:
8026 lt_prog_compiler_pic=
8029 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8034 # Check to make sure the static flag actually works.
8036 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8037 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8038 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8039 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8040 echo $ECHO_N "(cached) $ECHO_C" >&6
8042 lt_cv_prog_compiler_static_works=no
8043 save_LDFLAGS="$LDFLAGS"
8044 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8045 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8046 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8047 # The linker can only warn and ignore the option if not recognized
8048 # So say no if there are warnings
8049 if test -s conftest.err; then
8050 # Append any errors to the config.log.
8051 cat conftest.err 1>&5
8052 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8053 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8054 if diff conftest.exp conftest.er2 >/dev/null; then
8055 lt_cv_prog_compiler_static_works=yes
8058 lt_cv_prog_compiler_static_works=yes
8062 LDFLAGS="$save_LDFLAGS"
8065 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8066 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8068 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8071 lt_prog_compiler_static=
8075 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8076 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8077 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8078 echo $ECHO_N "(cached) $ECHO_C" >&6
8080 lt_cv_prog_compiler_c_o=no
8081 $rm -r conftest 2>/dev/null
8085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8087 lt_compiler_flag="-o out/conftest2.$ac_objext"
8088 # Insert the option either (1) after the last *FLAGS variable, or
8089 # (2) before a word containing "conftest.", or (3) at the end.
8090 # Note that $ac_compile itself does not contain backslashes and begins
8091 # with a dollar sign (not a hyphen), so the echo should work correctly.
8092 lt_compile=`echo "$ac_compile" | $SED \
8093 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8094 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8095 -e 's:$: $lt_compiler_flag:'`
8096 (eval echo "\"\$as_me:8096: $lt_compile\"" >&5)
8097 (eval "$lt_compile" 2>out/conftest.err)
8099 cat out/conftest.err >&5
8100 echo "$as_me:8100: \$? = $ac_status" >&5
8101 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8103 # The compiler can only warn and ignore the option if not recognized
8104 # So say no if there are warnings
8105 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8106 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8107 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8108 lt_cv_prog_compiler_c_o=yes
8113 # SGI C++ compiler will create directory out/ii_files/ for
8114 # template instantiation
8115 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8116 $rm out/* && rmdir out
8122 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8123 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8126 hard_links="nottested"
8127 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8128 # do not overwrite the value of need_locks provided by the user
8129 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8130 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8133 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8135 ln conftest.a conftest.b 2>&5 || hard_links=no
8136 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8137 { echo "$as_me:$LINENO: result: $hard_links" >&5
8138 echo "${ECHO_T}$hard_links" >&6; }
8139 if test "$hard_links" = no; then
8140 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8141 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8148 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8149 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8152 allow_undefined_flag=
8153 enable_shared_with_static_runtimes=no
8155 archive_expsym_cmds=
8156 old_archive_From_new_cmds=
8157 old_archive_from_expsyms_cmds=
8158 export_dynamic_flag_spec=
8159 whole_archive_flag_spec=
8160 thread_safe_flag_spec=
8161 hardcode_libdir_flag_spec=
8162 hardcode_libdir_flag_spec_ld=
8163 hardcode_libdir_separator=
8166 hardcode_shlibpath_var=unsupported
8167 link_all_deplibs=unknown
8168 hardcode_automatic=no
8171 always_export_symbols=no
8172 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8173 # include_expsyms should be a list of space-separated symbols to be *always*
8174 # included in the symbol list
8176 # exclude_expsyms can be an extended regexp of symbols to exclude
8177 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8178 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8179 # as well as any symbol that contains `d'.
8180 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8181 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8182 # platforms (ab)use it in PIC code, but their linkers get confused if
8183 # the symbol is explicitly referenced. Since portable code cannot
8184 # rely on this symbol name, it's probably fine to never include it in
8185 # preloaded symbol tables.
8186 # Exclude shared library initialization/finalization symbols.
8187 extract_expsyms_cmds=
8188 # Just being paranoid about ensuring that cc_basename is set.
8189 for cc_temp in $compiler""; do
8191 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8192 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8197 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8200 cygwin* | mingw* | pw32*)
8201 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8202 # When not using gcc, we currently assume that we are using
8203 # Microsoft Visual C++.
8204 if test "$GCC" != yes; then
8209 # we just hope/assume this is gcc and not c89 (= MSVC++)
8218 if test "$with_gnu_ld" = yes; then
8219 # If archive_cmds runs LD, not CC, wlarc should be empty
8222 # Set some defaults for GNU ld with shared library support. These
8223 # are reset later if shared libraries are not supported. Putting them
8224 # here allows them to be overridden if necessary.
8225 runpath_var=LD_RUN_PATH
8226 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8227 export_dynamic_flag_spec='${wl}--export-dynamic'
8228 # ancient GNU ld didn't support --whole-archive et. al.
8229 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8230 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8232 whole_archive_flag_spec=
8234 supports_anon_versioning=no
8235 case `$LD -v 2>/dev/null` in
8236 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8237 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8238 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8239 *\ 2.11.*) ;; # other 2.11 versions
8240 *) supports_anon_versioning=yes ;;
8243 # See if GNU ld supports shared libraries.
8246 # On AIX/PPC, the GNU linker is very broken
8247 if test "$host_cpu" != ia64; then
8251 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8252 *** to be unable to reliably create shared libraries on AIX.
8253 *** Therefore, libtool is disabling shared libraries support. If you
8254 *** really care for shared libraries, you may want to modify your PATH
8255 *** so that a non-GNU linker is found, and then restart.
8262 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)'
8263 hardcode_libdir_flag_spec='-L$libdir'
8264 hardcode_minus_L=yes
8266 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8267 # that the semantics of dynamic libraries on AmigaOS, at least up
8268 # to version 4, is to share data among multiple programs linked
8269 # with the same dynamic library. Since this doesn't match the
8270 # behavior of shared libraries on other platforms, we can't use
8276 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8277 allow_undefined_flag=unsupported
8278 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8279 # support --undefined. This deserves some investigation. FIXME
8280 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8286 cygwin* | mingw* | pw32*)
8287 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8288 # as there is no search path for DLLs.
8289 hardcode_libdir_flag_spec='-L$libdir'
8290 allow_undefined_flag=unsupported
8291 always_export_symbols=no
8292 enable_shared_with_static_runtimes=yes
8293 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8295 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8296 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8297 # If the export-symbols file already is a .def file (1st line
8298 # is EXPORTS), use it as is; otherwise, prepend...
8299 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8300 cp $export_symbols $output_objdir/$soname.def;
8302 echo EXPORTS > $output_objdir/$soname.def;
8303 cat $export_symbols >> $output_objdir/$soname.def;
8305 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8313 hardcode_shlibpath_var=no
8314 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8315 export_dynamic_flag_spec='${wl}-E'
8316 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8317 # Instead, shared libraries are loaded at an image base (0x10000000 by
8318 # default) and relocated if they conflict, which is a slow very memory
8319 # consuming and fragmenting process. To avoid this, we pick a random,
8320 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8321 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8322 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8323 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'
8326 gnu* | linux* | k*bsd*-gnu)
8327 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8329 case $cc_basename,$host_cpu in
8330 pgcc*) # Portland Group C compiler
8331 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'
8332 tmp_addflag=' $pic_flag'
8334 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8335 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'
8336 tmp_addflag=' $pic_flag -Mnomain' ;;
8337 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8338 tmp_addflag=' -i_dynamic' ;;
8339 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8340 tmp_addflag=' -i_dynamic -nofor_main' ;;
8341 ifc* | ifort*) # Intel Fortran compiler
8342 tmp_addflag=' -nofor_main' ;;
8344 case `$CC -V 2>&1 | sed 5q` in
8345 *Sun\ C*) # Sun C 5.9
8346 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8347 tmp_sharedflag='-G' ;;
8348 *Sun\ F*) # Sun Fortran 8.3
8349 tmp_sharedflag='-G' ;;
8351 tmp_sharedflag='-shared' ;;
8353 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8355 if test $supports_anon_versioning = yes; then
8356 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8357 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8358 $echo "local: *; };" >> $output_objdir/$libname.ver~
8359 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8367 netbsd* | netbsdelf*-gnu)
8368 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8369 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8372 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8373 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8378 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8382 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8383 *** create shared libraries on Solaris systems. Therefore, libtool
8384 *** is disabling shared libraries support. We urge you to upgrade GNU
8385 *** binutils to release 2.9.1 or newer. Another option is to modify
8386 *** your PATH or compiler configuration so that the native linker is
8387 *** used, and then restart.
8390 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8392 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8398 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8399 case `$LD -v 2>&1` in
8400 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8404 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8405 *** reliably create shared libraries on SCO systems. Therefore, libtool
8406 *** is disabling shared libraries support. We urge you to upgrade GNU
8407 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8408 *** your PATH or compiler configuration so that the native linker is
8409 *** used, and then restart.
8414 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8415 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8416 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8417 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8426 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8429 hardcode_shlibpath_var=no
8433 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8434 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8435 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8442 if test "$ld_shlibs" = no; then
8444 hardcode_libdir_flag_spec=
8445 export_dynamic_flag_spec=
8446 whole_archive_flag_spec=
8449 # PORTME fill in a description of your system's linker (not GNU ld)
8452 allow_undefined_flag=unsupported
8453 always_export_symbols=yes
8454 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'
8455 # Note: this linker hardcodes the directories in LIBPATH if there
8456 # are no directories specified by -L.
8457 hardcode_minus_L=yes
8458 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8459 # Neither direct hardcoding nor static linking is supported with a
8461 hardcode_direct=unsupported
8466 if test "$host_cpu" = ia64; then
8467 # On IA64, the linker does run time linking by default, so we don't
8468 # have to do anything special.
8469 aix_use_runtimelinking=no
8470 exp_sym_flag='-Bexport'
8473 # If we're using GNU nm, then we don't want the "-C" option.
8474 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8475 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8476 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'
8478 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'
8480 aix_use_runtimelinking=no
8482 # Test if we are trying to use run time linking or normal
8483 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8484 # need to do runtime linking.
8485 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8486 for ld_flag in $LDFLAGS; do
8487 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8488 aix_use_runtimelinking=yes
8495 exp_sym_flag='-bexport'
8496 no_entry_flag='-bnoentry'
8499 # When large executables or shared objects are built, AIX ld can
8500 # have problems creating the table of contents. If linking a library
8501 # or program results in "error TOC overflow" add -mminimal-toc to
8502 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8503 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8507 hardcode_libdir_separator=':'
8508 link_all_deplibs=yes
8510 if test "$GCC" = yes; then
8511 case $host_os in aix4.[012]|aix4.[012].*)
8512 # We only want to do this on AIX 4.2 and lower, the check
8513 # below for broken collect2 doesn't work under 4.3+
8514 collect2name=`${CC} -print-prog-name=collect2`
8515 if test -f "$collect2name" && \
8516 strings "$collect2name" | grep resolve_lib_name >/dev/null
8518 # We have reworked collect2
8521 # We have old collect2
8522 hardcode_direct=unsupported
8523 # It fails to find uninstalled libraries when the uninstalled
8524 # path is not listed in the libpath. Setting hardcode_minus_L
8525 # to unsupported forces relinking
8526 hardcode_minus_L=yes
8527 hardcode_libdir_flag_spec='-L$libdir'
8528 hardcode_libdir_separator=
8532 shared_flag='-shared'
8533 if test "$aix_use_runtimelinking" = yes; then
8534 shared_flag="$shared_flag "'${wl}-G'
8538 if test "$host_cpu" = ia64; then
8539 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8540 # chokes on -Wl,-G. The following line is correct:
8543 if test "$aix_use_runtimelinking" = yes; then
8544 shared_flag='${wl}-G'
8546 shared_flag='${wl}-bM:SRE'
8551 # It seems that -bexpall does not export symbols beginning with
8552 # underscore (_), so it is better to generate a list of symbols to export.
8553 always_export_symbols=yes
8554 if test "$aix_use_runtimelinking" = yes; then
8555 # Warning - without using the other runtime loading flags (-brtl),
8556 # -berok will link without error, but may produce a broken library.
8557 allow_undefined_flag='-berok'
8558 # Determine the default libpath from the value encoded in an empty executable.
8559 cat >conftest.$ac_ext <<_ACEOF
8562 cat confdefs.h >>conftest.$ac_ext
8563 cat >>conftest.$ac_ext <<_ACEOF
8564 /* end confdefs.h. */
8574 rm -f conftest.$ac_objext conftest$ac_exeext
8575 if { (ac_try="$ac_link"
8577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8578 *) ac_try_echo=$ac_try;;
8580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8581 (eval "$ac_link") 2>conftest.er1
8583 grep -v '^ *+' conftest.er1 >conftest.err
8585 cat conftest.err >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } && {
8588 test -z "$ac_c_werror_flag" ||
8589 test ! -s conftest.err
8590 } && test -s conftest$ac_exeext &&
8591 $as_test_x conftest$ac_exeext; then
8593 lt_aix_libpath_sed='
8594 /Import File Strings/,/^$/ {
8600 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8601 # Check for a 64-bit object if we didn't find anything.
8602 if test -z "$aix_libpath"; then
8603 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8606 echo "$as_me: failed program was:" >&5
8607 sed 's/^/| /' conftest.$ac_ext >&5
8612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8613 conftest$ac_exeext conftest.$ac_ext
8614 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8616 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8617 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"
8619 if test "$host_cpu" = ia64; then
8620 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8621 allow_undefined_flag="-z nodefs"
8622 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"
8624 # Determine the default libpath from the value encoded in an empty executable.
8625 cat >conftest.$ac_ext <<_ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h. */
8640 rm -f conftest.$ac_objext conftest$ac_exeext
8641 if { (ac_try="$ac_link"
8643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8644 *) ac_try_echo=$ac_try;;
8646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8647 (eval "$ac_link") 2>conftest.er1
8649 grep -v '^ *+' conftest.er1 >conftest.err
8651 cat conftest.err >&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); } && {
8654 test -z "$ac_c_werror_flag" ||
8655 test ! -s conftest.err
8656 } && test -s conftest$ac_exeext &&
8657 $as_test_x conftest$ac_exeext; then
8659 lt_aix_libpath_sed='
8660 /Import File Strings/,/^$/ {
8666 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8667 # Check for a 64-bit object if we didn't find anything.
8668 if test -z "$aix_libpath"; then
8669 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8672 echo "$as_me: failed program was:" >&5
8673 sed 's/^/| /' conftest.$ac_ext >&5
8678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8679 conftest$ac_exeext conftest.$ac_ext
8680 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8682 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8683 # Warning - without using the other run time loading flags,
8684 # -berok will link without error, but may produce a broken library.
8685 no_undefined_flag=' ${wl}-bernotok'
8686 allow_undefined_flag=' ${wl}-berok'
8687 # Exported symbols can be pulled into shared objects from archives
8688 whole_archive_flag_spec='$convenience'
8689 archive_cmds_need_lc=yes
8690 # This is similar to how AIX traditionally builds its shared libraries.
8691 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'
8697 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)'
8698 hardcode_libdir_flag_spec='-L$libdir'
8699 hardcode_minus_L=yes
8700 # see comment about different semantics on the GNU ld section
8705 export_dynamic_flag_spec=-rdynamic
8708 cygwin* | mingw* | pw32*)
8709 # When not using gcc, we currently assume that we are using
8710 # Microsoft Visual C++.
8711 # hardcode_libdir_flag_spec is actually meaningless, as there is
8712 # no search path for DLLs.
8713 hardcode_libdir_flag_spec=' '
8714 allow_undefined_flag=unsupported
8715 # Tell ltmain to make .lib files, not .a files.
8717 # Tell ltmain to make .dll files, not .so files.
8719 # FIXME: Setting linknames here is a bad hack.
8720 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8721 # The linker will automatically build a .lib file if we build a DLL.
8722 old_archive_From_new_cmds='true'
8723 # FIXME: Should let the user specify the lib program.
8724 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8725 fix_srcfile_path='`cygpath -w "$srcfile"`'
8726 enable_shared_with_static_runtimes=yes
8729 darwin* | rhapsody*)
8731 rhapsody* | darwin1.[012])
8732 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8735 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8736 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8738 case ${MACOSX_DEPLOYMENT_TARGET} in
8740 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8743 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8749 archive_cmds_need_lc=no
8751 hardcode_automatic=yes
8752 hardcode_shlibpath_var=unsupported
8753 whole_archive_flag_spec=''
8754 link_all_deplibs=yes
8755 if test "$GCC" = yes ; then
8756 output_verbose_link_cmd='echo'
8757 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8758 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8759 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8760 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8762 case $cc_basename in
8764 output_verbose_link_cmd='echo'
8765 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8766 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8767 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8768 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8769 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}'
8779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8780 hardcode_libdir_flag_spec='-L$libdir'
8781 hardcode_shlibpath_var=no
8788 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8789 # support. Future versions do this automatically, but an explicit c++rt0.o
8790 # does not break anything, and helps significantly (at the cost of a little
8793 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8794 hardcode_libdir_flag_spec='-R$libdir'
8796 hardcode_shlibpath_var=no
8799 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8801 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8803 hardcode_minus_L=yes
8804 hardcode_shlibpath_var=no
8807 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8808 freebsd* | dragonfly*)
8809 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8810 hardcode_libdir_flag_spec='-R$libdir'
8812 hardcode_shlibpath_var=no
8816 if test "$GCC" = yes; then
8817 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'
8819 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'
8821 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8822 hardcode_libdir_separator=:
8825 # hardcode_minus_L: Not really in the search PATH,
8826 # but as the default location of the library.
8827 hardcode_minus_L=yes
8828 export_dynamic_flag_spec='${wl}-E'
8832 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8833 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8835 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8837 if test "$with_gnu_ld" = no; then
8838 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8839 hardcode_libdir_separator=:
8842 export_dynamic_flag_spec='${wl}-E'
8844 # hardcode_minus_L: Not really in the search PATH,
8845 # but as the default location of the library.
8846 hardcode_minus_L=yes
8851 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8854 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8857 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8860 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8866 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8869 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8872 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8876 if test "$with_gnu_ld" = no; then
8877 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8878 hardcode_libdir_separator=:
8882 hardcode_libdir_flag_spec_ld='+b $libdir'
8884 hardcode_shlibpath_var=no
8888 export_dynamic_flag_spec='${wl}-E'
8890 # hardcode_minus_L: Not really in the search PATH,
8891 # but as the default location of the library.
8892 hardcode_minus_L=yes
8898 irix5* | irix6* | nonstopux*)
8899 if test "$GCC" = yes; then
8900 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'
8902 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'
8903 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8905 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8906 hardcode_libdir_separator=:
8907 link_all_deplibs=yes
8910 netbsd* | netbsdelf*-gnu)
8911 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8912 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8914 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8916 hardcode_libdir_flag_spec='-R$libdir'
8918 hardcode_shlibpath_var=no
8922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8924 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8925 hardcode_libdir_separator=:
8926 hardcode_shlibpath_var=no
8930 if test -f /usr/libexec/ld.so; then
8932 hardcode_shlibpath_var=no
8933 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8934 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8935 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8936 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8937 export_dynamic_flag_spec='${wl}-E'
8940 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8941 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8942 hardcode_libdir_flag_spec='-R$libdir'
8945 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8946 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8956 hardcode_libdir_flag_spec='-L$libdir'
8957 hardcode_minus_L=yes
8958 allow_undefined_flag=unsupported
8959 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'
8960 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8964 if test "$GCC" = yes; then
8965 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8966 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'
8968 allow_undefined_flag=' -expect_unresolved \*'
8969 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'
8971 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8972 hardcode_libdir_separator=:
8975 osf4* | osf5*) # as osf3* with the addition of -msym flag
8976 if test "$GCC" = yes; then
8977 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8978 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'
8979 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8981 allow_undefined_flag=' -expect_unresolved \*'
8982 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'
8983 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8984 $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'
8986 # Both c and cxx compiler support -rpath directly
8987 hardcode_libdir_flag_spec='-rpath $libdir'
8989 hardcode_libdir_separator=:
8993 no_undefined_flag=' -z text'
8994 if test "$GCC" = yes; then
8996 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8997 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8998 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9001 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9002 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9003 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9005 hardcode_libdir_flag_spec='-R$libdir'
9006 hardcode_shlibpath_var=no
9008 solaris2.[0-5] | solaris2.[0-5].*) ;;
9010 # The compiler driver will combine and reorder linker options,
9011 # but understands `-z linker_flag'. GCC discards it without `$wl',
9012 # but is careful enough not to reorder.
9013 # Supported since Solaris 2.6 (maybe 2.5.1?)
9014 if test "$GCC" = yes; then
9015 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9017 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9021 link_all_deplibs=yes
9025 if test "x$host_vendor" = xsequent; then
9026 # Use $CC to link under sequent, because it throws in some extra .o
9027 # files that make .init and .fini sections work.
9028 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9030 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9032 hardcode_libdir_flag_spec='-L$libdir'
9034 hardcode_minus_L=yes
9035 hardcode_shlibpath_var=no
9039 case $host_vendor in
9041 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9042 hardcode_direct=yes # is this really true???
9045 ## LD is ld it makes a PLAMLIB
9046 ## CC just makes a GrossModule.
9047 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9048 reload_cmds='$CC -r -o $output$reload_objs'
9052 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9053 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9056 runpath_var='LD_RUN_PATH'
9057 hardcode_shlibpath_var=no
9061 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9062 hardcode_shlibpath_var=no
9063 export_dynamic_flag_spec='-Bexport'
9067 if test -d /usr/nec; then
9068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9069 hardcode_shlibpath_var=no
9070 runpath_var=LD_RUN_PATH
9071 hardcode_runpath_var=yes
9076 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9077 no_undefined_flag='${wl}-z,text'
9078 archive_cmds_need_lc=no
9079 hardcode_shlibpath_var=no
9080 runpath_var='LD_RUN_PATH'
9082 if test "$GCC" = yes; then
9083 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9084 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9086 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9087 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9091 sysv5* | sco3.2v5* | sco5v6*)
9092 # Note: We can NOT use -z defs as we might desire, because we do not
9093 # link with -lc, and that would cause any symbols used from libc to
9094 # always be unresolved, which means just about no library would
9095 # ever link correctly. If we're not using GNU ld we use -z text
9096 # though, which does catch some bad symbols but isn't as heavy-handed
9098 no_undefined_flag='${wl}-z,text'
9099 allow_undefined_flag='${wl}-z,nodefs'
9100 archive_cmds_need_lc=no
9101 hardcode_shlibpath_var=no
9102 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9103 hardcode_libdir_separator=':'
9104 link_all_deplibs=yes
9105 export_dynamic_flag_spec='${wl}-Bexport'
9106 runpath_var='LD_RUN_PATH'
9108 if test "$GCC" = yes; then
9109 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9110 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9112 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9113 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9118 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9119 hardcode_libdir_flag_spec='-L$libdir'
9120 hardcode_shlibpath_var=no
9129 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9130 echo "${ECHO_T}$ld_shlibs" >&6; }
9131 test "$ld_shlibs" = no && can_build_shared=no
9134 # Do we need to explicitly link libc?
9136 case "x$archive_cmds_need_lc" in
9138 # Assume -lc should be added
9139 archive_cmds_need_lc=yes
9141 if test "$enable_shared" = yes && test "$GCC" = yes; then
9142 case $archive_cmds in
9144 # FIXME: we may have to deal with multi-command sequences.
9147 # Test whether the compiler implicitly links with -lc since on some
9148 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9149 # to ld, don't add -lc before -lgcc.
9150 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9151 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9153 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9156 (eval $ac_compile) 2>&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); } 2>conftest.err; then
9162 libobjs=conftest.$ac_objext
9164 wl=$lt_prog_compiler_wl
9165 pic_flag=$lt_prog_compiler_pic
9171 lt_save_allow_undefined_flag=$allow_undefined_flag
9172 allow_undefined_flag=
9173 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9174 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); }
9179 archive_cmds_need_lc=no
9181 archive_cmds_need_lc=yes
9183 allow_undefined_flag=$lt_save_allow_undefined_flag
9185 cat conftest.err 1>&5
9188 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9189 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9196 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9197 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9199 libname_spec='lib$name'
9207 shlibpath_overrides_runpath=unknown
9209 dynamic_linker="$host_os ld.so"
9210 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9212 if test "$GCC" = yes; then
9214 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9215 *) lt_awk_arg="/^libraries:/" ;;
9217 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9218 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9219 # if the path contains ";" then we assume it to be the separator
9220 # otherwise default to the standard path separator (i.e. ":") - it is
9221 # assumed that no part of a normal pathname contains ";" but that should
9222 # okay in the real world where ";" in dirpaths is itself problematic.
9223 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9225 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9227 # Ok, now we have the path, separated by spaces, we can step through it
9228 # and add multilib dir if necessary.
9229 lt_tmp_lt_search_path_spec=
9230 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9231 for lt_sys_path in $lt_search_path_spec; do
9232 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9233 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9235 test -d "$lt_sys_path" && \
9236 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9239 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9240 BEGIN {RS=" "; FS="/|\n";} {
9243 for (lt_i = NF; lt_i > 0; lt_i--) {
9244 if ($lt_i != "" && $lt_i != ".") {
9245 if ($lt_i == "..") {
9248 if (lt_count == 0) {
9249 lt_foo="/" $lt_i lt_foo;
9256 if (lt_foo != "") { lt_freq[lt_foo]++; }
9257 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9259 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9261 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9263 need_lib_prefix=unknown
9264 hardcode_into_libs=no
9266 # when you set need_version to no, make sure it does not cause -set_version
9267 # flags to be left without arguments
9268 need_version=unknown
9273 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9274 shlibpath_var=LIBPATH
9276 # AIX 3 has no versioning support, so we append a major version to the name.
9277 soname_spec='${libname}${release}${shared_ext}$major'
9284 hardcode_into_libs=yes
9285 if test "$host_cpu" = ia64; then
9286 # AIX 5 supports IA64
9287 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9288 shlibpath_var=LD_LIBRARY_PATH
9290 # With GCC up to 2.95.x, collect2 would create an import file
9291 # for dependence libraries. The import file would start with
9292 # the line `#! .'. This would cause the generated library to
9293 # depend on `.', always an invalid library. This was fixed in
9294 # development snapshots of GCC prior to 3.0.
9296 aix4 | aix4.[01] | aix4.[01].*)
9297 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9299 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9306 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9307 # soname into executable. Probably we can add versioning support to
9308 # collect2, so additional links can be useful in future.
9309 if test "$aix_use_runtimelinking" = yes; then
9310 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9311 # instead of lib<name>.a to let people know that these are not
9312 # typical AIX shared libraries.
9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9315 # We preserve .a as extension for shared libraries through AIX4.2
9316 # and later when we are not doing run time linking.
9317 library_names_spec='${libname}${release}.a $libname.a'
9318 soname_spec='${libname}${release}${shared_ext}$major'
9320 shlibpath_var=LIBPATH
9325 library_names_spec='$libname.ixlibrary $libname.a'
9326 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9327 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'
9331 library_names_spec='${libname}${shared_ext}'
9332 dynamic_linker="$host_os ld.so"
9333 shlibpath_var=LIBRARY_PATH
9339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9340 soname_spec='${libname}${release}${shared_ext}$major'
9341 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9342 shlibpath_var=LD_LIBRARY_PATH
9343 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9344 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9345 # the default ld.so.conf also contains /usr/contrib/lib and
9346 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9347 # libtool to hard-code these into programs
9350 cygwin* | mingw* | pw32*)
9351 version_type=windows
9356 case $GCC,$host_os in
9357 yes,cygwin* | yes,mingw* | yes,pw32*)
9358 library_names_spec='$libname.dll.a'
9359 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9360 postinstall_cmds='base_file=`basename \${file}`~
9361 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9362 dldir=$destdir/`dirname \$dlpath`~
9363 test -d \$dldir || mkdir -p \$dldir~
9364 $install_prog $dir/$dlname \$dldir/$dlname~
9365 chmod a+x \$dldir/$dlname'
9366 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9367 dlpath=$dir/\$dldll~
9369 shlibpath_overrides_runpath=yes
9373 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9374 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9375 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9378 # MinGW DLLs use traditional 'lib' prefix
9379 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9380 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9381 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9382 # It is most probably a Windows format PATH printed by
9383 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9384 # path with ; separators, and with drive letters. We can handle the
9385 # drive letters (cygwin fileutils understands them), so leave them,
9386 # especially as we might pass files found there to a mingw objdump,
9387 # which wouldn't understand a cygwinified path. Ahh.
9388 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9390 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9394 # pw32 DLLs use 'pw' prefix rather than 'lib'
9395 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9401 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9404 dynamic_linker='Win32 ld.exe'
9405 # FIXME: first we should search . and the directory the executable is in
9409 darwin* | rhapsody*)
9410 dynamic_linker="$host_os dyld"
9414 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9415 soname_spec='${libname}${release}${major}$shared_ext'
9416 shlibpath_overrides_runpath=yes
9417 shlibpath_var=DYLD_LIBRARY_PATH
9418 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9420 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9421 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9429 soname_spec='${libname}${release}${shared_ext}$major'
9430 shlibpath_var=LD_LIBRARY_PATH
9437 freebsd* | dragonfly*)
9438 # DragonFly does not have aout. When/if they implement a new
9439 # versioning mechanism, adjust this.
9440 if test -x /usr/bin/objformat; then
9441 objformat=`/usr/bin/objformat`
9444 freebsd[123]*) objformat=aout ;;
9448 version_type=freebsd-$objformat
9449 case $version_type in
9451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9456 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9460 shlibpath_var=LD_LIBRARY_PATH
9463 shlibpath_overrides_runpath=yes
9465 freebsd3.[01]* | freebsdelf3.[01]*)
9466 shlibpath_overrides_runpath=yes
9467 hardcode_into_libs=yes
9469 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9470 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9471 shlibpath_overrides_runpath=no
9472 hardcode_into_libs=yes
9474 *) # from 4.6 on, and DragonFly
9475 shlibpath_overrides_runpath=yes
9476 hardcode_into_libs=yes
9485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9486 soname_spec='${libname}${release}${shared_ext}$major'
9487 shlibpath_var=LD_LIBRARY_PATH
9488 hardcode_into_libs=yes
9491 hpux9* | hpux10* | hpux11*)
9492 # Give a soname corresponding to the major version so that dld.sl refuses to
9493 # link against other versions.
9500 hardcode_into_libs=yes
9501 dynamic_linker="$host_os dld.so"
9502 shlibpath_var=LD_LIBRARY_PATH
9503 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9505 soname_spec='${libname}${release}${shared_ext}$major'
9506 if test "X$HPUX_IA64_MODE" = X32; then
9507 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9509 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9511 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9515 hardcode_into_libs=yes
9516 dynamic_linker="$host_os dld.sl"
9517 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9518 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9520 soname_spec='${libname}${release}${shared_ext}$major'
9521 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9522 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9526 dynamic_linker="$host_os dld.sl"
9527 shlibpath_var=SHLIB_PATH
9528 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9530 soname_spec='${libname}${release}${shared_ext}$major'
9533 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9534 postinstall_cmds='chmod 555 $lib'
9541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9542 soname_spec='${libname}${release}${shared_ext}$major'
9543 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9544 shlibpath_var=LD_LIBRARY_PATH
9545 shlibpath_overrides_runpath=no
9546 hardcode_into_libs=yes
9549 irix5* | irix6* | nonstopux*)
9551 nonstopux*) version_type=nonstopux ;;
9553 if test "$lt_cv_prog_gnu_ld" = yes; then
9561 soname_spec='${libname}${release}${shared_ext}$major'
9562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9564 irix5* | nonstopux*)
9568 case $LD in # libtool.m4 will add one of these switches to LD
9569 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9570 libsuff= shlibsuff= libmagic=32-bit;;
9571 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9572 libsuff=32 shlibsuff=N32 libmagic=N32;;
9573 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9574 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9575 *) libsuff= shlibsuff= libmagic=never-match;;
9579 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9580 shlibpath_overrides_runpath=no
9581 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9582 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9583 hardcode_into_libs=yes
9586 # No shared lib support for Linux oldld, aout, or coff.
9587 linux*oldld* | linux*aout* | linux*coff*)
9591 # This must be Linux ELF.
9592 linux* | k*bsd*-gnu)
9596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9597 soname_spec='${libname}${release}${shared_ext}$major'
9598 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9599 shlibpath_var=LD_LIBRARY_PATH
9600 shlibpath_overrides_runpath=no
9601 # This implies no fast_install, which is unacceptable.
9602 # Some rework will be needed to allow for fast_install
9603 # before this can be enabled.
9604 hardcode_into_libs=yes
9606 # Append ld.so.conf contents to the search path
9607 if test -f /etc/ld.so.conf; then
9608 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9609 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9612 # We used to test for /lib/ld.so.1 and disable shared libraries on
9613 # powerpc, because MkLinux only supported shared libraries with the
9614 # GNU dynamic linker. Since this was broken with cross compilers,
9615 # most powerpc-linux boxes support dynamic linking these days and
9616 # people can always --disable-shared, the test was removed, and we
9617 # assume the GNU/Linux dynamic linker is in use.
9618 dynamic_linker='GNU/Linux ld.so'
9625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9626 soname_spec='${libname}${release}${shared_ext}$major'
9627 shlibpath_var=LD_LIBRARY_PATH
9628 shlibpath_overrides_runpath=no
9629 hardcode_into_libs=yes
9630 dynamic_linker='NetBSD ld.elf_so'
9637 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9639 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9640 dynamic_linker='NetBSD (a.out) ld.so'
9642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9643 soname_spec='${libname}${release}${shared_ext}$major'
9644 dynamic_linker='NetBSD ld.elf_so'
9646 shlibpath_var=LD_LIBRARY_PATH
9647 shlibpath_overrides_runpath=yes
9648 hardcode_into_libs=yes
9653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9654 shlibpath_var=LD_LIBRARY_PATH
9655 shlibpath_overrides_runpath=yes
9662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9663 soname_spec='${libname}${release}${shared_ext}$major'
9664 shlibpath_var=LD_LIBRARY_PATH
9665 shlibpath_overrides_runpath=yes
9670 sys_lib_dlsearch_path_spec="/usr/lib"
9672 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9674 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9675 *) need_version=no ;;
9677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9678 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9679 shlibpath_var=LD_LIBRARY_PATH
9680 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9682 openbsd2.[89] | openbsd2.[89].*)
9683 shlibpath_overrides_runpath=no
9686 shlibpath_overrides_runpath=yes
9690 shlibpath_overrides_runpath=yes
9695 libname_spec='$name'
9698 library_names_spec='$libname${shared_ext} $libname.a'
9699 dynamic_linker='OS/2 ld.exe'
9700 shlibpath_var=LIBPATH
9703 osf3* | osf4* | osf5*)
9707 soname_spec='${libname}${release}${shared_ext}$major'
9708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9709 shlibpath_var=LD_LIBRARY_PATH
9710 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9711 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9723 soname_spec='${libname}${release}${shared_ext}$major'
9724 shlibpath_var=LD_LIBRARY_PATH
9725 shlibpath_overrides_runpath=yes
9726 hardcode_into_libs=yes
9727 # ldd complains unless libraries are executable
9728 postinstall_cmds='chmod +x $lib'
9733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9734 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9735 shlibpath_var=LD_LIBRARY_PATH
9736 shlibpath_overrides_runpath=yes
9737 if test "$with_gnu_ld" = yes; then
9745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9746 soname_spec='${libname}${release}${shared_ext}$major'
9747 shlibpath_var=LD_LIBRARY_PATH
9748 case $host_vendor in
9750 shlibpath_overrides_runpath=no
9752 export_dynamic_flag_spec='${wl}-Blargedynsym'
9753 runpath_var=LD_RUN_PATH
9761 shlibpath_overrides_runpath=no
9762 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9768 if test -d /usr/nec ;then
9770 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9771 soname_spec='$libname${shared_ext}.$major'
9772 shlibpath_var=LD_LIBRARY_PATH
9776 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9777 version_type=freebsd-elf
9780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9781 soname_spec='${libname}${release}${shared_ext}$major'
9782 shlibpath_var=LD_LIBRARY_PATH
9783 hardcode_into_libs=yes
9784 if test "$with_gnu_ld" = yes; then
9785 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9786 shlibpath_overrides_runpath=no
9788 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9789 shlibpath_overrides_runpath=yes
9792 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9796 sys_lib_dlsearch_path_spec='/usr/lib'
9801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9802 soname_spec='${libname}${release}${shared_ext}$major'
9803 shlibpath_var=LD_LIBRARY_PATH
9810 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9811 echo "${ECHO_T}$dynamic_linker" >&6; }
9812 test "$dynamic_linker" = no && can_build_shared=no
9814 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
9817 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9820 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9821 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9822 echo $ECHO_N "(cached) $ECHO_C" >&6
9824 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9827 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9829 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9830 if test "$GCC" = yes; then
9831 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9834 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9835 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9837 if test -n "$hardcode_libdir_flag_spec" || \
9838 test -n "$runpath_var" || \
9839 test "X$hardcode_automatic" = "Xyes" ; then
9841 # We can hardcode non-existant directories.
9842 if test "$hardcode_direct" != no &&
9843 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9844 # have to relink, otherwise we might link with an installed library
9845 # when we should be linking with a yet-to-be-installed one
9846 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9847 test "$hardcode_minus_L" != no; then
9848 # Linking always hardcodes the temporary library directory.
9849 hardcode_action=relink
9851 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9852 hardcode_action=immediate
9855 # We cannot hardcode anything, or else we can only hardcode existing
9857 hardcode_action=unsupported
9859 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9860 echo "${ECHO_T}$hardcode_action" >&6; }
9862 if test "$hardcode_action" = relink; then
9863 # Fast installation is not supported
9864 enable_fast_install=no
9865 elif test "$shlibpath_overrides_runpath" = yes ||
9866 test "$enable_shared" = no; then
9867 # Fast installation is not necessary
9868 enable_fast_install=needless
9873 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9874 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9875 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9876 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9877 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9878 { echo "$as_me:$LINENO: result: yes" >&5
9879 echo "${ECHO_T}yes" >&6; }
9881 # FIXME - insert some real tests, host_os isn't really good enough
9884 if test -n "$STRIP" ; then
9885 striplib="$STRIP -x"
9886 old_striplib="$STRIP -S"
9887 { echo "$as_me:$LINENO: result: yes" >&5
9888 echo "${ECHO_T}yes" >&6; }
9890 { echo "$as_me:$LINENO: result: no" >&5
9891 echo "${ECHO_T}no" >&6; }
9895 { echo "$as_me:$LINENO: result: no" >&5
9896 echo "${ECHO_T}no" >&6; }
9901 if test "x$enable_dlopen" != xyes; then
9902 enable_dlopen=unknown
9903 enable_dlopen_self=unknown
9904 enable_dlopen_self_static=unknown
9911 lt_cv_dlopen="load_add_on"
9913 lt_cv_dlopen_self=yes
9917 lt_cv_dlopen="LoadLibrary"
9922 lt_cv_dlopen="dlopen"
9927 # if libdl is installed we need to link against it
9928 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9929 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9930 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9931 echo $ECHO_N "(cached) $ECHO_C" >&6
9933 ac_check_lib_save_LIBS=$LIBS
9935 cat >conftest.$ac_ext <<_ACEOF
9938 cat confdefs.h >>conftest.$ac_ext
9939 cat >>conftest.$ac_ext <<_ACEOF
9940 /* end confdefs.h. */
9942 /* Override any GCC internal prototype to avoid an error.
9943 Use char because int might match the return type of a GCC
9944 builtin and then its argument prototype would still apply. */
9957 rm -f conftest.$ac_objext conftest$ac_exeext
9958 if { (ac_try="$ac_link"
9960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9961 *) ac_try_echo=$ac_try;;
9963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9964 (eval "$ac_link") 2>conftest.er1
9966 grep -v '^ *+' conftest.er1 >conftest.err
9968 cat conftest.err >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); } && {
9971 test -z "$ac_c_werror_flag" ||
9972 test ! -s conftest.err
9973 } && test -s conftest$ac_exeext &&
9974 $as_test_x conftest$ac_exeext; then
9975 ac_cv_lib_dl_dlopen=yes
9977 echo "$as_me: failed program was:" >&5
9978 sed 's/^/| /' conftest.$ac_ext >&5
9980 ac_cv_lib_dl_dlopen=no
9983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9984 conftest$ac_exeext conftest.$ac_ext
9985 LIBS=$ac_check_lib_save_LIBS
9987 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9988 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9989 if test $ac_cv_lib_dl_dlopen = yes; then
9990 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9995 lt_cv_dlopen_self=yes
10002 { echo "$as_me:$LINENO: checking for shl_load" >&5
10003 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10004 if test "${ac_cv_func_shl_load+set}" = set; then
10005 echo $ECHO_N "(cached) $ECHO_C" >&6
10007 cat >conftest.$ac_ext <<_ACEOF
10010 cat confdefs.h >>conftest.$ac_ext
10011 cat >>conftest.$ac_ext <<_ACEOF
10012 /* end confdefs.h. */
10013 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10015 #define shl_load innocuous_shl_load
10017 /* System header to define __stub macros and hopefully few prototypes,
10018 which can conflict with char shl_load (); below.
10019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10020 <limits.h> exists even on freestanding compilers. */
10023 # include <limits.h>
10025 # include <assert.h>
10030 /* Override any GCC internal prototype to avoid an error.
10031 Use char because int might match the return type of a GCC
10032 builtin and then its argument prototype would still apply. */
10037 /* The GNU C library defines this for functions which it implements
10038 to always fail with ENOSYS. Some functions are actually named
10039 something starting with __ and the normal name is an alias. */
10040 #if defined __stub_shl_load || defined __stub___shl_load
10047 return shl_load ();
10052 rm -f conftest.$ac_objext conftest$ac_exeext
10053 if { (ac_try="$ac_link"
10054 case "(($ac_try" in
10055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056 *) ac_try_echo=$ac_try;;
10058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10059 (eval "$ac_link") 2>conftest.er1
10061 grep -v '^ *+' conftest.er1 >conftest.err
10063 cat conftest.err >&5
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); } && {
10066 test -z "$ac_c_werror_flag" ||
10067 test ! -s conftest.err
10068 } && test -s conftest$ac_exeext &&
10069 $as_test_x conftest$ac_exeext; then
10070 ac_cv_func_shl_load=yes
10072 echo "$as_me: failed program was:" >&5
10073 sed 's/^/| /' conftest.$ac_ext >&5
10075 ac_cv_func_shl_load=no
10078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10079 conftest$ac_exeext conftest.$ac_ext
10081 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10082 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10083 if test $ac_cv_func_shl_load = yes; then
10084 lt_cv_dlopen="shl_load"
10086 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10087 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10088 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10089 echo $ECHO_N "(cached) $ECHO_C" >&6
10091 ac_check_lib_save_LIBS=$LIBS
10093 cat >conftest.$ac_ext <<_ACEOF
10096 cat confdefs.h >>conftest.$ac_ext
10097 cat >>conftest.$ac_ext <<_ACEOF
10098 /* end confdefs.h. */
10100 /* Override any GCC internal prototype to avoid an error.
10101 Use char because int might match the return type of a GCC
10102 builtin and then its argument prototype would still apply. */
10110 return shl_load ();
10115 rm -f conftest.$ac_objext conftest$ac_exeext
10116 if { (ac_try="$ac_link"
10117 case "(($ac_try" in
10118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10119 *) ac_try_echo=$ac_try;;
10121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122 (eval "$ac_link") 2>conftest.er1
10124 grep -v '^ *+' conftest.er1 >conftest.err
10126 cat conftest.err >&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); } && {
10129 test -z "$ac_c_werror_flag" ||
10130 test ! -s conftest.err
10131 } && test -s conftest$ac_exeext &&
10132 $as_test_x conftest$ac_exeext; then
10133 ac_cv_lib_dld_shl_load=yes
10135 echo "$as_me: failed program was:" >&5
10136 sed 's/^/| /' conftest.$ac_ext >&5
10138 ac_cv_lib_dld_shl_load=no
10141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10142 conftest$ac_exeext conftest.$ac_ext
10143 LIBS=$ac_check_lib_save_LIBS
10145 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10146 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10147 if test $ac_cv_lib_dld_shl_load = yes; then
10148 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10150 { echo "$as_me:$LINENO: checking for dlopen" >&5
10151 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10152 if test "${ac_cv_func_dlopen+set}" = set; then
10153 echo $ECHO_N "(cached) $ECHO_C" >&6
10155 cat >conftest.$ac_ext <<_ACEOF
10158 cat confdefs.h >>conftest.$ac_ext
10159 cat >>conftest.$ac_ext <<_ACEOF
10160 /* end confdefs.h. */
10161 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10163 #define dlopen innocuous_dlopen
10165 /* System header to define __stub macros and hopefully few prototypes,
10166 which can conflict with char dlopen (); below.
10167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10168 <limits.h> exists even on freestanding compilers. */
10171 # include <limits.h>
10173 # include <assert.h>
10178 /* Override any GCC internal prototype to avoid an error.
10179 Use char because int might match the return type of a GCC
10180 builtin and then its argument prototype would still apply. */
10185 /* The GNU C library defines this for functions which it implements
10186 to always fail with ENOSYS. Some functions are actually named
10187 something starting with __ and the normal name is an alias. */
10188 #if defined __stub_dlopen || defined __stub___dlopen
10200 rm -f conftest.$ac_objext conftest$ac_exeext
10201 if { (ac_try="$ac_link"
10202 case "(($ac_try" in
10203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204 *) ac_try_echo=$ac_try;;
10206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207 (eval "$ac_link") 2>conftest.er1
10209 grep -v '^ *+' conftest.er1 >conftest.err
10211 cat conftest.err >&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); } && {
10214 test -z "$ac_c_werror_flag" ||
10215 test ! -s conftest.err
10216 } && test -s conftest$ac_exeext &&
10217 $as_test_x conftest$ac_exeext; then
10218 ac_cv_func_dlopen=yes
10220 echo "$as_me: failed program was:" >&5
10221 sed 's/^/| /' conftest.$ac_ext >&5
10223 ac_cv_func_dlopen=no
10226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10227 conftest$ac_exeext conftest.$ac_ext
10229 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10230 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10231 if test $ac_cv_func_dlopen = yes; then
10232 lt_cv_dlopen="dlopen"
10234 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10235 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10236 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10237 echo $ECHO_N "(cached) $ECHO_C" >&6
10239 ac_check_lib_save_LIBS=$LIBS
10241 cat >conftest.$ac_ext <<_ACEOF
10244 cat confdefs.h >>conftest.$ac_ext
10245 cat >>conftest.$ac_ext <<_ACEOF
10246 /* end confdefs.h. */
10248 /* Override any GCC internal prototype to avoid an error.
10249 Use char because int might match the return type of a GCC
10250 builtin and then its argument prototype would still apply. */
10263 rm -f conftest.$ac_objext conftest$ac_exeext
10264 if { (ac_try="$ac_link"
10265 case "(($ac_try" in
10266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10267 *) ac_try_echo=$ac_try;;
10269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270 (eval "$ac_link") 2>conftest.er1
10272 grep -v '^ *+' conftest.er1 >conftest.err
10274 cat conftest.err >&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); } && {
10277 test -z "$ac_c_werror_flag" ||
10278 test ! -s conftest.err
10279 } && test -s conftest$ac_exeext &&
10280 $as_test_x conftest$ac_exeext; then
10281 ac_cv_lib_dl_dlopen=yes
10283 echo "$as_me: failed program was:" >&5
10284 sed 's/^/| /' conftest.$ac_ext >&5
10286 ac_cv_lib_dl_dlopen=no
10289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10290 conftest$ac_exeext conftest.$ac_ext
10291 LIBS=$ac_check_lib_save_LIBS
10293 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10294 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10295 if test $ac_cv_lib_dl_dlopen = yes; then
10296 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10298 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10299 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10300 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10303 ac_check_lib_save_LIBS=$LIBS
10304 LIBS="-lsvld $LIBS"
10305 cat >conftest.$ac_ext <<_ACEOF
10308 cat confdefs.h >>conftest.$ac_ext
10309 cat >>conftest.$ac_ext <<_ACEOF
10310 /* end confdefs.h. */
10312 /* Override any GCC internal prototype to avoid an error.
10313 Use char because int might match the return type of a GCC
10314 builtin and then its argument prototype would still apply. */
10327 rm -f conftest.$ac_objext conftest$ac_exeext
10328 if { (ac_try="$ac_link"
10329 case "(($ac_try" in
10330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10331 *) ac_try_echo=$ac_try;;
10333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10334 (eval "$ac_link") 2>conftest.er1
10336 grep -v '^ *+' conftest.er1 >conftest.err
10338 cat conftest.err >&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } && {
10341 test -z "$ac_c_werror_flag" ||
10342 test ! -s conftest.err
10343 } && test -s conftest$ac_exeext &&
10344 $as_test_x conftest$ac_exeext; then
10345 ac_cv_lib_svld_dlopen=yes
10347 echo "$as_me: failed program was:" >&5
10348 sed 's/^/| /' conftest.$ac_ext >&5
10350 ac_cv_lib_svld_dlopen=no
10353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10354 conftest$ac_exeext conftest.$ac_ext
10355 LIBS=$ac_check_lib_save_LIBS
10357 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10358 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10359 if test $ac_cv_lib_svld_dlopen = yes; then
10360 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10362 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10363 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10364 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10367 ac_check_lib_save_LIBS=$LIBS
10369 cat >conftest.$ac_ext <<_ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10376 /* Override any GCC internal prototype to avoid an error.
10377 Use char because int might match the return type of a GCC
10378 builtin and then its argument prototype would still apply. */
10386 return dld_link ();
10391 rm -f conftest.$ac_objext conftest$ac_exeext
10392 if { (ac_try="$ac_link"
10393 case "(($ac_try" in
10394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395 *) ac_try_echo=$ac_try;;
10397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10398 (eval "$ac_link") 2>conftest.er1
10400 grep -v '^ *+' conftest.er1 >conftest.err
10402 cat conftest.err >&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } && {
10405 test -z "$ac_c_werror_flag" ||
10406 test ! -s conftest.err
10407 } && test -s conftest$ac_exeext &&
10408 $as_test_x conftest$ac_exeext; then
10409 ac_cv_lib_dld_dld_link=yes
10411 echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.$ac_ext >&5
10414 ac_cv_lib_dld_dld_link=no
10417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10418 conftest$ac_exeext conftest.$ac_ext
10419 LIBS=$ac_check_lib_save_LIBS
10421 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10422 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10423 if test $ac_cv_lib_dld_dld_link = yes; then
10424 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10445 if test "x$lt_cv_dlopen" != xno; then
10451 case $lt_cv_dlopen in
10453 save_CPPFLAGS="$CPPFLAGS"
10454 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10456 save_LDFLAGS="$LDFLAGS"
10457 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10460 LIBS="$lt_cv_dlopen_libs $LIBS"
10462 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10463 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10464 if test "${lt_cv_dlopen_self+set}" = set; then
10465 echo $ECHO_N "(cached) $ECHO_C" >&6
10467 if test "$cross_compiling" = yes; then :
10468 lt_cv_dlopen_self=cross
10470 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10471 lt_status=$lt_dlunknown
10472 cat > conftest.$ac_ext <<EOF
10473 #line 10473 "configure"
10474 #include "confdefs.h"
10483 # define LT_DLGLOBAL RTLD_GLOBAL
10486 # define LT_DLGLOBAL DL_GLOBAL
10488 # define LT_DLGLOBAL 0
10492 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10493 find out it does not work in some platform. */
10494 #ifndef LT_DLLAZY_OR_NOW
10496 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10499 # define LT_DLLAZY_OR_NOW DL_LAZY
10502 # define LT_DLLAZY_OR_NOW RTLD_NOW
10505 # define LT_DLLAZY_OR_NOW DL_NOW
10507 # define LT_DLLAZY_OR_NOW 0
10515 extern "C" void exit (int);
10518 void fnord() { int i=42;}
10521 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10522 int status = $lt_dlunknown;
10526 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10527 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10528 /* dlclose (self); */
10536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10537 (eval $ac_link) 2>&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10541 (./conftest; exit; ) >&5 2>/dev/null
10543 case x$lt_status in
10544 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10545 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10546 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10549 # compilation failed
10550 lt_cv_dlopen_self=no
10557 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10558 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10560 if test "x$lt_cv_dlopen_self" = xyes; then
10561 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10562 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10563 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10564 if test "${lt_cv_dlopen_self_static+set}" = set; then
10565 echo $ECHO_N "(cached) $ECHO_C" >&6
10567 if test "$cross_compiling" = yes; then :
10568 lt_cv_dlopen_self_static=cross
10570 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10571 lt_status=$lt_dlunknown
10572 cat > conftest.$ac_ext <<EOF
10573 #line 10573 "configure"
10574 #include "confdefs.h"
10583 # define LT_DLGLOBAL RTLD_GLOBAL
10586 # define LT_DLGLOBAL DL_GLOBAL
10588 # define LT_DLGLOBAL 0
10592 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10593 find out it does not work in some platform. */
10594 #ifndef LT_DLLAZY_OR_NOW
10596 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10599 # define LT_DLLAZY_OR_NOW DL_LAZY
10602 # define LT_DLLAZY_OR_NOW RTLD_NOW
10605 # define LT_DLLAZY_OR_NOW DL_NOW
10607 # define LT_DLLAZY_OR_NOW 0
10615 extern "C" void exit (int);
10618 void fnord() { int i=42;}
10621 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10622 int status = $lt_dlunknown;
10626 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10627 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10628 /* dlclose (self); */
10636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10637 (eval $ac_link) 2>&5
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10641 (./conftest; exit; ) >&5 2>/dev/null
10643 case x$lt_status in
10644 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10645 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10646 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10649 # compilation failed
10650 lt_cv_dlopen_self_static=no
10657 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10658 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10661 CPPFLAGS="$save_CPPFLAGS"
10662 LDFLAGS="$save_LDFLAGS"
10667 case $lt_cv_dlopen_self in
10668 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10669 *) enable_dlopen_self=unknown ;;
10672 case $lt_cv_dlopen_self_static in
10673 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10674 *) enable_dlopen_self_static=unknown ;;
10679 # Report which library types will actually be built
10680 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10681 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10682 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10683 echo "${ECHO_T}$can_build_shared" >&6; }
10685 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10686 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10687 test "$can_build_shared" = "no" && enable_shared=no
10689 # On AIX, shared libraries and static libraries use the same namespace, and
10690 # are all built from PIC.
10693 test "$enable_shared" = yes && enable_static=no
10694 if test -n "$RANLIB"; then
10695 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10696 postinstall_cmds='$RANLIB $lib'
10701 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10702 test "$enable_shared" = yes && enable_static=no
10706 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10707 echo "${ECHO_T}$enable_shared" >&6; }
10709 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10710 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10711 # Make sure either enable_shared or enable_static is yes.
10712 test "$enable_shared" = yes || enable_static=yes
10713 { echo "$as_me:$LINENO: result: $enable_static" >&5
10714 echo "${ECHO_T}$enable_static" >&6; }
10716 # The else clause should only fire when bootstrapping the
10717 # libtool distribution, otherwise you forgot to ship ltmain.sh
10718 # with your package, and you will get complaints that there are
10719 # no rules to generate ltmain.sh.
10720 if test -f "$ltmain"; then
10721 # See if we are running on zsh, and set the options which allow our commands through
10722 # without removal of \ escapes.
10723 if test -n "${ZSH_VERSION+set}" ; then
10724 setopt NO_GLOB_SUBST
10726 # Now quote all the things that may contain metacharacters while being
10727 # careful not to overquote the AC_SUBSTed values. We take copies of the
10728 # variables and quote the copies for generation of the libtool script.
10729 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10731 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10732 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10733 deplibs_check_method reload_flag reload_cmds need_locks \
10734 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10735 lt_cv_sys_global_symbol_to_c_name_address \
10736 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10737 old_postinstall_cmds old_postuninstall_cmds \
10741 lt_prog_compiler_wl \
10742 lt_prog_compiler_pic \
10743 lt_prog_compiler_static \
10744 lt_prog_compiler_no_builtin_flag \
10745 export_dynamic_flag_spec \
10746 thread_safe_flag_spec \
10747 whole_archive_flag_spec \
10748 enable_shared_with_static_runtimes \
10750 old_archive_from_new_cmds \
10755 compiler_lib_search_path \
10756 compiler_lib_search_dirs \
10758 archive_expsym_cmds \
10760 postuninstall_cmds \
10761 old_archive_from_expsyms_cmds \
10762 allow_undefined_flag \
10763 no_undefined_flag \
10764 export_symbols_cmds \
10765 hardcode_libdir_flag_spec \
10766 hardcode_libdir_flag_spec_ld \
10767 hardcode_libdir_separator \
10768 hardcode_automatic \
10770 module_expsym_cmds \
10771 lt_cv_prog_compiler_c_o \
10774 include_expsyms; do
10777 old_archive_cmds | \
10778 old_archive_from_new_cmds | \
10780 archive_expsym_cmds | \
10782 module_expsym_cmds | \
10783 old_archive_from_expsyms_cmds | \
10784 export_symbols_cmds | \
10785 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10786 postinstall_cmds | postuninstall_cmds | \
10787 old_postinstall_cmds | old_postuninstall_cmds | \
10788 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10789 # Double-quote double-evaled strings.
10790 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10793 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10799 *'\$0 --fallback-echo"')
10800 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10804 cfgfile="${ofile}T"
10805 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10807 { echo "$as_me:$LINENO: creating $ofile" >&5
10808 echo "$as_me: creating $ofile" >&6;}
10810 cat <<__EOF__ >> "$cfgfile"
10813 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10814 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10815 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10817 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10818 # Free Software Foundation, Inc.
10820 # This file is part of GNU Libtool:
10821 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10823 # This program is free software; you can redistribute it and/or modify
10824 # it under the terms of the GNU General Public License as published by
10825 # the Free Software Foundation; either version 2 of the License, or
10826 # (at your option) any later version.
10828 # This program is distributed in the hope that it will be useful, but
10829 # WITHOUT ANY WARRANTY; without even the implied warranty of
10830 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10831 # General Public License for more details.
10833 # You should have received a copy of the GNU General Public License
10834 # along with this program; if not, write to the Free Software
10835 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10837 # As a special exception to the GNU General Public License, if you
10838 # distribute this file as part of a program that contains a
10839 # configuration script generated by Autoconf, you may include it under
10840 # the same distribution terms that you use for the rest of that program.
10842 # A sed program that does not truncate output.
10845 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10846 Xsed="$SED -e 1s/^X//"
10848 # The HP-UX ksh and POSIX shell print the target directory to stdout
10849 # if CDPATH is set.
10850 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10852 # The names of the tagged configurations supported by this script.
10855 # ### BEGIN LIBTOOL CONFIG
10857 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10859 # Shell to use when invoking shell scripts.
10862 # Whether or not to build shared libraries.
10863 build_libtool_libs=$enable_shared
10865 # Whether or not to build static libraries.
10866 build_old_libs=$enable_static
10868 # Whether or not to add -lc for building shared libraries.
10869 build_libtool_need_lc=$archive_cmds_need_lc
10871 # Whether or not to disallow shared libs when runtime libs are static
10872 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10874 # Whether or not to optimize for fast installation.
10875 fast_install=$enable_fast_install
10878 host_alias=$host_alias
10882 # The build system.
10883 build_alias=$build_alias
10887 # An echo program that does not interpret backslashes.
10892 AR_FLAGS=$lt_AR_FLAGS
10897 # LTCC compiler flags.
10898 LTCFLAGS=$lt_LTCFLAGS
10900 # A language-specific compiler.
10903 # Is the compiler the GNU C compiler?
10909 # The linker used to build libraries.
10912 # Whether we need hard or soft links.
10915 # A BSD-compatible nm program.
10918 # A symbol stripping program
10921 # Used to examine libraries when file_magic_cmd begins "file"
10922 MAGIC_CMD=$MAGIC_CMD
10924 # Used on cygwin: DLL creation program.
10927 # Used on cygwin: object dumper.
10930 # Used on cygwin: assembler.
10933 # The name of the directory that contains temporary libtool files.
10936 # How to create reloadable object files.
10937 reload_flag=$lt_reload_flag
10938 reload_cmds=$lt_reload_cmds
10940 # How to pass a linker flag through the compiler.
10941 wl=$lt_lt_prog_compiler_wl
10943 # Object file suffix (normally "o").
10944 objext="$ac_objext"
10946 # Old archive suffix (normally "a").
10949 # Shared library suffix (normally ".so").
10950 shrext_cmds='$shrext_cmds'
10952 # Executable file suffix (normally "").
10955 # Additional compiler flags for building library objects.
10956 pic_flag=$lt_lt_prog_compiler_pic
10959 # What is the maximum length of a command?
10960 max_cmd_len=$lt_cv_sys_max_cmd_len
10962 # Does compiler simultaneously support -c and -o options?
10963 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10965 # Must we lock files when doing compilation?
10966 need_locks=$lt_need_locks
10968 # Do we need the lib prefix for modules?
10969 need_lib_prefix=$need_lib_prefix
10971 # Do we need a version for libraries?
10972 need_version=$need_version
10974 # Whether dlopen is supported.
10975 dlopen_support=$enable_dlopen
10977 # Whether dlopen of programs is supported.
10978 dlopen_self=$enable_dlopen_self
10980 # Whether dlopen of statically linked programs is supported.
10981 dlopen_self_static=$enable_dlopen_self_static
10983 # Compiler flag to prevent dynamic linking.
10984 link_static_flag=$lt_lt_prog_compiler_static
10986 # Compiler flag to turn off builtin functions.
10987 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10989 # Compiler flag to allow reflexive dlopens.
10990 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10992 # Compiler flag to generate shared objects directly from archives.
10993 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10995 # Compiler flag to generate thread-safe objects.
10996 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10998 # Library versioning type.
10999 version_type=$version_type
11001 # Format of library name prefix.
11002 libname_spec=$lt_libname_spec
11004 # List of archive names. First name is the real one, the rest are links.
11005 # The last name is the one that the linker finds with -lNAME.
11006 library_names_spec=$lt_library_names_spec
11008 # The coded name of the library, if different from the real name.
11009 soname_spec=$lt_soname_spec
11011 # Commands used to build and install an old-style archive.
11013 old_archive_cmds=$lt_old_archive_cmds
11014 old_postinstall_cmds=$lt_old_postinstall_cmds
11015 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11017 # Create an old-style archive from a shared archive.
11018 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11020 # Create a temporary old-style archive to link instead of a shared archive.
11021 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11023 # Commands used to build and install a shared archive.
11024 archive_cmds=$lt_archive_cmds
11025 archive_expsym_cmds=$lt_archive_expsym_cmds
11026 postinstall_cmds=$lt_postinstall_cmds
11027 postuninstall_cmds=$lt_postuninstall_cmds
11029 # Commands used to build a loadable module (assumed same as above if empty)
11030 module_cmds=$lt_module_cmds
11031 module_expsym_cmds=$lt_module_expsym_cmds
11033 # Commands to strip libraries.
11034 old_striplib=$lt_old_striplib
11035 striplib=$lt_striplib
11037 # Dependencies to place before the objects being linked to create a
11039 predep_objects=$lt_predep_objects
11041 # Dependencies to place after the objects being linked to create a
11043 postdep_objects=$lt_postdep_objects
11045 # Dependencies to place before the objects being linked to create a
11047 predeps=$lt_predeps
11049 # Dependencies to place after the objects being linked to create a
11051 postdeps=$lt_postdeps
11053 # The directories searched by this compiler when creating a shared
11055 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11057 # The library search path used internally by the compiler when linking
11058 # a shared library.
11059 compiler_lib_search_path=$lt_compiler_lib_search_path
11061 # Method to check whether dependent libraries are shared objects.
11062 deplibs_check_method=$lt_deplibs_check_method
11064 # Command to use when deplibs_check_method == file_magic.
11065 file_magic_cmd=$lt_file_magic_cmd
11067 # Flag that allows shared libraries with undefined symbols to be built.
11068 allow_undefined_flag=$lt_allow_undefined_flag
11070 # Flag that forces no undefined symbols.
11071 no_undefined_flag=$lt_no_undefined_flag
11073 # Commands used to finish a libtool library installation in a directory.
11074 finish_cmds=$lt_finish_cmds
11076 # Same as above, but a single script fragment to be evaled but not shown.
11077 finish_eval=$lt_finish_eval
11079 # Take the output of nm and produce a listing of raw symbols and C names.
11080 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11082 # Transform the output of nm in a proper C declaration
11083 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11085 # Transform the output of nm in a C name address pair
11086 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11088 # This is the shared library runtime path variable.
11089 runpath_var=$runpath_var
11091 # This is the shared library path variable.
11092 shlibpath_var=$shlibpath_var
11094 # Is shlibpath searched before the hard-coded library search path?
11095 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11097 # How to hardcode a shared library path into an executable.
11098 hardcode_action=$hardcode_action
11100 # Whether we should hardcode library paths into libraries.
11101 hardcode_into_libs=$hardcode_into_libs
11103 # Flag to hardcode \$libdir into a binary during linking.
11104 # This must work even if \$libdir does not exist.
11105 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11107 # If ld is used when linking, flag to hardcode \$libdir into
11108 # a binary during linking. This must work even if \$libdir does
11110 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11112 # Whether we need a single -rpath flag with a separated argument.
11113 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11115 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11116 # resulting binary.
11117 hardcode_direct=$hardcode_direct
11119 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11120 # resulting binary.
11121 hardcode_minus_L=$hardcode_minus_L
11123 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11124 # the resulting binary.
11125 hardcode_shlibpath_var=$hardcode_shlibpath_var
11127 # Set to yes if building a shared library automatically hardcodes DIR into the library
11128 # and all subsequent libraries and executables linked against it.
11129 hardcode_automatic=$hardcode_automatic
11131 # Variables whose values should be saved in libtool wrapper scripts and
11132 # restored at relink time.
11133 variables_saved_for_relink="$variables_saved_for_relink"
11135 # Whether libtool must link a program against all its dependency libraries.
11136 link_all_deplibs=$link_all_deplibs
11138 # Compile-time system search path for libraries
11139 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11141 # Run-time system search path for libraries
11142 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11144 # Fix the shell variable \$srcfile for the compiler.
11145 fix_srcfile_path=$lt_fix_srcfile_path
11147 # Set to yes if exported symbols are required.
11148 always_export_symbols=$always_export_symbols
11150 # The commands to list exported symbols.
11151 export_symbols_cmds=$lt_export_symbols_cmds
11153 # The commands to extract the exported symbol list from a shared archive.
11154 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11156 # Symbols that should not be listed in the preloaded symbols.
11157 exclude_expsyms=$lt_exclude_expsyms
11159 # Symbols that must always be exported.
11160 include_expsyms=$lt_include_expsyms
11162 # ### END LIBTOOL CONFIG
11169 cat <<\EOF >> "$cfgfile"
11171 # AIX sometimes has problems with the GCC collect2 program. For some
11172 # reason, if we set the COLLECT_NAMES environment variable, the problems
11173 # vanish in a puff of smoke.
11174 if test "X${COLLECT_NAMES+set}" != Xset; then
11176 export COLLECT_NAMES
11182 # We use sed instead of cat because bash on DJGPP gets confused if
11183 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11184 # text mode, it properly converts lines to CR/LF. This bash problem
11185 # is reportedly fixed, but why not run on old versions too?
11186 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11188 mv -f "$cfgfile" "$ofile" || \
11189 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11193 # If there is no Makefile yet, we rely on a make rule to execute
11194 # `config.status --recheck' to rerun these tests and create the
11195 # libtool script then.
11196 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11197 if test -f "$ltmain_in"; then
11198 test -f Makefile && make "$ltmain"
11204 ac_cpp='$CPP $CPPFLAGS'
11205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11212 # Check whether --with-tags was given.
11213 if test "${with_tags+set}" = set; then
11214 withval=$with_tags; tagnames="$withval"
11218 if test -f "$ltmain" && test -n "$tagnames"; then
11219 if test ! -f "${ofile}"; then
11220 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11221 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11224 if test -z "$LTCC"; then
11225 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11226 if test -z "$LTCC"; then
11227 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11228 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11230 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11231 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11234 if test -z "$LTCFLAGS"; then
11235 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11238 # Extract list of available tagged configurations in $ofile.
11239 # Note that this assumes the entire list is on one line.
11240 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11242 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11243 for tagname in $tagnames; do
11245 # Check whether tagname contains only valid characters
11246 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11248 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11249 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11250 { (exit 1); exit 1; }; }
11254 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11256 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11257 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11258 { (exit 1); exit 1; }; }
11261 # Update the list of available tags.
11262 if test -n "$tagname"; then
11263 echo appending configuration tag \"$tagname\" to $ofile
11267 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11268 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11269 (test "X$CXX" != "Xg++"))) ; then
11271 ac_cpp='$CXXCPP $CPPFLAGS'
11272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11279 archive_cmds_need_lc_CXX=no
11280 allow_undefined_flag_CXX=
11281 always_export_symbols_CXX=no
11282 archive_expsym_cmds_CXX=
11283 export_dynamic_flag_spec_CXX=
11284 hardcode_direct_CXX=no
11285 hardcode_libdir_flag_spec_CXX=
11286 hardcode_libdir_flag_spec_ld_CXX=
11287 hardcode_libdir_separator_CXX=
11288 hardcode_minus_L_CXX=no
11289 hardcode_shlibpath_var_CXX=unsupported
11290 hardcode_automatic_CXX=no
11292 module_expsym_cmds_CXX=
11293 link_all_deplibs_CXX=unknown
11294 old_archive_cmds_CXX=$old_archive_cmds
11295 no_undefined_flag_CXX=
11296 whole_archive_flag_spec_CXX=
11297 enable_shared_with_static_runtimes_CXX=no
11299 # Dependencies to place before and after the object being linked:
11300 predep_objects_CXX=
11301 postdep_objects_CXX=
11304 compiler_lib_search_path_CXX=
11305 compiler_lib_search_dirs_CXX=
11307 # Source file extension for C++ test sources.
11310 # Object file extension for compiled C++ test sources.
11314 # Code to be used in simple compile tests
11315 lt_simple_compile_test_code="int some_variable = 0;"
11317 # Code to be used in simple link tests
11318 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11320 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11322 # If no C compiler was specified, use CC.
11325 # If no C compiler flags were specified, use CFLAGS.
11326 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11328 # Allow CC to be a program name with arguments.
11332 # save warnings/boilerplate of simple test code
11333 ac_outfile=conftest.$ac_objext
11334 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11335 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11336 _lt_compiler_boilerplate=`cat conftest.err`
11339 ac_outfile=conftest.$ac_objext
11340 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11341 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11342 _lt_linker_boilerplate=`cat conftest.err`
11346 # Allow CC to be a program name with arguments.
11351 lt_save_with_gnu_ld=$with_gnu_ld
11352 lt_save_path_LD=$lt_cv_path_LD
11353 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11354 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11356 $as_unset lt_cv_prog_gnu_ld
11358 if test -n "${lt_cv_path_LDCXX+set}"; then
11359 lt_cv_path_LD=$lt_cv_path_LDCXX
11361 $as_unset lt_cv_path_LD
11363 test -z "${LDCXX+set}" || LD=$LDCXX
11367 for cc_temp in $compiler""; do
11369 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11370 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11375 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11378 # We don't want -fno-exception wen compiling C++ code, so set the
11379 # no_builtin_flag separately
11380 if test "$GXX" = yes; then
11381 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11383 lt_prog_compiler_no_builtin_flag_CXX=
11386 if test "$GXX" = yes; then
11387 # Set up default GNU C++ configuration
11390 # Check whether --with-gnu-ld was given.
11391 if test "${with_gnu_ld+set}" = set; then
11392 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11398 if test "$GCC" = yes; then
11399 # Check if gcc -print-prog-name=ld gives a path.
11400 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11401 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11404 # gcc leaves a trailing carriage return which upsets mingw
11405 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11407 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11410 # Accept absolute paths.
11412 re_direlt='/[^/][^/]*/\.\./'
11413 # Canonicalize the pathname of ld
11414 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11415 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11416 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11418 test -z "$LD" && LD="$ac_prog"
11421 # If it fails, then pretend we aren't using GCC.
11425 # If it is relative, then search for the first ld in PATH.
11426 with_gnu_ld=unknown
11429 elif test "$with_gnu_ld" = yes; then
11430 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11431 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11433 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11434 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11436 if test "${lt_cv_path_LD+set}" = set; then
11437 echo $ECHO_N "(cached) $ECHO_C" >&6
11439 if test -z "$LD"; then
11440 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11441 for ac_dir in $PATH; do
11443 test -z "$ac_dir" && ac_dir=.
11444 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11445 lt_cv_path_LD="$ac_dir/$ac_prog"
11446 # Check to see if the program is GNU ld. I'd rather use --version,
11447 # but apparently some variants of GNU ld only accept -v.
11448 # Break only if it was the GNU/non-GNU ld that we prefer.
11449 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11450 *GNU* | *'with BFD'*)
11451 test "$with_gnu_ld" != no && break
11454 test "$with_gnu_ld" != yes && break
11461 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11465 LD="$lt_cv_path_LD"
11466 if test -n "$LD"; then
11467 { echo "$as_me:$LINENO: result: $LD" >&5
11468 echo "${ECHO_T}$LD" >&6; }
11470 { echo "$as_me:$LINENO: result: no" >&5
11471 echo "${ECHO_T}no" >&6; }
11473 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11474 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11475 { (exit 1); exit 1; }; }
11476 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11477 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11478 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11479 echo $ECHO_N "(cached) $ECHO_C" >&6
11481 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11482 case `$LD -v 2>&1 </dev/null` in
11483 *GNU* | *'with BFD'*)
11484 lt_cv_prog_gnu_ld=yes
11487 lt_cv_prog_gnu_ld=no
11491 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11492 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11493 with_gnu_ld=$lt_cv_prog_gnu_ld
11497 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11498 # archiving commands below assume that GNU ld is being used.
11499 if test "$with_gnu_ld" = yes; then
11500 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11501 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'
11503 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11504 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11506 # If archive_cmds runs LD, not CC, wlarc should be empty
11507 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11508 # investigate it a little bit more. (MM)
11511 # ancient GNU ld didn't support --whole-archive et. al.
11512 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11513 grep 'no-whole-archive' > /dev/null; then
11514 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11516 whole_archive_flag_spec_CXX=
11522 # A generic and very simple default shared library creation
11523 # command for GNU C++ for the case where it uses the native
11524 # linker, instead of GNU ld. If possible, this setting should
11525 # overridden to take advantage of the native linker features on
11526 # the platform it is being used on.
11527 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
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.
11533 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11541 # PORTME: fill in a description of your system's C++ link characteristics
11542 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11543 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11547 # FIXME: insert proper C++ library support
11551 if test "$host_cpu" = ia64; then
11552 # On IA64, the linker does run time linking by default, so we don't
11553 # have to do anything special.
11554 aix_use_runtimelinking=no
11555 exp_sym_flag='-Bexport'
11558 aix_use_runtimelinking=no
11560 # Test if we are trying to use run time linking or normal
11561 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11562 # need to do runtime linking.
11563 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11564 for ld_flag in $LDFLAGS; do
11567 aix_use_runtimelinking=yes
11575 exp_sym_flag='-bexport'
11576 no_entry_flag='-bnoentry'
11579 # When large executables or shared objects are built, AIX ld can
11580 # have problems creating the table of contents. If linking a library
11581 # or program results in "error TOC overflow" add -mminimal-toc to
11582 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11583 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11585 archive_cmds_CXX=''
11586 hardcode_direct_CXX=yes
11587 hardcode_libdir_separator_CXX=':'
11588 link_all_deplibs_CXX=yes
11590 if test "$GXX" = yes; then
11591 case $host_os in aix4.[012]|aix4.[012].*)
11592 # We only want to do this on AIX 4.2 and lower, the check
11593 # below for broken collect2 doesn't work under 4.3+
11594 collect2name=`${CC} -print-prog-name=collect2`
11595 if test -f "$collect2name" && \
11596 strings "$collect2name" | grep resolve_lib_name >/dev/null
11598 # We have reworked collect2
11601 # We have old collect2
11602 hardcode_direct_CXX=unsupported
11603 # It fails to find uninstalled libraries when the uninstalled
11604 # path is not listed in the libpath. Setting hardcode_minus_L
11605 # to unsupported forces relinking
11606 hardcode_minus_L_CXX=yes
11607 hardcode_libdir_flag_spec_CXX='-L$libdir'
11608 hardcode_libdir_separator_CXX=
11612 shared_flag='-shared'
11613 if test "$aix_use_runtimelinking" = yes; then
11614 shared_flag="$shared_flag "'${wl}-G'
11618 if test "$host_cpu" = ia64; then
11619 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11620 # chokes on -Wl,-G. The following line is correct:
11623 if test "$aix_use_runtimelinking" = yes; then
11624 shared_flag='${wl}-G'
11626 shared_flag='${wl}-bM:SRE'
11631 # It seems that -bexpall does not export symbols beginning with
11632 # underscore (_), so it is better to generate a list of symbols to export.
11633 always_export_symbols_CXX=yes
11634 if test "$aix_use_runtimelinking" = yes; then
11635 # Warning - without using the other runtime loading flags (-brtl),
11636 # -berok will link without error, but may produce a broken library.
11637 allow_undefined_flag_CXX='-berok'
11638 # Determine the default libpath from the value encoded in an empty executable.
11639 cat >conftest.$ac_ext <<_ACEOF
11642 cat confdefs.h >>conftest.$ac_ext
11643 cat >>conftest.$ac_ext <<_ACEOF
11644 /* end confdefs.h. */
11654 rm -f conftest.$ac_objext conftest$ac_exeext
11655 if { (ac_try="$ac_link"
11656 case "(($ac_try" in
11657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658 *) ac_try_echo=$ac_try;;
11660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11661 (eval "$ac_link") 2>conftest.er1
11663 grep -v '^ *+' conftest.er1 >conftest.err
11665 cat conftest.err >&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } && {
11668 test -z "$ac_cxx_werror_flag" ||
11669 test ! -s conftest.err
11670 } && test -s conftest$ac_exeext &&
11671 $as_test_x conftest$ac_exeext; then
11673 lt_aix_libpath_sed='
11674 /Import File Strings/,/^$/ {
11680 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11681 # Check for a 64-bit object if we didn't find anything.
11682 if test -z "$aix_libpath"; then
11683 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11686 echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.$ac_ext >&5
11692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11693 conftest$ac_exeext conftest.$ac_ext
11694 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11696 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11698 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"
11700 if test "$host_cpu" = ia64; then
11701 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11702 allow_undefined_flag_CXX="-z nodefs"
11703 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"
11705 # Determine the default libpath from the value encoded in an empty executable.
11706 cat >conftest.$ac_ext <<_ACEOF
11709 cat confdefs.h >>conftest.$ac_ext
11710 cat >>conftest.$ac_ext <<_ACEOF
11711 /* end confdefs.h. */
11721 rm -f conftest.$ac_objext conftest$ac_exeext
11722 if { (ac_try="$ac_link"
11723 case "(($ac_try" in
11724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725 *) ac_try_echo=$ac_try;;
11727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11728 (eval "$ac_link") 2>conftest.er1
11730 grep -v '^ *+' conftest.er1 >conftest.err
11732 cat conftest.err >&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); } && {
11735 test -z "$ac_cxx_werror_flag" ||
11736 test ! -s conftest.err
11737 } && test -s conftest$ac_exeext &&
11738 $as_test_x conftest$ac_exeext; then
11740 lt_aix_libpath_sed='
11741 /Import File Strings/,/^$/ {
11747 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11748 # Check for a 64-bit object if we didn't find anything.
11749 if test -z "$aix_libpath"; then
11750 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11753 echo "$as_me: failed program was:" >&5
11754 sed 's/^/| /' conftest.$ac_ext >&5
11759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11760 conftest$ac_exeext conftest.$ac_ext
11761 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11763 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11764 # Warning - without using the other run time loading flags,
11765 # -berok will link without error, but may produce a broken library.
11766 no_undefined_flag_CXX=' ${wl}-bernotok'
11767 allow_undefined_flag_CXX=' ${wl}-berok'
11768 # Exported symbols can be pulled into shared objects from archives
11769 whole_archive_flag_spec_CXX='$convenience'
11770 archive_cmds_need_lc_CXX=yes
11771 # This is similar to how AIX traditionally builds its shared libraries.
11772 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'
11778 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11779 allow_undefined_flag_CXX=unsupported
11780 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11781 # support --undefined. This deserves some investigation. FIXME
11782 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11789 case $cc_basename in
11791 # FIXME: insert proper C++ library support
11797 cygwin* | mingw* | pw32*)
11798 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11799 # as there is no search path for DLLs.
11800 hardcode_libdir_flag_spec_CXX='-L$libdir'
11801 allow_undefined_flag_CXX=unsupported
11802 always_export_symbols_CXX=no
11803 enable_shared_with_static_runtimes_CXX=yes
11805 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11806 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'
11807 # If the export-symbols file already is a .def file (1st line
11808 # is EXPORTS), use it as is; otherwise, prepend...
11809 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11810 cp $export_symbols $output_objdir/$soname.def;
11812 echo EXPORTS > $output_objdir/$soname.def;
11813 cat $export_symbols >> $output_objdir/$soname.def;
11815 $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'
11820 darwin* | rhapsody*)
11821 archive_cmds_need_lc_CXX=no
11822 hardcode_direct_CXX=no
11823 hardcode_automatic_CXX=yes
11824 hardcode_shlibpath_var_CXX=unsupported
11825 whole_archive_flag_spec_CXX=''
11826 link_all_deplibs_CXX=yes
11827 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11828 if test "$GXX" = yes ; then
11829 output_verbose_link_cmd='echo'
11830 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11831 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11832 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11833 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11834 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11835 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${_lt_dsymutil}"
11836 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
11839 case $cc_basename in
11841 output_verbose_link_cmd='echo'
11842 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11843 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11844 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11845 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11846 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}'
11856 case $cc_basename in
11858 # FIXME: insert proper C++ library support
11862 # Green Hills C++ Compiler
11863 # FIXME: insert proper C++ library support
11867 # FIXME: insert proper C++ library support
11873 # C++ shared libraries reported to be fairly broken before switch to ELF
11877 archive_cmds_need_lc_CXX=no
11879 freebsd* | dragonfly*)
11880 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11887 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11888 hardcode_libdir_separator_CXX=:
11889 export_dynamic_flag_spec_CXX='${wl}-E'
11890 hardcode_direct_CXX=yes
11891 hardcode_minus_L_CXX=yes # Not in the search PATH,
11892 # but as the default
11893 # location of the library.
11895 case $cc_basename in
11897 # FIXME: insert proper C++ library support
11901 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'
11902 # Commands to make compiler produce verbose output that lists
11903 # what "hidden" libraries, object files and flags are used when
11904 # linking a shared library.
11906 # There doesn't appear to be a way to prevent this compiler from
11907 # explicitly linking system object files so we need to strip them
11908 # from the output so that they don't get included in the library
11910 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'
11913 if test "$GXX" = yes; then
11914 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'
11916 # FIXME: insert proper C++ library support
11923 if test $with_gnu_ld = no; then
11924 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11925 hardcode_libdir_separator_CXX=:
11930 export_dynamic_flag_spec_CXX='${wl}-E'
11936 hardcode_direct_CXX=no
11937 hardcode_shlibpath_var_CXX=no
11940 hardcode_direct_CXX=yes
11941 hardcode_minus_L_CXX=yes # Not in the search PATH,
11942 # but as the default
11943 # location of the library.
11947 case $cc_basename in
11949 # FIXME: insert proper C++ library support
11955 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11958 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11961 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11964 # Commands to make compiler produce verbose output that lists
11965 # what "hidden" libraries, object files and flags are used when
11966 # linking a shared library.
11968 # There doesn't appear to be a way to prevent this compiler from
11969 # explicitly linking system object files so we need to strip them
11970 # from the output so that they don't get included in the library
11972 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'
11975 if test "$GXX" = yes; then
11976 if test $with_gnu_ld = no; then
11979 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11982 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11985 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'
11990 # FIXME: insert proper C++ library support
11997 hardcode_direct_CXX=no
11998 hardcode_shlibpath_var_CXX=no
11999 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12000 export_dynamic_flag_spec_CXX='${wl}-E'
12001 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12002 # Instead, shared libraries are loaded at an image base (0x10000000 by
12003 # default) and relocated if they conflict, which is a slow very memory
12004 # consuming and fragmenting process. To avoid this, we pick a random,
12005 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12006 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12007 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'
12008 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'
12011 case $cc_basename in
12014 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'
12016 # Archives containing C++ object files must be created using
12017 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12018 # necessary to make sure instantiated templates are included
12020 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12023 if test "$GXX" = yes; then
12024 if test "$with_gnu_ld" = no; then
12025 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'
12027 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'
12030 link_all_deplibs_CXX=yes
12033 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12034 hardcode_libdir_separator_CXX=:
12036 linux* | k*bsd*-gnu)
12037 case $cc_basename in
12039 # Kuck and Associates, Inc. (KAI) C++ Compiler
12041 # KCC will only create a shared library if the output file
12042 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12043 # to its proper name (with version) after linking.
12044 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'
12045 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'
12046 # Commands to make compiler produce verbose output that lists
12047 # what "hidden" libraries, object files and flags are used when
12048 # linking a shared library.
12050 # There doesn't appear to be a way to prevent this compiler from
12051 # explicitly linking system object files so we need to strip them
12052 # from the output so that they don't get included in the library
12054 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'
12056 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12057 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12059 # Archives containing C++ object files must be created using
12060 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12061 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12066 # version 8.0 and above of icpc choke on multiply defined symbols
12067 # if we add $predep_objects and $postdep_objects, however 7.1 and
12068 # earlier do not add the objects themselves.
12069 case `$CC -V 2>&1` in
12071 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12072 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'
12074 *) # Version 8.0 or newer
12077 ia64*) tmp_idyn=' -i_dynamic';;
12079 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12080 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'
12083 archive_cmds_need_lc_CXX=no
12084 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12085 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12086 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12089 # Portland Group C++ compiler
12090 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12091 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'
12093 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12094 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12095 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'
12099 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12100 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'
12102 runpath_var=LD_RUN_PATH
12103 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12104 hardcode_libdir_separator_CXX=:
12106 # Commands to make compiler produce verbose output that lists
12107 # what "hidden" libraries, object files and flags are used when
12108 # linking a shared library.
12110 # There doesn't appear to be a way to prevent this compiler from
12111 # explicitly linking system object files so we need to strip them
12112 # from the output so that they don't get included in the library
12114 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'
12117 case `$CC -V 2>&1 | sed 5q` in
12120 no_undefined_flag_CXX=' -zdefs'
12121 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12122 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12123 hardcode_libdir_flag_spec_CXX='-R$libdir'
12124 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12126 # Not sure whether something based on
12127 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12129 output_verbose_link_cmd='echo'
12131 # Archives containing C++ object files must be created using
12132 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12133 # necessary to make sure instantiated templates are included
12135 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12142 # FIXME: insert proper C++ library support
12146 # FIXME: insert proper C++ library support
12150 case $cc_basename in
12152 # FIXME: insert proper C++ library support
12156 # FIXME: insert proper C++ library support
12161 netbsd* | netbsdelf*-gnu)
12162 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12163 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12165 hardcode_libdir_flag_spec_CXX='-R$libdir'
12166 hardcode_direct_CXX=yes
12167 hardcode_shlibpath_var_CXX=no
12169 # Workaround some broken pre-1.5 toolchains
12170 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12173 # C++ shared libraries are fairly broken
12177 if test -f /usr/libexec/ld.so; then
12178 hardcode_direct_CXX=yes
12179 hardcode_shlibpath_var_CXX=no
12180 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12181 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12182 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12183 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12184 export_dynamic_flag_spec_CXX='${wl}-E'
12185 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12187 output_verbose_link_cmd='echo'
12193 case $cc_basename in
12195 # Kuck and Associates, Inc. (KAI) C++ Compiler
12197 # KCC will only create a shared library if the output file
12198 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12199 # to its proper name (with version) after linking.
12200 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'
12202 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12203 hardcode_libdir_separator_CXX=:
12205 # Archives containing C++ object files must be created using
12206 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12207 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12211 # Rational C++ 2.4.1
12212 # FIXME: insert proper C++ library support
12216 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12217 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'
12219 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12220 hardcode_libdir_separator_CXX=:
12222 # Commands to make compiler produce verbose output that lists
12223 # what "hidden" libraries, object files and flags are used when
12224 # linking a shared library.
12226 # There doesn't appear to be a way to prevent this compiler from
12227 # explicitly linking system object files so we need to strip them
12228 # from the output so that they don't get included in the library
12230 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'
12233 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12234 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12235 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'
12237 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12238 hardcode_libdir_separator_CXX=:
12240 # Commands to make compiler produce verbose output that lists
12241 # what "hidden" libraries, object files and flags are used when
12242 # linking a shared library.
12243 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12246 # FIXME: insert proper C++ library support
12253 case $cc_basename in
12255 # Kuck and Associates, Inc. (KAI) C++ Compiler
12257 # KCC will only create a shared library if the output file
12258 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12259 # to its proper name (with version) after linking.
12260 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'
12262 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12263 hardcode_libdir_separator_CXX=:
12265 # Archives containing C++ object files must be created using
12266 # the KAI C++ compiler.
12267 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12270 # Rational C++ 2.4.1
12271 # FIXME: insert proper C++ library support
12275 allow_undefined_flag_CXX=' -expect_unresolved \*'
12276 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'
12277 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12278 echo "-hidden">> $lib.exp~
12279 $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~
12282 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12283 hardcode_libdir_separator_CXX=:
12285 # Commands to make compiler produce verbose output that lists
12286 # what "hidden" libraries, object files and flags are used when
12287 # linking a shared library.
12289 # There doesn't appear to be a way to prevent this compiler from
12290 # explicitly linking system object files so we need to strip them
12291 # from the output so that they don't get included in the library
12293 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'
12296 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12297 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12298 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'
12300 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12301 hardcode_libdir_separator_CXX=:
12303 # Commands to make compiler produce verbose output that lists
12304 # what "hidden" libraries, object files and flags are used when
12305 # linking a shared library.
12306 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12309 # FIXME: insert proper C++ library support
12316 # FIXME: insert proper C++ library support
12320 case $cc_basename in
12323 # FIXME: insert proper C++ library support
12328 # FIXME: insert proper C++ library support
12332 # FIXME: insert proper C++ library support
12338 case $cc_basename in
12340 # Sun C++ 4.2, 5.x and Centerline C++
12341 archive_cmds_need_lc_CXX=yes
12342 no_undefined_flag_CXX=' -zdefs'
12343 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12344 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12345 $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'
12347 hardcode_libdir_flag_spec_CXX='-R$libdir'
12348 hardcode_shlibpath_var_CXX=no
12350 solaris2.[0-5] | solaris2.[0-5].*) ;;
12352 # The compiler driver will combine and reorder linker options,
12353 # but understands `-z linker_flag'.
12354 # Supported since Solaris 2.6 (maybe 2.5.1?)
12355 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12358 link_all_deplibs_CXX=yes
12360 output_verbose_link_cmd='echo'
12362 # Archives containing C++ object files must be created using
12363 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12364 # necessary to make sure instantiated templates are included
12366 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12369 # Green Hills C++ Compiler
12370 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12372 # The C++ compiler must be used to create the archive.
12373 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12376 # GNU C++ compiler with Solaris linker
12377 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12378 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12379 if $CC --version | grep -v '^2\.7' > /dev/null; then
12380 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12381 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12382 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12384 # Commands to make compiler produce verbose output that lists
12385 # what "hidden" libraries, object files and flags are used when
12386 # linking a shared library.
12387 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12389 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12391 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12392 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12393 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12395 # Commands to make compiler produce verbose output that lists
12396 # what "hidden" libraries, object files and flags are used when
12397 # linking a shared library.
12398 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12401 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12403 solaris2.[0-5] | solaris2.[0-5].*) ;;
12405 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12412 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12413 no_undefined_flag_CXX='${wl}-z,text'
12414 archive_cmds_need_lc_CXX=no
12415 hardcode_shlibpath_var_CXX=no
12416 runpath_var='LD_RUN_PATH'
12418 case $cc_basename in
12420 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12421 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12424 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12425 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12429 sysv5* | sco3.2v5* | sco5v6*)
12430 # Note: We can NOT use -z defs as we might desire, because we do not
12431 # link with -lc, and that would cause any symbols used from libc to
12432 # always be unresolved, which means just about no library would
12433 # ever link correctly. If we're not using GNU ld we use -z text
12434 # though, which does catch some bad symbols but isn't as heavy-handed
12436 # For security reasons, it is highly recommended that you always
12437 # use absolute paths for naming shared libraries, and exclude the
12438 # DT_RUNPATH tag from executables and libraries. But doing so
12439 # requires that you compile everything twice, which is a pain.
12440 # So that behaviour is only enabled if SCOABSPATH is set to a
12441 # non-empty value in the environment. Most likely only useful for
12442 # creating official distributions of packages.
12443 # This is a hack until libtool officially supports absolute path
12444 # names for shared libraries.
12445 no_undefined_flag_CXX='${wl}-z,text'
12446 allow_undefined_flag_CXX='${wl}-z,nodefs'
12447 archive_cmds_need_lc_CXX=no
12448 hardcode_shlibpath_var_CXX=no
12449 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12450 hardcode_libdir_separator_CXX=':'
12451 link_all_deplibs_CXX=yes
12452 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12453 runpath_var='LD_RUN_PATH'
12455 case $cc_basename in
12457 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12458 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12461 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12462 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12467 case $cc_basename in
12469 # NonStop-UX NCC 3.20
12470 # FIXME: insert proper C++ library support
12474 # FIXME: insert proper C++ library support
12480 # FIXME: insert proper C++ library support
12484 # FIXME: insert proper C++ library support
12488 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12489 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12490 test "$ld_shlibs_CXX" = no && can_build_shared=no
12495 cat > conftest.$ac_ext <<EOF
12499 Foo (void) { a = 0; }
12505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12506 (eval $ac_compile) 2>&5
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; then
12510 # Parse the compiler output and extract the necessary
12511 # objects, libraries and library flags.
12513 # Sentinel used to keep track of whether or not we are before
12514 # the conftest object file.
12515 pre_test_object_deps_done=no
12517 # The `*' in the case matches for architectures that use `case' in
12518 # $output_verbose_cmd can trigger glob expansion during the loop
12519 # eval without this substitution.
12520 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12522 for p in `eval $output_verbose_link_cmd`; do
12526 # Some compilers place space between "-{L,R}" and the path.
12527 # Remove the space.
12528 if test $p = "-L" \
12529 || test $p = "-R"; then
12536 if test "$pre_test_object_deps_done" = no; then
12539 # Internal compiler library paths should come after those
12540 # provided the user. The postdeps already come after the
12541 # user supplied libs so there is no need to process them.
12542 if test -z "$compiler_lib_search_path_CXX"; then
12543 compiler_lib_search_path_CXX="${prev}${p}"
12545 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12548 # The "-l" case would never come before the object being
12549 # linked, so don't bother handling this case.
12552 if test -z "$postdeps_CXX"; then
12553 postdeps_CXX="${prev}${p}"
12555 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12561 # This assumes that the test object file only shows up
12562 # once in the compiler output.
12563 if test "$p" = "conftest.$objext"; then
12564 pre_test_object_deps_done=yes
12568 if test "$pre_test_object_deps_done" = no; then
12569 if test -z "$predep_objects_CXX"; then
12570 predep_objects_CXX="$p"
12572 predep_objects_CXX="$predep_objects_CXX $p"
12575 if test -z "$postdep_objects_CXX"; then
12576 postdep_objects_CXX="$p"
12578 postdep_objects_CXX="$postdep_objects_CXX $p"
12583 *) ;; # Ignore the rest.
12591 echo "libtool.m4: error: problem compiling CXX test program"
12594 $rm -f confest.$objext
12596 compiler_lib_search_dirs_CXX=
12597 if test -n "$compiler_lib_search_path_CXX"; then
12598 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12601 # PORTME: override above test on systems where it is broken
12604 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12605 # hack all around it, let's just trust "g++" to DTRT.
12606 predep_objects_CXX=
12607 postdep_objects_CXX=
12612 case `$CC -V 2>&1 | sed 5q` in
12616 # The more standards-conforming stlport4 library is
12617 # incompatible with the Cstd library. Avoid specifying
12618 # it if it's in CXXFLAGS. Ignore libCrun as
12619 # -library=stlport4 depends on it.
12620 case " $CXX $CXXFLAGS " in
12621 *" -library=stlport4 "*)
12622 solaris_use_stlport4=yes
12625 if test "$solaris_use_stlport4" != yes; then
12626 postdeps_CXX='-library=Cstd -library=Crun'
12633 case $cc_basename in
12635 # The more standards-conforming stlport4 library is
12636 # incompatible with the Cstd library. Avoid specifying
12637 # it if it's in CXXFLAGS. Ignore libCrun as
12638 # -library=stlport4 depends on it.
12639 case " $CXX $CXXFLAGS " in
12640 *" -library=stlport4 "*)
12641 solaris_use_stlport4=yes
12645 # Adding this requires a known-good setup of shared libraries for
12646 # Sun compiler versions before 5.6, else PIC objects from an old
12647 # archive will be linked into the output, leading to subtle bugs.
12648 if test "$solaris_use_stlport4" != yes; then
12649 postdeps_CXX='-library=Cstd -library=Crun'
12656 case " $postdeps_CXX " in
12657 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12660 lt_prog_compiler_wl_CXX=
12661 lt_prog_compiler_pic_CXX=
12662 lt_prog_compiler_static_CXX=
12664 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12665 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12667 # C++ specific cases for pic, static, wl, etc.
12668 if test "$GXX" = yes; then
12669 lt_prog_compiler_wl_CXX='-Wl,'
12670 lt_prog_compiler_static_CXX='-static'
12674 # All AIX code is PIC.
12675 if test "$host_cpu" = ia64; then
12676 # AIX 5 now supports IA64 processor
12677 lt_prog_compiler_static_CXX='-Bstatic'
12681 # FIXME: we need at least 68020 code to build shared libraries, but
12682 # adding the `-m68020' flag to GCC prevents building anything better,
12684 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12686 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12687 # PIC is the default for these OSes.
12689 mingw* | cygwin* | os2* | pw32*)
12690 # This hack is so that the source file can tell whether it is being
12691 # built for inclusion in a dll (and should export symbols for example).
12692 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12693 # (--disable-auto-import) libraries
12694 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12696 darwin* | rhapsody*)
12697 # PIC is the default on this platform
12698 # Common symbols not allowed in MH_DYLIB files
12699 lt_prog_compiler_pic_CXX='-fno-common'
12702 # DJGPP does not support shared libraries at all
12703 lt_prog_compiler_pic_CXX=
12706 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12707 # Instead, we relocate shared libraries at runtime.
12710 if test -d /usr/nec; then
12711 lt_prog_compiler_pic_CXX=-Kconform_pic
12715 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12716 # not for PA HP-UX.
12721 lt_prog_compiler_pic_CXX='-fPIC'
12726 lt_prog_compiler_pic_CXX='-fPIC'
12732 # All AIX code is PIC.
12733 if test "$host_cpu" = ia64; then
12734 # AIX 5 now supports IA64 processor
12735 lt_prog_compiler_static_CXX='-Bstatic'
12737 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12741 case $cc_basename in
12743 # Green Hills C++ Compiler
12744 # _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"
12749 # PIC is the default on this platform
12750 # Common symbols not allowed in MH_DYLIB files
12751 case $cc_basename in
12753 lt_prog_compiler_pic_CXX='-qnocommon'
12754 lt_prog_compiler_wl_CXX='-Wl,'
12759 case $cc_basename in
12761 lt_prog_compiler_pic_CXX='-KPIC'
12764 # Green Hills C++ Compiler
12765 lt_prog_compiler_pic_CXX='-pic'
12771 freebsd* | dragonfly*)
12772 # FreeBSD uses GNU C++
12774 hpux9* | hpux10* | hpux11*)
12775 case $cc_basename in
12777 lt_prog_compiler_wl_CXX='-Wl,'
12778 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12779 if test "$host_cpu" != ia64; then
12780 lt_prog_compiler_pic_CXX='+Z'
12784 lt_prog_compiler_wl_CXX='-Wl,'
12785 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12791 lt_prog_compiler_pic_CXX='+Z'
12800 # This is c89, which is MS Visual C++ (no shared libs)
12801 # Anyone wants to do a port?
12803 irix5* | irix6* | nonstopux*)
12804 case $cc_basename in
12806 lt_prog_compiler_wl_CXX='-Wl,'
12807 lt_prog_compiler_static_CXX='-non_shared'
12808 # CC pic flag -KPIC is the default.
12814 linux* | k*bsd*-gnu)
12815 case $cc_basename in
12818 lt_prog_compiler_wl_CXX='--backend -Wl,'
12819 lt_prog_compiler_pic_CXX='-fPIC'
12823 lt_prog_compiler_wl_CXX='-Wl,'
12824 lt_prog_compiler_pic_CXX='-KPIC'
12825 lt_prog_compiler_static_CXX='-static'
12828 # Portland Group C++ compiler.
12829 lt_prog_compiler_wl_CXX='-Wl,'
12830 lt_prog_compiler_pic_CXX='-fpic'
12831 lt_prog_compiler_static_CXX='-Bstatic'
12835 # Make sure the PIC flag is empty. It appears that all Alpha
12836 # Linux and Compaq Tru64 Unix objects are PIC.
12837 lt_prog_compiler_pic_CXX=
12838 lt_prog_compiler_static_CXX='-non_shared'
12841 case `$CC -V 2>&1 | sed 5q` in
12844 lt_prog_compiler_pic_CXX='-KPIC'
12845 lt_prog_compiler_static_CXX='-Bstatic'
12846 lt_prog_compiler_wl_CXX='-Qoption ld '
12857 case $cc_basename in
12859 lt_prog_compiler_pic_CXX='-W c,exportall'
12865 netbsd* | netbsdelf*-gnu)
12867 osf3* | osf4* | osf5*)
12868 case $cc_basename in
12870 lt_prog_compiler_wl_CXX='--backend -Wl,'
12873 # Rational C++ 2.4.1
12874 lt_prog_compiler_pic_CXX='-pic'
12877 # Digital/Compaq C++
12878 lt_prog_compiler_wl_CXX='-Wl,'
12879 # Make sure the PIC flag is empty. It appears that all Alpha
12880 # Linux and Compaq Tru64 Unix objects are PIC.
12881 lt_prog_compiler_pic_CXX=
12882 lt_prog_compiler_static_CXX='-non_shared'
12891 case $cc_basename in
12893 # Sun C++ 4.2, 5.x and Centerline C++
12894 lt_prog_compiler_pic_CXX='-KPIC'
12895 lt_prog_compiler_static_CXX='-Bstatic'
12896 lt_prog_compiler_wl_CXX='-Qoption ld '
12899 # Green Hills C++ Compiler
12900 lt_prog_compiler_pic_CXX='-PIC'
12907 case $cc_basename in
12910 lt_prog_compiler_pic_CXX='-pic'
12911 lt_prog_compiler_static_CXX='-Bstatic'
12915 lt_prog_compiler_pic_CXX='-pic'
12922 case $cc_basename in
12924 # NonStop-UX NCC 3.20
12925 lt_prog_compiler_pic_CXX='-KPIC'
12931 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12932 case $cc_basename in
12934 lt_prog_compiler_wl_CXX='-Wl,'
12935 lt_prog_compiler_pic_CXX='-KPIC'
12936 lt_prog_compiler_static_CXX='-Bstatic'
12943 lt_prog_compiler_can_build_shared_CXX=no
12948 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12949 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12952 # Check to make sure the PIC flag actually works.
12954 if test -n "$lt_prog_compiler_pic_CXX"; then
12956 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12957 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12958 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12959 echo $ECHO_N "(cached) $ECHO_C" >&6
12961 lt_cv_prog_compiler_pic_works_CXX=no
12962 ac_outfile=conftest.$ac_objext
12963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12964 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12965 # Insert the option either (1) after the last *FLAGS variable, or
12966 # (2) before a word containing "conftest.", or (3) at the end.
12967 # Note that $ac_compile itself does not contain backslashes and begins
12968 # with a dollar sign (not a hyphen), so the echo should work correctly.
12969 # The option is referenced via a variable to avoid confusing sed.
12970 lt_compile=`echo "$ac_compile" | $SED \
12971 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12973 -e 's:$: $lt_compiler_flag:'`
12974 (eval echo "\"\$as_me:12974: $lt_compile\"" >&5)
12975 (eval "$lt_compile" 2>conftest.err)
12977 cat conftest.err >&5
12978 echo "$as_me:12978: \$? = $ac_status" >&5
12979 if (exit $ac_status) && test -s "$ac_outfile"; then
12980 # The compiler can only warn and ignore the option if not recognized
12981 # So say no if there are warnings other than the usual output.
12982 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12983 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12984 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12985 lt_cv_prog_compiler_pic_works_CXX=yes
12991 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12992 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12994 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12995 case $lt_prog_compiler_pic_CXX in
12997 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13000 lt_prog_compiler_pic_CXX=
13001 lt_prog_compiler_can_build_shared_CXX=no
13006 # For platforms which do not support PIC, -DPIC is meaningless:
13008 lt_prog_compiler_pic_CXX=
13011 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13016 # Check to make sure the static flag actually works.
13018 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13019 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13020 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13021 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13022 echo $ECHO_N "(cached) $ECHO_C" >&6
13024 lt_cv_prog_compiler_static_works_CXX=no
13025 save_LDFLAGS="$LDFLAGS"
13026 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13027 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13028 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13029 # The linker can only warn and ignore the option if not recognized
13030 # So say no if there are warnings
13031 if test -s conftest.err; then
13032 # Append any errors to the config.log.
13033 cat conftest.err 1>&5
13034 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13035 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13036 if diff conftest.exp conftest.er2 >/dev/null; then
13037 lt_cv_prog_compiler_static_works_CXX=yes
13040 lt_cv_prog_compiler_static_works_CXX=yes
13044 LDFLAGS="$save_LDFLAGS"
13047 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13048 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13050 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13053 lt_prog_compiler_static_CXX=
13057 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13058 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13059 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13060 echo $ECHO_N "(cached) $ECHO_C" >&6
13062 lt_cv_prog_compiler_c_o_CXX=no
13063 $rm -r conftest 2>/dev/null
13067 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13069 lt_compiler_flag="-o out/conftest2.$ac_objext"
13070 # Insert the option either (1) after the last *FLAGS variable, or
13071 # (2) before a word containing "conftest.", or (3) at the end.
13072 # Note that $ac_compile itself does not contain backslashes and begins
13073 # with a dollar sign (not a hyphen), so the echo should work correctly.
13074 lt_compile=`echo "$ac_compile" | $SED \
13075 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13076 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13077 -e 's:$: $lt_compiler_flag:'`
13078 (eval echo "\"\$as_me:13078: $lt_compile\"" >&5)
13079 (eval "$lt_compile" 2>out/conftest.err)
13081 cat out/conftest.err >&5
13082 echo "$as_me:13082: \$? = $ac_status" >&5
13083 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13085 # The compiler can only warn and ignore the option if not recognized
13086 # So say no if there are warnings
13087 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13088 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13089 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13090 lt_cv_prog_compiler_c_o_CXX=yes
13095 # SGI C++ compiler will create directory out/ii_files/ for
13096 # template instantiation
13097 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13098 $rm out/* && rmdir out
13104 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13105 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13108 hard_links="nottested"
13109 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13110 # do not overwrite the value of need_locks provided by the user
13111 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13112 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13115 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13117 ln conftest.a conftest.b 2>&5 || hard_links=no
13118 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13119 { echo "$as_me:$LINENO: result: $hard_links" >&5
13120 echo "${ECHO_T}$hard_links" >&6; }
13121 if test "$hard_links" = no; then
13122 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13123 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13130 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13131 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13133 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13136 # If we're using GNU nm, then we don't want the "-C" option.
13137 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13138 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13139 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'
13141 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'
13145 export_symbols_cmds_CXX="$ltdll_cmds"
13148 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'
13150 linux* | k*bsd*-gnu)
13151 link_all_deplibs_CXX=no
13154 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13157 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13159 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13160 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13161 test "$ld_shlibs_CXX" = no && can_build_shared=no
13164 # Do we need to explicitly link libc?
13166 case "x$archive_cmds_need_lc_CXX" in
13168 # Assume -lc should be added
13169 archive_cmds_need_lc_CXX=yes
13171 if test "$enable_shared" = yes && test "$GCC" = yes; then
13172 case $archive_cmds_CXX in
13174 # FIXME: we may have to deal with multi-command sequences.
13177 # Test whether the compiler implicitly links with -lc since on some
13178 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13179 # to ld, don't add -lc before -lgcc.
13180 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13181 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13183 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13186 (eval $ac_compile) 2>&5
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); } 2>conftest.err; then
13192 libobjs=conftest.$ac_objext
13194 wl=$lt_prog_compiler_wl_CXX
13195 pic_flag=$lt_prog_compiler_pic_CXX
13201 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13202 allow_undefined_flag_CXX=
13203 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13204 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); }
13209 archive_cmds_need_lc_CXX=no
13211 archive_cmds_need_lc_CXX=yes
13213 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13215 cat conftest.err 1>&5
13218 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13219 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13226 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13227 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13228 library_names_spec=
13229 libname_spec='lib$name'
13233 postuninstall_cmds=
13237 shlibpath_overrides_runpath=unknown
13239 dynamic_linker="$host_os ld.so"
13240 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13242 need_lib_prefix=unknown
13243 hardcode_into_libs=no
13245 # when you set need_version to no, make sure it does not cause -set_version
13246 # flags to be left without arguments
13247 need_version=unknown
13252 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13253 shlibpath_var=LIBPATH
13255 # AIX 3 has no versioning support, so we append a major version to the name.
13256 soname_spec='${libname}${release}${shared_ext}$major'
13263 hardcode_into_libs=yes
13264 if test "$host_cpu" = ia64; then
13265 # AIX 5 supports IA64
13266 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13267 shlibpath_var=LD_LIBRARY_PATH
13269 # With GCC up to 2.95.x, collect2 would create an import file
13270 # for dependence libraries. The import file would start with
13271 # the line `#! .'. This would cause the generated library to
13272 # depend on `.', always an invalid library. This was fixed in
13273 # development snapshots of GCC prior to 3.0.
13275 aix4 | aix4.[01] | aix4.[01].*)
13276 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13278 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13281 can_build_shared=no
13285 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13286 # soname into executable. Probably we can add versioning support to
13287 # collect2, so additional links can be useful in future.
13288 if test "$aix_use_runtimelinking" = yes; then
13289 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13290 # instead of lib<name>.a to let people know that these are not
13291 # typical AIX shared libraries.
13292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13294 # We preserve .a as extension for shared libraries through AIX4.2
13295 # and later when we are not doing run time linking.
13296 library_names_spec='${libname}${release}.a $libname.a'
13297 soname_spec='${libname}${release}${shared_ext}$major'
13299 shlibpath_var=LIBPATH
13304 library_names_spec='$libname.ixlibrary $libname.a'
13305 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13306 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'
13310 library_names_spec='${libname}${shared_ext}'
13311 dynamic_linker="$host_os ld.so"
13312 shlibpath_var=LIBRARY_PATH
13318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13319 soname_spec='${libname}${release}${shared_ext}$major'
13320 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13321 shlibpath_var=LD_LIBRARY_PATH
13322 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13323 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13324 # the default ld.so.conf also contains /usr/contrib/lib and
13325 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13326 # libtool to hard-code these into programs
13329 cygwin* | mingw* | pw32*)
13330 version_type=windows
13335 case $GCC,$host_os in
13336 yes,cygwin* | yes,mingw* | yes,pw32*)
13337 library_names_spec='$libname.dll.a'
13338 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13339 postinstall_cmds='base_file=`basename \${file}`~
13340 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13341 dldir=$destdir/`dirname \$dlpath`~
13342 test -d \$dldir || mkdir -p \$dldir~
13343 $install_prog $dir/$dlname \$dldir/$dlname~
13344 chmod a+x \$dldir/$dlname'
13345 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13346 dlpath=$dir/\$dldll~
13348 shlibpath_overrides_runpath=yes
13352 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13353 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13354 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13357 # MinGW DLLs use traditional 'lib' prefix
13358 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13359 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13360 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13361 # It is most probably a Windows format PATH printed by
13362 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13363 # path with ; separators, and with drive letters. We can handle the
13364 # drive letters (cygwin fileutils understands them), so leave them,
13365 # especially as we might pass files found there to a mingw objdump,
13366 # which wouldn't understand a cygwinified path. Ahh.
13367 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13369 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13373 # pw32 DLLs use 'pw' prefix rather than 'lib'
13374 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13380 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13383 dynamic_linker='Win32 ld.exe'
13384 # FIXME: first we should search . and the directory the executable is in
13388 darwin* | rhapsody*)
13389 dynamic_linker="$host_os dyld"
13390 version_type=darwin
13393 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13394 soname_spec='${libname}${release}${major}$shared_ext'
13395 shlibpath_overrides_runpath=yes
13396 shlibpath_var=DYLD_LIBRARY_PATH
13397 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13399 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13407 soname_spec='${libname}${release}${shared_ext}$major'
13408 shlibpath_var=LD_LIBRARY_PATH
13415 freebsd* | dragonfly*)
13416 # DragonFly does not have aout. When/if they implement a new
13417 # versioning mechanism, adjust this.
13418 if test -x /usr/bin/objformat; then
13419 objformat=`/usr/bin/objformat`
13422 freebsd[123]*) objformat=aout ;;
13423 *) objformat=elf ;;
13426 version_type=freebsd-$objformat
13427 case $version_type in
13429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13434 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13438 shlibpath_var=LD_LIBRARY_PATH
13441 shlibpath_overrides_runpath=yes
13443 freebsd3.[01]* | freebsdelf3.[01]*)
13444 shlibpath_overrides_runpath=yes
13445 hardcode_into_libs=yes
13447 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13448 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13449 shlibpath_overrides_runpath=no
13450 hardcode_into_libs=yes
13452 *) # from 4.6 on, and DragonFly
13453 shlibpath_overrides_runpath=yes
13454 hardcode_into_libs=yes
13463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13464 soname_spec='${libname}${release}${shared_ext}$major'
13465 shlibpath_var=LD_LIBRARY_PATH
13466 hardcode_into_libs=yes
13469 hpux9* | hpux10* | hpux11*)
13470 # Give a soname corresponding to the major version so that dld.sl refuses to
13471 # link against other versions.
13478 hardcode_into_libs=yes
13479 dynamic_linker="$host_os dld.so"
13480 shlibpath_var=LD_LIBRARY_PATH
13481 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13483 soname_spec='${libname}${release}${shared_ext}$major'
13484 if test "X$HPUX_IA64_MODE" = X32; then
13485 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13487 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13489 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13493 hardcode_into_libs=yes
13494 dynamic_linker="$host_os dld.sl"
13495 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13496 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13498 soname_spec='${libname}${release}${shared_ext}$major'
13499 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13500 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13504 dynamic_linker="$host_os dld.sl"
13505 shlibpath_var=SHLIB_PATH
13506 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13508 soname_spec='${libname}${release}${shared_ext}$major'
13511 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13512 postinstall_cmds='chmod 555 $lib'
13519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13520 soname_spec='${libname}${release}${shared_ext}$major'
13521 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13522 shlibpath_var=LD_LIBRARY_PATH
13523 shlibpath_overrides_runpath=no
13524 hardcode_into_libs=yes
13527 irix5* | irix6* | nonstopux*)
13529 nonstopux*) version_type=nonstopux ;;
13531 if test "$lt_cv_prog_gnu_ld" = yes; then
13539 soname_spec='${libname}${release}${shared_ext}$major'
13540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13542 irix5* | nonstopux*)
13543 libsuff= shlibsuff=
13546 case $LD in # libtool.m4 will add one of these switches to LD
13547 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13548 libsuff= shlibsuff= libmagic=32-bit;;
13549 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13550 libsuff=32 shlibsuff=N32 libmagic=N32;;
13551 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13552 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13553 *) libsuff= shlibsuff= libmagic=never-match;;
13557 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13558 shlibpath_overrides_runpath=no
13559 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13560 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13561 hardcode_into_libs=yes
13564 # No shared lib support for Linux oldld, aout, or coff.
13565 linux*oldld* | linux*aout* | linux*coff*)
13569 # This must be Linux ELF.
13570 linux* | k*bsd*-gnu)
13574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13575 soname_spec='${libname}${release}${shared_ext}$major'
13576 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13577 shlibpath_var=LD_LIBRARY_PATH
13578 shlibpath_overrides_runpath=no
13579 # This implies no fast_install, which is unacceptable.
13580 # Some rework will be needed to allow for fast_install
13581 # before this can be enabled.
13582 hardcode_into_libs=yes
13584 # Append ld.so.conf contents to the search path
13585 if test -f /etc/ld.so.conf; then
13586 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13587 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13590 # We used to test for /lib/ld.so.1 and disable shared libraries on
13591 # powerpc, because MkLinux only supported shared libraries with the
13592 # GNU dynamic linker. Since this was broken with cross compilers,
13593 # most powerpc-linux boxes support dynamic linking these days and
13594 # people can always --disable-shared, the test was removed, and we
13595 # assume the GNU/Linux dynamic linker is in use.
13596 dynamic_linker='GNU/Linux ld.so'
13603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13604 soname_spec='${libname}${release}${shared_ext}$major'
13605 shlibpath_var=LD_LIBRARY_PATH
13606 shlibpath_overrides_runpath=no
13607 hardcode_into_libs=yes
13608 dynamic_linker='NetBSD ld.elf_so'
13615 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13617 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13618 dynamic_linker='NetBSD (a.out) ld.so'
13620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13621 soname_spec='${libname}${release}${shared_ext}$major'
13622 dynamic_linker='NetBSD ld.elf_so'
13624 shlibpath_var=LD_LIBRARY_PATH
13625 shlibpath_overrides_runpath=yes
13626 hardcode_into_libs=yes
13631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13632 shlibpath_var=LD_LIBRARY_PATH
13633 shlibpath_overrides_runpath=yes
13640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13641 soname_spec='${libname}${release}${shared_ext}$major'
13642 shlibpath_var=LD_LIBRARY_PATH
13643 shlibpath_overrides_runpath=yes
13648 sys_lib_dlsearch_path_spec="/usr/lib"
13650 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13652 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13653 *) need_version=no ;;
13655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13657 shlibpath_var=LD_LIBRARY_PATH
13658 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13660 openbsd2.[89] | openbsd2.[89].*)
13661 shlibpath_overrides_runpath=no
13664 shlibpath_overrides_runpath=yes
13668 shlibpath_overrides_runpath=yes
13673 libname_spec='$name'
13676 library_names_spec='$libname${shared_ext} $libname.a'
13677 dynamic_linker='OS/2 ld.exe'
13678 shlibpath_var=LIBPATH
13681 osf3* | osf4* | osf5*)
13685 soname_spec='${libname}${release}${shared_ext}$major'
13686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13687 shlibpath_var=LD_LIBRARY_PATH
13688 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13689 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13701 soname_spec='${libname}${release}${shared_ext}$major'
13702 shlibpath_var=LD_LIBRARY_PATH
13703 shlibpath_overrides_runpath=yes
13704 hardcode_into_libs=yes
13705 # ldd complains unless libraries are executable
13706 postinstall_cmds='chmod +x $lib'
13711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13712 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13713 shlibpath_var=LD_LIBRARY_PATH
13714 shlibpath_overrides_runpath=yes
13715 if test "$with_gnu_ld" = yes; then
13723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13724 soname_spec='${libname}${release}${shared_ext}$major'
13725 shlibpath_var=LD_LIBRARY_PATH
13726 case $host_vendor in
13728 shlibpath_overrides_runpath=no
13730 export_dynamic_flag_spec='${wl}-Blargedynsym'
13731 runpath_var=LD_RUN_PATH
13739 shlibpath_overrides_runpath=no
13740 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13746 if test -d /usr/nec ;then
13748 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13749 soname_spec='$libname${shared_ext}.$major'
13750 shlibpath_var=LD_LIBRARY_PATH
13754 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13755 version_type=freebsd-elf
13758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13759 soname_spec='${libname}${release}${shared_ext}$major'
13760 shlibpath_var=LD_LIBRARY_PATH
13761 hardcode_into_libs=yes
13762 if test "$with_gnu_ld" = yes; then
13763 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13764 shlibpath_overrides_runpath=no
13766 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13767 shlibpath_overrides_runpath=yes
13770 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13774 sys_lib_dlsearch_path_spec='/usr/lib'
13779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13780 soname_spec='${libname}${release}${shared_ext}$major'
13781 shlibpath_var=LD_LIBRARY_PATH
13788 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13789 echo "${ECHO_T}$dynamic_linker" >&6; }
13790 test "$dynamic_linker" = no && can_build_shared=no
13792 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13793 echo $ECHO_N "(cached) $ECHO_C" >&6
13795 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13798 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13799 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13800 echo $ECHO_N "(cached) $ECHO_C" >&6
13802 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13805 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13807 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13808 if test "$GCC" = yes; then
13809 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13812 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13813 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13814 hardcode_action_CXX=
13815 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13816 test -n "$runpath_var_CXX" || \
13817 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13819 # We can hardcode non-existant directories.
13820 if test "$hardcode_direct_CXX" != no &&
13821 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13822 # have to relink, otherwise we might link with an installed library
13823 # when we should be linking with a yet-to-be-installed one
13824 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13825 test "$hardcode_minus_L_CXX" != no; then
13826 # Linking always hardcodes the temporary library directory.
13827 hardcode_action_CXX=relink
13829 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13830 hardcode_action_CXX=immediate
13833 # We cannot hardcode anything, or else we can only hardcode existing
13835 hardcode_action_CXX=unsupported
13837 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13838 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13840 if test "$hardcode_action_CXX" = relink; then
13841 # Fast installation is not supported
13842 enable_fast_install=no
13843 elif test "$shlibpath_overrides_runpath" = yes ||
13844 test "$enable_shared" = no; then
13845 # Fast installation is not necessary
13846 enable_fast_install=needless
13850 # The else clause should only fire when bootstrapping the
13851 # libtool distribution, otherwise you forgot to ship ltmain.sh
13852 # with your package, and you will get complaints that there are
13853 # no rules to generate ltmain.sh.
13854 if test -f "$ltmain"; then
13855 # See if we are running on zsh, and set the options which allow our commands through
13856 # without removal of \ escapes.
13857 if test -n "${ZSH_VERSION+set}" ; then
13858 setopt NO_GLOB_SUBST
13860 # Now quote all the things that may contain metacharacters while being
13861 # careful not to overquote the AC_SUBSTed values. We take copies of the
13862 # variables and quote the copies for generation of the libtool script.
13863 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13865 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13866 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13867 deplibs_check_method reload_flag reload_cmds need_locks \
13868 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13869 lt_cv_sys_global_symbol_to_c_name_address \
13870 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13871 old_postinstall_cmds old_postuninstall_cmds \
13875 lt_prog_compiler_wl_CXX \
13876 lt_prog_compiler_pic_CXX \
13877 lt_prog_compiler_static_CXX \
13878 lt_prog_compiler_no_builtin_flag_CXX \
13879 export_dynamic_flag_spec_CXX \
13880 thread_safe_flag_spec_CXX \
13881 whole_archive_flag_spec_CXX \
13882 enable_shared_with_static_runtimes_CXX \
13883 old_archive_cmds_CXX \
13884 old_archive_from_new_cmds_CXX \
13885 predep_objects_CXX \
13886 postdep_objects_CXX \
13889 compiler_lib_search_path_CXX \
13890 compiler_lib_search_dirs_CXX \
13892 archive_expsym_cmds_CXX \
13893 postinstall_cmds_CXX \
13894 postuninstall_cmds_CXX \
13895 old_archive_from_expsyms_cmds_CXX \
13896 allow_undefined_flag_CXX \
13897 no_undefined_flag_CXX \
13898 export_symbols_cmds_CXX \
13899 hardcode_libdir_flag_spec_CXX \
13900 hardcode_libdir_flag_spec_ld_CXX \
13901 hardcode_libdir_separator_CXX \
13902 hardcode_automatic_CXX \
13904 module_expsym_cmds_CXX \
13905 lt_cv_prog_compiler_c_o_CXX \
13906 fix_srcfile_path_CXX \
13907 exclude_expsyms_CXX \
13908 include_expsyms_CXX; do
13911 old_archive_cmds_CXX | \
13912 old_archive_from_new_cmds_CXX | \
13913 archive_cmds_CXX | \
13914 archive_expsym_cmds_CXX | \
13915 module_cmds_CXX | \
13916 module_expsym_cmds_CXX | \
13917 old_archive_from_expsyms_cmds_CXX | \
13918 export_symbols_cmds_CXX | \
13919 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13920 postinstall_cmds | postuninstall_cmds | \
13921 old_postinstall_cmds | old_postuninstall_cmds | \
13922 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13923 # Double-quote double-evaled strings.
13924 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13927 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13933 *'\$0 --fallback-echo"')
13934 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13940 cat <<__EOF__ >> "$cfgfile"
13941 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13943 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13945 # Shell to use when invoking shell scripts.
13948 # Whether or not to build shared libraries.
13949 build_libtool_libs=$enable_shared
13951 # Whether or not to build static libraries.
13952 build_old_libs=$enable_static
13954 # Whether or not to add -lc for building shared libraries.
13955 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13957 # Whether or not to disallow shared libs when runtime libs are static
13958 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13960 # Whether or not to optimize for fast installation.
13961 fast_install=$enable_fast_install
13964 host_alias=$host_alias
13968 # The build system.
13969 build_alias=$build_alias
13973 # An echo program that does not interpret backslashes.
13978 AR_FLAGS=$lt_AR_FLAGS
13983 # LTCC compiler flags.
13984 LTCFLAGS=$lt_LTCFLAGS
13986 # A language-specific compiler.
13987 CC=$lt_compiler_CXX
13989 # Is the compiler the GNU C compiler?
13995 # The linker used to build libraries.
13998 # Whether we need hard or soft links.
14001 # A BSD-compatible nm program.
14004 # A symbol stripping program
14007 # Used to examine libraries when file_magic_cmd begins "file"
14008 MAGIC_CMD=$MAGIC_CMD
14010 # Used on cygwin: DLL creation program.
14013 # Used on cygwin: object dumper.
14016 # Used on cygwin: assembler.
14019 # The name of the directory that contains temporary libtool files.
14022 # How to create reloadable object files.
14023 reload_flag=$lt_reload_flag
14024 reload_cmds=$lt_reload_cmds
14026 # How to pass a linker flag through the compiler.
14027 wl=$lt_lt_prog_compiler_wl_CXX
14029 # Object file suffix (normally "o").
14030 objext="$ac_objext"
14032 # Old archive suffix (normally "a").
14035 # Shared library suffix (normally ".so").
14036 shrext_cmds='$shrext_cmds'
14038 # Executable file suffix (normally "").
14041 # Additional compiler flags for building library objects.
14042 pic_flag=$lt_lt_prog_compiler_pic_CXX
14045 # What is the maximum length of a command?
14046 max_cmd_len=$lt_cv_sys_max_cmd_len
14048 # Does compiler simultaneously support -c and -o options?
14049 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14051 # Must we lock files when doing compilation?
14052 need_locks=$lt_need_locks
14054 # Do we need the lib prefix for modules?
14055 need_lib_prefix=$need_lib_prefix
14057 # Do we need a version for libraries?
14058 need_version=$need_version
14060 # Whether dlopen is supported.
14061 dlopen_support=$enable_dlopen
14063 # Whether dlopen of programs is supported.
14064 dlopen_self=$enable_dlopen_self
14066 # Whether dlopen of statically linked programs is supported.
14067 dlopen_self_static=$enable_dlopen_self_static
14069 # Compiler flag to prevent dynamic linking.
14070 link_static_flag=$lt_lt_prog_compiler_static_CXX
14072 # Compiler flag to turn off builtin functions.
14073 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14075 # Compiler flag to allow reflexive dlopens.
14076 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14078 # Compiler flag to generate shared objects directly from archives.
14079 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14081 # Compiler flag to generate thread-safe objects.
14082 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14084 # Library versioning type.
14085 version_type=$version_type
14087 # Format of library name prefix.
14088 libname_spec=$lt_libname_spec
14090 # List of archive names. First name is the real one, the rest are links.
14091 # The last name is the one that the linker finds with -lNAME.
14092 library_names_spec=$lt_library_names_spec
14094 # The coded name of the library, if different from the real name.
14095 soname_spec=$lt_soname_spec
14097 # Commands used to build and install an old-style archive.
14099 old_archive_cmds=$lt_old_archive_cmds_CXX
14100 old_postinstall_cmds=$lt_old_postinstall_cmds
14101 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14103 # Create an old-style archive from a shared archive.
14104 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14106 # Create a temporary old-style archive to link instead of a shared archive.
14107 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14109 # Commands used to build and install a shared archive.
14110 archive_cmds=$lt_archive_cmds_CXX
14111 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14112 postinstall_cmds=$lt_postinstall_cmds
14113 postuninstall_cmds=$lt_postuninstall_cmds
14115 # Commands used to build a loadable module (assumed same as above if empty)
14116 module_cmds=$lt_module_cmds_CXX
14117 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14119 # Commands to strip libraries.
14120 old_striplib=$lt_old_striplib
14121 striplib=$lt_striplib
14123 # Dependencies to place before the objects being linked to create a
14125 predep_objects=$lt_predep_objects_CXX
14127 # Dependencies to place after the objects being linked to create a
14129 postdep_objects=$lt_postdep_objects_CXX
14131 # Dependencies to place before the objects being linked to create a
14133 predeps=$lt_predeps_CXX
14135 # Dependencies to place after the objects being linked to create a
14137 postdeps=$lt_postdeps_CXX
14139 # The directories searched by this compiler when creating a shared
14141 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14143 # The library search path used internally by the compiler when linking
14144 # a shared library.
14145 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14147 # Method to check whether dependent libraries are shared objects.
14148 deplibs_check_method=$lt_deplibs_check_method
14150 # Command to use when deplibs_check_method == file_magic.
14151 file_magic_cmd=$lt_file_magic_cmd
14153 # Flag that allows shared libraries with undefined symbols to be built.
14154 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14156 # Flag that forces no undefined symbols.
14157 no_undefined_flag=$lt_no_undefined_flag_CXX
14159 # Commands used to finish a libtool library installation in a directory.
14160 finish_cmds=$lt_finish_cmds
14162 # Same as above, but a single script fragment to be evaled but not shown.
14163 finish_eval=$lt_finish_eval
14165 # Take the output of nm and produce a listing of raw symbols and C names.
14166 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14168 # Transform the output of nm in a proper C declaration
14169 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14171 # Transform the output of nm in a C name address pair
14172 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14174 # This is the shared library runtime path variable.
14175 runpath_var=$runpath_var
14177 # This is the shared library path variable.
14178 shlibpath_var=$shlibpath_var
14180 # Is shlibpath searched before the hard-coded library search path?
14181 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14183 # How to hardcode a shared library path into an executable.
14184 hardcode_action=$hardcode_action_CXX
14186 # Whether we should hardcode library paths into libraries.
14187 hardcode_into_libs=$hardcode_into_libs
14189 # Flag to hardcode \$libdir into a binary during linking.
14190 # This must work even if \$libdir does not exist.
14191 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14193 # If ld is used when linking, flag to hardcode \$libdir into
14194 # a binary during linking. This must work even if \$libdir does
14196 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14198 # Whether we need a single -rpath flag with a separated argument.
14199 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14201 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14202 # resulting binary.
14203 hardcode_direct=$hardcode_direct_CXX
14205 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14206 # resulting binary.
14207 hardcode_minus_L=$hardcode_minus_L_CXX
14209 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14210 # the resulting binary.
14211 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14213 # Set to yes if building a shared library automatically hardcodes DIR into the library
14214 # and all subsequent libraries and executables linked against it.
14215 hardcode_automatic=$hardcode_automatic_CXX
14217 # Variables whose values should be saved in libtool wrapper scripts and
14218 # restored at relink time.
14219 variables_saved_for_relink="$variables_saved_for_relink"
14221 # Whether libtool must link a program against all its dependency libraries.
14222 link_all_deplibs=$link_all_deplibs_CXX
14224 # Compile-time system search path for libraries
14225 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14227 # Run-time system search path for libraries
14228 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14230 # Fix the shell variable \$srcfile for the compiler.
14231 fix_srcfile_path=$lt_fix_srcfile_path
14233 # Set to yes if exported symbols are required.
14234 always_export_symbols=$always_export_symbols_CXX
14236 # The commands to list exported symbols.
14237 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14239 # The commands to extract the exported symbol list from a shared archive.
14240 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14242 # Symbols that should not be listed in the preloaded symbols.
14243 exclude_expsyms=$lt_exclude_expsyms_CXX
14245 # Symbols that must always be exported.
14246 include_expsyms=$lt_include_expsyms_CXX
14248 # ### END LIBTOOL TAG CONFIG: $tagname
14254 # If there is no Makefile yet, we rely on a make rule to execute
14255 # `config.status --recheck' to rerun these tests and create the
14256 # libtool script then.
14257 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14258 if test -f "$ltmain_in"; then
14259 test -f Makefile && make "$ltmain"
14265 ac_cpp='$CPP $CPPFLAGS'
14266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14274 with_gnu_ldcxx=$with_gnu_ld
14275 with_gnu_ld=$lt_save_with_gnu_ld
14276 lt_cv_path_LDCXX=$lt_cv_path_LD
14277 lt_cv_path_LD=$lt_save_path_LD
14278 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14279 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14287 if test -n "$F77" && test "X$F77" != "Xno"; then
14290 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14291 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14292 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14295 archive_cmds_need_lc_F77=no
14296 allow_undefined_flag_F77=
14297 always_export_symbols_F77=no
14298 archive_expsym_cmds_F77=
14299 export_dynamic_flag_spec_F77=
14300 hardcode_direct_F77=no
14301 hardcode_libdir_flag_spec_F77=
14302 hardcode_libdir_flag_spec_ld_F77=
14303 hardcode_libdir_separator_F77=
14304 hardcode_minus_L_F77=no
14305 hardcode_automatic_F77=no
14307 module_expsym_cmds_F77=
14308 link_all_deplibs_F77=unknown
14309 old_archive_cmds_F77=$old_archive_cmds
14310 no_undefined_flag_F77=
14311 whole_archive_flag_spec_F77=
14312 enable_shared_with_static_runtimes_F77=no
14314 # Source file extension for f77 test sources.
14317 # Object file extension for compiled f77 test sources.
14321 # Code to be used in simple compile tests
14322 lt_simple_compile_test_code="\
14328 # Code to be used in simple link tests
14329 lt_simple_link_test_code="\
14334 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14336 # If no C compiler was specified, use CC.
14339 # If no C compiler flags were specified, use CFLAGS.
14340 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14342 # Allow CC to be a program name with arguments.
14346 # save warnings/boilerplate of simple test code
14347 ac_outfile=conftest.$ac_objext
14348 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14349 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14350 _lt_compiler_boilerplate=`cat conftest.err`
14353 ac_outfile=conftest.$ac_objext
14354 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14355 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14356 _lt_linker_boilerplate=`cat conftest.err`
14360 # Allow CC to be a program name with arguments.
14365 for cc_temp in $compiler""; do
14367 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14368 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14373 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14376 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14377 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14378 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14379 echo "${ECHO_T}$can_build_shared" >&6; }
14381 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14382 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14383 test "$can_build_shared" = "no" && enable_shared=no
14385 # On AIX, shared libraries and static libraries use the same namespace, and
14386 # are all built from PIC.
14389 test "$enable_shared" = yes && enable_static=no
14390 if test -n "$RANLIB"; then
14391 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14392 postinstall_cmds='$RANLIB $lib'
14396 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14397 test "$enable_shared" = yes && enable_static=no
14401 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14402 echo "${ECHO_T}$enable_shared" >&6; }
14404 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14405 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14406 # Make sure either enable_shared or enable_static is yes.
14407 test "$enable_shared" = yes || enable_static=yes
14408 { echo "$as_me:$LINENO: result: $enable_static" >&5
14409 echo "${ECHO_T}$enable_static" >&6; }
14414 lt_prog_compiler_wl_F77=
14415 lt_prog_compiler_pic_F77=
14416 lt_prog_compiler_static_F77=
14418 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14419 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14421 if test "$GCC" = yes; then
14422 lt_prog_compiler_wl_F77='-Wl,'
14423 lt_prog_compiler_static_F77='-static'
14427 # All AIX code is PIC.
14428 if test "$host_cpu" = ia64; then
14429 # AIX 5 now supports IA64 processor
14430 lt_prog_compiler_static_F77='-Bstatic'
14435 # FIXME: we need at least 68020 code to build shared libraries, but
14436 # adding the `-m68020' flag to GCC prevents building anything better,
14438 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14441 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14442 # PIC is the default for these OSes.
14445 mingw* | cygwin* | pw32* | os2*)
14446 # This hack is so that the source file can tell whether it is being
14447 # built for inclusion in a dll (and should export symbols for example).
14448 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14449 # (--disable-auto-import) libraries
14450 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14453 darwin* | rhapsody*)
14454 # PIC is the default on this platform
14455 # Common symbols not allowed in MH_DYLIB files
14456 lt_prog_compiler_pic_F77='-fno-common'
14460 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14461 # Instead, we relocate shared libraries at runtime.
14465 # Just because we use GCC doesn't mean we suddenly get shared libraries
14466 # on systems that don't support them.
14467 lt_prog_compiler_can_build_shared_F77=no
14472 if test -d /usr/nec; then
14473 lt_prog_compiler_pic_F77=-Kconform_pic
14478 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14479 # not for PA HP-UX.
14485 lt_prog_compiler_pic_F77='-fPIC'
14491 lt_prog_compiler_pic_F77='-fPIC'
14495 # PORTME Check for flag to pass linker flags through the system compiler.
14498 lt_prog_compiler_wl_F77='-Wl,'
14499 if test "$host_cpu" = ia64; then
14500 # AIX 5 now supports IA64 processor
14501 lt_prog_compiler_static_F77='-Bstatic'
14503 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14507 # PIC is the default on this platform
14508 # Common symbols not allowed in MH_DYLIB files
14509 case $cc_basename in
14511 lt_prog_compiler_pic_F77='-qnocommon'
14512 lt_prog_compiler_wl_F77='-Wl,'
14517 mingw* | cygwin* | pw32* | os2*)
14518 # This hack is so that the source file can tell whether it is being
14519 # built for inclusion in a dll (and should export symbols for example).
14520 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14523 hpux9* | hpux10* | hpux11*)
14524 lt_prog_compiler_wl_F77='-Wl,'
14525 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14526 # not for PA HP-UX.
14532 lt_prog_compiler_pic_F77='+Z'
14535 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14536 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14539 irix5* | irix6* | nonstopux*)
14540 lt_prog_compiler_wl_F77='-Wl,'
14541 # PIC (with -KPIC) is the default.
14542 lt_prog_compiler_static_F77='-non_shared'
14546 lt_prog_compiler_pic_F77='-KPIC'
14547 lt_prog_compiler_static_F77='-Bstatic'
14550 linux* | k*bsd*-gnu)
14551 case $cc_basename in
14553 lt_prog_compiler_wl_F77='-Wl,'
14554 lt_prog_compiler_pic_F77='-KPIC'
14555 lt_prog_compiler_static_F77='-static'
14557 pgcc* | pgf77* | pgf90* | pgf95*)
14558 # Portland Group compilers (*not* the Pentium gcc compiler,
14559 # which looks to be a dead project)
14560 lt_prog_compiler_wl_F77='-Wl,'
14561 lt_prog_compiler_pic_F77='-fpic'
14562 lt_prog_compiler_static_F77='-Bstatic'
14565 lt_prog_compiler_wl_F77='-Wl,'
14566 # All Alpha code is PIC.
14567 lt_prog_compiler_static_F77='-non_shared'
14570 case `$CC -V 2>&1 | sed 5q` in
14573 lt_prog_compiler_pic_F77='-KPIC'
14574 lt_prog_compiler_static_F77='-Bstatic'
14575 lt_prog_compiler_wl_F77='-Wl,'
14578 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14579 lt_prog_compiler_pic_F77='-KPIC'
14580 lt_prog_compiler_static_F77='-Bstatic'
14581 lt_prog_compiler_wl_F77=''
14588 osf3* | osf4* | osf5*)
14589 lt_prog_compiler_wl_F77='-Wl,'
14590 # All OSF/1 code is PIC.
14591 lt_prog_compiler_static_F77='-non_shared'
14595 lt_prog_compiler_static_F77='-non_shared'
14599 lt_prog_compiler_pic_F77='-KPIC'
14600 lt_prog_compiler_static_F77='-Bstatic'
14601 case $cc_basename in
14602 f77* | f90* | f95*)
14603 lt_prog_compiler_wl_F77='-Qoption ld ';;
14605 lt_prog_compiler_wl_F77='-Wl,';;
14610 lt_prog_compiler_wl_F77='-Qoption ld '
14611 lt_prog_compiler_pic_F77='-PIC'
14612 lt_prog_compiler_static_F77='-Bstatic'
14615 sysv4 | sysv4.2uw2* | sysv4.3*)
14616 lt_prog_compiler_wl_F77='-Wl,'
14617 lt_prog_compiler_pic_F77='-KPIC'
14618 lt_prog_compiler_static_F77='-Bstatic'
14622 if test -d /usr/nec ;then
14623 lt_prog_compiler_pic_F77='-Kconform_pic'
14624 lt_prog_compiler_static_F77='-Bstatic'
14628 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14629 lt_prog_compiler_wl_F77='-Wl,'
14630 lt_prog_compiler_pic_F77='-KPIC'
14631 lt_prog_compiler_static_F77='-Bstatic'
14635 lt_prog_compiler_wl_F77='-Wl,'
14636 lt_prog_compiler_can_build_shared_F77=no
14640 lt_prog_compiler_pic_F77='-pic'
14641 lt_prog_compiler_static_F77='-Bstatic'
14645 lt_prog_compiler_can_build_shared_F77=no
14650 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14651 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14654 # Check to make sure the PIC flag actually works.
14656 if test -n "$lt_prog_compiler_pic_F77"; then
14658 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14659 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14660 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14661 echo $ECHO_N "(cached) $ECHO_C" >&6
14663 lt_cv_prog_compiler_pic_works_F77=no
14664 ac_outfile=conftest.$ac_objext
14665 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14666 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14667 # Insert the option either (1) after the last *FLAGS variable, or
14668 # (2) before a word containing "conftest.", or (3) at the end.
14669 # Note that $ac_compile itself does not contain backslashes and begins
14670 # with a dollar sign (not a hyphen), so the echo should work correctly.
14671 # The option is referenced via a variable to avoid confusing sed.
14672 lt_compile=`echo "$ac_compile" | $SED \
14673 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14675 -e 's:$: $lt_compiler_flag:'`
14676 (eval echo "\"\$as_me:14676: $lt_compile\"" >&5)
14677 (eval "$lt_compile" 2>conftest.err)
14679 cat conftest.err >&5
14680 echo "$as_me:14680: \$? = $ac_status" >&5
14681 if (exit $ac_status) && test -s "$ac_outfile"; then
14682 # The compiler can only warn and ignore the option if not recognized
14683 # So say no if there are warnings other than the usual output.
14684 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14685 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14686 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14687 lt_cv_prog_compiler_pic_works_F77=yes
14693 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14694 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14696 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14697 case $lt_prog_compiler_pic_F77 in
14699 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14702 lt_prog_compiler_pic_F77=
14703 lt_prog_compiler_can_build_shared_F77=no
14708 # For platforms which do not support PIC, -DPIC is meaningless:
14710 lt_prog_compiler_pic_F77=
14713 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14718 # Check to make sure the static flag actually works.
14720 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14721 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14722 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14723 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14724 echo $ECHO_N "(cached) $ECHO_C" >&6
14726 lt_cv_prog_compiler_static_works_F77=no
14727 save_LDFLAGS="$LDFLAGS"
14728 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14729 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14730 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14731 # The linker can only warn and ignore the option if not recognized
14732 # So say no if there are warnings
14733 if test -s conftest.err; then
14734 # Append any errors to the config.log.
14735 cat conftest.err 1>&5
14736 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14737 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14738 if diff conftest.exp conftest.er2 >/dev/null; then
14739 lt_cv_prog_compiler_static_works_F77=yes
14742 lt_cv_prog_compiler_static_works_F77=yes
14746 LDFLAGS="$save_LDFLAGS"
14749 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14750 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14752 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14755 lt_prog_compiler_static_F77=
14759 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14760 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14761 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14762 echo $ECHO_N "(cached) $ECHO_C" >&6
14764 lt_cv_prog_compiler_c_o_F77=no
14765 $rm -r conftest 2>/dev/null
14769 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14771 lt_compiler_flag="-o out/conftest2.$ac_objext"
14772 # Insert the option either (1) after the last *FLAGS variable, or
14773 # (2) before a word containing "conftest.", or (3) at the end.
14774 # Note that $ac_compile itself does not contain backslashes and begins
14775 # with a dollar sign (not a hyphen), so the echo should work correctly.
14776 lt_compile=`echo "$ac_compile" | $SED \
14777 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14779 -e 's:$: $lt_compiler_flag:'`
14780 (eval echo "\"\$as_me:14780: $lt_compile\"" >&5)
14781 (eval "$lt_compile" 2>out/conftest.err)
14783 cat out/conftest.err >&5
14784 echo "$as_me:14784: \$? = $ac_status" >&5
14785 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14787 # The compiler can only warn and ignore the option if not recognized
14788 # So say no if there are warnings
14789 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14790 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14791 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14792 lt_cv_prog_compiler_c_o_F77=yes
14797 # SGI C++ compiler will create directory out/ii_files/ for
14798 # template instantiation
14799 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14800 $rm out/* && rmdir out
14806 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14807 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14810 hard_links="nottested"
14811 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14812 # do not overwrite the value of need_locks provided by the user
14813 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14814 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14817 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14819 ln conftest.a conftest.b 2>&5 || hard_links=no
14820 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14821 { echo "$as_me:$LINENO: result: $hard_links" >&5
14822 echo "${ECHO_T}$hard_links" >&6; }
14823 if test "$hard_links" = no; then
14824 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14825 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14832 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14833 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14836 allow_undefined_flag_F77=
14837 enable_shared_with_static_runtimes_F77=no
14839 archive_expsym_cmds_F77=
14840 old_archive_From_new_cmds_F77=
14841 old_archive_from_expsyms_cmds_F77=
14842 export_dynamic_flag_spec_F77=
14843 whole_archive_flag_spec_F77=
14844 thread_safe_flag_spec_F77=
14845 hardcode_libdir_flag_spec_F77=
14846 hardcode_libdir_flag_spec_ld_F77=
14847 hardcode_libdir_separator_F77=
14848 hardcode_direct_F77=no
14849 hardcode_minus_L_F77=no
14850 hardcode_shlibpath_var_F77=unsupported
14851 link_all_deplibs_F77=unknown
14852 hardcode_automatic_F77=no
14854 module_expsym_cmds_F77=
14855 always_export_symbols_F77=no
14856 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14857 # include_expsyms should be a list of space-separated symbols to be *always*
14858 # included in the symbol list
14859 include_expsyms_F77=
14860 # exclude_expsyms can be an extended regexp of symbols to exclude
14861 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14862 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14863 # as well as any symbol that contains `d'.
14864 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14865 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14866 # platforms (ab)use it in PIC code, but their linkers get confused if
14867 # the symbol is explicitly referenced. Since portable code cannot
14868 # rely on this symbol name, it's probably fine to never include it in
14869 # preloaded symbol tables.
14870 # Exclude shared library initialization/finalization symbols.
14871 extract_expsyms_cmds=
14872 # Just being paranoid about ensuring that cc_basename is set.
14873 for cc_temp in $compiler""; do
14875 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14876 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14881 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14884 cygwin* | mingw* | pw32*)
14885 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14886 # When not using gcc, we currently assume that we are using
14887 # Microsoft Visual C++.
14888 if test "$GCC" != yes; then
14893 # we just hope/assume this is gcc and not c89 (= MSVC++)
14902 if test "$with_gnu_ld" = yes; then
14903 # If archive_cmds runs LD, not CC, wlarc should be empty
14906 # Set some defaults for GNU ld with shared library support. These
14907 # are reset later if shared libraries are not supported. Putting them
14908 # here allows them to be overridden if necessary.
14909 runpath_var=LD_RUN_PATH
14910 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14911 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14912 # ancient GNU ld didn't support --whole-archive et. al.
14913 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14914 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14916 whole_archive_flag_spec_F77=
14918 supports_anon_versioning=no
14919 case `$LD -v 2>/dev/null` in
14920 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14921 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14922 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14923 *\ 2.11.*) ;; # other 2.11 versions
14924 *) supports_anon_versioning=yes ;;
14927 # See if GNU ld supports shared libraries.
14930 # On AIX/PPC, the GNU linker is very broken
14931 if test "$host_cpu" != ia64; then
14935 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14936 *** to be unable to reliably create shared libraries on AIX.
14937 *** Therefore, libtool is disabling shared libraries support. If you
14938 *** really care for shared libraries, you may want to modify your PATH
14939 *** so that a non-GNU linker is found, and then restart.
14946 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)'
14947 hardcode_libdir_flag_spec_F77='-L$libdir'
14948 hardcode_minus_L_F77=yes
14950 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14951 # that the semantics of dynamic libraries on AmigaOS, at least up
14952 # to version 4, is to share data among multiple programs linked
14953 # with the same dynamic library. Since this doesn't match the
14954 # behavior of shared libraries on other platforms, we can't use
14960 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14961 allow_undefined_flag_F77=unsupported
14962 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14963 # support --undefined. This deserves some investigation. FIXME
14964 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14970 cygwin* | mingw* | pw32*)
14971 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14972 # as there is no search path for DLLs.
14973 hardcode_libdir_flag_spec_F77='-L$libdir'
14974 allow_undefined_flag_F77=unsupported
14975 always_export_symbols_F77=no
14976 enable_shared_with_static_runtimes_F77=yes
14977 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14979 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14980 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14981 # If the export-symbols file already is a .def file (1st line
14982 # is EXPORTS), use it as is; otherwise, prepend...
14983 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14984 cp $export_symbols $output_objdir/$soname.def;
14986 echo EXPORTS > $output_objdir/$soname.def;
14987 cat $export_symbols >> $output_objdir/$soname.def;
14989 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14996 hardcode_direct_F77=no
14997 hardcode_shlibpath_var_F77=no
14998 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14999 export_dynamic_flag_spec_F77='${wl}-E'
15000 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15001 # Instead, shared libraries are loaded at an image base (0x10000000 by
15002 # default) and relocated if they conflict, which is a slow very memory
15003 # consuming and fragmenting process. To avoid this, we pick a random,
15004 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15005 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15006 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'
15007 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'
15010 gnu* | linux* | k*bsd*-gnu)
15011 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15013 case $cc_basename,$host_cpu in
15014 pgcc*) # Portland Group C compiler
15015 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'
15016 tmp_addflag=' $pic_flag'
15018 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15019 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'
15020 tmp_addflag=' $pic_flag -Mnomain' ;;
15021 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15022 tmp_addflag=' -i_dynamic' ;;
15023 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15024 tmp_addflag=' -i_dynamic -nofor_main' ;;
15025 ifc* | ifort*) # Intel Fortran compiler
15026 tmp_addflag=' -nofor_main' ;;
15028 case `$CC -V 2>&1 | sed 5q` in
15029 *Sun\ C*) # Sun C 5.9
15030 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15031 tmp_sharedflag='-G' ;;
15032 *Sun\ F*) # Sun Fortran 8.3
15033 tmp_sharedflag='-G' ;;
15035 tmp_sharedflag='-shared' ;;
15037 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15039 if test $supports_anon_versioning = yes; then
15040 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15041 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15042 $echo "local: *; };" >> $output_objdir/$libname.ver~
15043 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15045 link_all_deplibs_F77=no
15051 netbsd* | netbsdelf*-gnu)
15052 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15053 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15056 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15057 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15062 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15066 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15067 *** create shared libraries on Solaris systems. Therefore, libtool
15068 *** is disabling shared libraries support. We urge you to upgrade GNU
15069 *** binutils to release 2.9.1 or newer. Another option is to modify
15070 *** your PATH or compiler configuration so that the native linker is
15071 *** used, and then restart.
15074 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15075 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15076 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15082 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15083 case `$LD -v 2>&1` in
15084 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15088 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15089 *** reliably create shared libraries on SCO systems. Therefore, libtool
15090 *** is disabling shared libraries support. We urge you to upgrade GNU
15091 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15092 *** your PATH or compiler configuration so that the native linker is
15093 *** used, and then restart.
15098 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15099 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15100 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15101 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15110 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15112 hardcode_direct_F77=yes
15113 hardcode_shlibpath_var_F77=no
15117 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15118 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15119 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15126 if test "$ld_shlibs_F77" = no; then
15128 hardcode_libdir_flag_spec_F77=
15129 export_dynamic_flag_spec_F77=
15130 whole_archive_flag_spec_F77=
15133 # PORTME fill in a description of your system's linker (not GNU ld)
15136 allow_undefined_flag_F77=unsupported
15137 always_export_symbols_F77=yes
15138 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'
15139 # Note: this linker hardcodes the directories in LIBPATH if there
15140 # are no directories specified by -L.
15141 hardcode_minus_L_F77=yes
15142 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15143 # Neither direct hardcoding nor static linking is supported with a
15145 hardcode_direct_F77=unsupported
15150 if test "$host_cpu" = ia64; then
15151 # On IA64, the linker does run time linking by default, so we don't
15152 # have to do anything special.
15153 aix_use_runtimelinking=no
15154 exp_sym_flag='-Bexport'
15157 # If we're using GNU nm, then we don't want the "-C" option.
15158 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15159 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15160 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'
15162 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'
15164 aix_use_runtimelinking=no
15166 # Test if we are trying to use run time linking or normal
15167 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15168 # need to do runtime linking.
15169 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15170 for ld_flag in $LDFLAGS; do
15171 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15172 aix_use_runtimelinking=yes
15179 exp_sym_flag='-bexport'
15180 no_entry_flag='-bnoentry'
15183 # When large executables or shared objects are built, AIX ld can
15184 # have problems creating the table of contents. If linking a library
15185 # or program results in "error TOC overflow" add -mminimal-toc to
15186 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15187 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15189 archive_cmds_F77=''
15190 hardcode_direct_F77=yes
15191 hardcode_libdir_separator_F77=':'
15192 link_all_deplibs_F77=yes
15194 if test "$GCC" = yes; then
15195 case $host_os in aix4.[012]|aix4.[012].*)
15196 # We only want to do this on AIX 4.2 and lower, the check
15197 # below for broken collect2 doesn't work under 4.3+
15198 collect2name=`${CC} -print-prog-name=collect2`
15199 if test -f "$collect2name" && \
15200 strings "$collect2name" | grep resolve_lib_name >/dev/null
15202 # We have reworked collect2
15205 # We have old collect2
15206 hardcode_direct_F77=unsupported
15207 # It fails to find uninstalled libraries when the uninstalled
15208 # path is not listed in the libpath. Setting hardcode_minus_L
15209 # to unsupported forces relinking
15210 hardcode_minus_L_F77=yes
15211 hardcode_libdir_flag_spec_F77='-L$libdir'
15212 hardcode_libdir_separator_F77=
15216 shared_flag='-shared'
15217 if test "$aix_use_runtimelinking" = yes; then
15218 shared_flag="$shared_flag "'${wl}-G'
15222 if test "$host_cpu" = ia64; then
15223 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15224 # chokes on -Wl,-G. The following line is correct:
15227 if test "$aix_use_runtimelinking" = yes; then
15228 shared_flag='${wl}-G'
15230 shared_flag='${wl}-bM:SRE'
15235 # It seems that -bexpall does not export symbols beginning with
15236 # underscore (_), so it is better to generate a list of symbols to export.
15237 always_export_symbols_F77=yes
15238 if test "$aix_use_runtimelinking" = yes; then
15239 # Warning - without using the other runtime loading flags (-brtl),
15240 # -berok will link without error, but may produce a broken library.
15241 allow_undefined_flag_F77='-berok'
15242 # Determine the default libpath from the value encoded in an empty executable.
15243 cat >conftest.$ac_ext <<_ACEOF
15248 rm -f conftest.$ac_objext conftest$ac_exeext
15249 if { (ac_try="$ac_link"
15250 case "(($ac_try" in
15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252 *) ac_try_echo=$ac_try;;
15254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255 (eval "$ac_link") 2>conftest.er1
15257 grep -v '^ *+' conftest.er1 >conftest.err
15259 cat conftest.err >&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); } && {
15262 test -z "$ac_f77_werror_flag" ||
15263 test ! -s conftest.err
15264 } && test -s conftest$ac_exeext &&
15265 $as_test_x conftest$ac_exeext; then
15267 lt_aix_libpath_sed='
15268 /Import File Strings/,/^$/ {
15274 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15275 # Check for a 64-bit object if we didn't find anything.
15276 if test -z "$aix_libpath"; then
15277 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15280 echo "$as_me: failed program was:" >&5
15281 sed 's/^/| /' conftest.$ac_ext >&5
15286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15287 conftest$ac_exeext conftest.$ac_ext
15288 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15290 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15291 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"
15293 if test "$host_cpu" = ia64; then
15294 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15295 allow_undefined_flag_F77="-z nodefs"
15296 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"
15298 # Determine the default libpath from the value encoded in an empty executable.
15299 cat >conftest.$ac_ext <<_ACEOF
15304 rm -f conftest.$ac_objext conftest$ac_exeext
15305 if { (ac_try="$ac_link"
15306 case "(($ac_try" in
15307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308 *) ac_try_echo=$ac_try;;
15310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15311 (eval "$ac_link") 2>conftest.er1
15313 grep -v '^ *+' conftest.er1 >conftest.err
15315 cat conftest.err >&5
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); } && {
15318 test -z "$ac_f77_werror_flag" ||
15319 test ! -s conftest.err
15320 } && test -s conftest$ac_exeext &&
15321 $as_test_x conftest$ac_exeext; then
15323 lt_aix_libpath_sed='
15324 /Import File Strings/,/^$/ {
15330 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15331 # Check for a 64-bit object if we didn't find anything.
15332 if test -z "$aix_libpath"; then
15333 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15336 echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15343 conftest$ac_exeext conftest.$ac_ext
15344 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15346 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15347 # Warning - without using the other run time loading flags,
15348 # -berok will link without error, but may produce a broken library.
15349 no_undefined_flag_F77=' ${wl}-bernotok'
15350 allow_undefined_flag_F77=' ${wl}-berok'
15351 # Exported symbols can be pulled into shared objects from archives
15352 whole_archive_flag_spec_F77='$convenience'
15353 archive_cmds_need_lc_F77=yes
15354 # This is similar to how AIX traditionally builds its shared libraries.
15355 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'
15361 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)'
15362 hardcode_libdir_flag_spec_F77='-L$libdir'
15363 hardcode_minus_L_F77=yes
15364 # see comment about different semantics on the GNU ld section
15369 export_dynamic_flag_spec_F77=-rdynamic
15372 cygwin* | mingw* | pw32*)
15373 # When not using gcc, we currently assume that we are using
15374 # Microsoft Visual C++.
15375 # hardcode_libdir_flag_spec is actually meaningless, as there is
15376 # no search path for DLLs.
15377 hardcode_libdir_flag_spec_F77=' '
15378 allow_undefined_flag_F77=unsupported
15379 # Tell ltmain to make .lib files, not .a files.
15381 # Tell ltmain to make .dll files, not .so files.
15383 # FIXME: Setting linknames here is a bad hack.
15384 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15385 # The linker will automatically build a .lib file if we build a DLL.
15386 old_archive_From_new_cmds_F77='true'
15387 # FIXME: Should let the user specify the lib program.
15388 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15389 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15390 enable_shared_with_static_runtimes_F77=yes
15393 darwin* | rhapsody*)
15395 rhapsody* | darwin1.[012])
15396 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15399 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15400 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15402 case ${MACOSX_DEPLOYMENT_TARGET} in
15404 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15407 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15413 archive_cmds_need_lc_F77=no
15414 hardcode_direct_F77=no
15415 hardcode_automatic_F77=yes
15416 hardcode_shlibpath_var_F77=unsupported
15417 whole_archive_flag_spec_F77=''
15418 link_all_deplibs_F77=yes
15419 if test "$GCC" = yes ; then
15420 output_verbose_link_cmd='echo'
15421 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15422 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15423 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15424 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15426 case $cc_basename in
15428 output_verbose_link_cmd='echo'
15429 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15430 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15431 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15432 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15433 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}'
15443 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15444 hardcode_libdir_flag_spec_F77='-L$libdir'
15445 hardcode_shlibpath_var_F77=no
15452 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15453 # support. Future versions do this automatically, but an explicit c++rt0.o
15454 # does not break anything, and helps significantly (at the cost of a little
15457 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15458 hardcode_libdir_flag_spec_F77='-R$libdir'
15459 hardcode_direct_F77=yes
15460 hardcode_shlibpath_var_F77=no
15463 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15465 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15466 hardcode_direct_F77=yes
15467 hardcode_minus_L_F77=yes
15468 hardcode_shlibpath_var_F77=no
15471 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15472 freebsd* | dragonfly*)
15473 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15474 hardcode_libdir_flag_spec_F77='-R$libdir'
15475 hardcode_direct_F77=yes
15476 hardcode_shlibpath_var_F77=no
15480 if test "$GCC" = yes; then
15481 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'
15483 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'
15485 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15486 hardcode_libdir_separator_F77=:
15487 hardcode_direct_F77=yes
15489 # hardcode_minus_L: Not really in the search PATH,
15490 # but as the default location of the library.
15491 hardcode_minus_L_F77=yes
15492 export_dynamic_flag_spec_F77='${wl}-E'
15496 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15497 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15499 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15501 if test "$with_gnu_ld" = no; then
15502 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15503 hardcode_libdir_separator_F77=:
15505 hardcode_direct_F77=yes
15506 export_dynamic_flag_spec_F77='${wl}-E'
15508 # hardcode_minus_L: Not really in the search PATH,
15509 # but as the default location of the library.
15510 hardcode_minus_L_F77=yes
15515 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15518 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15521 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15524 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15530 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15533 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15536 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15540 if test "$with_gnu_ld" = no; then
15541 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15542 hardcode_libdir_separator_F77=:
15546 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15547 hardcode_direct_F77=no
15548 hardcode_shlibpath_var_F77=no
15551 hardcode_direct_F77=yes
15552 export_dynamic_flag_spec_F77='${wl}-E'
15554 # hardcode_minus_L: Not really in the search PATH,
15555 # but as the default location of the library.
15556 hardcode_minus_L_F77=yes
15562 irix5* | irix6* | nonstopux*)
15563 if test "$GCC" = yes; then
15564 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'
15566 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'
15567 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15569 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15570 hardcode_libdir_separator_F77=:
15571 link_all_deplibs_F77=yes
15574 netbsd* | netbsdelf*-gnu)
15575 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15576 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15578 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15580 hardcode_libdir_flag_spec_F77='-R$libdir'
15581 hardcode_direct_F77=yes
15582 hardcode_shlibpath_var_F77=no
15586 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15587 hardcode_direct_F77=yes
15588 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15589 hardcode_libdir_separator_F77=:
15590 hardcode_shlibpath_var_F77=no
15594 if test -f /usr/libexec/ld.so; then
15595 hardcode_direct_F77=yes
15596 hardcode_shlibpath_var_F77=no
15597 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15598 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15599 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15600 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15601 export_dynamic_flag_spec_F77='${wl}-E'
15604 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15605 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15606 hardcode_libdir_flag_spec_F77='-R$libdir'
15609 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15610 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15620 hardcode_libdir_flag_spec_F77='-L$libdir'
15621 hardcode_minus_L_F77=yes
15622 allow_undefined_flag_F77=unsupported
15623 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'
15624 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15628 if test "$GCC" = yes; then
15629 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15630 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'
15632 allow_undefined_flag_F77=' -expect_unresolved \*'
15633 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'
15635 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15636 hardcode_libdir_separator_F77=:
15639 osf4* | osf5*) # as osf3* with the addition of -msym flag
15640 if test "$GCC" = yes; then
15641 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15642 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'
15643 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15645 allow_undefined_flag_F77=' -expect_unresolved \*'
15646 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'
15647 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~
15648 $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'
15650 # Both c and cxx compiler support -rpath directly
15651 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15653 hardcode_libdir_separator_F77=:
15657 no_undefined_flag_F77=' -z text'
15658 if test "$GCC" = yes; then
15660 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15661 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15662 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15665 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15666 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15667 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15669 hardcode_libdir_flag_spec_F77='-R$libdir'
15670 hardcode_shlibpath_var_F77=no
15672 solaris2.[0-5] | solaris2.[0-5].*) ;;
15674 # The compiler driver will combine and reorder linker options,
15675 # but understands `-z linker_flag'. GCC discards it without `$wl',
15676 # but is careful enough not to reorder.
15677 # Supported since Solaris 2.6 (maybe 2.5.1?)
15678 if test "$GCC" = yes; then
15679 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15681 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15685 link_all_deplibs_F77=yes
15689 if test "x$host_vendor" = xsequent; then
15690 # Use $CC to link under sequent, because it throws in some extra .o
15691 # files that make .init and .fini sections work.
15692 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15694 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15696 hardcode_libdir_flag_spec_F77='-L$libdir'
15697 hardcode_direct_F77=yes
15698 hardcode_minus_L_F77=yes
15699 hardcode_shlibpath_var_F77=no
15703 case $host_vendor in
15705 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15706 hardcode_direct_F77=yes # is this really true???
15709 ## LD is ld it makes a PLAMLIB
15710 ## CC just makes a GrossModule.
15711 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15712 reload_cmds_F77='$CC -r -o $output$reload_objs'
15713 hardcode_direct_F77=no
15716 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15717 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15720 runpath_var='LD_RUN_PATH'
15721 hardcode_shlibpath_var_F77=no
15725 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15726 hardcode_shlibpath_var_F77=no
15727 export_dynamic_flag_spec_F77='-Bexport'
15731 if test -d /usr/nec; then
15732 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15733 hardcode_shlibpath_var_F77=no
15734 runpath_var=LD_RUN_PATH
15735 hardcode_runpath_var=yes
15740 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15741 no_undefined_flag_F77='${wl}-z,text'
15742 archive_cmds_need_lc_F77=no
15743 hardcode_shlibpath_var_F77=no
15744 runpath_var='LD_RUN_PATH'
15746 if test "$GCC" = yes; then
15747 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15748 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15750 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15751 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15755 sysv5* | sco3.2v5* | sco5v6*)
15756 # Note: We can NOT use -z defs as we might desire, because we do not
15757 # link with -lc, and that would cause any symbols used from libc to
15758 # always be unresolved, which means just about no library would
15759 # ever link correctly. If we're not using GNU ld we use -z text
15760 # though, which does catch some bad symbols but isn't as heavy-handed
15762 no_undefined_flag_F77='${wl}-z,text'
15763 allow_undefined_flag_F77='${wl}-z,nodefs'
15764 archive_cmds_need_lc_F77=no
15765 hardcode_shlibpath_var_F77=no
15766 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15767 hardcode_libdir_separator_F77=':'
15768 link_all_deplibs_F77=yes
15769 export_dynamic_flag_spec_F77='${wl}-Bexport'
15770 runpath_var='LD_RUN_PATH'
15772 if test "$GCC" = yes; then
15773 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15774 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15776 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15777 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15782 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15783 hardcode_libdir_flag_spec_F77='-L$libdir'
15784 hardcode_shlibpath_var_F77=no
15793 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15794 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15795 test "$ld_shlibs_F77" = no && can_build_shared=no
15798 # Do we need to explicitly link libc?
15800 case "x$archive_cmds_need_lc_F77" in
15802 # Assume -lc should be added
15803 archive_cmds_need_lc_F77=yes
15805 if test "$enable_shared" = yes && test "$GCC" = yes; then
15806 case $archive_cmds_F77 in
15808 # FIXME: we may have to deal with multi-command sequences.
15811 # Test whether the compiler implicitly links with -lc since on some
15812 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15813 # to ld, don't add -lc before -lgcc.
15814 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15815 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15820 (eval $ac_compile) 2>&5
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); } 2>conftest.err; then
15826 libobjs=conftest.$ac_objext
15828 wl=$lt_prog_compiler_wl_F77
15829 pic_flag=$lt_prog_compiler_pic_F77
15835 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15836 allow_undefined_flag_F77=
15837 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15838 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); }
15843 archive_cmds_need_lc_F77=no
15845 archive_cmds_need_lc_F77=yes
15847 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15849 cat conftest.err 1>&5
15852 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15853 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15860 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15861 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15862 library_names_spec=
15863 libname_spec='lib$name'
15867 postuninstall_cmds=
15871 shlibpath_overrides_runpath=unknown
15873 dynamic_linker="$host_os ld.so"
15874 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15876 need_lib_prefix=unknown
15877 hardcode_into_libs=no
15879 # when you set need_version to no, make sure it does not cause -set_version
15880 # flags to be left without arguments
15881 need_version=unknown
15886 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15887 shlibpath_var=LIBPATH
15889 # AIX 3 has no versioning support, so we append a major version to the name.
15890 soname_spec='${libname}${release}${shared_ext}$major'
15897 hardcode_into_libs=yes
15898 if test "$host_cpu" = ia64; then
15899 # AIX 5 supports IA64
15900 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15901 shlibpath_var=LD_LIBRARY_PATH
15903 # With GCC up to 2.95.x, collect2 would create an import file
15904 # for dependence libraries. The import file would start with
15905 # the line `#! .'. This would cause the generated library to
15906 # depend on `.', always an invalid library. This was fixed in
15907 # development snapshots of GCC prior to 3.0.
15909 aix4 | aix4.[01] | aix4.[01].*)
15910 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15912 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15915 can_build_shared=no
15919 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15920 # soname into executable. Probably we can add versioning support to
15921 # collect2, so additional links can be useful in future.
15922 if test "$aix_use_runtimelinking" = yes; then
15923 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15924 # instead of lib<name>.a to let people know that these are not
15925 # typical AIX shared libraries.
15926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15928 # We preserve .a as extension for shared libraries through AIX4.2
15929 # and later when we are not doing run time linking.
15930 library_names_spec='${libname}${release}.a $libname.a'
15931 soname_spec='${libname}${release}${shared_ext}$major'
15933 shlibpath_var=LIBPATH
15938 library_names_spec='$libname.ixlibrary $libname.a'
15939 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15940 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'
15944 library_names_spec='${libname}${shared_ext}'
15945 dynamic_linker="$host_os ld.so"
15946 shlibpath_var=LIBRARY_PATH
15952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15953 soname_spec='${libname}${release}${shared_ext}$major'
15954 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15955 shlibpath_var=LD_LIBRARY_PATH
15956 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15957 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15958 # the default ld.so.conf also contains /usr/contrib/lib and
15959 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15960 # libtool to hard-code these into programs
15963 cygwin* | mingw* | pw32*)
15964 version_type=windows
15969 case $GCC,$host_os in
15970 yes,cygwin* | yes,mingw* | yes,pw32*)
15971 library_names_spec='$libname.dll.a'
15972 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15973 postinstall_cmds='base_file=`basename \${file}`~
15974 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15975 dldir=$destdir/`dirname \$dlpath`~
15976 test -d \$dldir || mkdir -p \$dldir~
15977 $install_prog $dir/$dlname \$dldir/$dlname~
15978 chmod a+x \$dldir/$dlname'
15979 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15980 dlpath=$dir/\$dldll~
15982 shlibpath_overrides_runpath=yes
15986 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15987 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15988 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15991 # MinGW DLLs use traditional 'lib' prefix
15992 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15993 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15994 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15995 # It is most probably a Windows format PATH printed by
15996 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15997 # path with ; separators, and with drive letters. We can handle the
15998 # drive letters (cygwin fileutils understands them), so leave them,
15999 # especially as we might pass files found there to a mingw objdump,
16000 # which wouldn't understand a cygwinified path. Ahh.
16001 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16003 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16007 # pw32 DLLs use 'pw' prefix rather than 'lib'
16008 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16014 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16017 dynamic_linker='Win32 ld.exe'
16018 # FIXME: first we should search . and the directory the executable is in
16022 darwin* | rhapsody*)
16023 dynamic_linker="$host_os dyld"
16024 version_type=darwin
16027 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16028 soname_spec='${libname}${release}${major}$shared_ext'
16029 shlibpath_overrides_runpath=yes
16030 shlibpath_var=DYLD_LIBRARY_PATH
16031 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16033 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16041 soname_spec='${libname}${release}${shared_ext}$major'
16042 shlibpath_var=LD_LIBRARY_PATH
16049 freebsd* | dragonfly*)
16050 # DragonFly does not have aout. When/if they implement a new
16051 # versioning mechanism, adjust this.
16052 if test -x /usr/bin/objformat; then
16053 objformat=`/usr/bin/objformat`
16056 freebsd[123]*) objformat=aout ;;
16057 *) objformat=elf ;;
16060 version_type=freebsd-$objformat
16061 case $version_type in
16063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16068 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16072 shlibpath_var=LD_LIBRARY_PATH
16075 shlibpath_overrides_runpath=yes
16077 freebsd3.[01]* | freebsdelf3.[01]*)
16078 shlibpath_overrides_runpath=yes
16079 hardcode_into_libs=yes
16081 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16082 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16083 shlibpath_overrides_runpath=no
16084 hardcode_into_libs=yes
16086 *) # from 4.6 on, and DragonFly
16087 shlibpath_overrides_runpath=yes
16088 hardcode_into_libs=yes
16097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16098 soname_spec='${libname}${release}${shared_ext}$major'
16099 shlibpath_var=LD_LIBRARY_PATH
16100 hardcode_into_libs=yes
16103 hpux9* | hpux10* | hpux11*)
16104 # Give a soname corresponding to the major version so that dld.sl refuses to
16105 # link against other versions.
16112 hardcode_into_libs=yes
16113 dynamic_linker="$host_os dld.so"
16114 shlibpath_var=LD_LIBRARY_PATH
16115 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16117 soname_spec='${libname}${release}${shared_ext}$major'
16118 if test "X$HPUX_IA64_MODE" = X32; then
16119 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16121 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16123 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16127 hardcode_into_libs=yes
16128 dynamic_linker="$host_os dld.sl"
16129 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16130 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16132 soname_spec='${libname}${release}${shared_ext}$major'
16133 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16134 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16138 dynamic_linker="$host_os dld.sl"
16139 shlibpath_var=SHLIB_PATH
16140 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16142 soname_spec='${libname}${release}${shared_ext}$major'
16145 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16146 postinstall_cmds='chmod 555 $lib'
16153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16154 soname_spec='${libname}${release}${shared_ext}$major'
16155 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16156 shlibpath_var=LD_LIBRARY_PATH
16157 shlibpath_overrides_runpath=no
16158 hardcode_into_libs=yes
16161 irix5* | irix6* | nonstopux*)
16163 nonstopux*) version_type=nonstopux ;;
16165 if test "$lt_cv_prog_gnu_ld" = yes; then
16173 soname_spec='${libname}${release}${shared_ext}$major'
16174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16176 irix5* | nonstopux*)
16177 libsuff= shlibsuff=
16180 case $LD in # libtool.m4 will add one of these switches to LD
16181 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16182 libsuff= shlibsuff= libmagic=32-bit;;
16183 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16184 libsuff=32 shlibsuff=N32 libmagic=N32;;
16185 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16186 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16187 *) libsuff= shlibsuff= libmagic=never-match;;
16191 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16192 shlibpath_overrides_runpath=no
16193 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16194 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16195 hardcode_into_libs=yes
16198 # No shared lib support for Linux oldld, aout, or coff.
16199 linux*oldld* | linux*aout* | linux*coff*)
16203 # This must be Linux ELF.
16204 linux* | k*bsd*-gnu)
16208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16209 soname_spec='${libname}${release}${shared_ext}$major'
16210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16211 shlibpath_var=LD_LIBRARY_PATH
16212 shlibpath_overrides_runpath=no
16213 # This implies no fast_install, which is unacceptable.
16214 # Some rework will be needed to allow for fast_install
16215 # before this can be enabled.
16216 hardcode_into_libs=yes
16218 # Append ld.so.conf contents to the search path
16219 if test -f /etc/ld.so.conf; then
16220 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16221 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16224 # We used to test for /lib/ld.so.1 and disable shared libraries on
16225 # powerpc, because MkLinux only supported shared libraries with the
16226 # GNU dynamic linker. Since this was broken with cross compilers,
16227 # most powerpc-linux boxes support dynamic linking these days and
16228 # people can always --disable-shared, the test was removed, and we
16229 # assume the GNU/Linux dynamic linker is in use.
16230 dynamic_linker='GNU/Linux ld.so'
16237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16238 soname_spec='${libname}${release}${shared_ext}$major'
16239 shlibpath_var=LD_LIBRARY_PATH
16240 shlibpath_overrides_runpath=no
16241 hardcode_into_libs=yes
16242 dynamic_linker='NetBSD ld.elf_so'
16249 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16252 dynamic_linker='NetBSD (a.out) ld.so'
16254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16255 soname_spec='${libname}${release}${shared_ext}$major'
16256 dynamic_linker='NetBSD ld.elf_so'
16258 shlibpath_var=LD_LIBRARY_PATH
16259 shlibpath_overrides_runpath=yes
16260 hardcode_into_libs=yes
16265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16266 shlibpath_var=LD_LIBRARY_PATH
16267 shlibpath_overrides_runpath=yes
16274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16275 soname_spec='${libname}${release}${shared_ext}$major'
16276 shlibpath_var=LD_LIBRARY_PATH
16277 shlibpath_overrides_runpath=yes
16282 sys_lib_dlsearch_path_spec="/usr/lib"
16284 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16286 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16287 *) need_version=no ;;
16289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16291 shlibpath_var=LD_LIBRARY_PATH
16292 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16294 openbsd2.[89] | openbsd2.[89].*)
16295 shlibpath_overrides_runpath=no
16298 shlibpath_overrides_runpath=yes
16302 shlibpath_overrides_runpath=yes
16307 libname_spec='$name'
16310 library_names_spec='$libname${shared_ext} $libname.a'
16311 dynamic_linker='OS/2 ld.exe'
16312 shlibpath_var=LIBPATH
16315 osf3* | osf4* | osf5*)
16319 soname_spec='${libname}${release}${shared_ext}$major'
16320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16321 shlibpath_var=LD_LIBRARY_PATH
16322 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16323 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16335 soname_spec='${libname}${release}${shared_ext}$major'
16336 shlibpath_var=LD_LIBRARY_PATH
16337 shlibpath_overrides_runpath=yes
16338 hardcode_into_libs=yes
16339 # ldd complains unless libraries are executable
16340 postinstall_cmds='chmod +x $lib'
16345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16346 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16347 shlibpath_var=LD_LIBRARY_PATH
16348 shlibpath_overrides_runpath=yes
16349 if test "$with_gnu_ld" = yes; then
16357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16358 soname_spec='${libname}${release}${shared_ext}$major'
16359 shlibpath_var=LD_LIBRARY_PATH
16360 case $host_vendor in
16362 shlibpath_overrides_runpath=no
16364 export_dynamic_flag_spec='${wl}-Blargedynsym'
16365 runpath_var=LD_RUN_PATH
16373 shlibpath_overrides_runpath=no
16374 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16380 if test -d /usr/nec ;then
16382 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16383 soname_spec='$libname${shared_ext}.$major'
16384 shlibpath_var=LD_LIBRARY_PATH
16388 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16389 version_type=freebsd-elf
16392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16393 soname_spec='${libname}${release}${shared_ext}$major'
16394 shlibpath_var=LD_LIBRARY_PATH
16395 hardcode_into_libs=yes
16396 if test "$with_gnu_ld" = yes; then
16397 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16398 shlibpath_overrides_runpath=no
16400 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16401 shlibpath_overrides_runpath=yes
16404 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16408 sys_lib_dlsearch_path_spec='/usr/lib'
16413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16414 soname_spec='${libname}${release}${shared_ext}$major'
16415 shlibpath_var=LD_LIBRARY_PATH
16422 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16423 echo "${ECHO_T}$dynamic_linker" >&6; }
16424 test "$dynamic_linker" = no && can_build_shared=no
16426 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16427 echo $ECHO_N "(cached) $ECHO_C" >&6
16429 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16432 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16433 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16434 echo $ECHO_N "(cached) $ECHO_C" >&6
16436 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16439 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16441 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16442 if test "$GCC" = yes; then
16443 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16446 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16447 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16448 hardcode_action_F77=
16449 if test -n "$hardcode_libdir_flag_spec_F77" || \
16450 test -n "$runpath_var_F77" || \
16451 test "X$hardcode_automatic_F77" = "Xyes" ; then
16453 # We can hardcode non-existant directories.
16454 if test "$hardcode_direct_F77" != no &&
16455 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16456 # have to relink, otherwise we might link with an installed library
16457 # when we should be linking with a yet-to-be-installed one
16458 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16459 test "$hardcode_minus_L_F77" != no; then
16460 # Linking always hardcodes the temporary library directory.
16461 hardcode_action_F77=relink
16463 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16464 hardcode_action_F77=immediate
16467 # We cannot hardcode anything, or else we can only hardcode existing
16469 hardcode_action_F77=unsupported
16471 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16472 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16474 if test "$hardcode_action_F77" = relink; then
16475 # Fast installation is not supported
16476 enable_fast_install=no
16477 elif test "$shlibpath_overrides_runpath" = yes ||
16478 test "$enable_shared" = no; then
16479 # Fast installation is not necessary
16480 enable_fast_install=needless
16484 # The else clause should only fire when bootstrapping the
16485 # libtool distribution, otherwise you forgot to ship ltmain.sh
16486 # with your package, and you will get complaints that there are
16487 # no rules to generate ltmain.sh.
16488 if test -f "$ltmain"; then
16489 # See if we are running on zsh, and set the options which allow our commands through
16490 # without removal of \ escapes.
16491 if test -n "${ZSH_VERSION+set}" ; then
16492 setopt NO_GLOB_SUBST
16494 # Now quote all the things that may contain metacharacters while being
16495 # careful not to overquote the AC_SUBSTed values. We take copies of the
16496 # variables and quote the copies for generation of the libtool script.
16497 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16499 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16500 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16501 deplibs_check_method reload_flag reload_cmds need_locks \
16502 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16503 lt_cv_sys_global_symbol_to_c_name_address \
16504 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16505 old_postinstall_cmds old_postuninstall_cmds \
16509 lt_prog_compiler_wl_F77 \
16510 lt_prog_compiler_pic_F77 \
16511 lt_prog_compiler_static_F77 \
16512 lt_prog_compiler_no_builtin_flag_F77 \
16513 export_dynamic_flag_spec_F77 \
16514 thread_safe_flag_spec_F77 \
16515 whole_archive_flag_spec_F77 \
16516 enable_shared_with_static_runtimes_F77 \
16517 old_archive_cmds_F77 \
16518 old_archive_from_new_cmds_F77 \
16519 predep_objects_F77 \
16520 postdep_objects_F77 \
16523 compiler_lib_search_path_F77 \
16524 compiler_lib_search_dirs_F77 \
16526 archive_expsym_cmds_F77 \
16527 postinstall_cmds_F77 \
16528 postuninstall_cmds_F77 \
16529 old_archive_from_expsyms_cmds_F77 \
16530 allow_undefined_flag_F77 \
16531 no_undefined_flag_F77 \
16532 export_symbols_cmds_F77 \
16533 hardcode_libdir_flag_spec_F77 \
16534 hardcode_libdir_flag_spec_ld_F77 \
16535 hardcode_libdir_separator_F77 \
16536 hardcode_automatic_F77 \
16538 module_expsym_cmds_F77 \
16539 lt_cv_prog_compiler_c_o_F77 \
16540 fix_srcfile_path_F77 \
16541 exclude_expsyms_F77 \
16542 include_expsyms_F77; do
16545 old_archive_cmds_F77 | \
16546 old_archive_from_new_cmds_F77 | \
16547 archive_cmds_F77 | \
16548 archive_expsym_cmds_F77 | \
16549 module_cmds_F77 | \
16550 module_expsym_cmds_F77 | \
16551 old_archive_from_expsyms_cmds_F77 | \
16552 export_symbols_cmds_F77 | \
16553 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16554 postinstall_cmds | postuninstall_cmds | \
16555 old_postinstall_cmds | old_postuninstall_cmds | \
16556 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16557 # Double-quote double-evaled strings.
16558 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16561 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16567 *'\$0 --fallback-echo"')
16568 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16574 cat <<__EOF__ >> "$cfgfile"
16575 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16577 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16579 # Shell to use when invoking shell scripts.
16582 # Whether or not to build shared libraries.
16583 build_libtool_libs=$enable_shared
16585 # Whether or not to build static libraries.
16586 build_old_libs=$enable_static
16588 # Whether or not to add -lc for building shared libraries.
16589 build_libtool_need_lc=$archive_cmds_need_lc_F77
16591 # Whether or not to disallow shared libs when runtime libs are static
16592 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16594 # Whether or not to optimize for fast installation.
16595 fast_install=$enable_fast_install
16598 host_alias=$host_alias
16602 # The build system.
16603 build_alias=$build_alias
16607 # An echo program that does not interpret backslashes.
16612 AR_FLAGS=$lt_AR_FLAGS
16617 # LTCC compiler flags.
16618 LTCFLAGS=$lt_LTCFLAGS
16620 # A language-specific compiler.
16621 CC=$lt_compiler_F77
16623 # Is the compiler the GNU C compiler?
16629 # The linker used to build libraries.
16632 # Whether we need hard or soft links.
16635 # A BSD-compatible nm program.
16638 # A symbol stripping program
16641 # Used to examine libraries when file_magic_cmd begins "file"
16642 MAGIC_CMD=$MAGIC_CMD
16644 # Used on cygwin: DLL creation program.
16647 # Used on cygwin: object dumper.
16650 # Used on cygwin: assembler.
16653 # The name of the directory that contains temporary libtool files.
16656 # How to create reloadable object files.
16657 reload_flag=$lt_reload_flag
16658 reload_cmds=$lt_reload_cmds
16660 # How to pass a linker flag through the compiler.
16661 wl=$lt_lt_prog_compiler_wl_F77
16663 # Object file suffix (normally "o").
16664 objext="$ac_objext"
16666 # Old archive suffix (normally "a").
16669 # Shared library suffix (normally ".so").
16670 shrext_cmds='$shrext_cmds'
16672 # Executable file suffix (normally "").
16675 # Additional compiler flags for building library objects.
16676 pic_flag=$lt_lt_prog_compiler_pic_F77
16679 # What is the maximum length of a command?
16680 max_cmd_len=$lt_cv_sys_max_cmd_len
16682 # Does compiler simultaneously support -c and -o options?
16683 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16685 # Must we lock files when doing compilation?
16686 need_locks=$lt_need_locks
16688 # Do we need the lib prefix for modules?
16689 need_lib_prefix=$need_lib_prefix
16691 # Do we need a version for libraries?
16692 need_version=$need_version
16694 # Whether dlopen is supported.
16695 dlopen_support=$enable_dlopen
16697 # Whether dlopen of programs is supported.
16698 dlopen_self=$enable_dlopen_self
16700 # Whether dlopen of statically linked programs is supported.
16701 dlopen_self_static=$enable_dlopen_self_static
16703 # Compiler flag to prevent dynamic linking.
16704 link_static_flag=$lt_lt_prog_compiler_static_F77
16706 # Compiler flag to turn off builtin functions.
16707 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16709 # Compiler flag to allow reflexive dlopens.
16710 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16712 # Compiler flag to generate shared objects directly from archives.
16713 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16715 # Compiler flag to generate thread-safe objects.
16716 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16718 # Library versioning type.
16719 version_type=$version_type
16721 # Format of library name prefix.
16722 libname_spec=$lt_libname_spec
16724 # List of archive names. First name is the real one, the rest are links.
16725 # The last name is the one that the linker finds with -lNAME.
16726 library_names_spec=$lt_library_names_spec
16728 # The coded name of the library, if different from the real name.
16729 soname_spec=$lt_soname_spec
16731 # Commands used to build and install an old-style archive.
16733 old_archive_cmds=$lt_old_archive_cmds_F77
16734 old_postinstall_cmds=$lt_old_postinstall_cmds
16735 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16737 # Create an old-style archive from a shared archive.
16738 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16740 # Create a temporary old-style archive to link instead of a shared archive.
16741 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16743 # Commands used to build and install a shared archive.
16744 archive_cmds=$lt_archive_cmds_F77
16745 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16746 postinstall_cmds=$lt_postinstall_cmds
16747 postuninstall_cmds=$lt_postuninstall_cmds
16749 # Commands used to build a loadable module (assumed same as above if empty)
16750 module_cmds=$lt_module_cmds_F77
16751 module_expsym_cmds=$lt_module_expsym_cmds_F77
16753 # Commands to strip libraries.
16754 old_striplib=$lt_old_striplib
16755 striplib=$lt_striplib
16757 # Dependencies to place before the objects being linked to create a
16759 predep_objects=$lt_predep_objects_F77
16761 # Dependencies to place after the objects being linked to create a
16763 postdep_objects=$lt_postdep_objects_F77
16765 # Dependencies to place before the objects being linked to create a
16767 predeps=$lt_predeps_F77
16769 # Dependencies to place after the objects being linked to create a
16771 postdeps=$lt_postdeps_F77
16773 # The directories searched by this compiler when creating a shared
16775 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16777 # The library search path used internally by the compiler when linking
16778 # a shared library.
16779 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16781 # Method to check whether dependent libraries are shared objects.
16782 deplibs_check_method=$lt_deplibs_check_method
16784 # Command to use when deplibs_check_method == file_magic.
16785 file_magic_cmd=$lt_file_magic_cmd
16787 # Flag that allows shared libraries with undefined symbols to be built.
16788 allow_undefined_flag=$lt_allow_undefined_flag_F77
16790 # Flag that forces no undefined symbols.
16791 no_undefined_flag=$lt_no_undefined_flag_F77
16793 # Commands used to finish a libtool library installation in a directory.
16794 finish_cmds=$lt_finish_cmds
16796 # Same as above, but a single script fragment to be evaled but not shown.
16797 finish_eval=$lt_finish_eval
16799 # Take the output of nm and produce a listing of raw symbols and C names.
16800 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16802 # Transform the output of nm in a proper C declaration
16803 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16805 # Transform the output of nm in a C name address pair
16806 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16808 # This is the shared library runtime path variable.
16809 runpath_var=$runpath_var
16811 # This is the shared library path variable.
16812 shlibpath_var=$shlibpath_var
16814 # Is shlibpath searched before the hard-coded library search path?
16815 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16817 # How to hardcode a shared library path into an executable.
16818 hardcode_action=$hardcode_action_F77
16820 # Whether we should hardcode library paths into libraries.
16821 hardcode_into_libs=$hardcode_into_libs
16823 # Flag to hardcode \$libdir into a binary during linking.
16824 # This must work even if \$libdir does not exist.
16825 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16827 # If ld is used when linking, flag to hardcode \$libdir into
16828 # a binary during linking. This must work even if \$libdir does
16830 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16832 # Whether we need a single -rpath flag with a separated argument.
16833 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16835 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16836 # resulting binary.
16837 hardcode_direct=$hardcode_direct_F77
16839 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16840 # resulting binary.
16841 hardcode_minus_L=$hardcode_minus_L_F77
16843 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16844 # the resulting binary.
16845 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16847 # Set to yes if building a shared library automatically hardcodes DIR into the library
16848 # and all subsequent libraries and executables linked against it.
16849 hardcode_automatic=$hardcode_automatic_F77
16851 # Variables whose values should be saved in libtool wrapper scripts and
16852 # restored at relink time.
16853 variables_saved_for_relink="$variables_saved_for_relink"
16855 # Whether libtool must link a program against all its dependency libraries.
16856 link_all_deplibs=$link_all_deplibs_F77
16858 # Compile-time system search path for libraries
16859 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16861 # Run-time system search path for libraries
16862 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16864 # Fix the shell variable \$srcfile for the compiler.
16865 fix_srcfile_path=$lt_fix_srcfile_path
16867 # Set to yes if exported symbols are required.
16868 always_export_symbols=$always_export_symbols_F77
16870 # The commands to list exported symbols.
16871 export_symbols_cmds=$lt_export_symbols_cmds_F77
16873 # The commands to extract the exported symbol list from a shared archive.
16874 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16876 # Symbols that should not be listed in the preloaded symbols.
16877 exclude_expsyms=$lt_exclude_expsyms_F77
16879 # Symbols that must always be exported.
16880 include_expsyms=$lt_include_expsyms_F77
16882 # ### END LIBTOOL TAG CONFIG: $tagname
16888 # If there is no Makefile yet, we rely on a make rule to execute
16889 # `config.status --recheck' to rerun these tests and create the
16890 # libtool script then.
16891 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16892 if test -f "$ltmain_in"; then
16893 test -f Makefile && make "$ltmain"
16899 ac_cpp='$CPP $CPPFLAGS'
16900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16912 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16915 # Source file extension for Java test sources.
16918 # Object file extension for compiled Java test sources.
16922 # Code to be used in simple compile tests
16923 lt_simple_compile_test_code="class foo {}"
16925 # Code to be used in simple link tests
16926 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16928 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16930 # If no C compiler was specified, use CC.
16933 # If no C compiler flags were specified, use CFLAGS.
16934 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16936 # Allow CC to be a program name with arguments.
16940 # save warnings/boilerplate of simple test code
16941 ac_outfile=conftest.$ac_objext
16942 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16943 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16944 _lt_compiler_boilerplate=`cat conftest.err`
16947 ac_outfile=conftest.$ac_objext
16948 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16949 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16950 _lt_linker_boilerplate=`cat conftest.err`
16954 # Allow CC to be a program name with arguments.
16959 for cc_temp in $compiler""; do
16961 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16962 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16967 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16970 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16971 archive_cmds_need_lc_GCJ=no
16973 old_archive_cmds_GCJ=$old_archive_cmds
16976 lt_prog_compiler_no_builtin_flag_GCJ=
16978 if test "$GCC" = yes; then
16979 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16982 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16983 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16984 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16985 echo $ECHO_N "(cached) $ECHO_C" >&6
16987 lt_cv_prog_compiler_rtti_exceptions=no
16988 ac_outfile=conftest.$ac_objext
16989 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16990 lt_compiler_flag="-fno-rtti -fno-exceptions"
16991 # Insert the option either (1) after the last *FLAGS variable, or
16992 # (2) before a word containing "conftest.", or (3) at the end.
16993 # Note that $ac_compile itself does not contain backslashes and begins
16994 # with a dollar sign (not a hyphen), so the echo should work correctly.
16995 # The option is referenced via a variable to avoid confusing sed.
16996 lt_compile=`echo "$ac_compile" | $SED \
16997 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16998 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16999 -e 's:$: $lt_compiler_flag:'`
17000 (eval echo "\"\$as_me:17000: $lt_compile\"" >&5)
17001 (eval "$lt_compile" 2>conftest.err)
17003 cat conftest.err >&5
17004 echo "$as_me:17004: \$? = $ac_status" >&5
17005 if (exit $ac_status) && test -s "$ac_outfile"; then
17006 # The compiler can only warn and ignore the option if not recognized
17007 # So say no if there are warnings other than the usual output.
17008 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17009 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17010 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17011 lt_cv_prog_compiler_rtti_exceptions=yes
17017 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17018 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17020 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17021 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17028 lt_prog_compiler_wl_GCJ=
17029 lt_prog_compiler_pic_GCJ=
17030 lt_prog_compiler_static_GCJ=
17032 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17033 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17035 if test "$GCC" = yes; then
17036 lt_prog_compiler_wl_GCJ='-Wl,'
17037 lt_prog_compiler_static_GCJ='-static'
17041 # All AIX code is PIC.
17042 if test "$host_cpu" = ia64; then
17043 # AIX 5 now supports IA64 processor
17044 lt_prog_compiler_static_GCJ='-Bstatic'
17049 # FIXME: we need at least 68020 code to build shared libraries, but
17050 # adding the `-m68020' flag to GCC prevents building anything better,
17052 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17055 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17056 # PIC is the default for these OSes.
17059 mingw* | cygwin* | pw32* | os2*)
17060 # This hack is so that the source file can tell whether it is being
17061 # built for inclusion in a dll (and should export symbols for example).
17062 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17063 # (--disable-auto-import) libraries
17067 darwin* | rhapsody*)
17068 # PIC is the default on this platform
17069 # Common symbols not allowed in MH_DYLIB files
17070 lt_prog_compiler_pic_GCJ='-fno-common'
17074 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17075 # Instead, we relocate shared libraries at runtime.
17079 # Just because we use GCC doesn't mean we suddenly get shared libraries
17080 # on systems that don't support them.
17081 lt_prog_compiler_can_build_shared_GCJ=no
17086 if test -d /usr/nec; then
17087 lt_prog_compiler_pic_GCJ=-Kconform_pic
17092 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17093 # not for PA HP-UX.
17099 lt_prog_compiler_pic_GCJ='-fPIC'
17105 lt_prog_compiler_pic_GCJ='-fPIC'
17109 # PORTME Check for flag to pass linker flags through the system compiler.
17112 lt_prog_compiler_wl_GCJ='-Wl,'
17113 if test "$host_cpu" = ia64; then
17114 # AIX 5 now supports IA64 processor
17115 lt_prog_compiler_static_GCJ='-Bstatic'
17117 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17121 # PIC is the default on this platform
17122 # Common symbols not allowed in MH_DYLIB files
17123 case $cc_basename in
17125 lt_prog_compiler_pic_GCJ='-qnocommon'
17126 lt_prog_compiler_wl_GCJ='-Wl,'
17131 mingw* | cygwin* | pw32* | os2*)
17132 # This hack is so that the source file can tell whether it is being
17133 # built for inclusion in a dll (and should export symbols for example).
17137 hpux9* | hpux10* | hpux11*)
17138 lt_prog_compiler_wl_GCJ='-Wl,'
17139 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17140 # not for PA HP-UX.
17146 lt_prog_compiler_pic_GCJ='+Z'
17149 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17150 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17153 irix5* | irix6* | nonstopux*)
17154 lt_prog_compiler_wl_GCJ='-Wl,'
17155 # PIC (with -KPIC) is the default.
17156 lt_prog_compiler_static_GCJ='-non_shared'
17160 lt_prog_compiler_pic_GCJ='-KPIC'
17161 lt_prog_compiler_static_GCJ='-Bstatic'
17164 linux* | k*bsd*-gnu)
17165 case $cc_basename in
17167 lt_prog_compiler_wl_GCJ='-Wl,'
17168 lt_prog_compiler_pic_GCJ='-KPIC'
17169 lt_prog_compiler_static_GCJ='-static'
17171 pgcc* | pgf77* | pgf90* | pgf95*)
17172 # Portland Group compilers (*not* the Pentium gcc compiler,
17173 # which looks to be a dead project)
17174 lt_prog_compiler_wl_GCJ='-Wl,'
17175 lt_prog_compiler_pic_GCJ='-fpic'
17176 lt_prog_compiler_static_GCJ='-Bstatic'
17179 lt_prog_compiler_wl_GCJ='-Wl,'
17180 # All Alpha code is PIC.
17181 lt_prog_compiler_static_GCJ='-non_shared'
17184 case `$CC -V 2>&1 | sed 5q` in
17187 lt_prog_compiler_pic_GCJ='-KPIC'
17188 lt_prog_compiler_static_GCJ='-Bstatic'
17189 lt_prog_compiler_wl_GCJ='-Wl,'
17192 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17193 lt_prog_compiler_pic_GCJ='-KPIC'
17194 lt_prog_compiler_static_GCJ='-Bstatic'
17195 lt_prog_compiler_wl_GCJ=''
17202 osf3* | osf4* | osf5*)
17203 lt_prog_compiler_wl_GCJ='-Wl,'
17204 # All OSF/1 code is PIC.
17205 lt_prog_compiler_static_GCJ='-non_shared'
17209 lt_prog_compiler_static_GCJ='-non_shared'
17213 lt_prog_compiler_pic_GCJ='-KPIC'
17214 lt_prog_compiler_static_GCJ='-Bstatic'
17215 case $cc_basename in
17216 f77* | f90* | f95*)
17217 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17219 lt_prog_compiler_wl_GCJ='-Wl,';;
17224 lt_prog_compiler_wl_GCJ='-Qoption ld '
17225 lt_prog_compiler_pic_GCJ='-PIC'
17226 lt_prog_compiler_static_GCJ='-Bstatic'
17229 sysv4 | sysv4.2uw2* | sysv4.3*)
17230 lt_prog_compiler_wl_GCJ='-Wl,'
17231 lt_prog_compiler_pic_GCJ='-KPIC'
17232 lt_prog_compiler_static_GCJ='-Bstatic'
17236 if test -d /usr/nec ;then
17237 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17238 lt_prog_compiler_static_GCJ='-Bstatic'
17242 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17243 lt_prog_compiler_wl_GCJ='-Wl,'
17244 lt_prog_compiler_pic_GCJ='-KPIC'
17245 lt_prog_compiler_static_GCJ='-Bstatic'
17249 lt_prog_compiler_wl_GCJ='-Wl,'
17250 lt_prog_compiler_can_build_shared_GCJ=no
17254 lt_prog_compiler_pic_GCJ='-pic'
17255 lt_prog_compiler_static_GCJ='-Bstatic'
17259 lt_prog_compiler_can_build_shared_GCJ=no
17264 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17265 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17268 # Check to make sure the PIC flag actually works.
17270 if test -n "$lt_prog_compiler_pic_GCJ"; then
17272 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17273 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17274 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17275 echo $ECHO_N "(cached) $ECHO_C" >&6
17277 lt_cv_prog_compiler_pic_works_GCJ=no
17278 ac_outfile=conftest.$ac_objext
17279 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17280 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17281 # Insert the option either (1) after the last *FLAGS variable, or
17282 # (2) before a word containing "conftest.", or (3) at the end.
17283 # Note that $ac_compile itself does not contain backslashes and begins
17284 # with a dollar sign (not a hyphen), so the echo should work correctly.
17285 # The option is referenced via a variable to avoid confusing sed.
17286 lt_compile=`echo "$ac_compile" | $SED \
17287 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17288 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17289 -e 's:$: $lt_compiler_flag:'`
17290 (eval echo "\"\$as_me:17290: $lt_compile\"" >&5)
17291 (eval "$lt_compile" 2>conftest.err)
17293 cat conftest.err >&5
17294 echo "$as_me:17294: \$? = $ac_status" >&5
17295 if (exit $ac_status) && test -s "$ac_outfile"; then
17296 # The compiler can only warn and ignore the option if not recognized
17297 # So say no if there are warnings other than the usual output.
17298 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17299 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17300 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17301 lt_cv_prog_compiler_pic_works_GCJ=yes
17307 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17308 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17310 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17311 case $lt_prog_compiler_pic_GCJ in
17313 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17316 lt_prog_compiler_pic_GCJ=
17317 lt_prog_compiler_can_build_shared_GCJ=no
17322 # For platforms which do not support PIC, -DPIC is meaningless:
17324 lt_prog_compiler_pic_GCJ=
17327 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17332 # Check to make sure the static flag actually works.
17334 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17335 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17336 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17337 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17338 echo $ECHO_N "(cached) $ECHO_C" >&6
17340 lt_cv_prog_compiler_static_works_GCJ=no
17341 save_LDFLAGS="$LDFLAGS"
17342 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17343 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17344 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17345 # The linker can only warn and ignore the option if not recognized
17346 # So say no if there are warnings
17347 if test -s conftest.err; then
17348 # Append any errors to the config.log.
17349 cat conftest.err 1>&5
17350 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17351 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17352 if diff conftest.exp conftest.er2 >/dev/null; then
17353 lt_cv_prog_compiler_static_works_GCJ=yes
17356 lt_cv_prog_compiler_static_works_GCJ=yes
17360 LDFLAGS="$save_LDFLAGS"
17363 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17364 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17366 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17369 lt_prog_compiler_static_GCJ=
17373 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17374 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17375 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17376 echo $ECHO_N "(cached) $ECHO_C" >&6
17378 lt_cv_prog_compiler_c_o_GCJ=no
17379 $rm -r conftest 2>/dev/null
17383 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17385 lt_compiler_flag="-o out/conftest2.$ac_objext"
17386 # Insert the option either (1) after the last *FLAGS variable, or
17387 # (2) before a word containing "conftest.", or (3) at the end.
17388 # Note that $ac_compile itself does not contain backslashes and begins
17389 # with a dollar sign (not a hyphen), so the echo should work correctly.
17390 lt_compile=`echo "$ac_compile" | $SED \
17391 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17393 -e 's:$: $lt_compiler_flag:'`
17394 (eval echo "\"\$as_me:17394: $lt_compile\"" >&5)
17395 (eval "$lt_compile" 2>out/conftest.err)
17397 cat out/conftest.err >&5
17398 echo "$as_me:17398: \$? = $ac_status" >&5
17399 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17401 # The compiler can only warn and ignore the option if not recognized
17402 # So say no if there are warnings
17403 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17404 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17405 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17406 lt_cv_prog_compiler_c_o_GCJ=yes
17411 # SGI C++ compiler will create directory out/ii_files/ for
17412 # template instantiation
17413 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17414 $rm out/* && rmdir out
17420 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17421 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17424 hard_links="nottested"
17425 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17426 # do not overwrite the value of need_locks provided by the user
17427 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17428 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17431 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17433 ln conftest.a conftest.b 2>&5 || hard_links=no
17434 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17435 { echo "$as_me:$LINENO: result: $hard_links" >&5
17436 echo "${ECHO_T}$hard_links" >&6; }
17437 if test "$hard_links" = no; then
17438 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17439 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17446 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17447 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17450 allow_undefined_flag_GCJ=
17451 enable_shared_with_static_runtimes_GCJ=no
17453 archive_expsym_cmds_GCJ=
17454 old_archive_From_new_cmds_GCJ=
17455 old_archive_from_expsyms_cmds_GCJ=
17456 export_dynamic_flag_spec_GCJ=
17457 whole_archive_flag_spec_GCJ=
17458 thread_safe_flag_spec_GCJ=
17459 hardcode_libdir_flag_spec_GCJ=
17460 hardcode_libdir_flag_spec_ld_GCJ=
17461 hardcode_libdir_separator_GCJ=
17462 hardcode_direct_GCJ=no
17463 hardcode_minus_L_GCJ=no
17464 hardcode_shlibpath_var_GCJ=unsupported
17465 link_all_deplibs_GCJ=unknown
17466 hardcode_automatic_GCJ=no
17468 module_expsym_cmds_GCJ=
17469 always_export_symbols_GCJ=no
17470 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17471 # include_expsyms should be a list of space-separated symbols to be *always*
17472 # included in the symbol list
17473 include_expsyms_GCJ=
17474 # exclude_expsyms can be an extended regexp of symbols to exclude
17475 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17476 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17477 # as well as any symbol that contains `d'.
17478 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17479 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17480 # platforms (ab)use it in PIC code, but their linkers get confused if
17481 # the symbol is explicitly referenced. Since portable code cannot
17482 # rely on this symbol name, it's probably fine to never include it in
17483 # preloaded symbol tables.
17484 # Exclude shared library initialization/finalization symbols.
17485 extract_expsyms_cmds=
17486 # Just being paranoid about ensuring that cc_basename is set.
17487 for cc_temp in $compiler""; do
17489 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17490 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17495 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17498 cygwin* | mingw* | pw32*)
17499 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17500 # When not using gcc, we currently assume that we are using
17501 # Microsoft Visual C++.
17502 if test "$GCC" != yes; then
17507 # we just hope/assume this is gcc and not c89 (= MSVC++)
17516 if test "$with_gnu_ld" = yes; then
17517 # If archive_cmds runs LD, not CC, wlarc should be empty
17520 # Set some defaults for GNU ld with shared library support. These
17521 # are reset later if shared libraries are not supported. Putting them
17522 # here allows them to be overridden if necessary.
17523 runpath_var=LD_RUN_PATH
17524 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17525 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17526 # ancient GNU ld didn't support --whole-archive et. al.
17527 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17528 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17530 whole_archive_flag_spec_GCJ=
17532 supports_anon_versioning=no
17533 case `$LD -v 2>/dev/null` in
17534 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17535 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17536 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17537 *\ 2.11.*) ;; # other 2.11 versions
17538 *) supports_anon_versioning=yes ;;
17541 # See if GNU ld supports shared libraries.
17544 # On AIX/PPC, the GNU linker is very broken
17545 if test "$host_cpu" != ia64; then
17549 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17550 *** to be unable to reliably create shared libraries on AIX.
17551 *** Therefore, libtool is disabling shared libraries support. If you
17552 *** really care for shared libraries, you may want to modify your PATH
17553 *** so that a non-GNU linker is found, and then restart.
17560 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)'
17561 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17562 hardcode_minus_L_GCJ=yes
17564 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17565 # that the semantics of dynamic libraries on AmigaOS, at least up
17566 # to version 4, is to share data among multiple programs linked
17567 # with the same dynamic library. Since this doesn't match the
17568 # behavior of shared libraries on other platforms, we can't use
17574 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17575 allow_undefined_flag_GCJ=unsupported
17576 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17577 # support --undefined. This deserves some investigation. FIXME
17578 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17584 cygwin* | mingw* | pw32*)
17585 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17586 # as there is no search path for DLLs.
17587 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17588 allow_undefined_flag_GCJ=unsupported
17589 always_export_symbols_GCJ=no
17590 enable_shared_with_static_runtimes_GCJ=yes
17591 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17593 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17594 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17595 # If the export-symbols file already is a .def file (1st line
17596 # is EXPORTS), use it as is; otherwise, prepend...
17597 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17598 cp $export_symbols $output_objdir/$soname.def;
17600 echo EXPORTS > $output_objdir/$soname.def;
17601 cat $export_symbols >> $output_objdir/$soname.def;
17603 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17610 hardcode_direct_GCJ=no
17611 hardcode_shlibpath_var_GCJ=no
17612 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17613 export_dynamic_flag_spec_GCJ='${wl}-E'
17614 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17615 # Instead, shared libraries are loaded at an image base (0x10000000 by
17616 # default) and relocated if they conflict, which is a slow very memory
17617 # consuming and fragmenting process. To avoid this, we pick a random,
17618 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17619 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17620 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'
17621 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'
17624 gnu* | linux* | k*bsd*-gnu)
17625 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17627 case $cc_basename,$host_cpu in
17628 pgcc*) # Portland Group C compiler
17629 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'
17630 tmp_addflag=' $pic_flag'
17632 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17633 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'
17634 tmp_addflag=' $pic_flag -Mnomain' ;;
17635 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17636 tmp_addflag=' -i_dynamic' ;;
17637 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17638 tmp_addflag=' -i_dynamic -nofor_main' ;;
17639 ifc* | ifort*) # Intel Fortran compiler
17640 tmp_addflag=' -nofor_main' ;;
17642 case `$CC -V 2>&1 | sed 5q` in
17643 *Sun\ C*) # Sun C 5.9
17644 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17645 tmp_sharedflag='-G' ;;
17646 *Sun\ F*) # Sun Fortran 8.3
17647 tmp_sharedflag='-G' ;;
17649 tmp_sharedflag='-shared' ;;
17651 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17653 if test $supports_anon_versioning = yes; then
17654 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17655 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17656 $echo "local: *; };" >> $output_objdir/$libname.ver~
17657 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17659 link_all_deplibs_GCJ=no
17665 netbsd* | netbsdelf*-gnu)
17666 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17667 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17670 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17671 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17676 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17680 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17681 *** create shared libraries on Solaris systems. Therefore, libtool
17682 *** is disabling shared libraries support. We urge you to upgrade GNU
17683 *** binutils to release 2.9.1 or newer. Another option is to modify
17684 *** your PATH or compiler configuration so that the native linker is
17685 *** used, and then restart.
17688 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17689 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17690 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17696 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17697 case `$LD -v 2>&1` in
17698 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17702 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17703 *** reliably create shared libraries on SCO systems. Therefore, libtool
17704 *** is disabling shared libraries support. We urge you to upgrade GNU
17705 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17706 *** your PATH or compiler configuration so that the native linker is
17707 *** used, and then restart.
17712 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17713 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17714 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17715 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17724 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17726 hardcode_direct_GCJ=yes
17727 hardcode_shlibpath_var_GCJ=no
17731 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17732 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17733 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17740 if test "$ld_shlibs_GCJ" = no; then
17742 hardcode_libdir_flag_spec_GCJ=
17743 export_dynamic_flag_spec_GCJ=
17744 whole_archive_flag_spec_GCJ=
17747 # PORTME fill in a description of your system's linker (not GNU ld)
17750 allow_undefined_flag_GCJ=unsupported
17751 always_export_symbols_GCJ=yes
17752 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'
17753 # Note: this linker hardcodes the directories in LIBPATH if there
17754 # are no directories specified by -L.
17755 hardcode_minus_L_GCJ=yes
17756 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17757 # Neither direct hardcoding nor static linking is supported with a
17759 hardcode_direct_GCJ=unsupported
17764 if test "$host_cpu" = ia64; then
17765 # On IA64, the linker does run time linking by default, so we don't
17766 # have to do anything special.
17767 aix_use_runtimelinking=no
17768 exp_sym_flag='-Bexport'
17771 # If we're using GNU nm, then we don't want the "-C" option.
17772 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17773 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17774 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'
17776 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'
17778 aix_use_runtimelinking=no
17780 # Test if we are trying to use run time linking or normal
17781 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17782 # need to do runtime linking.
17783 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17784 for ld_flag in $LDFLAGS; do
17785 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17786 aix_use_runtimelinking=yes
17793 exp_sym_flag='-bexport'
17794 no_entry_flag='-bnoentry'
17797 # When large executables or shared objects are built, AIX ld can
17798 # have problems creating the table of contents. If linking a library
17799 # or program results in "error TOC overflow" add -mminimal-toc to
17800 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17801 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17803 archive_cmds_GCJ=''
17804 hardcode_direct_GCJ=yes
17805 hardcode_libdir_separator_GCJ=':'
17806 link_all_deplibs_GCJ=yes
17808 if test "$GCC" = yes; then
17809 case $host_os in aix4.[012]|aix4.[012].*)
17810 # We only want to do this on AIX 4.2 and lower, the check
17811 # below for broken collect2 doesn't work under 4.3+
17812 collect2name=`${CC} -print-prog-name=collect2`
17813 if test -f "$collect2name" && \
17814 strings "$collect2name" | grep resolve_lib_name >/dev/null
17816 # We have reworked collect2
17819 # We have old collect2
17820 hardcode_direct_GCJ=unsupported
17821 # It fails to find uninstalled libraries when the uninstalled
17822 # path is not listed in the libpath. Setting hardcode_minus_L
17823 # to unsupported forces relinking
17824 hardcode_minus_L_GCJ=yes
17825 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17826 hardcode_libdir_separator_GCJ=
17830 shared_flag='-shared'
17831 if test "$aix_use_runtimelinking" = yes; then
17832 shared_flag="$shared_flag "'${wl}-G'
17836 if test "$host_cpu" = ia64; then
17837 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17838 # chokes on -Wl,-G. The following line is correct:
17841 if test "$aix_use_runtimelinking" = yes; then
17842 shared_flag='${wl}-G'
17844 shared_flag='${wl}-bM:SRE'
17849 # It seems that -bexpall does not export symbols beginning with
17850 # underscore (_), so it is better to generate a list of symbols to export.
17851 always_export_symbols_GCJ=yes
17852 if test "$aix_use_runtimelinking" = yes; then
17853 # Warning - without using the other runtime loading flags (-brtl),
17854 # -berok will link without error, but may produce a broken library.
17855 allow_undefined_flag_GCJ='-berok'
17856 # Determine the default libpath from the value encoded in an empty executable.
17857 cat >conftest.$ac_ext <<_ACEOF
17860 cat confdefs.h >>conftest.$ac_ext
17861 cat >>conftest.$ac_ext <<_ACEOF
17862 /* end confdefs.h. */
17872 rm -f conftest.$ac_objext conftest$ac_exeext
17873 if { (ac_try="$ac_link"
17874 case "(($ac_try" in
17875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17876 *) ac_try_echo=$ac_try;;
17878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17879 (eval "$ac_link") 2>conftest.er1
17881 grep -v '^ *+' conftest.er1 >conftest.err
17883 cat conftest.err >&5
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); } && {
17886 test -z "$ac_c_werror_flag" ||
17887 test ! -s conftest.err
17888 } && test -s conftest$ac_exeext &&
17889 $as_test_x conftest$ac_exeext; then
17891 lt_aix_libpath_sed='
17892 /Import File Strings/,/^$/ {
17898 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17899 # Check for a 64-bit object if we didn't find anything.
17900 if test -z "$aix_libpath"; then
17901 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17904 echo "$as_me: failed program was:" >&5
17905 sed 's/^/| /' conftest.$ac_ext >&5
17910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17911 conftest$ac_exeext conftest.$ac_ext
17912 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17914 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17915 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"
17917 if test "$host_cpu" = ia64; then
17918 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17919 allow_undefined_flag_GCJ="-z nodefs"
17920 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"
17922 # Determine the default libpath from the value encoded in an empty executable.
17923 cat >conftest.$ac_ext <<_ACEOF
17926 cat confdefs.h >>conftest.$ac_ext
17927 cat >>conftest.$ac_ext <<_ACEOF
17928 /* end confdefs.h. */
17938 rm -f conftest.$ac_objext conftest$ac_exeext
17939 if { (ac_try="$ac_link"
17940 case "(($ac_try" in
17941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17942 *) ac_try_echo=$ac_try;;
17944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17945 (eval "$ac_link") 2>conftest.er1
17947 grep -v '^ *+' conftest.er1 >conftest.err
17949 cat conftest.err >&5
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); } && {
17952 test -z "$ac_c_werror_flag" ||
17953 test ! -s conftest.err
17954 } && test -s conftest$ac_exeext &&
17955 $as_test_x conftest$ac_exeext; then
17957 lt_aix_libpath_sed='
17958 /Import File Strings/,/^$/ {
17964 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17965 # Check for a 64-bit object if we didn't find anything.
17966 if test -z "$aix_libpath"; then
17967 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17970 echo "$as_me: failed program was:" >&5
17971 sed 's/^/| /' conftest.$ac_ext >&5
17976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17977 conftest$ac_exeext conftest.$ac_ext
17978 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17980 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17981 # Warning - without using the other run time loading flags,
17982 # -berok will link without error, but may produce a broken library.
17983 no_undefined_flag_GCJ=' ${wl}-bernotok'
17984 allow_undefined_flag_GCJ=' ${wl}-berok'
17985 # Exported symbols can be pulled into shared objects from archives
17986 whole_archive_flag_spec_GCJ='$convenience'
17987 archive_cmds_need_lc_GCJ=yes
17988 # This is similar to how AIX traditionally builds its shared libraries.
17989 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'
17995 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)'
17996 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17997 hardcode_minus_L_GCJ=yes
17998 # see comment about different semantics on the GNU ld section
18003 export_dynamic_flag_spec_GCJ=-rdynamic
18006 cygwin* | mingw* | pw32*)
18007 # When not using gcc, we currently assume that we are using
18008 # Microsoft Visual C++.
18009 # hardcode_libdir_flag_spec is actually meaningless, as there is
18010 # no search path for DLLs.
18011 hardcode_libdir_flag_spec_GCJ=' '
18012 allow_undefined_flag_GCJ=unsupported
18013 # Tell ltmain to make .lib files, not .a files.
18015 # Tell ltmain to make .dll files, not .so files.
18017 # FIXME: Setting linknames here is a bad hack.
18018 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18019 # The linker will automatically build a .lib file if we build a DLL.
18020 old_archive_From_new_cmds_GCJ='true'
18021 # FIXME: Should let the user specify the lib program.
18022 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18023 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18024 enable_shared_with_static_runtimes_GCJ=yes
18027 darwin* | rhapsody*)
18029 rhapsody* | darwin1.[012])
18030 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18033 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18034 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18036 case ${MACOSX_DEPLOYMENT_TARGET} in
18038 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18041 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18047 archive_cmds_need_lc_GCJ=no
18048 hardcode_direct_GCJ=no
18049 hardcode_automatic_GCJ=yes
18050 hardcode_shlibpath_var_GCJ=unsupported
18051 whole_archive_flag_spec_GCJ=''
18052 link_all_deplibs_GCJ=yes
18053 if test "$GCC" = yes ; then
18054 output_verbose_link_cmd='echo'
18055 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18056 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18057 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18058 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18060 case $cc_basename in
18062 output_verbose_link_cmd='echo'
18063 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18064 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18065 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18066 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18067 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}'
18077 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18078 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18079 hardcode_shlibpath_var_GCJ=no
18086 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18087 # support. Future versions do this automatically, but an explicit c++rt0.o
18088 # does not break anything, and helps significantly (at the cost of a little
18091 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18092 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18093 hardcode_direct_GCJ=yes
18094 hardcode_shlibpath_var_GCJ=no
18097 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18099 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18100 hardcode_direct_GCJ=yes
18101 hardcode_minus_L_GCJ=yes
18102 hardcode_shlibpath_var_GCJ=no
18105 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18106 freebsd* | dragonfly*)
18107 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18108 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18109 hardcode_direct_GCJ=yes
18110 hardcode_shlibpath_var_GCJ=no
18114 if test "$GCC" = yes; then
18115 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'
18117 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'
18119 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18120 hardcode_libdir_separator_GCJ=:
18121 hardcode_direct_GCJ=yes
18123 # hardcode_minus_L: Not really in the search PATH,
18124 # but as the default location of the library.
18125 hardcode_minus_L_GCJ=yes
18126 export_dynamic_flag_spec_GCJ='${wl}-E'
18130 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18131 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18133 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18135 if test "$with_gnu_ld" = no; then
18136 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18137 hardcode_libdir_separator_GCJ=:
18139 hardcode_direct_GCJ=yes
18140 export_dynamic_flag_spec_GCJ='${wl}-E'
18142 # hardcode_minus_L: Not really in the search PATH,
18143 # but as the default location of the library.
18144 hardcode_minus_L_GCJ=yes
18149 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18152 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18155 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18158 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18164 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18167 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18170 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18174 if test "$with_gnu_ld" = no; then
18175 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18176 hardcode_libdir_separator_GCJ=:
18180 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18181 hardcode_direct_GCJ=no
18182 hardcode_shlibpath_var_GCJ=no
18185 hardcode_direct_GCJ=yes
18186 export_dynamic_flag_spec_GCJ='${wl}-E'
18188 # hardcode_minus_L: Not really in the search PATH,
18189 # but as the default location of the library.
18190 hardcode_minus_L_GCJ=yes
18196 irix5* | irix6* | nonstopux*)
18197 if test "$GCC" = yes; then
18198 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'
18200 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'
18201 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18203 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18204 hardcode_libdir_separator_GCJ=:
18205 link_all_deplibs_GCJ=yes
18208 netbsd* | netbsdelf*-gnu)
18209 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18210 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18212 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18214 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18215 hardcode_direct_GCJ=yes
18216 hardcode_shlibpath_var_GCJ=no
18220 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18221 hardcode_direct_GCJ=yes
18222 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18223 hardcode_libdir_separator_GCJ=:
18224 hardcode_shlibpath_var_GCJ=no
18228 if test -f /usr/libexec/ld.so; then
18229 hardcode_direct_GCJ=yes
18230 hardcode_shlibpath_var_GCJ=no
18231 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18232 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18233 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18234 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18235 export_dynamic_flag_spec_GCJ='${wl}-E'
18238 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18239 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18240 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18243 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18244 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18254 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18255 hardcode_minus_L_GCJ=yes
18256 allow_undefined_flag_GCJ=unsupported
18257 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'
18258 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18262 if test "$GCC" = yes; then
18263 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18264 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'
18266 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18267 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'
18269 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18270 hardcode_libdir_separator_GCJ=:
18273 osf4* | osf5*) # as osf3* with the addition of -msym flag
18274 if test "$GCC" = yes; then
18275 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18276 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'
18277 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18279 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18280 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'
18281 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~
18282 $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'
18284 # Both c and cxx compiler support -rpath directly
18285 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18287 hardcode_libdir_separator_GCJ=:
18291 no_undefined_flag_GCJ=' -z text'
18292 if test "$GCC" = yes; then
18294 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18295 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18296 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18299 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18300 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18301 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18303 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18304 hardcode_shlibpath_var_GCJ=no
18306 solaris2.[0-5] | solaris2.[0-5].*) ;;
18308 # The compiler driver will combine and reorder linker options,
18309 # but understands `-z linker_flag'. GCC discards it without `$wl',
18310 # but is careful enough not to reorder.
18311 # Supported since Solaris 2.6 (maybe 2.5.1?)
18312 if test "$GCC" = yes; then
18313 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18315 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18319 link_all_deplibs_GCJ=yes
18323 if test "x$host_vendor" = xsequent; then
18324 # Use $CC to link under sequent, because it throws in some extra .o
18325 # files that make .init and .fini sections work.
18326 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18328 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18330 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18331 hardcode_direct_GCJ=yes
18332 hardcode_minus_L_GCJ=yes
18333 hardcode_shlibpath_var_GCJ=no
18337 case $host_vendor in
18339 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18340 hardcode_direct_GCJ=yes # is this really true???
18343 ## LD is ld it makes a PLAMLIB
18344 ## CC just makes a GrossModule.
18345 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18346 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18347 hardcode_direct_GCJ=no
18350 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18351 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18354 runpath_var='LD_RUN_PATH'
18355 hardcode_shlibpath_var_GCJ=no
18359 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18360 hardcode_shlibpath_var_GCJ=no
18361 export_dynamic_flag_spec_GCJ='-Bexport'
18365 if test -d /usr/nec; then
18366 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18367 hardcode_shlibpath_var_GCJ=no
18368 runpath_var=LD_RUN_PATH
18369 hardcode_runpath_var=yes
18374 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18375 no_undefined_flag_GCJ='${wl}-z,text'
18376 archive_cmds_need_lc_GCJ=no
18377 hardcode_shlibpath_var_GCJ=no
18378 runpath_var='LD_RUN_PATH'
18380 if test "$GCC" = yes; then
18381 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18382 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18384 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18385 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18389 sysv5* | sco3.2v5* | sco5v6*)
18390 # Note: We can NOT use -z defs as we might desire, because we do not
18391 # link with -lc, and that would cause any symbols used from libc to
18392 # always be unresolved, which means just about no library would
18393 # ever link correctly. If we're not using GNU ld we use -z text
18394 # though, which does catch some bad symbols but isn't as heavy-handed
18396 no_undefined_flag_GCJ='${wl}-z,text'
18397 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18398 archive_cmds_need_lc_GCJ=no
18399 hardcode_shlibpath_var_GCJ=no
18400 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18401 hardcode_libdir_separator_GCJ=':'
18402 link_all_deplibs_GCJ=yes
18403 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18404 runpath_var='LD_RUN_PATH'
18406 if test "$GCC" = yes; then
18407 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18408 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18410 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18411 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18416 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18417 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18418 hardcode_shlibpath_var_GCJ=no
18427 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18428 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18429 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18432 # Do we need to explicitly link libc?
18434 case "x$archive_cmds_need_lc_GCJ" in
18436 # Assume -lc should be added
18437 archive_cmds_need_lc_GCJ=yes
18439 if test "$enable_shared" = yes && test "$GCC" = yes; then
18440 case $archive_cmds_GCJ in
18442 # FIXME: we may have to deal with multi-command sequences.
18445 # Test whether the compiler implicitly links with -lc since on some
18446 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18447 # to ld, don't add -lc before -lgcc.
18448 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18449 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18451 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18454 (eval $ac_compile) 2>&5
18456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 (exit $ac_status); } 2>conftest.err; then
18460 libobjs=conftest.$ac_objext
18462 wl=$lt_prog_compiler_wl_GCJ
18463 pic_flag=$lt_prog_compiler_pic_GCJ
18469 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18470 allow_undefined_flag_GCJ=
18471 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18472 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); }
18477 archive_cmds_need_lc_GCJ=no
18479 archive_cmds_need_lc_GCJ=yes
18481 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18483 cat conftest.err 1>&5
18486 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18487 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18494 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18495 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18496 library_names_spec=
18497 libname_spec='lib$name'
18501 postuninstall_cmds=
18505 shlibpath_overrides_runpath=unknown
18507 dynamic_linker="$host_os ld.so"
18508 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18510 need_lib_prefix=unknown
18511 hardcode_into_libs=no
18513 # when you set need_version to no, make sure it does not cause -set_version
18514 # flags to be left without arguments
18515 need_version=unknown
18520 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18521 shlibpath_var=LIBPATH
18523 # AIX 3 has no versioning support, so we append a major version to the name.
18524 soname_spec='${libname}${release}${shared_ext}$major'
18531 hardcode_into_libs=yes
18532 if test "$host_cpu" = ia64; then
18533 # AIX 5 supports IA64
18534 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18535 shlibpath_var=LD_LIBRARY_PATH
18537 # With GCC up to 2.95.x, collect2 would create an import file
18538 # for dependence libraries. The import file would start with
18539 # the line `#! .'. This would cause the generated library to
18540 # depend on `.', always an invalid library. This was fixed in
18541 # development snapshots of GCC prior to 3.0.
18543 aix4 | aix4.[01] | aix4.[01].*)
18544 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18546 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18549 can_build_shared=no
18553 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18554 # soname into executable. Probably we can add versioning support to
18555 # collect2, so additional links can be useful in future.
18556 if test "$aix_use_runtimelinking" = yes; then
18557 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18558 # instead of lib<name>.a to let people know that these are not
18559 # typical AIX shared libraries.
18560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18562 # We preserve .a as extension for shared libraries through AIX4.2
18563 # and later when we are not doing run time linking.
18564 library_names_spec='${libname}${release}.a $libname.a'
18565 soname_spec='${libname}${release}${shared_ext}$major'
18567 shlibpath_var=LIBPATH
18572 library_names_spec='$libname.ixlibrary $libname.a'
18573 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18574 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'
18578 library_names_spec='${libname}${shared_ext}'
18579 dynamic_linker="$host_os ld.so"
18580 shlibpath_var=LIBRARY_PATH
18586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18587 soname_spec='${libname}${release}${shared_ext}$major'
18588 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18589 shlibpath_var=LD_LIBRARY_PATH
18590 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18591 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18592 # the default ld.so.conf also contains /usr/contrib/lib and
18593 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18594 # libtool to hard-code these into programs
18597 cygwin* | mingw* | pw32*)
18598 version_type=windows
18603 case $GCC,$host_os in
18604 yes,cygwin* | yes,mingw* | yes,pw32*)
18605 library_names_spec='$libname.dll.a'
18606 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18607 postinstall_cmds='base_file=`basename \${file}`~
18608 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18609 dldir=$destdir/`dirname \$dlpath`~
18610 test -d \$dldir || mkdir -p \$dldir~
18611 $install_prog $dir/$dlname \$dldir/$dlname~
18612 chmod a+x \$dldir/$dlname'
18613 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18614 dlpath=$dir/\$dldll~
18616 shlibpath_overrides_runpath=yes
18620 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18621 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18622 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18625 # MinGW DLLs use traditional 'lib' prefix
18626 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18627 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18628 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18629 # It is most probably a Windows format PATH printed by
18630 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18631 # path with ; separators, and with drive letters. We can handle the
18632 # drive letters (cygwin fileutils understands them), so leave them,
18633 # especially as we might pass files found there to a mingw objdump,
18634 # which wouldn't understand a cygwinified path. Ahh.
18635 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18637 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18641 # pw32 DLLs use 'pw' prefix rather than 'lib'
18642 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18648 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18651 dynamic_linker='Win32 ld.exe'
18652 # FIXME: first we should search . and the directory the executable is in
18656 darwin* | rhapsody*)
18657 dynamic_linker="$host_os dyld"
18658 version_type=darwin
18661 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18662 soname_spec='${libname}${release}${major}$shared_ext'
18663 shlibpath_overrides_runpath=yes
18664 shlibpath_var=DYLD_LIBRARY_PATH
18665 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18667 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18675 soname_spec='${libname}${release}${shared_ext}$major'
18676 shlibpath_var=LD_LIBRARY_PATH
18683 freebsd* | dragonfly*)
18684 # DragonFly does not have aout. When/if they implement a new
18685 # versioning mechanism, adjust this.
18686 if test -x /usr/bin/objformat; then
18687 objformat=`/usr/bin/objformat`
18690 freebsd[123]*) objformat=aout ;;
18691 *) objformat=elf ;;
18694 version_type=freebsd-$objformat
18695 case $version_type in
18697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18702 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18706 shlibpath_var=LD_LIBRARY_PATH
18709 shlibpath_overrides_runpath=yes
18711 freebsd3.[01]* | freebsdelf3.[01]*)
18712 shlibpath_overrides_runpath=yes
18713 hardcode_into_libs=yes
18715 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18716 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18717 shlibpath_overrides_runpath=no
18718 hardcode_into_libs=yes
18720 *) # from 4.6 on, and DragonFly
18721 shlibpath_overrides_runpath=yes
18722 hardcode_into_libs=yes
18731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18732 soname_spec='${libname}${release}${shared_ext}$major'
18733 shlibpath_var=LD_LIBRARY_PATH
18734 hardcode_into_libs=yes
18737 hpux9* | hpux10* | hpux11*)
18738 # Give a soname corresponding to the major version so that dld.sl refuses to
18739 # link against other versions.
18746 hardcode_into_libs=yes
18747 dynamic_linker="$host_os dld.so"
18748 shlibpath_var=LD_LIBRARY_PATH
18749 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18751 soname_spec='${libname}${release}${shared_ext}$major'
18752 if test "X$HPUX_IA64_MODE" = X32; then
18753 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18755 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18757 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18761 hardcode_into_libs=yes
18762 dynamic_linker="$host_os dld.sl"
18763 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18764 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18766 soname_spec='${libname}${release}${shared_ext}$major'
18767 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18768 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18772 dynamic_linker="$host_os dld.sl"
18773 shlibpath_var=SHLIB_PATH
18774 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18776 soname_spec='${libname}${release}${shared_ext}$major'
18779 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18780 postinstall_cmds='chmod 555 $lib'
18787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18788 soname_spec='${libname}${release}${shared_ext}$major'
18789 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18790 shlibpath_var=LD_LIBRARY_PATH
18791 shlibpath_overrides_runpath=no
18792 hardcode_into_libs=yes
18795 irix5* | irix6* | nonstopux*)
18797 nonstopux*) version_type=nonstopux ;;
18799 if test "$lt_cv_prog_gnu_ld" = yes; then
18807 soname_spec='${libname}${release}${shared_ext}$major'
18808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18810 irix5* | nonstopux*)
18811 libsuff= shlibsuff=
18814 case $LD in # libtool.m4 will add one of these switches to LD
18815 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18816 libsuff= shlibsuff= libmagic=32-bit;;
18817 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18818 libsuff=32 shlibsuff=N32 libmagic=N32;;
18819 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18820 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18821 *) libsuff= shlibsuff= libmagic=never-match;;
18825 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18826 shlibpath_overrides_runpath=no
18827 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18828 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18829 hardcode_into_libs=yes
18832 # No shared lib support for Linux oldld, aout, or coff.
18833 linux*oldld* | linux*aout* | linux*coff*)
18837 # This must be Linux ELF.
18838 linux* | k*bsd*-gnu)
18842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18843 soname_spec='${libname}${release}${shared_ext}$major'
18844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18845 shlibpath_var=LD_LIBRARY_PATH
18846 shlibpath_overrides_runpath=no
18847 # This implies no fast_install, which is unacceptable.
18848 # Some rework will be needed to allow for fast_install
18849 # before this can be enabled.
18850 hardcode_into_libs=yes
18852 # Append ld.so.conf contents to the search path
18853 if test -f /etc/ld.so.conf; then
18854 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18855 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18858 # We used to test for /lib/ld.so.1 and disable shared libraries on
18859 # powerpc, because MkLinux only supported shared libraries with the
18860 # GNU dynamic linker. Since this was broken with cross compilers,
18861 # most powerpc-linux boxes support dynamic linking these days and
18862 # people can always --disable-shared, the test was removed, and we
18863 # assume the GNU/Linux dynamic linker is in use.
18864 dynamic_linker='GNU/Linux ld.so'
18871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18872 soname_spec='${libname}${release}${shared_ext}$major'
18873 shlibpath_var=LD_LIBRARY_PATH
18874 shlibpath_overrides_runpath=no
18875 hardcode_into_libs=yes
18876 dynamic_linker='NetBSD ld.elf_so'
18883 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18885 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18886 dynamic_linker='NetBSD (a.out) ld.so'
18888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18889 soname_spec='${libname}${release}${shared_ext}$major'
18890 dynamic_linker='NetBSD ld.elf_so'
18892 shlibpath_var=LD_LIBRARY_PATH
18893 shlibpath_overrides_runpath=yes
18894 hardcode_into_libs=yes
18899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18900 shlibpath_var=LD_LIBRARY_PATH
18901 shlibpath_overrides_runpath=yes
18908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18909 soname_spec='${libname}${release}${shared_ext}$major'
18910 shlibpath_var=LD_LIBRARY_PATH
18911 shlibpath_overrides_runpath=yes
18916 sys_lib_dlsearch_path_spec="/usr/lib"
18918 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18920 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18921 *) need_version=no ;;
18923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18925 shlibpath_var=LD_LIBRARY_PATH
18926 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18928 openbsd2.[89] | openbsd2.[89].*)
18929 shlibpath_overrides_runpath=no
18932 shlibpath_overrides_runpath=yes
18936 shlibpath_overrides_runpath=yes
18941 libname_spec='$name'
18944 library_names_spec='$libname${shared_ext} $libname.a'
18945 dynamic_linker='OS/2 ld.exe'
18946 shlibpath_var=LIBPATH
18949 osf3* | osf4* | osf5*)
18953 soname_spec='${libname}${release}${shared_ext}$major'
18954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18955 shlibpath_var=LD_LIBRARY_PATH
18956 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18957 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18969 soname_spec='${libname}${release}${shared_ext}$major'
18970 shlibpath_var=LD_LIBRARY_PATH
18971 shlibpath_overrides_runpath=yes
18972 hardcode_into_libs=yes
18973 # ldd complains unless libraries are executable
18974 postinstall_cmds='chmod +x $lib'
18979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18980 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18981 shlibpath_var=LD_LIBRARY_PATH
18982 shlibpath_overrides_runpath=yes
18983 if test "$with_gnu_ld" = yes; then
18991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18992 soname_spec='${libname}${release}${shared_ext}$major'
18993 shlibpath_var=LD_LIBRARY_PATH
18994 case $host_vendor in
18996 shlibpath_overrides_runpath=no
18998 export_dynamic_flag_spec='${wl}-Blargedynsym'
18999 runpath_var=LD_RUN_PATH
19007 shlibpath_overrides_runpath=no
19008 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19014 if test -d /usr/nec ;then
19016 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19017 soname_spec='$libname${shared_ext}.$major'
19018 shlibpath_var=LD_LIBRARY_PATH
19022 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19023 version_type=freebsd-elf
19026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19027 soname_spec='${libname}${release}${shared_ext}$major'
19028 shlibpath_var=LD_LIBRARY_PATH
19029 hardcode_into_libs=yes
19030 if test "$with_gnu_ld" = yes; then
19031 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19032 shlibpath_overrides_runpath=no
19034 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19035 shlibpath_overrides_runpath=yes
19038 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19042 sys_lib_dlsearch_path_spec='/usr/lib'
19047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19048 soname_spec='${libname}${release}${shared_ext}$major'
19049 shlibpath_var=LD_LIBRARY_PATH
19056 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19057 echo "${ECHO_T}$dynamic_linker" >&6; }
19058 test "$dynamic_linker" = no && can_build_shared=no
19060 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19061 echo $ECHO_N "(cached) $ECHO_C" >&6
19063 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19066 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19067 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19068 echo $ECHO_N "(cached) $ECHO_C" >&6
19070 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19073 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19075 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19076 if test "$GCC" = yes; then
19077 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19080 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19081 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19082 hardcode_action_GCJ=
19083 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19084 test -n "$runpath_var_GCJ" || \
19085 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19087 # We can hardcode non-existant directories.
19088 if test "$hardcode_direct_GCJ" != no &&
19089 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19090 # have to relink, otherwise we might link with an installed library
19091 # when we should be linking with a yet-to-be-installed one
19092 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19093 test "$hardcode_minus_L_GCJ" != no; then
19094 # Linking always hardcodes the temporary library directory.
19095 hardcode_action_GCJ=relink
19097 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19098 hardcode_action_GCJ=immediate
19101 # We cannot hardcode anything, or else we can only hardcode existing
19103 hardcode_action_GCJ=unsupported
19105 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19106 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19108 if test "$hardcode_action_GCJ" = relink; then
19109 # Fast installation is not supported
19110 enable_fast_install=no
19111 elif test "$shlibpath_overrides_runpath" = yes ||
19112 test "$enable_shared" = no; then
19113 # Fast installation is not necessary
19114 enable_fast_install=needless
19118 # The else clause should only fire when bootstrapping the
19119 # libtool distribution, otherwise you forgot to ship ltmain.sh
19120 # with your package, and you will get complaints that there are
19121 # no rules to generate ltmain.sh.
19122 if test -f "$ltmain"; then
19123 # See if we are running on zsh, and set the options which allow our commands through
19124 # without removal of \ escapes.
19125 if test -n "${ZSH_VERSION+set}" ; then
19126 setopt NO_GLOB_SUBST
19128 # Now quote all the things that may contain metacharacters while being
19129 # careful not to overquote the AC_SUBSTed values. We take copies of the
19130 # variables and quote the copies for generation of the libtool script.
19131 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19133 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19134 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19135 deplibs_check_method reload_flag reload_cmds need_locks \
19136 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19137 lt_cv_sys_global_symbol_to_c_name_address \
19138 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19139 old_postinstall_cmds old_postuninstall_cmds \
19143 lt_prog_compiler_wl_GCJ \
19144 lt_prog_compiler_pic_GCJ \
19145 lt_prog_compiler_static_GCJ \
19146 lt_prog_compiler_no_builtin_flag_GCJ \
19147 export_dynamic_flag_spec_GCJ \
19148 thread_safe_flag_spec_GCJ \
19149 whole_archive_flag_spec_GCJ \
19150 enable_shared_with_static_runtimes_GCJ \
19151 old_archive_cmds_GCJ \
19152 old_archive_from_new_cmds_GCJ \
19153 predep_objects_GCJ \
19154 postdep_objects_GCJ \
19157 compiler_lib_search_path_GCJ \
19158 compiler_lib_search_dirs_GCJ \
19160 archive_expsym_cmds_GCJ \
19161 postinstall_cmds_GCJ \
19162 postuninstall_cmds_GCJ \
19163 old_archive_from_expsyms_cmds_GCJ \
19164 allow_undefined_flag_GCJ \
19165 no_undefined_flag_GCJ \
19166 export_symbols_cmds_GCJ \
19167 hardcode_libdir_flag_spec_GCJ \
19168 hardcode_libdir_flag_spec_ld_GCJ \
19169 hardcode_libdir_separator_GCJ \
19170 hardcode_automatic_GCJ \
19172 module_expsym_cmds_GCJ \
19173 lt_cv_prog_compiler_c_o_GCJ \
19174 fix_srcfile_path_GCJ \
19175 exclude_expsyms_GCJ \
19176 include_expsyms_GCJ; do
19179 old_archive_cmds_GCJ | \
19180 old_archive_from_new_cmds_GCJ | \
19181 archive_cmds_GCJ | \
19182 archive_expsym_cmds_GCJ | \
19183 module_cmds_GCJ | \
19184 module_expsym_cmds_GCJ | \
19185 old_archive_from_expsyms_cmds_GCJ | \
19186 export_symbols_cmds_GCJ | \
19187 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19188 postinstall_cmds | postuninstall_cmds | \
19189 old_postinstall_cmds | old_postuninstall_cmds | \
19190 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19191 # Double-quote double-evaled strings.
19192 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19195 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19201 *'\$0 --fallback-echo"')
19202 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19208 cat <<__EOF__ >> "$cfgfile"
19209 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19211 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19213 # Shell to use when invoking shell scripts.
19216 # Whether or not to build shared libraries.
19217 build_libtool_libs=$enable_shared
19219 # Whether or not to build static libraries.
19220 build_old_libs=$enable_static
19222 # Whether or not to add -lc for building shared libraries.
19223 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19225 # Whether or not to disallow shared libs when runtime libs are static
19226 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19228 # Whether or not to optimize for fast installation.
19229 fast_install=$enable_fast_install
19232 host_alias=$host_alias
19236 # The build system.
19237 build_alias=$build_alias
19241 # An echo program that does not interpret backslashes.
19246 AR_FLAGS=$lt_AR_FLAGS
19251 # LTCC compiler flags.
19252 LTCFLAGS=$lt_LTCFLAGS
19254 # A language-specific compiler.
19255 CC=$lt_compiler_GCJ
19257 # Is the compiler the GNU C compiler?
19263 # The linker used to build libraries.
19266 # Whether we need hard or soft links.
19269 # A BSD-compatible nm program.
19272 # A symbol stripping program
19275 # Used to examine libraries when file_magic_cmd begins "file"
19276 MAGIC_CMD=$MAGIC_CMD
19278 # Used on cygwin: DLL creation program.
19281 # Used on cygwin: object dumper.
19284 # Used on cygwin: assembler.
19287 # The name of the directory that contains temporary libtool files.
19290 # How to create reloadable object files.
19291 reload_flag=$lt_reload_flag
19292 reload_cmds=$lt_reload_cmds
19294 # How to pass a linker flag through the compiler.
19295 wl=$lt_lt_prog_compiler_wl_GCJ
19297 # Object file suffix (normally "o").
19298 objext="$ac_objext"
19300 # Old archive suffix (normally "a").
19303 # Shared library suffix (normally ".so").
19304 shrext_cmds='$shrext_cmds'
19306 # Executable file suffix (normally "").
19309 # Additional compiler flags for building library objects.
19310 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19313 # What is the maximum length of a command?
19314 max_cmd_len=$lt_cv_sys_max_cmd_len
19316 # Does compiler simultaneously support -c and -o options?
19317 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19319 # Must we lock files when doing compilation?
19320 need_locks=$lt_need_locks
19322 # Do we need the lib prefix for modules?
19323 need_lib_prefix=$need_lib_prefix
19325 # Do we need a version for libraries?
19326 need_version=$need_version
19328 # Whether dlopen is supported.
19329 dlopen_support=$enable_dlopen
19331 # Whether dlopen of programs is supported.
19332 dlopen_self=$enable_dlopen_self
19334 # Whether dlopen of statically linked programs is supported.
19335 dlopen_self_static=$enable_dlopen_self_static
19337 # Compiler flag to prevent dynamic linking.
19338 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19340 # Compiler flag to turn off builtin functions.
19341 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19343 # Compiler flag to allow reflexive dlopens.
19344 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19346 # Compiler flag to generate shared objects directly from archives.
19347 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19349 # Compiler flag to generate thread-safe objects.
19350 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19352 # Library versioning type.
19353 version_type=$version_type
19355 # Format of library name prefix.
19356 libname_spec=$lt_libname_spec
19358 # List of archive names. First name is the real one, the rest are links.
19359 # The last name is the one that the linker finds with -lNAME.
19360 library_names_spec=$lt_library_names_spec
19362 # The coded name of the library, if different from the real name.
19363 soname_spec=$lt_soname_spec
19365 # Commands used to build and install an old-style archive.
19367 old_archive_cmds=$lt_old_archive_cmds_GCJ
19368 old_postinstall_cmds=$lt_old_postinstall_cmds
19369 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19371 # Create an old-style archive from a shared archive.
19372 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19374 # Create a temporary old-style archive to link instead of a shared archive.
19375 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19377 # Commands used to build and install a shared archive.
19378 archive_cmds=$lt_archive_cmds_GCJ
19379 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19380 postinstall_cmds=$lt_postinstall_cmds
19381 postuninstall_cmds=$lt_postuninstall_cmds
19383 # Commands used to build a loadable module (assumed same as above if empty)
19384 module_cmds=$lt_module_cmds_GCJ
19385 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19387 # Commands to strip libraries.
19388 old_striplib=$lt_old_striplib
19389 striplib=$lt_striplib
19391 # Dependencies to place before the objects being linked to create a
19393 predep_objects=$lt_predep_objects_GCJ
19395 # Dependencies to place after the objects being linked to create a
19397 postdep_objects=$lt_postdep_objects_GCJ
19399 # Dependencies to place before the objects being linked to create a
19401 predeps=$lt_predeps_GCJ
19403 # Dependencies to place after the objects being linked to create a
19405 postdeps=$lt_postdeps_GCJ
19407 # The directories searched by this compiler when creating a shared
19409 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19411 # The library search path used internally by the compiler when linking
19412 # a shared library.
19413 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19415 # Method to check whether dependent libraries are shared objects.
19416 deplibs_check_method=$lt_deplibs_check_method
19418 # Command to use when deplibs_check_method == file_magic.
19419 file_magic_cmd=$lt_file_magic_cmd
19421 # Flag that allows shared libraries with undefined symbols to be built.
19422 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19424 # Flag that forces no undefined symbols.
19425 no_undefined_flag=$lt_no_undefined_flag_GCJ
19427 # Commands used to finish a libtool library installation in a directory.
19428 finish_cmds=$lt_finish_cmds
19430 # Same as above, but a single script fragment to be evaled but not shown.
19431 finish_eval=$lt_finish_eval
19433 # Take the output of nm and produce a listing of raw symbols and C names.
19434 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19436 # Transform the output of nm in a proper C declaration
19437 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19439 # Transform the output of nm in a C name address pair
19440 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19442 # This is the shared library runtime path variable.
19443 runpath_var=$runpath_var
19445 # This is the shared library path variable.
19446 shlibpath_var=$shlibpath_var
19448 # Is shlibpath searched before the hard-coded library search path?
19449 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19451 # How to hardcode a shared library path into an executable.
19452 hardcode_action=$hardcode_action_GCJ
19454 # Whether we should hardcode library paths into libraries.
19455 hardcode_into_libs=$hardcode_into_libs
19457 # Flag to hardcode \$libdir into a binary during linking.
19458 # This must work even if \$libdir does not exist.
19459 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19461 # If ld is used when linking, flag to hardcode \$libdir into
19462 # a binary during linking. This must work even if \$libdir does
19464 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19466 # Whether we need a single -rpath flag with a separated argument.
19467 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19469 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19470 # resulting binary.
19471 hardcode_direct=$hardcode_direct_GCJ
19473 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19474 # resulting binary.
19475 hardcode_minus_L=$hardcode_minus_L_GCJ
19477 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19478 # the resulting binary.
19479 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19481 # Set to yes if building a shared library automatically hardcodes DIR into the library
19482 # and all subsequent libraries and executables linked against it.
19483 hardcode_automatic=$hardcode_automatic_GCJ
19485 # Variables whose values should be saved in libtool wrapper scripts and
19486 # restored at relink time.
19487 variables_saved_for_relink="$variables_saved_for_relink"
19489 # Whether libtool must link a program against all its dependency libraries.
19490 link_all_deplibs=$link_all_deplibs_GCJ
19492 # Compile-time system search path for libraries
19493 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19495 # Run-time system search path for libraries
19496 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19498 # Fix the shell variable \$srcfile for the compiler.
19499 fix_srcfile_path=$lt_fix_srcfile_path
19501 # Set to yes if exported symbols are required.
19502 always_export_symbols=$always_export_symbols_GCJ
19504 # The commands to list exported symbols.
19505 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19507 # The commands to extract the exported symbol list from a shared archive.
19508 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19510 # Symbols that should not be listed in the preloaded symbols.
19511 exclude_expsyms=$lt_exclude_expsyms_GCJ
19513 # Symbols that must always be exported.
19514 include_expsyms=$lt_include_expsyms_GCJ
19516 # ### END LIBTOOL TAG CONFIG: $tagname
19522 # If there is no Makefile yet, we rely on a make rule to execute
19523 # `config.status --recheck' to rerun these tests and create the
19524 # libtool script then.
19525 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19526 if test -f "$ltmain_in"; then
19527 test -f Makefile && make "$ltmain"
19533 ac_cpp='$CPP $CPPFLAGS'
19534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19548 # Source file extension for RC test sources.
19551 # Object file extension for compiled RC test sources.
19555 # Code to be used in simple compile tests
19556 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19558 # Code to be used in simple link tests
19559 lt_simple_link_test_code="$lt_simple_compile_test_code"
19561 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19563 # If no C compiler was specified, use CC.
19566 # If no C compiler flags were specified, use CFLAGS.
19567 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19569 # Allow CC to be a program name with arguments.
19573 # save warnings/boilerplate of simple test code
19574 ac_outfile=conftest.$ac_objext
19575 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19576 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19577 _lt_compiler_boilerplate=`cat conftest.err`
19580 ac_outfile=conftest.$ac_objext
19581 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19582 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19583 _lt_linker_boilerplate=`cat conftest.err`
19587 # Allow CC to be a program name with arguments.
19592 for cc_temp in $compiler""; do
19594 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19595 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19600 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19602 lt_cv_prog_compiler_c_o_RC=yes
19604 # The else clause should only fire when bootstrapping the
19605 # libtool distribution, otherwise you forgot to ship ltmain.sh
19606 # with your package, and you will get complaints that there are
19607 # no rules to generate ltmain.sh.
19608 if test -f "$ltmain"; then
19609 # See if we are running on zsh, and set the options which allow our commands through
19610 # without removal of \ escapes.
19611 if test -n "${ZSH_VERSION+set}" ; then
19612 setopt NO_GLOB_SUBST
19614 # Now quote all the things that may contain metacharacters while being
19615 # careful not to overquote the AC_SUBSTed values. We take copies of the
19616 # variables and quote the copies for generation of the libtool script.
19617 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19619 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19620 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19621 deplibs_check_method reload_flag reload_cmds need_locks \
19622 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19623 lt_cv_sys_global_symbol_to_c_name_address \
19624 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19625 old_postinstall_cmds old_postuninstall_cmds \
19629 lt_prog_compiler_wl_RC \
19630 lt_prog_compiler_pic_RC \
19631 lt_prog_compiler_static_RC \
19632 lt_prog_compiler_no_builtin_flag_RC \
19633 export_dynamic_flag_spec_RC \
19634 thread_safe_flag_spec_RC \
19635 whole_archive_flag_spec_RC \
19636 enable_shared_with_static_runtimes_RC \
19637 old_archive_cmds_RC \
19638 old_archive_from_new_cmds_RC \
19639 predep_objects_RC \
19640 postdep_objects_RC \
19643 compiler_lib_search_path_RC \
19644 compiler_lib_search_dirs_RC \
19646 archive_expsym_cmds_RC \
19647 postinstall_cmds_RC \
19648 postuninstall_cmds_RC \
19649 old_archive_from_expsyms_cmds_RC \
19650 allow_undefined_flag_RC \
19651 no_undefined_flag_RC \
19652 export_symbols_cmds_RC \
19653 hardcode_libdir_flag_spec_RC \
19654 hardcode_libdir_flag_spec_ld_RC \
19655 hardcode_libdir_separator_RC \
19656 hardcode_automatic_RC \
19658 module_expsym_cmds_RC \
19659 lt_cv_prog_compiler_c_o_RC \
19660 fix_srcfile_path_RC \
19661 exclude_expsyms_RC \
19662 include_expsyms_RC; do
19665 old_archive_cmds_RC | \
19666 old_archive_from_new_cmds_RC | \
19667 archive_cmds_RC | \
19668 archive_expsym_cmds_RC | \
19670 module_expsym_cmds_RC | \
19671 old_archive_from_expsyms_cmds_RC | \
19672 export_symbols_cmds_RC | \
19673 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19674 postinstall_cmds | postuninstall_cmds | \
19675 old_postinstall_cmds | old_postuninstall_cmds | \
19676 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19677 # Double-quote double-evaled strings.
19678 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19681 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19687 *'\$0 --fallback-echo"')
19688 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19694 cat <<__EOF__ >> "$cfgfile"
19695 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19697 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19699 # Shell to use when invoking shell scripts.
19702 # Whether or not to build shared libraries.
19703 build_libtool_libs=$enable_shared
19705 # Whether or not to build static libraries.
19706 build_old_libs=$enable_static
19708 # Whether or not to add -lc for building shared libraries.
19709 build_libtool_need_lc=$archive_cmds_need_lc_RC
19711 # Whether or not to disallow shared libs when runtime libs are static
19712 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19714 # Whether or not to optimize for fast installation.
19715 fast_install=$enable_fast_install
19718 host_alias=$host_alias
19722 # The build system.
19723 build_alias=$build_alias
19727 # An echo program that does not interpret backslashes.
19732 AR_FLAGS=$lt_AR_FLAGS
19737 # LTCC compiler flags.
19738 LTCFLAGS=$lt_LTCFLAGS
19740 # A language-specific compiler.
19743 # Is the compiler the GNU C compiler?
19749 # The linker used to build libraries.
19752 # Whether we need hard or soft links.
19755 # A BSD-compatible nm program.
19758 # A symbol stripping program
19761 # Used to examine libraries when file_magic_cmd begins "file"
19762 MAGIC_CMD=$MAGIC_CMD
19764 # Used on cygwin: DLL creation program.
19767 # Used on cygwin: object dumper.
19770 # Used on cygwin: assembler.
19773 # The name of the directory that contains temporary libtool files.
19776 # How to create reloadable object files.
19777 reload_flag=$lt_reload_flag
19778 reload_cmds=$lt_reload_cmds
19780 # How to pass a linker flag through the compiler.
19781 wl=$lt_lt_prog_compiler_wl_RC
19783 # Object file suffix (normally "o").
19784 objext="$ac_objext"
19786 # Old archive suffix (normally "a").
19789 # Shared library suffix (normally ".so").
19790 shrext_cmds='$shrext_cmds'
19792 # Executable file suffix (normally "").
19795 # Additional compiler flags for building library objects.
19796 pic_flag=$lt_lt_prog_compiler_pic_RC
19799 # What is the maximum length of a command?
19800 max_cmd_len=$lt_cv_sys_max_cmd_len
19802 # Does compiler simultaneously support -c and -o options?
19803 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19805 # Must we lock files when doing compilation?
19806 need_locks=$lt_need_locks
19808 # Do we need the lib prefix for modules?
19809 need_lib_prefix=$need_lib_prefix
19811 # Do we need a version for libraries?
19812 need_version=$need_version
19814 # Whether dlopen is supported.
19815 dlopen_support=$enable_dlopen
19817 # Whether dlopen of programs is supported.
19818 dlopen_self=$enable_dlopen_self
19820 # Whether dlopen of statically linked programs is supported.
19821 dlopen_self_static=$enable_dlopen_self_static
19823 # Compiler flag to prevent dynamic linking.
19824 link_static_flag=$lt_lt_prog_compiler_static_RC
19826 # Compiler flag to turn off builtin functions.
19827 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19829 # Compiler flag to allow reflexive dlopens.
19830 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19832 # Compiler flag to generate shared objects directly from archives.
19833 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19835 # Compiler flag to generate thread-safe objects.
19836 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19838 # Library versioning type.
19839 version_type=$version_type
19841 # Format of library name prefix.
19842 libname_spec=$lt_libname_spec
19844 # List of archive names. First name is the real one, the rest are links.
19845 # The last name is the one that the linker finds with -lNAME.
19846 library_names_spec=$lt_library_names_spec
19848 # The coded name of the library, if different from the real name.
19849 soname_spec=$lt_soname_spec
19851 # Commands used to build and install an old-style archive.
19853 old_archive_cmds=$lt_old_archive_cmds_RC
19854 old_postinstall_cmds=$lt_old_postinstall_cmds
19855 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19857 # Create an old-style archive from a shared archive.
19858 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19860 # Create a temporary old-style archive to link instead of a shared archive.
19861 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19863 # Commands used to build and install a shared archive.
19864 archive_cmds=$lt_archive_cmds_RC
19865 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19866 postinstall_cmds=$lt_postinstall_cmds
19867 postuninstall_cmds=$lt_postuninstall_cmds
19869 # Commands used to build a loadable module (assumed same as above if empty)
19870 module_cmds=$lt_module_cmds_RC
19871 module_expsym_cmds=$lt_module_expsym_cmds_RC
19873 # Commands to strip libraries.
19874 old_striplib=$lt_old_striplib
19875 striplib=$lt_striplib
19877 # Dependencies to place before the objects being linked to create a
19879 predep_objects=$lt_predep_objects_RC
19881 # Dependencies to place after the objects being linked to create a
19883 postdep_objects=$lt_postdep_objects_RC
19885 # Dependencies to place before the objects being linked to create a
19887 predeps=$lt_predeps_RC
19889 # Dependencies to place after the objects being linked to create a
19891 postdeps=$lt_postdeps_RC
19893 # The directories searched by this compiler when creating a shared
19895 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19897 # The library search path used internally by the compiler when linking
19898 # a shared library.
19899 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19901 # Method to check whether dependent libraries are shared objects.
19902 deplibs_check_method=$lt_deplibs_check_method
19904 # Command to use when deplibs_check_method == file_magic.
19905 file_magic_cmd=$lt_file_magic_cmd
19907 # Flag that allows shared libraries with undefined symbols to be built.
19908 allow_undefined_flag=$lt_allow_undefined_flag_RC
19910 # Flag that forces no undefined symbols.
19911 no_undefined_flag=$lt_no_undefined_flag_RC
19913 # Commands used to finish a libtool library installation in a directory.
19914 finish_cmds=$lt_finish_cmds
19916 # Same as above, but a single script fragment to be evaled but not shown.
19917 finish_eval=$lt_finish_eval
19919 # Take the output of nm and produce a listing of raw symbols and C names.
19920 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19922 # Transform the output of nm in a proper C declaration
19923 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19925 # Transform the output of nm in a C name address pair
19926 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19928 # This is the shared library runtime path variable.
19929 runpath_var=$runpath_var
19931 # This is the shared library path variable.
19932 shlibpath_var=$shlibpath_var
19934 # Is shlibpath searched before the hard-coded library search path?
19935 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19937 # How to hardcode a shared library path into an executable.
19938 hardcode_action=$hardcode_action_RC
19940 # Whether we should hardcode library paths into libraries.
19941 hardcode_into_libs=$hardcode_into_libs
19943 # Flag to hardcode \$libdir into a binary during linking.
19944 # This must work even if \$libdir does not exist.
19945 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19947 # If ld is used when linking, flag to hardcode \$libdir into
19948 # a binary during linking. This must work even if \$libdir does
19950 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19952 # Whether we need a single -rpath flag with a separated argument.
19953 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19955 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19956 # resulting binary.
19957 hardcode_direct=$hardcode_direct_RC
19959 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19960 # resulting binary.
19961 hardcode_minus_L=$hardcode_minus_L_RC
19963 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19964 # the resulting binary.
19965 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19967 # Set to yes if building a shared library automatically hardcodes DIR into the library
19968 # and all subsequent libraries and executables linked against it.
19969 hardcode_automatic=$hardcode_automatic_RC
19971 # Variables whose values should be saved in libtool wrapper scripts and
19972 # restored at relink time.
19973 variables_saved_for_relink="$variables_saved_for_relink"
19975 # Whether libtool must link a program against all its dependency libraries.
19976 link_all_deplibs=$link_all_deplibs_RC
19978 # Compile-time system search path for libraries
19979 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19981 # Run-time system search path for libraries
19982 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19984 # Fix the shell variable \$srcfile for the compiler.
19985 fix_srcfile_path=$lt_fix_srcfile_path
19987 # Set to yes if exported symbols are required.
19988 always_export_symbols=$always_export_symbols_RC
19990 # The commands to list exported symbols.
19991 export_symbols_cmds=$lt_export_symbols_cmds_RC
19993 # The commands to extract the exported symbol list from a shared archive.
19994 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19996 # Symbols that should not be listed in the preloaded symbols.
19997 exclude_expsyms=$lt_exclude_expsyms_RC
19999 # Symbols that must always be exported.
20000 include_expsyms=$lt_include_expsyms_RC
20002 # ### END LIBTOOL TAG CONFIG: $tagname
20008 # If there is no Makefile yet, we rely on a make rule to execute
20009 # `config.status --recheck' to rerun these tests and create the
20010 # libtool script then.
20011 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20012 if test -f "$ltmain_in"; then
20013 test -f Makefile && make "$ltmain"
20019 ac_cpp='$CPP $CPPFLAGS'
20020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20029 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20030 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20031 { (exit 1); exit 1; }; }
20035 # Append the new tag name to the list of available tags.
20036 if test -n "$tagname" ; then
20037 available_tags="$available_tags $tagname"
20043 # Now substitute the updated list of available tags.
20044 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20045 mv "${ofile}T" "$ofile"
20049 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20050 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20051 { (exit 1); exit 1; }; }
20057 # This can be used to rebuild libtool when needed
20058 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20060 # Always use our own libtool.
20061 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20063 # Prevent multiple expansion
20089 ## SVN version check
20091 if test -e .svn ; then
20092 VERSION="$VERSION-r`svnversion`"
20093 PACKAGE_VERSION="$PACKAGE_VERSION-r`svnversion`"
20094 PACKAGE_STRING="PACKAGE_STRING r`svnversion`"
20101 { echo "$as_me:$LINENO: result: " >&5
20102 echo "${ECHO_T}" >&6; }
20103 { echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
20104 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6; }
20107 ac_cpp='$CPP $CPPFLAGS'
20108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20111 if test -n "$ac_tool_prefix"; then
20112 for ac_prog in xlC gcc cc
20114 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20115 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20118 if test "${ac_cv_prog_CC+set}" = set; then
20119 echo $ECHO_N "(cached) $ECHO_C" >&6
20121 if test -n "$CC"; then
20122 ac_cv_prog_CC="$CC" # Let the user override the test.
20124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20125 for as_dir in $PATH
20128 test -z "$as_dir" && as_dir=.
20129 for ac_exec_ext in '' $ac_executable_extensions; do
20130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20131 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20142 if test -n "$CC"; then
20143 { echo "$as_me:$LINENO: result: $CC" >&5
20144 echo "${ECHO_T}$CC" >&6; }
20146 { echo "$as_me:$LINENO: result: no" >&5
20147 echo "${ECHO_T}no" >&6; }
20151 test -n "$CC" && break
20154 if test -z "$CC"; then
20156 for ac_prog in xlC gcc cc
20158 # Extract the first word of "$ac_prog", so it can be a program name with args.
20159 set dummy $ac_prog; ac_word=$2
20160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20162 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20163 echo $ECHO_N "(cached) $ECHO_C" >&6
20165 if test -n "$ac_ct_CC"; then
20166 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20169 for as_dir in $PATH
20172 test -z "$as_dir" && as_dir=.
20173 for ac_exec_ext in '' $ac_executable_extensions; do
20174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20175 ac_cv_prog_ac_ct_CC="$ac_prog"
20176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20185 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20186 if test -n "$ac_ct_CC"; then
20187 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20188 echo "${ECHO_T}$ac_ct_CC" >&6; }
20190 { echo "$as_me:$LINENO: result: no" >&5
20191 echo "${ECHO_T}no" >&6; }
20195 test -n "$ac_ct_CC" && break
20198 if test "x$ac_ct_CC" = x; then
20201 case $cross_compiling:$ac_tool_warned in
20203 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20204 whose name does not start with the host triplet. If you think this
20205 configuration is useful to you, please write to autoconf@gnu.org." >&5
20206 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20207 whose name does not start with the host triplet. If you think this
20208 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20209 ac_tool_warned=yes ;;
20216 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20217 See \`config.log' for more details." >&5
20218 echo "$as_me: error: no acceptable C compiler found in \$PATH
20219 See \`config.log' for more details." >&2;}
20220 { (exit 1); exit 1; }; }
20222 # Provide some information about the compiler.
20223 echo "$as_me:$LINENO: checking for C compiler version" >&5
20224 ac_compiler=`set X $ac_compile; echo $2`
20225 { (ac_try="$ac_compiler --version >&5"
20226 case "(($ac_try" in
20227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20228 *) ac_try_echo=$ac_try;;
20230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20231 (eval "$ac_compiler --version >&5") 2>&5
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); }
20235 { (ac_try="$ac_compiler -v >&5"
20236 case "(($ac_try" in
20237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20238 *) ac_try_echo=$ac_try;;
20240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20241 (eval "$ac_compiler -v >&5") 2>&5
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); }
20245 { (ac_try="$ac_compiler -V >&5"
20246 case "(($ac_try" in
20247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20248 *) ac_try_echo=$ac_try;;
20250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20251 (eval "$ac_compiler -V >&5") 2>&5
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); }
20256 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20257 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
20258 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20259 echo $ECHO_N "(cached) $ECHO_C" >&6
20261 cat >conftest.$ac_ext <<_ACEOF
20264 cat confdefs.h >>conftest.$ac_ext
20265 cat >>conftest.$ac_ext <<_ACEOF
20266 /* end confdefs.h. */
20279 rm -f conftest.$ac_objext
20280 if { (ac_try="$ac_compile"
20281 case "(($ac_try" in
20282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20283 *) ac_try_echo=$ac_try;;
20285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20286 (eval "$ac_compile") 2>conftest.er1
20288 grep -v '^ *+' conftest.er1 >conftest.err
20290 cat conftest.err >&5
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); } && {
20293 test -z "$ac_c_werror_flag" ||
20294 test ! -s conftest.err
20295 } && test -s conftest.$ac_objext; then
20296 ac_compiler_gnu=yes
20298 echo "$as_me: failed program was:" >&5
20299 sed 's/^/| /' conftest.$ac_ext >&5
20304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20305 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20308 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20309 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20310 GCC=`test $ac_compiler_gnu = yes && echo yes`
20311 ac_test_CFLAGS=${CFLAGS+set}
20312 ac_save_CFLAGS=$CFLAGS
20313 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20314 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20315 if test "${ac_cv_prog_cc_g+set}" = set; then
20316 echo $ECHO_N "(cached) $ECHO_C" >&6
20318 ac_save_c_werror_flag=$ac_c_werror_flag
20319 ac_c_werror_flag=yes
20322 cat >conftest.$ac_ext <<_ACEOF
20325 cat confdefs.h >>conftest.$ac_ext
20326 cat >>conftest.$ac_ext <<_ACEOF
20327 /* end confdefs.h. */
20337 rm -f conftest.$ac_objext
20338 if { (ac_try="$ac_compile"
20339 case "(($ac_try" in
20340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341 *) ac_try_echo=$ac_try;;
20343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344 (eval "$ac_compile") 2>conftest.er1
20346 grep -v '^ *+' conftest.er1 >conftest.err
20348 cat conftest.err >&5
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); } && {
20351 test -z "$ac_c_werror_flag" ||
20352 test ! -s conftest.err
20353 } && test -s conftest.$ac_objext; then
20354 ac_cv_prog_cc_g=yes
20356 echo "$as_me: failed program was:" >&5
20357 sed 's/^/| /' conftest.$ac_ext >&5
20360 cat >conftest.$ac_ext <<_ACEOF
20363 cat confdefs.h >>conftest.$ac_ext
20364 cat >>conftest.$ac_ext <<_ACEOF
20365 /* end confdefs.h. */
20375 rm -f conftest.$ac_objext
20376 if { (ac_try="$ac_compile"
20377 case "(($ac_try" in
20378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20379 *) ac_try_echo=$ac_try;;
20381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20382 (eval "$ac_compile") 2>conftest.er1
20384 grep -v '^ *+' conftest.er1 >conftest.err
20386 cat conftest.err >&5
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); } && {
20389 test -z "$ac_c_werror_flag" ||
20390 test ! -s conftest.err
20391 } && test -s conftest.$ac_objext; then
20394 echo "$as_me: failed program was:" >&5
20395 sed 's/^/| /' conftest.$ac_ext >&5
20397 ac_c_werror_flag=$ac_save_c_werror_flag
20399 cat >conftest.$ac_ext <<_ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h. */
20414 rm -f conftest.$ac_objext
20415 if { (ac_try="$ac_compile"
20416 case "(($ac_try" in
20417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20418 *) ac_try_echo=$ac_try;;
20420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20421 (eval "$ac_compile") 2>conftest.er1
20423 grep -v '^ *+' conftest.er1 >conftest.err
20425 cat conftest.err >&5
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); } && {
20428 test -z "$ac_c_werror_flag" ||
20429 test ! -s conftest.err
20430 } && test -s conftest.$ac_objext; then
20431 ac_cv_prog_cc_g=yes
20433 echo "$as_me: failed program was:" >&5
20434 sed 's/^/| /' conftest.$ac_ext >&5
20439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20446 ac_c_werror_flag=$ac_save_c_werror_flag
20448 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20449 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20450 if test "$ac_test_CFLAGS" = set; then
20451 CFLAGS=$ac_save_CFLAGS
20452 elif test $ac_cv_prog_cc_g = yes; then
20453 if test "$GCC" = yes; then
20459 if test "$GCC" = yes; then
20465 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20466 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20467 if test "${ac_cv_prog_cc_c89+set}" = set; then
20468 echo $ECHO_N "(cached) $ECHO_C" >&6
20470 ac_cv_prog_cc_c89=no
20472 cat >conftest.$ac_ext <<_ACEOF
20475 cat confdefs.h >>conftest.$ac_ext
20476 cat >>conftest.$ac_ext <<_ACEOF
20477 /* end confdefs.h. */
20478 #include <stdarg.h>
20480 #include <sys/types.h>
20481 #include <sys/stat.h>
20482 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20483 struct buf { int x; };
20484 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20485 static char *e (p, i)
20491 static char *f (char * (*g) (char **, int), char **p, ...)
20496 s = g (p, va_arg (v,int));
20501 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20502 function prototypes and stuff, but not '\xHH' hex character constants.
20503 These don't provoke an error unfortunately, instead are silently treated
20504 as 'x'. The following induces an error, until -std is added to get
20505 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20506 array size at least. It's necessary to write '\x00'==0 to get something
20507 that's true only with -std. */
20508 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20510 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20511 inside strings and character constants. */
20513 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20515 int test (int i, double x);
20516 struct s1 {int (*f) (int a);};
20517 struct s2 {int (*f) (double a);};
20518 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20524 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20529 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20530 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20532 CC="$ac_save_CC $ac_arg"
20533 rm -f conftest.$ac_objext
20534 if { (ac_try="$ac_compile"
20535 case "(($ac_try" in
20536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537 *) ac_try_echo=$ac_try;;
20539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20540 (eval "$ac_compile") 2>conftest.er1
20542 grep -v '^ *+' conftest.er1 >conftest.err
20544 cat conftest.err >&5
20545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546 (exit $ac_status); } && {
20547 test -z "$ac_c_werror_flag" ||
20548 test ! -s conftest.err
20549 } && test -s conftest.$ac_objext; then
20550 ac_cv_prog_cc_c89=$ac_arg
20552 echo "$as_me: failed program was:" >&5
20553 sed 's/^/| /' conftest.$ac_ext >&5
20558 rm -f core conftest.err conftest.$ac_objext
20559 test "x$ac_cv_prog_cc_c89" != "xno" && break
20561 rm -f conftest.$ac_ext
20566 case "x$ac_cv_prog_cc_c89" in
20568 { echo "$as_me:$LINENO: result: none needed" >&5
20569 echo "${ECHO_T}none needed" >&6; } ;;
20571 { echo "$as_me:$LINENO: result: unsupported" >&5
20572 echo "${ECHO_T}unsupported" >&6; } ;;
20574 CC="$CC $ac_cv_prog_cc_c89"
20575 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20576 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20581 ac_cpp='$CPP $CPPFLAGS'
20582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20586 depcc="$CC" am_compiler_list=
20588 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20589 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20590 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20591 echo $ECHO_N "(cached) $ECHO_C" >&6
20593 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20594 # We make a subdir and do the tests there. Otherwise we can end up
20595 # making bogus files that we don't know about and never remove. For
20596 # instance it was reported that on HP-UX the gcc test will end up
20597 # making a dummy file named `D' -- because `-MD' means `put the output
20600 # Copy depcomp to subdir because otherwise we won't find it if we're
20601 # using a relative directory.
20602 cp "$am_depcomp" conftest.dir
20604 # We will build objects and dependencies in a subdirectory because
20605 # it helps to detect inapplicable dependency modes. For instance
20606 # both Tru64's cc and ICC support -MD to output dependencies as a
20607 # side effect of compilation, but ICC will put the dependencies in
20608 # the current directory while Tru64 will put them in the object
20612 am_cv_CC_dependencies_compiler_type=none
20613 if test "$am_compiler_list" = ""; then
20614 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20616 for depmode in $am_compiler_list; do
20617 # Setup a source with many dependencies, because some compilers
20618 # like to wrap large dependency lists on column 80 (with \), and
20619 # we should not choose a depcomp mode which is confused by this.
20621 # We need to recreate these files for each test, as the compiler may
20622 # overwrite some of them when testing with obscure command lines.
20623 # This happens at least with the AIX C compiler.
20625 for i in 1 2 3 4 5 6; do
20626 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20627 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20628 # Solaris 8's {/usr,}/bin/sh.
20629 touch sub/conftst$i.h
20631 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20635 # after this tag, mechanisms are not by side-effect, so they'll
20636 # only be used when explicitly requested
20637 if test "x$enable_dependency_tracking" = xyes; then
20645 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20646 # mode. It turns out that the SunPro C++ compiler does not properly
20647 # handle `-M -o', and we need to detect this.
20648 if depmode=$depmode \
20649 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20650 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20651 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20652 >/dev/null 2>conftest.err &&
20653 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20654 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20655 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20656 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20657 # icc doesn't choke on unknown options, it will just issue warnings
20658 # or remarks (even with -Werror). So we grep stderr for any message
20659 # that says an option was ignored or not supported.
20660 # When given -MP, icc 7.0 and 7.1 complain thusly:
20661 # icc: Command line warning: ignoring option '-M'; no argument required
20662 # The diagnosis changed in icc 8.0:
20663 # icc: Command line remark: option '-MP' not supported
20664 if (grep 'ignoring option' conftest.err ||
20665 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20666 am_cv_CC_dependencies_compiler_type=$depmode
20673 rm -rf conftest.dir
20675 am_cv_CC_dependencies_compiler_type=none
20679 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20680 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20681 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20684 test "x$enable_dependency_tracking" != xno \
20685 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20686 am__fastdepCC_TRUE=
20687 am__fastdepCC_FALSE='#'
20689 am__fastdepCC_TRUE='#'
20690 am__fastdepCC_FALSE=
20694 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20695 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
20698 echo timestamp > conftest.file
20699 # Do `set' in a subshell so we don't clobber the current shell's
20700 # arguments. Must try -L first in case configure is actually a
20701 # symlink; some systems play weird games with the mod time of symlinks
20702 # (eg FreeBSD returns the mod time of the symlink's containing
20705 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
20706 if test "$*" = "X"; then
20708 set X `ls -t $srcdir/configure conftest.file`
20710 rm -f conftest.file
20711 if test "$*" != "X $srcdir/configure conftest.file" \
20712 && test "$*" != "X conftest.file $srcdir/configure"; then
20714 # If neither matched, then we have a broken ls. This can happen
20715 # if, for instance, CONFIG_SHELL is bash and it inherits a
20716 # broken ls alias from the environment. This has actually
20717 # happened. Such a system could not be considered "sane".
20718 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
20719 alias in your environment" >&5
20720 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
20721 alias in your environment" >&2;}
20722 { (exit 1); exit 1; }; }
20725 test "$2" = conftest.file
20731 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20732 Check your system clock" >&5
20733 echo "$as_me: error: newly created file is older than distributed files!
20734 Check your system clock" >&2;}
20735 { (exit 1); exit 1; }; }
20737 { echo "$as_me:$LINENO: result: yes" >&5
20738 echo "${ECHO_T}yes" >&6; }
20739 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20740 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20741 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20742 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20743 echo $ECHO_N "(cached) $ECHO_C" >&6
20745 cat >conftest.make <<\_ACEOF
20748 @echo '@@@%%%=$(MAKE)=@@@%%%'
20750 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20751 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20752 *@@@%%%=?*=@@@%%%*)
20753 eval ac_cv_prog_make_${ac_make}_set=yes;;
20755 eval ac_cv_prog_make_${ac_make}_set=no;;
20757 rm -f conftest.make
20759 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20760 { echo "$as_me:$LINENO: result: yes" >&5
20761 echo "${ECHO_T}yes" >&6; }
20764 { echo "$as_me:$LINENO: result: no" >&5
20765 echo "${ECHO_T}no" >&6; }
20766 SET_MAKE="MAKE=${MAKE-make}"
20770 { echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
20771 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6; }
20772 if test "$cross_compiling" = yes; then
20773 { echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
20774 echo "${ECHO_T}assuming the worse in cross-compilation" >&6; }
20776 cat >conftest.$ac_ext <<_ACEOF
20779 cat confdefs.h >>conftest.$ac_ext
20780 cat >>conftest.$ac_ext <<_ACEOF
20781 /* end confdefs.h. */
20791 rm -f conftest$ac_exeext
20792 if { (ac_try="$ac_link"
20793 case "(($ac_try" in
20794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20795 *) ac_try_echo=$ac_try;;
20797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20798 (eval "$ac_link") 2>&5
20800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20802 { (case "(($ac_try" in
20803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20804 *) ac_try_echo=$ac_try;;
20806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20807 (eval "$ac_try") 2>&5
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); }; }; then
20812 cat >>confdefs.h <<\_ACEOF
20813 #define PRINTF_NULL_WORKING 1
20816 { echo "$as_me:$LINENO: result: yes" >&5
20817 echo "${ECHO_T}yes" >&6; }
20819 echo "$as_me: program exited with status $ac_status" >&5
20820 echo "$as_me: failed program was:" >&5
20821 sed 's/^/| /' conftest.$ac_ext >&5
20823 ( exit $ac_status )
20824 { echo "$as_me:$LINENO: result: no" >&5
20825 echo "${ECHO_T}no" >&6; }
20827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20833 { echo "$as_me:$LINENO: checking for va_copy() function" >&5
20834 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6; }
20835 if test "${ac_cv_va_copy+set}" = set; then
20836 echo $ECHO_N "(cached) $ECHO_C" >&6
20843 if test ".$ac_cv_va_copy" = .; then
20844 if test "$cross_compiling" = yes; then
20845 ac_cv_va_copy="C99"
20847 cat >conftest.$ac_ext <<_ACEOF
20850 cat confdefs.h >>conftest.$ac_ext
20851 cat >>conftest.$ac_ext <<_ACEOF
20852 /* end confdefs.h. */
20854 #include <stdlib.h>
20855 #include <stdarg.h>
20856 #include <string.h>
20857 #define DO_VA_COPY(d, s) va_copy((d), (s))
20858 void test(char *str, ...)
20863 DO_VA_COPY(ap2, ap);
20864 for (i = 1; i <= 9; i++) {
20865 int k = (int)va_arg(ap, int);
20869 DO_VA_COPY(ap, ap2);
20870 for (i = 1; i <= 9; i++) {
20871 int k = (int)va_arg(ap, int);
20877 int main(int argc, char *argv[])
20879 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20884 rm -f conftest$ac_exeext
20885 if { (ac_try="$ac_link"
20886 case "(($ac_try" in
20887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888 *) ac_try_echo=$ac_try;;
20890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20891 (eval "$ac_link") 2>&5
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20895 { (case "(($ac_try" in
20896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897 *) ac_try_echo=$ac_try;;
20899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20900 (eval "$ac_try") 2>&5
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); }; }; then
20904 ac_cv_va_copy="C99"
20906 echo "$as_me: program exited with status $ac_status" >&5
20907 echo "$as_me: failed program was:" >&5
20908 sed 's/^/| /' conftest.$ac_ext >&5
20911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20920 if test ".$ac_cv_va_copy" = .; then
20921 if test "$cross_compiling" = yes; then
20922 ac_cv_va_copy="GCM"
20924 cat >conftest.$ac_ext <<_ACEOF
20927 cat confdefs.h >>conftest.$ac_ext
20928 cat >>conftest.$ac_ext <<_ACEOF
20929 /* end confdefs.h. */
20931 #include <stdlib.h>
20932 #include <stdarg.h>
20933 #include <string.h>
20934 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
20935 void test(char *str, ...)
20940 DO_VA_COPY(ap2, ap);
20941 for (i = 1; i <= 9; i++) {
20942 int k = (int)va_arg(ap, int);
20946 DO_VA_COPY(ap, ap2);
20947 for (i = 1; i <= 9; i++) {
20948 int k = (int)va_arg(ap, int);
20954 int main(int argc, char *argv[])
20956 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20961 rm -f conftest$ac_exeext
20962 if { (ac_try="$ac_link"
20963 case "(($ac_try" in
20964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20965 *) ac_try_echo=$ac_try;;
20967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20968 (eval "$ac_link") 2>&5
20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20972 { (case "(($ac_try" in
20973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20974 *) ac_try_echo=$ac_try;;
20976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20977 (eval "$ac_try") 2>&5
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); }; }; then
20981 ac_cv_va_copy="GCM"
20983 echo "$as_me: program exited with status $ac_status" >&5
20984 echo "$as_me: failed program was:" >&5
20985 sed 's/^/| /' conftest.$ac_ext >&5
20988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20997 if test ".$ac_cv_va_copy" = .; then
20998 if test "$cross_compiling" = yes; then
20999 ac_cv_va_copy="GCH"
21001 cat >conftest.$ac_ext <<_ACEOF
21004 cat confdefs.h >>conftest.$ac_ext
21005 cat >>conftest.$ac_ext <<_ACEOF
21006 /* end confdefs.h. */
21008 #include <stdlib.h>
21009 #include <stdarg.h>
21010 #include <string.h>
21011 #define DO_VA_COPY(d, s) __va_copy((d), (s))
21012 void test(char *str, ...)
21017 DO_VA_COPY(ap2, ap);
21018 for (i = 1; i <= 9; i++) {
21019 int k = (int)va_arg(ap, int);
21023 DO_VA_COPY(ap, ap2);
21024 for (i = 1; i <= 9; i++) {
21025 int k = (int)va_arg(ap, int);
21031 int main(int argc, char *argv[])
21033 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
21038 rm -f conftest$ac_exeext
21039 if { (ac_try="$ac_link"
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_link") 2>&5
21047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21049 { (case "(($ac_try" in
21050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051 *) ac_try_echo=$ac_try;;
21053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054 (eval "$ac_try") 2>&5
21056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057 (exit $ac_status); }; }; then
21058 ac_cv_va_copy="GCH"
21060 echo "$as_me: program exited with status $ac_status" >&5
21061 echo "$as_me: failed program was:" >&5
21062 sed 's/^/| /' conftest.$ac_ext >&5
21065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21074 if test ".$ac_cv_va_copy" = .; then
21075 if test "$cross_compiling" = yes; then
21076 ac_cv_va_copy="GCB"
21078 cat >conftest.$ac_ext <<_ACEOF
21081 cat confdefs.h >>conftest.$ac_ext
21082 cat >>conftest.$ac_ext <<_ACEOF
21083 /* end confdefs.h. */
21085 #include <stdlib.h>
21086 #include <stdarg.h>
21087 #include <string.h>
21088 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
21089 void test(char *str, ...)
21094 DO_VA_COPY(ap2, ap);
21095 for (i = 1; i <= 9; i++) {
21096 int k = (int)va_arg(ap, int);
21100 DO_VA_COPY(ap, ap2);
21101 for (i = 1; i <= 9; i++) {
21102 int k = (int)va_arg(ap, int);
21108 int main(int argc, char *argv[])
21110 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
21115 rm -f conftest$ac_exeext
21116 if { (ac_try="$ac_link"
21117 case "(($ac_try" in
21118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21119 *) ac_try_echo=$ac_try;;
21121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21122 (eval "$ac_link") 2>&5
21124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21126 { (case "(($ac_try" in
21127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128 *) ac_try_echo=$ac_try;;
21130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21131 (eval "$ac_try") 2>&5
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); }; }; then
21135 ac_cv_va_copy="GCB"
21137 echo "$as_me: program exited with status $ac_status" >&5
21138 echo "$as_me: failed program was:" >&5
21139 sed 's/^/| /' conftest.$ac_ext >&5
21142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21151 if test ".$ac_cv_va_copy" = .; then
21152 if test "$cross_compiling" = yes; then
21153 ac_cv_va_copy="ASS"
21155 cat >conftest.$ac_ext <<_ACEOF
21158 cat confdefs.h >>conftest.$ac_ext
21159 cat >>conftest.$ac_ext <<_ACEOF
21160 /* end confdefs.h. */
21162 #include <stdlib.h>
21163 #include <stdarg.h>
21164 #include <string.h>
21165 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
21166 void test(char *str, ...)
21171 DO_VA_COPY(ap2, ap);
21172 for (i = 1; i <= 9; i++) {
21173 int k = (int)va_arg(ap, int);
21177 DO_VA_COPY(ap, ap2);
21178 for (i = 1; i <= 9; i++) {
21179 int k = (int)va_arg(ap, int);
21185 int main(int argc, char *argv[])
21187 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
21192 rm -f conftest$ac_exeext
21193 if { (ac_try="$ac_link"
21194 case "(($ac_try" in
21195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21196 *) ac_try_echo=$ac_try;;
21198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21199 (eval "$ac_link") 2>&5
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21203 { (case "(($ac_try" in
21204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21205 *) ac_try_echo=$ac_try;;
21207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21208 (eval "$ac_try") 2>&5
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); }; }; then
21212 ac_cv_va_copy="ASS"
21214 echo "$as_me: program exited with status $ac_status" >&5
21215 echo "$as_me: failed program was:" >&5
21216 sed 's/^/| /' conftest.$ac_ext >&5
21219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21228 if test ".$ac_cv_va_copy" = .; then
21229 if test "$cross_compiling" = yes; then
21230 ac_cv_va_copy="ASP"
21232 cat >conftest.$ac_ext <<_ACEOF
21235 cat confdefs.h >>conftest.$ac_ext
21236 cat >>conftest.$ac_ext <<_ACEOF
21237 /* end confdefs.h. */
21239 #include <stdlib.h>
21240 #include <stdarg.h>
21241 #include <string.h>
21242 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
21243 void test(char *str, ...)
21248 DO_VA_COPY(ap2, ap);
21249 for (i = 1; i <= 9; i++) {
21250 int k = (int)va_arg(ap, int);
21254 DO_VA_COPY(ap, ap2);
21255 for (i = 1; i <= 9; i++) {
21256 int k = (int)va_arg(ap, int);
21262 int main(int argc, char *argv[])
21264 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
21269 rm -f conftest$ac_exeext
21270 if { (ac_try="$ac_link"
21271 case "(($ac_try" in
21272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273 *) ac_try_echo=$ac_try;;
21275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21276 (eval "$ac_link") 2>&5
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21280 { (case "(($ac_try" in
21281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21282 *) ac_try_echo=$ac_try;;
21284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21285 (eval "$ac_try") 2>&5
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); }; }; then
21289 ac_cv_va_copy="ASP"
21291 echo "$as_me: program exited with status $ac_status" >&5
21292 echo "$as_me: failed program was:" >&5
21293 sed 's/^/| /' conftest.$ac_ext >&5
21296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21305 if test ".$ac_cv_va_copy" = .; then
21306 if test "$cross_compiling" = yes; then
21307 ac_cv_va_copy="CPS"
21309 cat >conftest.$ac_ext <<_ACEOF
21312 cat confdefs.h >>conftest.$ac_ext
21313 cat >>conftest.$ac_ext <<_ACEOF
21314 /* end confdefs.h. */
21316 #include <stdlib.h>
21317 #include <stdarg.h>
21318 #include <string.h>
21319 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
21320 void test(char *str, ...)
21325 DO_VA_COPY(ap2, ap);
21326 for (i = 1; i <= 9; i++) {
21327 int k = (int)va_arg(ap, int);
21331 DO_VA_COPY(ap, ap2);
21332 for (i = 1; i <= 9; i++) {
21333 int k = (int)va_arg(ap, int);
21339 int main(int argc, char *argv[])
21341 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
21346 rm -f conftest$ac_exeext
21347 if { (ac_try="$ac_link"
21348 case "(($ac_try" in
21349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21350 *) ac_try_echo=$ac_try;;
21352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21353 (eval "$ac_link") 2>&5
21355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21357 { (case "(($ac_try" in
21358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21359 *) ac_try_echo=$ac_try;;
21361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21362 (eval "$ac_try") 2>&5
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); }; }; then
21366 ac_cv_va_copy="CPS"
21368 echo "$as_me: program exited with status $ac_status" >&5
21369 echo "$as_me: failed program was:" >&5
21370 sed 's/^/| /' conftest.$ac_ext >&5
21373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21382 if test ".$ac_cv_va_copy" = .; then
21383 if test "$cross_compiling" = yes; then
21384 ac_cv_va_copy="CPP"
21386 cat >conftest.$ac_ext <<_ACEOF
21389 cat confdefs.h >>conftest.$ac_ext
21390 cat >>conftest.$ac_ext <<_ACEOF
21391 /* end confdefs.h. */
21393 #include <stdlib.h>
21394 #include <stdarg.h>
21395 #include <string.h>
21396 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
21397 void test(char *str, ...)
21402 DO_VA_COPY(ap2, ap);
21403 for (i = 1; i <= 9; i++) {
21404 int k = (int)va_arg(ap, int);
21408 DO_VA_COPY(ap, ap2);
21409 for (i = 1; i <= 9; i++) {
21410 int k = (int)va_arg(ap, int);
21416 int main(int argc, char *argv[])
21418 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
21423 rm -f conftest$ac_exeext
21424 if { (ac_try="$ac_link"
21425 case "(($ac_try" in
21426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21427 *) ac_try_echo=$ac_try;;
21429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21430 (eval "$ac_link") 2>&5
21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21434 { (case "(($ac_try" in
21435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436 *) ac_try_echo=$ac_try;;
21438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21439 (eval "$ac_try") 2>&5
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); }; }; then
21443 ac_cv_va_copy="CPP"
21445 echo "$as_me: program exited with status $ac_status" >&5
21446 echo "$as_me: failed program was:" >&5
21447 sed 's/^/| /' conftest.$ac_ext >&5
21450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21456 if test ".$ac_cv_va_copy" = .; then
21457 { { echo "$as_me:$LINENO: error: no working implementation found" >&5
21458 echo "$as_me: error: no working implementation found" >&2;}
21459 { (exit 1); exit 1; }; }
21464 if test ".$ac_cv_va_copy" = ".C99"; then
21466 cat >>confdefs.h <<\_ACEOF
21467 #define HAVE_VA_COPY 1
21472 cat >>confdefs.h <<_ACEOF
21473 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
21478 if test ".$ac_cv_va_copy" = ".C99"; then
21479 { echo "$as_me:$LINENO: result: yes" >&5
21480 echo "${ECHO_T}yes" >&6; }
21482 { echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
21483 echo "${ECHO_T}no (using fallback implementation)" >&6; }
21487 # Checks for header files.
21488 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21489 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21490 if test "${ac_cv_header_stdc+set}" = set; then
21491 echo $ECHO_N "(cached) $ECHO_C" >&6
21493 cat >conftest.$ac_ext <<_ACEOF
21496 cat confdefs.h >>conftest.$ac_ext
21497 cat >>conftest.$ac_ext <<_ACEOF
21498 /* end confdefs.h. */
21499 #include <stdlib.h>
21500 #include <stdarg.h>
21501 #include <string.h>
21512 rm -f conftest.$ac_objext
21513 if { (ac_try="$ac_compile"
21514 case "(($ac_try" in
21515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21516 *) ac_try_echo=$ac_try;;
21518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21519 (eval "$ac_compile") 2>conftest.er1
21521 grep -v '^ *+' conftest.er1 >conftest.err
21523 cat conftest.err >&5
21524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525 (exit $ac_status); } && {
21526 test -z "$ac_c_werror_flag" ||
21527 test ! -s conftest.err
21528 } && test -s conftest.$ac_objext; then
21529 ac_cv_header_stdc=yes
21531 echo "$as_me: failed program was:" >&5
21532 sed 's/^/| /' conftest.$ac_ext >&5
21534 ac_cv_header_stdc=no
21537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21539 if test $ac_cv_header_stdc = yes; then
21540 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21541 cat >conftest.$ac_ext <<_ACEOF
21544 cat confdefs.h >>conftest.$ac_ext
21545 cat >>conftest.$ac_ext <<_ACEOF
21546 /* end confdefs.h. */
21547 #include <string.h>
21550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21551 $EGREP "memchr" >/dev/null 2>&1; then
21554 ac_cv_header_stdc=no
21560 if test $ac_cv_header_stdc = yes; then
21561 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21562 cat >conftest.$ac_ext <<_ACEOF
21565 cat confdefs.h >>conftest.$ac_ext
21566 cat >>conftest.$ac_ext <<_ACEOF
21567 /* end confdefs.h. */
21568 #include <stdlib.h>
21571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21572 $EGREP "free" >/dev/null 2>&1; then
21575 ac_cv_header_stdc=no
21581 if test $ac_cv_header_stdc = yes; then
21582 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21583 if test "$cross_compiling" = yes; then
21586 cat >conftest.$ac_ext <<_ACEOF
21589 cat confdefs.h >>conftest.$ac_ext
21590 cat >>conftest.$ac_ext <<_ACEOF
21591 /* end confdefs.h. */
21593 #include <stdlib.h>
21594 #if ((' ' & 0x0FF) == 0x020)
21595 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21596 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21598 # define ISLOWER(c) \
21599 (('a' <= (c) && (c) <= 'i') \
21600 || ('j' <= (c) && (c) <= 'r') \
21601 || ('s' <= (c) && (c) <= 'z'))
21602 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21605 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21610 for (i = 0; i < 256; i++)
21611 if (XOR (islower (i), ISLOWER (i))
21612 || toupper (i) != TOUPPER (i))
21617 rm -f conftest$ac_exeext
21618 if { (ac_try="$ac_link"
21619 case "(($ac_try" in
21620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21621 *) ac_try_echo=$ac_try;;
21623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21624 (eval "$ac_link") 2>&5
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21628 { (case "(($ac_try" in
21629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21630 *) ac_try_echo=$ac_try;;
21632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21633 (eval "$ac_try") 2>&5
21635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636 (exit $ac_status); }; }; then
21639 echo "$as_me: program exited with status $ac_status" >&5
21640 echo "$as_me: failed program was:" >&5
21641 sed 's/^/| /' conftest.$ac_ext >&5
21643 ( exit $ac_status )
21644 ac_cv_header_stdc=no
21646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21652 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21653 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21654 if test $ac_cv_header_stdc = yes; then
21656 cat >>confdefs.h <<\_ACEOF
21657 #define STDC_HEADERS 1
21662 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21663 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21664 if test "${ac_cv_header_time+set}" = set; then
21665 echo $ECHO_N "(cached) $ECHO_C" >&6
21667 cat >conftest.$ac_ext <<_ACEOF
21670 cat confdefs.h >>conftest.$ac_ext
21671 cat >>conftest.$ac_ext <<_ACEOF
21672 /* end confdefs.h. */
21673 #include <sys/types.h>
21674 #include <sys/time.h>
21680 if ((struct tm *) 0)
21686 rm -f conftest.$ac_objext
21687 if { (ac_try="$ac_compile"
21688 case "(($ac_try" in
21689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21690 *) ac_try_echo=$ac_try;;
21692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21693 (eval "$ac_compile") 2>conftest.er1
21695 grep -v '^ *+' conftest.er1 >conftest.err
21697 cat conftest.err >&5
21698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); } && {
21700 test -z "$ac_c_werror_flag" ||
21701 test ! -s conftest.err
21702 } && test -s conftest.$ac_objext; then
21703 ac_cv_header_time=yes
21705 echo "$as_me: failed program was:" >&5
21706 sed 's/^/| /' conftest.$ac_ext >&5
21708 ac_cv_header_time=no
21711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21713 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21714 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21715 if test $ac_cv_header_time = yes; then
21717 cat >>confdefs.h <<\_ACEOF
21718 #define TIME_WITH_SYS_TIME 1
21733 for ac_header in sys/socket.h \
21735 windows.h winsock.h winsock2.h \
21741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21746 echo $ECHO_N "(cached) $ECHO_C" >&6
21748 ac_res=`eval echo '${'$as_ac_Header'}'`
21749 { echo "$as_me:$LINENO: result: $ac_res" >&5
21750 echo "${ECHO_T}$ac_res" >&6; }
21752 # Is the header compilable?
21753 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21755 cat >conftest.$ac_ext <<_ACEOF
21758 cat confdefs.h >>conftest.$ac_ext
21759 cat >>conftest.$ac_ext <<_ACEOF
21760 /* end confdefs.h. */
21761 $ac_includes_default
21762 #include <$ac_header>
21764 rm -f conftest.$ac_objext
21765 if { (ac_try="$ac_compile"
21766 case "(($ac_try" in
21767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21768 *) ac_try_echo=$ac_try;;
21770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21771 (eval "$ac_compile") 2>conftest.er1
21773 grep -v '^ *+' conftest.er1 >conftest.err
21775 cat conftest.err >&5
21776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777 (exit $ac_status); } && {
21778 test -z "$ac_c_werror_flag" ||
21779 test ! -s conftest.err
21780 } && test -s conftest.$ac_objext; then
21781 ac_header_compiler=yes
21783 echo "$as_me: failed program was:" >&5
21784 sed 's/^/| /' conftest.$ac_ext >&5
21786 ac_header_compiler=no
21789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21790 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21791 echo "${ECHO_T}$ac_header_compiler" >&6; }
21793 # Is the header present?
21794 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21795 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21796 cat >conftest.$ac_ext <<_ACEOF
21799 cat confdefs.h >>conftest.$ac_ext
21800 cat >>conftest.$ac_ext <<_ACEOF
21801 /* end confdefs.h. */
21802 #include <$ac_header>
21804 if { (ac_try="$ac_cpp conftest.$ac_ext"
21805 case "(($ac_try" in
21806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21807 *) ac_try_echo=$ac_try;;
21809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21812 grep -v '^ *+' conftest.er1 >conftest.err
21814 cat conftest.err >&5
21815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816 (exit $ac_status); } >/dev/null && {
21817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21818 test ! -s conftest.err
21820 ac_header_preproc=yes
21822 echo "$as_me: failed program was:" >&5
21823 sed 's/^/| /' conftest.$ac_ext >&5
21825 ac_header_preproc=no
21828 rm -f conftest.err conftest.$ac_ext
21829 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21830 echo "${ECHO_T}$ac_header_preproc" >&6; }
21832 # So? What about this header?
21833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21838 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21839 ac_header_preproc=yes
21842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21845 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21846 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21847 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21848 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21849 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21852 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21853 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21855 ## -------------------------------------------------- ##
21856 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
21857 ## -------------------------------------------------- ##
21859 ) | sed "s/^/$as_me: WARNING: /" >&2
21862 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21865 echo $ECHO_N "(cached) $ECHO_C" >&6
21867 eval "$as_ac_Header=\$ac_header_preproc"
21869 ac_res=`eval echo '${'$as_ac_Header'}'`
21870 { echo "$as_me:$LINENO: result: $ac_res" >&5
21871 echo "${ECHO_T}$ac_res" >&6; }
21874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21875 cat >>confdefs.h <<_ACEOF
21876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21891 for ac_func in gettimeofday usleep \
21899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21900 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21902 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21903 echo $ECHO_N "(cached) $ECHO_C" >&6
21905 cat >conftest.$ac_ext <<_ACEOF
21908 cat confdefs.h >>conftest.$ac_ext
21909 cat >>conftest.$ac_ext <<_ACEOF
21910 /* end confdefs.h. */
21911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21913 #define $ac_func innocuous_$ac_func
21915 /* System header to define __stub macros and hopefully few prototypes,
21916 which can conflict with char $ac_func (); below.
21917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21918 <limits.h> exists even on freestanding compilers. */
21921 # include <limits.h>
21923 # include <assert.h>
21928 /* Override any GCC internal prototype to avoid an error.
21929 Use char because int might match the return type of a GCC
21930 builtin and then its argument prototype would still apply. */
21935 /* The GNU C library defines this for functions which it implements
21936 to always fail with ENOSYS. Some functions are actually named
21937 something starting with __ and the normal name is an alias. */
21938 #if defined __stub_$ac_func || defined __stub___$ac_func
21945 return $ac_func ();
21950 rm -f conftest.$ac_objext conftest$ac_exeext
21951 if { (ac_try="$ac_link"
21952 case "(($ac_try" in
21953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21954 *) ac_try_echo=$ac_try;;
21956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21957 (eval "$ac_link") 2>conftest.er1
21959 grep -v '^ *+' conftest.er1 >conftest.err
21961 cat conftest.err >&5
21962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963 (exit $ac_status); } && {
21964 test -z "$ac_c_werror_flag" ||
21965 test ! -s conftest.err
21966 } && test -s conftest$ac_exeext &&
21967 $as_test_x conftest$ac_exeext; then
21968 eval "$as_ac_var=yes"
21970 echo "$as_me: failed program was:" >&5
21971 sed 's/^/| /' conftest.$ac_ext >&5
21973 eval "$as_ac_var=no"
21976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21977 conftest$ac_exeext conftest.$ac_ext
21979 ac_res=`eval echo '${'$as_ac_var'}'`
21980 { echo "$as_me:$LINENO: result: $ac_res" >&5
21981 echo "${ECHO_T}$ac_res" >&6; }
21982 if test `eval echo '${'$as_ac_var'}'` = yes; then
21983 cat >>confdefs.h <<_ACEOF
21984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21991 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
21994 for ac_func in snprintf vsnprintf
21996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21997 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21999 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22000 echo $ECHO_N "(cached) $ECHO_C" >&6
22002 cat >conftest.$ac_ext <<_ACEOF
22005 cat confdefs.h >>conftest.$ac_ext
22006 cat >>conftest.$ac_ext <<_ACEOF
22007 /* end confdefs.h. */
22008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22010 #define $ac_func innocuous_$ac_func
22012 /* System header to define __stub macros and hopefully few prototypes,
22013 which can conflict with char $ac_func (); below.
22014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22015 <limits.h> exists even on freestanding compilers. */
22018 # include <limits.h>
22020 # include <assert.h>
22025 /* Override any GCC internal prototype to avoid an error.
22026 Use char because int might match the return type of a GCC
22027 builtin and then its argument prototype would still apply. */
22032 /* The GNU C library defines this for functions which it implements
22033 to always fail with ENOSYS. Some functions are actually named
22034 something starting with __ and the normal name is an alias. */
22035 #if defined __stub_$ac_func || defined __stub___$ac_func
22042 return $ac_func ();
22047 rm -f conftest.$ac_objext conftest$ac_exeext
22048 if { (ac_try="$ac_link"
22049 case "(($ac_try" in
22050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22051 *) ac_try_echo=$ac_try;;
22053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22054 (eval "$ac_link") 2>conftest.er1
22056 grep -v '^ *+' conftest.er1 >conftest.err
22058 cat conftest.err >&5
22059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 (exit $ac_status); } && {
22061 test -z "$ac_c_werror_flag" ||
22062 test ! -s conftest.err
22063 } && test -s conftest$ac_exeext &&
22064 $as_test_x conftest$ac_exeext; then
22065 eval "$as_ac_var=yes"
22067 echo "$as_me: failed program was:" >&5
22068 sed 's/^/| /' conftest.$ac_ext >&5
22070 eval "$as_ac_var=no"
22073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22074 conftest$ac_exeext conftest.$ac_ext
22076 ac_res=`eval echo '${'$as_ac_var'}'`
22077 { echo "$as_me:$LINENO: result: $ac_res" >&5
22078 echo "${ECHO_T}$ac_res" >&6; }
22079 if test `eval echo '${'$as_ac_var'}'` = yes; then
22080 cat >>confdefs.h <<_ACEOF
22081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22087 { echo "$as_me:$LINENO: checking for working snprintf" >&5
22088 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
22089 if test "${ac_cv_have_working_snprintf+set}" = set; then
22090 echo $ECHO_N "(cached) $ECHO_C" >&6
22092 if test "$cross_compiling" = yes; then
22093 ac_cv_have_working_snprintf=cross
22095 cat >conftest.$ac_ext <<_ACEOF
22098 cat confdefs.h >>conftest.$ac_ext
22099 cat >>conftest.$ac_ext <<_ACEOF
22100 /* end confdefs.h. */
22105 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
22106 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
22108 i = snprintf (bufs, 2, "%s", "111");
22109 if (strcmp (bufs, "1")) exit (1);
22110 if (i != 3) exit (1);
22111 i = snprintf (bufd, 2, "%d", 111);
22112 if (strcmp (bufd, "1")) exit (1);
22113 if (i != 3) exit (1);
22117 rm -f conftest$ac_exeext
22118 if { (ac_try="$ac_link"
22119 case "(($ac_try" in
22120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22121 *) ac_try_echo=$ac_try;;
22123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22124 (eval "$ac_link") 2>&5
22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22128 { (case "(($ac_try" in
22129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22130 *) ac_try_echo=$ac_try;;
22132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22133 (eval "$ac_try") 2>&5
22135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136 (exit $ac_status); }; }; then
22137 ac_cv_have_working_snprintf=yes
22139 echo "$as_me: program exited with status $ac_status" >&5
22140 echo "$as_me: failed program was:" >&5
22141 sed 's/^/| /' conftest.$ac_ext >&5
22143 ( exit $ac_status )
22144 ac_cv_have_working_snprintf=no
22146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22152 { echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
22153 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; }
22154 { echo "$as_me:$LINENO: checking for working vsnprintf" >&5
22155 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
22156 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
22157 echo $ECHO_N "(cached) $ECHO_C" >&6
22159 if test "$cross_compiling" = yes; then
22160 ac_cv_have_working_vsnprintf=cross
22162 cat >conftest.$ac_ext <<_ACEOF
22165 cat confdefs.h >>conftest.$ac_ext
22166 cat >>conftest.$ac_ext <<_ACEOF
22167 /* end confdefs.h. */
22169 #include <stdarg.h>
22171 int my_vsnprintf (char *buf, const char *tmpl, ...)
22175 va_start (args, tmpl);
22176 i = vsnprintf (buf, 2, tmpl, args);
22183 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
22184 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
22186 i = my_vsnprintf (bufs, "%s", "111");
22187 if (strcmp (bufs, "1")) exit (1);
22188 if (i != 3) exit (1);
22189 i = my_vsnprintf (bufd, "%d", 111);
22190 if (strcmp (bufd, "1")) exit (1);
22191 if (i != 3) exit (1);
22195 rm -f conftest$ac_exeext
22196 if { (ac_try="$ac_link"
22197 case "(($ac_try" in
22198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22199 *) ac_try_echo=$ac_try;;
22201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22202 (eval "$ac_link") 2>&5
22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22206 { (case "(($ac_try" in
22207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22208 *) ac_try_echo=$ac_try;;
22210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22211 (eval "$ac_try") 2>&5
22213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214 (exit $ac_status); }; }; then
22215 ac_cv_have_working_vsnprintf=yes
22217 echo "$as_me: program exited with status $ac_status" >&5
22218 echo "$as_me: failed program was:" >&5
22219 sed 's/^/| /' conftest.$ac_ext >&5
22221 ( exit $ac_status )
22222 ac_cv_have_working_vsnprintf=no
22224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22230 { echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
22231 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; }
22232 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
22233 case " $LIBOBJS " in
22234 *" snprintf.$ac_objext "* ) ;;
22235 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
22239 { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
22240 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
22242 cat >>confdefs.h <<\_ACEOF
22243 #define PREFER_PORTABLE_SNPRINTF 1
22247 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
22248 { echo "$as_me:$LINENO: checking for asprintf" >&5
22249 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6; }
22250 if test "${ac_cv_func_asprintf+set}" = set; then
22251 echo $ECHO_N "(cached) $ECHO_C" >&6
22253 cat >conftest.$ac_ext <<_ACEOF
22256 cat confdefs.h >>conftest.$ac_ext
22257 cat >>conftest.$ac_ext <<_ACEOF
22258 /* end confdefs.h. */
22259 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
22260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22261 #define asprintf innocuous_asprintf
22263 /* System header to define __stub macros and hopefully few prototypes,
22264 which can conflict with char asprintf (); below.
22265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22266 <limits.h> exists even on freestanding compilers. */
22269 # include <limits.h>
22271 # include <assert.h>
22276 /* Override any GCC internal prototype to avoid an error.
22277 Use char because int might match the return type of a GCC
22278 builtin and then its argument prototype would still apply. */
22283 /* The GNU C library defines this for functions which it implements
22284 to always fail with ENOSYS. Some functions are actually named
22285 something starting with __ and the normal name is an alias. */
22286 #if defined __stub_asprintf || defined __stub___asprintf
22293 return asprintf ();
22298 rm -f conftest.$ac_objext conftest$ac_exeext
22299 if { (ac_try="$ac_link"
22300 case "(($ac_try" in
22301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22302 *) ac_try_echo=$ac_try;;
22304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22305 (eval "$ac_link") 2>conftest.er1
22307 grep -v '^ *+' conftest.er1 >conftest.err
22309 cat conftest.err >&5
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); } && {
22312 test -z "$ac_c_werror_flag" ||
22313 test ! -s conftest.err
22314 } && test -s conftest$ac_exeext &&
22315 $as_test_x conftest$ac_exeext; then
22316 ac_cv_func_asprintf=yes
22318 echo "$as_me: failed program was:" >&5
22319 sed 's/^/| /' conftest.$ac_ext >&5
22321 ac_cv_func_asprintf=no
22324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22325 conftest$ac_exeext conftest.$ac_ext
22327 { echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
22328 echo "${ECHO_T}$ac_cv_func_asprintf" >&6; }
22329 if test $ac_cv_func_asprintf = yes; then
22333 cat >>confdefs.h <<\_ACEOF
22334 #define NEED_ASPRINTF 1
22339 { echo "$as_me:$LINENO: checking for vasprintf" >&5
22340 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6; }
22341 if test "${ac_cv_func_vasprintf+set}" = set; then
22342 echo $ECHO_N "(cached) $ECHO_C" >&6
22344 cat >conftest.$ac_ext <<_ACEOF
22347 cat confdefs.h >>conftest.$ac_ext
22348 cat >>conftest.$ac_ext <<_ACEOF
22349 /* end confdefs.h. */
22350 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
22351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22352 #define vasprintf innocuous_vasprintf
22354 /* System header to define __stub macros and hopefully few prototypes,
22355 which can conflict with char vasprintf (); below.
22356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22357 <limits.h> exists even on freestanding compilers. */
22360 # include <limits.h>
22362 # include <assert.h>
22367 /* Override any GCC internal prototype to avoid an error.
22368 Use char because int might match the return type of a GCC
22369 builtin and then its argument prototype would still apply. */
22374 /* The GNU C library defines this for functions which it implements
22375 to always fail with ENOSYS. Some functions are actually named
22376 something starting with __ and the normal name is an alias. */
22377 #if defined __stub_vasprintf || defined __stub___vasprintf
22384 return vasprintf ();
22389 rm -f conftest.$ac_objext conftest$ac_exeext
22390 if { (ac_try="$ac_link"
22391 case "(($ac_try" in
22392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22393 *) ac_try_echo=$ac_try;;
22395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22396 (eval "$ac_link") 2>conftest.er1
22398 grep -v '^ *+' conftest.er1 >conftest.err
22400 cat conftest.err >&5
22401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402 (exit $ac_status); } && {
22403 test -z "$ac_c_werror_flag" ||
22404 test ! -s conftest.err
22405 } && test -s conftest$ac_exeext &&
22406 $as_test_x conftest$ac_exeext; then
22407 ac_cv_func_vasprintf=yes
22409 echo "$as_me: failed program was:" >&5
22410 sed 's/^/| /' conftest.$ac_ext >&5
22412 ac_cv_func_vasprintf=no
22415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22416 conftest$ac_exeext conftest.$ac_ext
22418 { echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
22419 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6; }
22420 if test $ac_cv_func_vasprintf = yes; then
22424 cat >>confdefs.h <<\_ACEOF
22425 #define NEED_VASPRINTF 1
22431 # Checks for typedefs, structures, and compiler characteristics.
22432 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22433 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22434 if test "${ac_cv_c_const+set}" = set; then
22435 echo $ECHO_N "(cached) $ECHO_C" >&6
22437 cat >conftest.$ac_ext <<_ACEOF
22440 cat confdefs.h >>conftest.$ac_ext
22441 cat >>conftest.$ac_ext <<_ACEOF
22442 /* end confdefs.h. */
22447 /* FIXME: Include the comments suggested by Paul. */
22448 #ifndef __cplusplus
22449 /* Ultrix mips cc rejects this. */
22450 typedef int charset[2];
22452 /* SunOS 4.1.1 cc rejects this. */
22453 char const *const *pcpcc;
22455 /* NEC SVR4.0.2 mips cc rejects this. */
22456 struct point {int x, y;};
22457 static struct point const zero = {0,0};
22458 /* AIX XL C 1.02.0.0 rejects this.
22459 It does not let you subtract one const X* pointer from another in
22460 an arm of an if-expression whose if-part is not a constant
22462 const char *g = "string";
22463 pcpcc = &g + (g ? g-g : 0);
22464 /* HPUX 7.0 cc rejects these. */
22466 ppc = (char**) pcpcc;
22467 pcpcc = (char const *const *) ppc;
22468 { /* SCO 3.2v4 cc rejects this. */
22470 char const *s = 0 ? (char *) 0 : (char const *) 0;
22475 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22476 int x[] = {25, 17};
22477 const int *foo = &x[0];
22480 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22481 typedef const int *iptr;
22485 { /* AIX XL C 1.02.0.0 rejects this saying
22486 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22487 struct s { int j; const int *ap[3]; };
22488 struct s *b; b->j = 5;
22490 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22491 const int foo = 10;
22492 if (!foo) return 0;
22494 return !cs[0] && !zero.x;
22501 rm -f conftest.$ac_objext
22502 if { (ac_try="$ac_compile"
22503 case "(($ac_try" in
22504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22505 *) ac_try_echo=$ac_try;;
22507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22508 (eval "$ac_compile") 2>conftest.er1
22510 grep -v '^ *+' conftest.er1 >conftest.err
22512 cat conftest.err >&5
22513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514 (exit $ac_status); } && {
22515 test -z "$ac_c_werror_flag" ||
22516 test ! -s conftest.err
22517 } && test -s conftest.$ac_objext; then
22520 echo "$as_me: failed program was:" >&5
22521 sed 's/^/| /' conftest.$ac_ext >&5
22526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22528 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22529 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22530 if test $ac_cv_c_const = no; then
22532 cat >>confdefs.h <<\_ACEOF
22538 { echo "$as_me:$LINENO: checking for inline" >&5
22539 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
22540 if test "${ac_cv_c_inline+set}" = set; then
22541 echo $ECHO_N "(cached) $ECHO_C" >&6
22544 for ac_kw in inline __inline__ __inline; do
22545 cat >conftest.$ac_ext <<_ACEOF
22548 cat confdefs.h >>conftest.$ac_ext
22549 cat >>conftest.$ac_ext <<_ACEOF
22550 /* end confdefs.h. */
22551 #ifndef __cplusplus
22553 static $ac_kw foo_t static_foo () {return 0; }
22554 $ac_kw foo_t foo () {return 0; }
22558 rm -f conftest.$ac_objext
22559 if { (ac_try="$ac_compile"
22560 case "(($ac_try" in
22561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22562 *) ac_try_echo=$ac_try;;
22564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22565 (eval "$ac_compile") 2>conftest.er1
22567 grep -v '^ *+' conftest.er1 >conftest.err
22569 cat conftest.err >&5
22570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571 (exit $ac_status); } && {
22572 test -z "$ac_c_werror_flag" ||
22573 test ! -s conftest.err
22574 } && test -s conftest.$ac_objext; then
22575 ac_cv_c_inline=$ac_kw
22577 echo "$as_me: failed program was:" >&5
22578 sed 's/^/| /' conftest.$ac_ext >&5
22583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22584 test "$ac_cv_c_inline" != no && break
22588 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22589 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
22592 case $ac_cv_c_inline in
22595 case $ac_cv_c_inline in
22597 *) ac_val=$ac_cv_c_inline;;
22599 cat >>confdefs.h <<_ACEOF
22600 #ifndef __cplusplus
22601 #define inline $ac_val
22607 { echo "$as_me:$LINENO: checking for size_t" >&5
22608 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22609 if test "${ac_cv_type_size_t+set}" = set; then
22610 echo $ECHO_N "(cached) $ECHO_C" >&6
22612 cat >conftest.$ac_ext <<_ACEOF
22615 cat confdefs.h >>conftest.$ac_ext
22616 cat >>conftest.$ac_ext <<_ACEOF
22617 /* end confdefs.h. */
22618 $ac_includes_default
22619 typedef size_t ac__type_new_;
22623 if ((ac__type_new_ *) 0)
22625 if (sizeof (ac__type_new_))
22631 rm -f conftest.$ac_objext
22632 if { (ac_try="$ac_compile"
22633 case "(($ac_try" in
22634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22635 *) ac_try_echo=$ac_try;;
22637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22638 (eval "$ac_compile") 2>conftest.er1
22640 grep -v '^ *+' conftest.er1 >conftest.err
22642 cat conftest.err >&5
22643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644 (exit $ac_status); } && {
22645 test -z "$ac_c_werror_flag" ||
22646 test ! -s conftest.err
22647 } && test -s conftest.$ac_objext; then
22648 ac_cv_type_size_t=yes
22650 echo "$as_me: failed program was:" >&5
22651 sed 's/^/| /' conftest.$ac_ext >&5
22653 ac_cv_type_size_t=no
22656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22658 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22659 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22660 if test $ac_cv_type_size_t = yes; then
22664 cat >>confdefs.h <<_ACEOF
22665 #define size_t unsigned int
22671 ###################################
22672 ## SimGrid and GRAS specific checks
22676 { echo "$as_me:$LINENO: result: " >&5
22677 echo "${ECHO_T}" >&6; }
22678 { echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
22679 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6; }
22681 # Check architecture signature begin
22683 # Check for the architecture
22684 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22685 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22686 if test "${ac_cv_c_bigendian+set}" = set; then
22687 echo $ECHO_N "(cached) $ECHO_C" >&6
22689 # See if sys/param.h defines the BYTE_ORDER macro.
22690 cat >conftest.$ac_ext <<_ACEOF
22693 cat confdefs.h >>conftest.$ac_ext
22694 cat >>conftest.$ac_ext <<_ACEOF
22695 /* end confdefs.h. */
22696 #include <sys/types.h>
22697 #include <sys/param.h>
22702 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22703 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22704 bogus endian macros
22711 rm -f conftest.$ac_objext
22712 if { (ac_try="$ac_compile"
22713 case "(($ac_try" in
22714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22715 *) ac_try_echo=$ac_try;;
22717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22718 (eval "$ac_compile") 2>conftest.er1
22720 grep -v '^ *+' conftest.er1 >conftest.err
22722 cat conftest.err >&5
22723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724 (exit $ac_status); } && {
22725 test -z "$ac_c_werror_flag" ||
22726 test ! -s conftest.err
22727 } && test -s conftest.$ac_objext; then
22728 # It does; now see whether it defined to BIG_ENDIAN or not.
22729 cat >conftest.$ac_ext <<_ACEOF
22732 cat confdefs.h >>conftest.$ac_ext
22733 cat >>conftest.$ac_ext <<_ACEOF
22734 /* end confdefs.h. */
22735 #include <sys/types.h>
22736 #include <sys/param.h>
22741 #if BYTE_ORDER != BIG_ENDIAN
22749 rm -f conftest.$ac_objext
22750 if { (ac_try="$ac_compile"
22751 case "(($ac_try" in
22752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22753 *) ac_try_echo=$ac_try;;
22755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22756 (eval "$ac_compile") 2>conftest.er1
22758 grep -v '^ *+' conftest.er1 >conftest.err
22760 cat conftest.err >&5
22761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762 (exit $ac_status); } && {
22763 test -z "$ac_c_werror_flag" ||
22764 test ! -s conftest.err
22765 } && test -s conftest.$ac_objext; then
22766 ac_cv_c_bigendian=yes
22768 echo "$as_me: failed program was:" >&5
22769 sed 's/^/| /' conftest.$ac_ext >&5
22771 ac_cv_c_bigendian=no
22774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22776 echo "$as_me: failed program was:" >&5
22777 sed 's/^/| /' conftest.$ac_ext >&5
22779 # It does not; compile a test program.
22780 if test "$cross_compiling" = yes; then
22781 # try to guess the endianness by grepping values into an object file
22782 ac_cv_c_bigendian=unknown
22783 cat >conftest.$ac_ext <<_ACEOF
22786 cat confdefs.h >>conftest.$ac_ext
22787 cat >>conftest.$ac_ext <<_ACEOF
22788 /* end confdefs.h. */
22789 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22790 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22791 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22792 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22793 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22794 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22798 _ascii (); _ebcdic ();
22803 rm -f conftest.$ac_objext
22804 if { (ac_try="$ac_compile"
22805 case "(($ac_try" in
22806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22807 *) ac_try_echo=$ac_try;;
22809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22810 (eval "$ac_compile") 2>conftest.er1
22812 grep -v '^ *+' conftest.er1 >conftest.err
22814 cat conftest.err >&5
22815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22816 (exit $ac_status); } && {
22817 test -z "$ac_c_werror_flag" ||
22818 test ! -s conftest.err
22819 } && test -s conftest.$ac_objext; then
22820 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22821 ac_cv_c_bigendian=yes
22823 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22824 if test "$ac_cv_c_bigendian" = unknown; then
22825 ac_cv_c_bigendian=no
22827 # finding both strings is unlikely to happen, but who knows?
22828 ac_cv_c_bigendian=unknown
22832 echo "$as_me: failed program was:" >&5
22833 sed 's/^/| /' conftest.$ac_ext >&5
22838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22840 cat >conftest.$ac_ext <<_ACEOF
22843 cat confdefs.h >>conftest.$ac_ext
22844 cat >>conftest.$ac_ext <<_ACEOF
22845 /* end confdefs.h. */
22846 $ac_includes_default
22851 /* Are we little or big endian? From Harbison&Steele. */
22855 char c[sizeof (long int)];
22858 return u.c[sizeof (long int) - 1] == 1;
22864 rm -f conftest$ac_exeext
22865 if { (ac_try="$ac_link"
22866 case "(($ac_try" in
22867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22868 *) ac_try_echo=$ac_try;;
22870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22871 (eval "$ac_link") 2>&5
22873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22875 { (case "(($ac_try" in
22876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22877 *) ac_try_echo=$ac_try;;
22879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22880 (eval "$ac_try") 2>&5
22882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883 (exit $ac_status); }; }; then
22884 ac_cv_c_bigendian=no
22886 echo "$as_me: program exited with status $ac_status" >&5
22887 echo "$as_me: failed program was:" >&5
22888 sed 's/^/| /' conftest.$ac_ext >&5
22890 ( exit $ac_status )
22891 ac_cv_c_bigendian=yes
22893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22901 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22902 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22903 case $ac_cv_c_bigendian in
22909 { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
22910 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
22911 { (exit 1); exit 1; }; } ;;
22915 cat >>confdefs.h <<_ACEOF
22916 #define GRAS_BIGENDIAN $endian
22920 { echo "$as_me:$LINENO: checking size of char" >&5
22921 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22922 if test "${ac_cv_sizeof_char+set}" = set; then
22923 echo $ECHO_N "(cached) $ECHO_C" >&6
22925 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22926 cat >conftest.$ac_ext <<_ACEOF
22929 cat confdefs.h >>conftest.$ac_ext
22930 cat >>conftest.$ac_ext <<_ACEOF
22931 /* end confdefs.h. */
22932 #include "confdefs.h"
22933 #include <sys/types.h>
22939 switch (0) case 0: case (sizeof (char) == $ac_size):;
22944 rm -f conftest.$ac_objext
22945 if { (ac_try="$ac_compile"
22946 case "(($ac_try" in
22947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22948 *) ac_try_echo=$ac_try;;
22950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22951 (eval "$ac_compile") 2>conftest.er1
22953 grep -v '^ *+' conftest.er1 >conftest.err
22955 cat conftest.err >&5
22956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22957 (exit $ac_status); } && {
22958 test -z "$ac_c_werror_flag" ||
22959 test ! -s conftest.err
22960 } && test -s conftest.$ac_objext; then
22961 ac_cv_sizeof_char=$ac_size
22963 echo "$as_me: failed program was:" >&5
22964 sed 's/^/| /' conftest.$ac_ext >&5
22969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22970 if test x$ac_cv_sizeof_char != x ; then break; fi
22976 unspecif=$ac_cv_sizeof_char
22977 if test x$unspecif = x ; then
22978 { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
22979 echo "$as_me: error: cannot determine a size for char" >&2;}
22980 { (exit 1); exit 1; }; }
22983 if test "${ac_cv_sizeof_signed_char+set}" = set; then
22984 echo $ECHO_N "(cached) $ECHO_C" >&6
22986 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22987 cat >conftest.$ac_ext <<_ACEOF
22990 cat confdefs.h >>conftest.$ac_ext
22991 cat >>conftest.$ac_ext <<_ACEOF
22992 /* end confdefs.h. */
22993 #include "confdefs.h"
22994 #include <sys/types.h>
23000 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
23005 rm -f conftest.$ac_objext
23006 if { (ac_try="$ac_compile"
23007 case "(($ac_try" in
23008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23009 *) ac_try_echo=$ac_try;;
23011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23012 (eval "$ac_compile") 2>conftest.er1
23014 grep -v '^ *+' conftest.er1 >conftest.err
23016 cat conftest.err >&5
23017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018 (exit $ac_status); } && {
23019 test -z "$ac_c_werror_flag" ||
23020 test ! -s conftest.err
23021 } && test -s conftest.$ac_objext; then
23022 ac_cv_sizeof_signed_char=$ac_size
23024 echo "$as_me: failed program was:" >&5
23025 sed 's/^/| /' conftest.$ac_ext >&5
23030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23031 if test x$ac_cv_sizeof_signed_char != x ; then break; fi
23037 signed=$ac_cv_sizeof_signed_char
23038 if test x$signed = x ; then
23039 { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
23040 echo "$as_me: error: cannot determine a size for signed char" >&2;}
23041 { (exit 1); exit 1; }; }
23043 if test x$unspecif != x$signed ; then
23044 { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
23045 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
23046 { (exit 1); exit 1; }; }
23049 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
23050 echo $ECHO_N "(cached) $ECHO_C" >&6
23052 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23053 cat >conftest.$ac_ext <<_ACEOF
23056 cat confdefs.h >>conftest.$ac_ext
23057 cat >>conftest.$ac_ext <<_ACEOF
23058 /* end confdefs.h. */
23059 #include "confdefs.h"
23060 #include <sys/types.h>
23066 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
23071 rm -f conftest.$ac_objext
23072 if { (ac_try="$ac_compile"
23073 case "(($ac_try" in
23074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23075 *) ac_try_echo=$ac_try;;
23077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23078 (eval "$ac_compile") 2>conftest.er1
23080 grep -v '^ *+' conftest.er1 >conftest.err
23082 cat conftest.err >&5
23083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); } && {
23085 test -z "$ac_c_werror_flag" ||
23086 test ! -s conftest.err
23087 } && test -s conftest.$ac_objext; then
23088 ac_cv_sizeof_unsigned_char=$ac_size
23090 echo "$as_me: failed program was:" >&5
23091 sed 's/^/| /' conftest.$ac_ext >&5
23096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23097 if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
23103 unsigned=$ac_cv_sizeof_unsigned_char
23104 if test x$unsigned = x ; then
23105 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
23106 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
23107 { (exit 1); exit 1; }; }
23109 if test x$unsigned != x$signed ; then
23110 { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
23111 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
23112 { (exit 1); exit 1; }; }
23115 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
23116 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
23117 { echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
23118 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6; }
23120 if test "${ac_cv_struct_boundary_char+set}" = set; then
23121 echo $ECHO_N "(cached) $ECHO_C" >&6
23123 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23124 cat >conftest.$ac_ext <<_ACEOF
23127 cat confdefs.h >>conftest.$ac_ext
23128 cat >>conftest.$ac_ext <<_ACEOF
23129 /* end confdefs.h. */
23130 #include "confdefs.h"
23131 #include <sys/types.h>
23132 struct s { char c; char i; };
23137 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
23142 rm -f conftest.$ac_objext
23143 if { (ac_try="$ac_compile"
23144 case "(($ac_try" in
23145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23146 *) ac_try_echo=$ac_try;;
23148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23149 (eval "$ac_compile") 2>conftest.er1
23151 grep -v '^ *+' conftest.er1 >conftest.err
23153 cat conftest.err >&5
23154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155 (exit $ac_status); } && {
23156 test -z "$ac_c_werror_flag" ||
23157 test ! -s conftest.err
23158 } && test -s conftest.$ac_objext; then
23159 ac_cv_struct_boundary_char=$ac_size
23161 echo "$as_me: failed program was:" >&5
23162 sed 's/^/| /' conftest.$ac_ext >&5
23167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23168 if test x$ac_cv_struct_boundary_char != x ; then break; fi
23173 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
23174 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6; }
23175 if test x$ac_cv_struct_boundary_char = x ; then
23176 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
23177 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
23178 { (exit 1); exit 1; }; }
23181 { echo "$as_me:$LINENO: checking size of short int" >&5
23182 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
23183 if test "${ac_cv_sizeof_short_int+set}" = set; then
23184 echo $ECHO_N "(cached) $ECHO_C" >&6
23186 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23187 cat >conftest.$ac_ext <<_ACEOF
23190 cat confdefs.h >>conftest.$ac_ext
23191 cat >>conftest.$ac_ext <<_ACEOF
23192 /* end confdefs.h. */
23193 #include "confdefs.h"
23194 #include <sys/types.h>
23200 switch (0) case 0: case (sizeof (short int) == $ac_size):;
23205 rm -f conftest.$ac_objext
23206 if { (ac_try="$ac_compile"
23207 case "(($ac_try" in
23208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23209 *) ac_try_echo=$ac_try;;
23211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23212 (eval "$ac_compile") 2>conftest.er1
23214 grep -v '^ *+' conftest.er1 >conftest.err
23216 cat conftest.err >&5
23217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218 (exit $ac_status); } && {
23219 test -z "$ac_c_werror_flag" ||
23220 test ! -s conftest.err
23221 } && test -s conftest.$ac_objext; then
23222 ac_cv_sizeof_short_int=$ac_size
23224 echo "$as_me: failed program was:" >&5
23225 sed 's/^/| /' conftest.$ac_ext >&5
23230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23231 if test x$ac_cv_sizeof_short_int != x ; then break; fi
23237 unspecif=$ac_cv_sizeof_short_int
23238 if test x$unspecif = x ; then
23239 { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
23240 echo "$as_me: error: cannot determine a size for short int" >&2;}
23241 { (exit 1); exit 1; }; }
23244 if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
23245 echo $ECHO_N "(cached) $ECHO_C" >&6
23247 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23248 cat >conftest.$ac_ext <<_ACEOF
23251 cat confdefs.h >>conftest.$ac_ext
23252 cat >>conftest.$ac_ext <<_ACEOF
23253 /* end confdefs.h. */
23254 #include "confdefs.h"
23255 #include <sys/types.h>
23261 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
23266 rm -f conftest.$ac_objext
23267 if { (ac_try="$ac_compile"
23268 case "(($ac_try" in
23269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23270 *) ac_try_echo=$ac_try;;
23272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23273 (eval "$ac_compile") 2>conftest.er1
23275 grep -v '^ *+' conftest.er1 >conftest.err
23277 cat conftest.err >&5
23278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279 (exit $ac_status); } && {
23280 test -z "$ac_c_werror_flag" ||
23281 test ! -s conftest.err
23282 } && test -s conftest.$ac_objext; then
23283 ac_cv_sizeof_signed_short_int=$ac_size
23285 echo "$as_me: failed program was:" >&5
23286 sed 's/^/| /' conftest.$ac_ext >&5
23291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23292 if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
23298 signed=$ac_cv_sizeof_signed_short_int
23299 if test x$signed = x ; then
23300 { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
23301 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
23302 { (exit 1); exit 1; }; }
23304 if test x$unspecif != x$signed ; then
23305 { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
23306 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
23307 { (exit 1); exit 1; }; }
23310 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
23311 echo $ECHO_N "(cached) $ECHO_C" >&6
23313 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23314 cat >conftest.$ac_ext <<_ACEOF
23317 cat confdefs.h >>conftest.$ac_ext
23318 cat >>conftest.$ac_ext <<_ACEOF
23319 /* end confdefs.h. */
23320 #include "confdefs.h"
23321 #include <sys/types.h>
23327 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
23332 rm -f conftest.$ac_objext
23333 if { (ac_try="$ac_compile"
23334 case "(($ac_try" in
23335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23336 *) ac_try_echo=$ac_try;;
23338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23339 (eval "$ac_compile") 2>conftest.er1
23341 grep -v '^ *+' conftest.er1 >conftest.err
23343 cat conftest.err >&5
23344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23345 (exit $ac_status); } && {
23346 test -z "$ac_c_werror_flag" ||
23347 test ! -s conftest.err
23348 } && test -s conftest.$ac_objext; then
23349 ac_cv_sizeof_unsigned_short_int=$ac_size
23351 echo "$as_me: failed program was:" >&5
23352 sed 's/^/| /' conftest.$ac_ext >&5
23357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23358 if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
23364 unsigned=$ac_cv_sizeof_unsigned_short_int
23365 if test x$unsigned = x ; then
23366 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
23367 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
23368 { (exit 1); exit 1; }; }
23370 if test x$unsigned != x$signed ; then
23371 { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
23372 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
23373 { (exit 1); exit 1; }; }
23376 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
23377 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
23378 { echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
23379 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6; }
23381 if test "${ac_cv_struct_boundary_short_int+set}" = set; then
23382 echo $ECHO_N "(cached) $ECHO_C" >&6
23384 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23385 cat >conftest.$ac_ext <<_ACEOF
23388 cat confdefs.h >>conftest.$ac_ext
23389 cat >>conftest.$ac_ext <<_ACEOF
23390 /* end confdefs.h. */
23391 #include "confdefs.h"
23392 #include <sys/types.h>
23393 struct s { char c; short int i; };
23398 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
23403 rm -f conftest.$ac_objext
23404 if { (ac_try="$ac_compile"
23405 case "(($ac_try" in
23406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23407 *) ac_try_echo=$ac_try;;
23409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23410 (eval "$ac_compile") 2>conftest.er1
23412 grep -v '^ *+' conftest.er1 >conftest.err
23414 cat conftest.err >&5
23415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416 (exit $ac_status); } && {
23417 test -z "$ac_c_werror_flag" ||
23418 test ! -s conftest.err
23419 } && test -s conftest.$ac_objext; then
23420 ac_cv_struct_boundary_short_int=$ac_size
23422 echo "$as_me: failed program was:" >&5
23423 sed 's/^/| /' conftest.$ac_ext >&5
23428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23429 if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
23434 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
23435 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6; }
23436 if test x$ac_cv_struct_boundary_short_int = x ; then
23437 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
23438 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
23439 { (exit 1); exit 1; }; }
23442 { echo "$as_me:$LINENO: checking size of int" >&5
23443 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
23444 if test "${ac_cv_sizeof_int+set}" = set; then
23445 echo $ECHO_N "(cached) $ECHO_C" >&6
23447 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23448 cat >conftest.$ac_ext <<_ACEOF
23451 cat confdefs.h >>conftest.$ac_ext
23452 cat >>conftest.$ac_ext <<_ACEOF
23453 /* end confdefs.h. */
23454 #include "confdefs.h"
23455 #include <sys/types.h>
23461 switch (0) case 0: case (sizeof (int) == $ac_size):;
23466 rm -f conftest.$ac_objext
23467 if { (ac_try="$ac_compile"
23468 case "(($ac_try" in
23469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23470 *) ac_try_echo=$ac_try;;
23472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23473 (eval "$ac_compile") 2>conftest.er1
23475 grep -v '^ *+' conftest.er1 >conftest.err
23477 cat conftest.err >&5
23478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479 (exit $ac_status); } && {
23480 test -z "$ac_c_werror_flag" ||
23481 test ! -s conftest.err
23482 } && test -s conftest.$ac_objext; then
23483 ac_cv_sizeof_int=$ac_size
23485 echo "$as_me: failed program was:" >&5
23486 sed 's/^/| /' conftest.$ac_ext >&5
23491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23492 if test x$ac_cv_sizeof_int != x ; then break; fi
23498 unspecif=$ac_cv_sizeof_int
23499 if test x$unspecif = x ; then
23500 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
23501 echo "$as_me: error: cannot determine a size for int" >&2;}
23502 { (exit 1); exit 1; }; }
23505 if test "${ac_cv_sizeof_signed_int+set}" = set; then
23506 echo $ECHO_N "(cached) $ECHO_C" >&6
23508 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23509 cat >conftest.$ac_ext <<_ACEOF
23512 cat confdefs.h >>conftest.$ac_ext
23513 cat >>conftest.$ac_ext <<_ACEOF
23514 /* end confdefs.h. */
23515 #include "confdefs.h"
23516 #include <sys/types.h>
23522 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
23527 rm -f conftest.$ac_objext
23528 if { (ac_try="$ac_compile"
23529 case "(($ac_try" in
23530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23531 *) ac_try_echo=$ac_try;;
23533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23534 (eval "$ac_compile") 2>conftest.er1
23536 grep -v '^ *+' conftest.er1 >conftest.err
23538 cat conftest.err >&5
23539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23540 (exit $ac_status); } && {
23541 test -z "$ac_c_werror_flag" ||
23542 test ! -s conftest.err
23543 } && test -s conftest.$ac_objext; then
23544 ac_cv_sizeof_signed_int=$ac_size
23546 echo "$as_me: failed program was:" >&5
23547 sed 's/^/| /' conftest.$ac_ext >&5
23552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23553 if test x$ac_cv_sizeof_signed_int != x ; then break; fi
23559 signed=$ac_cv_sizeof_signed_int
23560 if test x$signed = x ; then
23561 { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
23562 echo "$as_me: error: cannot determine a size for signed int" >&2;}
23563 { (exit 1); exit 1; }; }
23565 if test x$unspecif != x$signed ; then
23566 { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
23567 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
23568 { (exit 1); exit 1; }; }
23571 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
23572 echo $ECHO_N "(cached) $ECHO_C" >&6
23574 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23575 cat >conftest.$ac_ext <<_ACEOF
23578 cat confdefs.h >>conftest.$ac_ext
23579 cat >>conftest.$ac_ext <<_ACEOF
23580 /* end confdefs.h. */
23581 #include "confdefs.h"
23582 #include <sys/types.h>
23588 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
23593 rm -f conftest.$ac_objext
23594 if { (ac_try="$ac_compile"
23595 case "(($ac_try" in
23596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23597 *) ac_try_echo=$ac_try;;
23599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23600 (eval "$ac_compile") 2>conftest.er1
23602 grep -v '^ *+' conftest.er1 >conftest.err
23604 cat conftest.err >&5
23605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606 (exit $ac_status); } && {
23607 test -z "$ac_c_werror_flag" ||
23608 test ! -s conftest.err
23609 } && test -s conftest.$ac_objext; then
23610 ac_cv_sizeof_unsigned_int=$ac_size
23612 echo "$as_me: failed program was:" >&5
23613 sed 's/^/| /' conftest.$ac_ext >&5
23618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23619 if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
23625 unsigned=$ac_cv_sizeof_unsigned_int
23626 if test x$unsigned = x ; then
23627 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
23628 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
23629 { (exit 1); exit 1; }; }
23631 if test x$unsigned != x$signed ; then
23632 { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
23633 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
23634 { (exit 1); exit 1; }; }
23637 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
23638 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
23639 { echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
23640 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6; }
23642 if test "${ac_cv_struct_boundary_int+set}" = set; then
23643 echo $ECHO_N "(cached) $ECHO_C" >&6
23645 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23646 cat >conftest.$ac_ext <<_ACEOF
23649 cat confdefs.h >>conftest.$ac_ext
23650 cat >>conftest.$ac_ext <<_ACEOF
23651 /* end confdefs.h. */
23652 #include "confdefs.h"
23653 #include <sys/types.h>
23654 struct s { char c; int i; };
23659 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
23664 rm -f conftest.$ac_objext
23665 if { (ac_try="$ac_compile"
23666 case "(($ac_try" in
23667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23668 *) ac_try_echo=$ac_try;;
23670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23671 (eval "$ac_compile") 2>conftest.er1
23673 grep -v '^ *+' conftest.er1 >conftest.err
23675 cat conftest.err >&5
23676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677 (exit $ac_status); } && {
23678 test -z "$ac_c_werror_flag" ||
23679 test ! -s conftest.err
23680 } && test -s conftest.$ac_objext; then
23681 ac_cv_struct_boundary_int=$ac_size
23683 echo "$as_me: failed program was:" >&5
23684 sed 's/^/| /' conftest.$ac_ext >&5
23689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23690 if test x$ac_cv_struct_boundary_int != x ; then break; fi
23695 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
23696 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6; }
23697 if test x$ac_cv_struct_boundary_int = x ; then
23698 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
23699 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
23700 { (exit 1); exit 1; }; }
23703 { echo "$as_me:$LINENO: checking size of long int" >&5
23704 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
23705 if test "${ac_cv_sizeof_long_int+set}" = set; then
23706 echo $ECHO_N "(cached) $ECHO_C" >&6
23708 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23709 cat >conftest.$ac_ext <<_ACEOF
23712 cat confdefs.h >>conftest.$ac_ext
23713 cat >>conftest.$ac_ext <<_ACEOF
23714 /* end confdefs.h. */
23715 #include "confdefs.h"
23716 #include <sys/types.h>
23722 switch (0) case 0: case (sizeof (long int) == $ac_size):;
23727 rm -f conftest.$ac_objext
23728 if { (ac_try="$ac_compile"
23729 case "(($ac_try" in
23730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23731 *) ac_try_echo=$ac_try;;
23733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23734 (eval "$ac_compile") 2>conftest.er1
23736 grep -v '^ *+' conftest.er1 >conftest.err
23738 cat conftest.err >&5
23739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23740 (exit $ac_status); } && {
23741 test -z "$ac_c_werror_flag" ||
23742 test ! -s conftest.err
23743 } && test -s conftest.$ac_objext; then
23744 ac_cv_sizeof_long_int=$ac_size
23746 echo "$as_me: failed program was:" >&5
23747 sed 's/^/| /' conftest.$ac_ext >&5
23752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23753 if test x$ac_cv_sizeof_long_int != x ; then break; fi
23759 unspecif=$ac_cv_sizeof_long_int
23760 if test x$unspecif = x ; then
23761 { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
23762 echo "$as_me: error: cannot determine a size for long int" >&2;}
23763 { (exit 1); exit 1; }; }
23766 if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
23767 echo $ECHO_N "(cached) $ECHO_C" >&6
23769 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23770 cat >conftest.$ac_ext <<_ACEOF
23773 cat confdefs.h >>conftest.$ac_ext
23774 cat >>conftest.$ac_ext <<_ACEOF
23775 /* end confdefs.h. */
23776 #include "confdefs.h"
23777 #include <sys/types.h>
23783 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
23788 rm -f conftest.$ac_objext
23789 if { (ac_try="$ac_compile"
23790 case "(($ac_try" in
23791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23792 *) ac_try_echo=$ac_try;;
23794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23795 (eval "$ac_compile") 2>conftest.er1
23797 grep -v '^ *+' conftest.er1 >conftest.err
23799 cat conftest.err >&5
23800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23801 (exit $ac_status); } && {
23802 test -z "$ac_c_werror_flag" ||
23803 test ! -s conftest.err
23804 } && test -s conftest.$ac_objext; then
23805 ac_cv_sizeof_signed_long_int=$ac_size
23807 echo "$as_me: failed program was:" >&5
23808 sed 's/^/| /' conftest.$ac_ext >&5
23813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23814 if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
23820 signed=$ac_cv_sizeof_signed_long_int
23821 if test x$signed = x ; then
23822 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
23823 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
23824 { (exit 1); exit 1; }; }
23826 if test x$unspecif != x$signed ; then
23827 { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
23828 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
23829 { (exit 1); exit 1; }; }
23832 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
23833 echo $ECHO_N "(cached) $ECHO_C" >&6
23835 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23836 cat >conftest.$ac_ext <<_ACEOF
23839 cat confdefs.h >>conftest.$ac_ext
23840 cat >>conftest.$ac_ext <<_ACEOF
23841 /* end confdefs.h. */
23842 #include "confdefs.h"
23843 #include <sys/types.h>
23849 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
23854 rm -f conftest.$ac_objext
23855 if { (ac_try="$ac_compile"
23856 case "(($ac_try" in
23857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23858 *) ac_try_echo=$ac_try;;
23860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23861 (eval "$ac_compile") 2>conftest.er1
23863 grep -v '^ *+' conftest.er1 >conftest.err
23865 cat conftest.err >&5
23866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23867 (exit $ac_status); } && {
23868 test -z "$ac_c_werror_flag" ||
23869 test ! -s conftest.err
23870 } && test -s conftest.$ac_objext; then
23871 ac_cv_sizeof_unsigned_long_int=$ac_size
23873 echo "$as_me: failed program was:" >&5
23874 sed 's/^/| /' conftest.$ac_ext >&5
23879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23880 if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
23886 unsigned=$ac_cv_sizeof_unsigned_long_int
23887 if test x$unsigned = x ; then
23888 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
23889 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
23890 { (exit 1); exit 1; }; }
23892 if test x$unsigned != x$signed ; then
23893 { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
23894 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
23895 { (exit 1); exit 1; }; }
23898 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
23899 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
23900 { echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
23901 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6; }
23903 if test "${ac_cv_struct_boundary_long_int+set}" = set; then
23904 echo $ECHO_N "(cached) $ECHO_C" >&6
23906 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23907 cat >conftest.$ac_ext <<_ACEOF
23910 cat confdefs.h >>conftest.$ac_ext
23911 cat >>conftest.$ac_ext <<_ACEOF
23912 /* end confdefs.h. */
23913 #include "confdefs.h"
23914 #include <sys/types.h>
23915 struct s { char c; long int i; };
23920 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
23925 rm -f conftest.$ac_objext
23926 if { (ac_try="$ac_compile"
23927 case "(($ac_try" in
23928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23929 *) ac_try_echo=$ac_try;;
23931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23932 (eval "$ac_compile") 2>conftest.er1
23934 grep -v '^ *+' conftest.er1 >conftest.err
23936 cat conftest.err >&5
23937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938 (exit $ac_status); } && {
23939 test -z "$ac_c_werror_flag" ||
23940 test ! -s conftest.err
23941 } && test -s conftest.$ac_objext; then
23942 ac_cv_struct_boundary_long_int=$ac_size
23944 echo "$as_me: failed program was:" >&5
23945 sed 's/^/| /' conftest.$ac_ext >&5
23950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23951 if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
23956 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
23957 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6; }
23958 if test x$ac_cv_struct_boundary_long_int = x ; then
23959 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
23960 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
23961 { (exit 1); exit 1; }; }
23964 { echo "$as_me:$LINENO: checking size of long long int" >&5
23965 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
23966 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
23967 echo $ECHO_N "(cached) $ECHO_C" >&6
23969 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23970 cat >conftest.$ac_ext <<_ACEOF
23973 cat confdefs.h >>conftest.$ac_ext
23974 cat >>conftest.$ac_ext <<_ACEOF
23975 /* end confdefs.h. */
23976 #include "confdefs.h"
23977 #include <sys/types.h>
23983 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
23988 rm -f conftest.$ac_objext
23989 if { (ac_try="$ac_compile"
23990 case "(($ac_try" in
23991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23992 *) ac_try_echo=$ac_try;;
23994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23995 (eval "$ac_compile") 2>conftest.er1
23997 grep -v '^ *+' conftest.er1 >conftest.err
23999 cat conftest.err >&5
24000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24001 (exit $ac_status); } && {
24002 test -z "$ac_c_werror_flag" ||
24003 test ! -s conftest.err
24004 } && test -s conftest.$ac_objext; then
24005 ac_cv_sizeof_long_long_int=$ac_size
24007 echo "$as_me: failed program was:" >&5
24008 sed 's/^/| /' conftest.$ac_ext >&5
24013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24014 if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
24020 unspecif=$ac_cv_sizeof_long_long_int
24021 if test x$unspecif = x ; then
24022 { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
24023 echo "$as_me: error: cannot determine a size for long long int" >&2;}
24024 { (exit 1); exit 1; }; }
24027 if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
24028 echo $ECHO_N "(cached) $ECHO_C" >&6
24030 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
24031 cat >conftest.$ac_ext <<_ACEOF
24034 cat confdefs.h >>conftest.$ac_ext
24035 cat >>conftest.$ac_ext <<_ACEOF
24036 /* end confdefs.h. */
24037 #include "confdefs.h"
24038 #include <sys/types.h>
24044 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
24049 rm -f conftest.$ac_objext
24050 if { (ac_try="$ac_compile"
24051 case "(($ac_try" in
24052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24053 *) ac_try_echo=$ac_try;;
24055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24056 (eval "$ac_compile") 2>conftest.er1
24058 grep -v '^ *+' conftest.er1 >conftest.err
24060 cat conftest.err >&5
24061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24062 (exit $ac_status); } && {
24063 test -z "$ac_c_werror_flag" ||
24064 test ! -s conftest.err
24065 } && test -s conftest.$ac_objext; then
24066 ac_cv_sizeof_signed_long_long_int=$ac_size
24068 echo "$as_me: failed program was:" >&5
24069 sed 's/^/| /' conftest.$ac_ext >&5
24074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24075 if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
24081 signed=$ac_cv_sizeof_signed_long_long_int
24082 if test x$signed = x ; then
24083 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
24084 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
24085 { (exit 1); exit 1; }; }
24087 if test x$unspecif != x$signed ; then
24088 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
24089 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
24090 { (exit 1); exit 1; }; }
24093 if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
24094 echo $ECHO_N "(cached) $ECHO_C" >&6
24096 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
24097 cat >conftest.$ac_ext <<_ACEOF
24100 cat confdefs.h >>conftest.$ac_ext
24101 cat >>conftest.$ac_ext <<_ACEOF
24102 /* end confdefs.h. */
24103 #include "confdefs.h"
24104 #include <sys/types.h>
24110 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
24115 rm -f conftest.$ac_objext
24116 if { (ac_try="$ac_compile"
24117 case "(($ac_try" in
24118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24119 *) ac_try_echo=$ac_try;;
24121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24122 (eval "$ac_compile") 2>conftest.er1
24124 grep -v '^ *+' conftest.er1 >conftest.err
24126 cat conftest.err >&5
24127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24128 (exit $ac_status); } && {
24129 test -z "$ac_c_werror_flag" ||
24130 test ! -s conftest.err
24131 } && test -s conftest.$ac_objext; then
24132 ac_cv_sizeof_unsigned_long_long_int=$ac_size
24134 echo "$as_me: failed program was:" >&5
24135 sed 's/^/| /' conftest.$ac_ext >&5
24140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24141 if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
24147 unsigned=$ac_cv_sizeof_unsigned_long_long_int
24148 if test x$unsigned = x ; then
24149 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
24150 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
24151 { (exit 1); exit 1; }; }
24153 if test x$unsigned != x$signed ; then
24154 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
24155 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
24156 { (exit 1); exit 1; }; }
24159 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
24160 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6; }
24161 { echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
24162 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6; }
24164 if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
24165 echo $ECHO_N "(cached) $ECHO_C" >&6
24167 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
24168 cat >conftest.$ac_ext <<_ACEOF
24171 cat confdefs.h >>conftest.$ac_ext
24172 cat >>conftest.$ac_ext <<_ACEOF
24173 /* end confdefs.h. */
24174 #include "confdefs.h"
24175 #include <sys/types.h>
24176 struct s { char c; long long int i; };
24181 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
24186 rm -f conftest.$ac_objext
24187 if { (ac_try="$ac_compile"
24188 case "(($ac_try" in
24189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24190 *) ac_try_echo=$ac_try;;
24192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24193 (eval "$ac_compile") 2>conftest.er1
24195 grep -v '^ *+' conftest.er1 >conftest.err
24197 cat conftest.err >&5
24198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24199 (exit $ac_status); } && {
24200 test -z "$ac_c_werror_flag" ||
24201 test ! -s conftest.err
24202 } && test -s conftest.$ac_objext; then
24203 ac_cv_struct_boundary_long_long_int=$ac_size
24205 echo "$as_me: failed program was:" >&5
24206 sed 's/^/| /' conftest.$ac_ext >&5
24211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24212 if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
24217 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
24218 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6; }
24219 if test x$ac_cv_struct_boundary_long_long_int = x ; then
24220 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
24221 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
24222 { (exit 1); exit 1; }; }
24226 { echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
24227 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6; }
24229 if test "${ac_cv_struct_boundary_float+set}" = set; then
24230 echo $ECHO_N "(cached) $ECHO_C" >&6
24232 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
24233 cat >conftest.$ac_ext <<_ACEOF
24236 cat confdefs.h >>conftest.$ac_ext
24237 cat >>conftest.$ac_ext <<_ACEOF
24238 /* end confdefs.h. */
24239 #include "confdefs.h"
24240 #include <sys/types.h>
24241 struct s { char c; float i; };
24246 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
24251 rm -f conftest.$ac_objext
24252 if { (ac_try="$ac_compile"
24253 case "(($ac_try" in
24254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24255 *) ac_try_echo=$ac_try;;
24257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24258 (eval "$ac_compile") 2>conftest.er1
24260 grep -v '^ *+' conftest.er1 >conftest.err
24262 cat conftest.err >&5
24263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264 (exit $ac_status); } && {
24265 test -z "$ac_c_werror_flag" ||
24266 test ! -s conftest.err
24267 } && test -s conftest.$ac_objext; then
24268 ac_cv_struct_boundary_float=$ac_size
24270 echo "$as_me: failed program was:" >&5
24271 sed 's/^/| /' conftest.$ac_ext >&5
24276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24277 if test x$ac_cv_struct_boundary_float != x ; then break; fi
24282 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
24283 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6; }
24284 if test x$ac_cv_struct_boundary_float = x ; then
24285 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
24286 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
24287 { (exit 1); exit 1; }; }
24289 { echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
24290 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6; }
24292 if test "${ac_cv_struct_boundary_double+set}" = set; then
24293 echo $ECHO_N "(cached) $ECHO_C" >&6
24295 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
24296 cat >conftest.$ac_ext <<_ACEOF
24299 cat confdefs.h >>conftest.$ac_ext
24300 cat >>conftest.$ac_ext <<_ACEOF
24301 /* end confdefs.h. */
24302 #include "confdefs.h"
24303 #include <sys/types.h>
24304 struct s { char c; double i; };
24309 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
24314 rm -f conftest.$ac_objext
24315 if { (ac_try="$ac_compile"
24316 case "(($ac_try" in
24317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24318 *) ac_try_echo=$ac_try;;
24320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24321 (eval "$ac_compile") 2>conftest.er1
24323 grep -v '^ *+' conftest.er1 >conftest.err
24325 cat conftest.err >&5
24326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327 (exit $ac_status); } && {
24328 test -z "$ac_c_werror_flag" ||
24329 test ! -s conftest.err
24330 } && test -s conftest.$ac_objext; then
24331 ac_cv_struct_boundary_double=$ac_size
24333 echo "$as_me: failed program was:" >&5
24334 sed 's/^/| /' conftest.$ac_ext >&5
24339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24340 if test x$ac_cv_struct_boundary_double != x ; then break; fi
24345 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
24346 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6; }
24347 if test x$ac_cv_struct_boundary_double = x ; then
24348 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
24349 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
24350 { (exit 1); exit 1; }; }
24354 { echo "$as_me:$LINENO: checking size of void *" >&5
24355 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
24356 if test "${ac_cv_sizeof_void_p+set}" = set; then
24357 echo $ECHO_N "(cached) $ECHO_C" >&6
24359 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
24360 cat >conftest.$ac_ext <<_ACEOF
24363 cat confdefs.h >>conftest.$ac_ext
24364 cat >>conftest.$ac_ext <<_ACEOF
24365 /* end confdefs.h. */
24366 #include "confdefs.h"
24367 #include <sys/types.h>
24373 switch (0) case 0: case (sizeof (void *) == $ac_size):;
24378 rm -f conftest.$ac_objext
24379 if { (ac_try="$ac_compile"
24380 case "(($ac_try" in
24381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24382 *) ac_try_echo=$ac_try;;
24384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24385 (eval "$ac_compile") 2>conftest.er1
24387 grep -v '^ *+' conftest.er1 >conftest.err
24389 cat conftest.err >&5
24390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24391 (exit $ac_status); } && {
24392 test -z "$ac_c_werror_flag" ||
24393 test ! -s conftest.err
24394 } && test -s conftest.$ac_objext; then
24395 ac_cv_sizeof_void_p=$ac_size
24397 echo "$as_me: failed program was:" >&5
24398 sed 's/^/| /' conftest.$ac_ext >&5
24403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24404 if test x$ac_cv_sizeof_void_p != x ; then break; fi
24410 if test x$ac_cv_sizeof_void_p = x ; then
24411 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
24412 echo "$as_me: error: cannot determine a size for void *" >&2;}
24413 { (exit 1); exit 1; }; }
24415 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24416 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
24417 { echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
24418 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6; }
24420 if test "${ac_cv_struct_boundary_void_p+set}" = set; then
24421 echo $ECHO_N "(cached) $ECHO_C" >&6
24423 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
24424 cat >conftest.$ac_ext <<_ACEOF
24427 cat confdefs.h >>conftest.$ac_ext
24428 cat >>conftest.$ac_ext <<_ACEOF
24429 /* end confdefs.h. */
24430 #include "confdefs.h"
24431 #include <sys/types.h>
24432 struct s { char c; void * i; };
24437 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
24442 rm -f conftest.$ac_objext
24443 if { (ac_try="$ac_compile"
24444 case "(($ac_try" in
24445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24446 *) ac_try_echo=$ac_try;;
24448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24449 (eval "$ac_compile") 2>conftest.er1
24451 grep -v '^ *+' conftest.er1 >conftest.err
24453 cat conftest.err >&5
24454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24455 (exit $ac_status); } && {
24456 test -z "$ac_c_werror_flag" ||
24457 test ! -s conftest.err
24458 } && test -s conftest.$ac_objext; then
24459 ac_cv_struct_boundary_void_p=$ac_size
24461 echo "$as_me: failed program was:" >&5
24462 sed 's/^/| /' conftest.$ac_ext >&5
24467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24468 if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
24473 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
24474 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6; }
24475 if test x$ac_cv_struct_boundary_void_p = x ; then
24476 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
24477 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
24478 { (exit 1); exit 1; }; }
24481 { echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
24482 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6; }
24483 if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
24484 echo $ECHO_N "(cached) $ECHO_C" >&6
24486 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
24487 cat >conftest.$ac_ext <<_ACEOF
24490 cat confdefs.h >>conftest.$ac_ext
24491 cat >>conftest.$ac_ext <<_ACEOF
24492 /* end confdefs.h. */
24493 #include "confdefs.h"
24494 #include <sys/types.h>
24500 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
24505 rm -f conftest.$ac_objext
24506 if { (ac_try="$ac_compile"
24507 case "(($ac_try" in
24508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24509 *) ac_try_echo=$ac_try;;
24511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24512 (eval "$ac_compile") 2>conftest.er1
24514 grep -v '^ *+' conftest.er1 >conftest.err
24516 cat conftest.err >&5
24517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24518 (exit $ac_status); } && {
24519 test -z "$ac_c_werror_flag" ||
24520 test ! -s conftest.err
24521 } && test -s conftest.$ac_objext; then
24522 ac_cv_sizeof_void_LpR_LvoidR=$ac_size
24524 echo "$as_me: failed program was:" >&5
24525 sed 's/^/| /' conftest.$ac_ext >&5
24530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24531 if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
24537 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
24538 { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
24539 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
24540 { (exit 1); exit 1; }; }
24542 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
24543 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6; }
24547 { echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
24548 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6; }
24549 if test x$endian = x1 ; then
24555 trace="$trace_endian"
24557 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
24559 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
24560 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
24561 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
24562 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
24564 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
24565 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
24567 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
24569 # sizeof float/double are not tested since IEEE 754 is assumed.
24570 # Check README.IEEE for rational.
24572 # The numbers after the _ in the arch name are the maximal packing boundary.
24573 # big32_2 means that all data are aligned on a 2 bytes boundary. (ARM)
24574 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
24576 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;;
24577 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;;
24578 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;;
24579 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;;
24581 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;;
24583 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;;
24584 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;;
24585 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;;
24586 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;;
24588 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;;
24589 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;;
24591 if test x$gras_arch = xunknown ; then
24592 { echo "$as_me:$LINENO: result: damnit ($trace)" >&5
24593 echo "${ECHO_T}damnit ($trace)" >&6; }
24594 { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
24595 Please report this architecture trace ($trace) and what it corresponds to." >&5
24596 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
24597 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
24598 { (exit 1); exit 1; }; }
24600 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
24602 cat >>confdefs.h <<_ACEOF
24603 #define GRAS_THISARCH $gras_arch
24606 { echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
24607 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6; }
24609 if test "$gras_size" = 32; then
24610 GRAS_ARCH_32_BITS_TRUE=
24611 GRAS_ARCH_32_BITS_FALSE='#'
24613 GRAS_ARCH_32_BITS_TRUE='#'
24614 GRAS_ARCH_32_BITS_FALSE=
24618 { echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
24619 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6; }
24621 for s in $ac_cv_sizeof_char \
24622 $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
24623 $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
24626 if test $ac_cv_sizeof_max -lt $s ; then
24627 ac_cv_sizeof_max=$s
24630 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
24631 echo "${ECHO_T}$ac_cv_sizeof_max" >&6; }
24633 cat >>confdefs.h <<_ACEOF
24634 #define SIZEOF_MAX $ac_cv_sizeof_max
24639 # Check architecture signature end
24640 { echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
24641 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6; }
24642 cat >conftest.$ac_ext <<_ACEOF
24645 cat confdefs.h >>conftest.$ac_ext
24646 cat >>conftest.$ac_ext <<_ACEOF
24647 /* end confdefs.h. */
24648 #include "confdefs.h"
24649 #include <sys/types.h>
24650 #include <stddef.h> /* offsetof() */
24651 struct s {char c; double d;};
24658 case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
24664 rm -f conftest.$ac_objext
24665 if { (ac_try="$ac_compile"
24666 case "(($ac_try" in
24667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24668 *) ac_try_echo=$ac_try;;
24670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24671 (eval "$ac_compile") 2>conftest.er1
24673 grep -v '^ *+' conftest.er1 >conftest.err
24675 cat conftest.err >&5
24676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677 (exit $ac_status); } && {
24678 test -z "$ac_c_werror_flag" ||
24679 test ! -s conftest.err
24680 } && test -s conftest.$ac_objext; then
24681 gras_struct_packed=yes
24683 echo "$as_me: failed program was:" >&5
24684 sed 's/^/| /' conftest.$ac_ext >&5
24686 gras_struct_packed=no
24689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24691 { echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
24692 echo "${ECHO_T}$gras_struct_packed" >&6; }
24693 if test x$gras_struct_packed = "xyes" ; then
24694 { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
24695 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
24696 { (exit 1); exit 1; }; }
24699 { echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
24700 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6; }
24701 cat >conftest.$ac_ext <<_ACEOF
24704 cat confdefs.h >>conftest.$ac_ext
24705 cat >>conftest.$ac_ext <<_ACEOF
24706 /* end confdefs.h. */
24707 #include "confdefs.h"
24708 #include <sys/types.h>
24709 #include <stddef.h> /* offsetof() */
24710 struct s {double d; int i; char c;};
24717 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24723 rm -f conftest.$ac_objext
24724 if { (ac_try="$ac_compile"
24725 case "(($ac_try" in
24726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24727 *) ac_try_echo=$ac_try;;
24729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24730 (eval "$ac_compile") 2>conftest.er1
24732 grep -v '^ *+' conftest.er1 >conftest.err
24734 cat conftest.err >&5
24735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736 (exit $ac_status); } && {
24737 test -z "$ac_c_werror_flag" ||
24738 test ! -s conftest.err
24739 } && test -s conftest.$ac_objext; then
24740 gras_struct_compact=yes
24742 echo "$as_me: failed program was:" >&5
24743 sed 's/^/| /' conftest.$ac_ext >&5
24745 gras_struct_compact=no
24748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24750 { echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
24751 echo "${ECHO_T}$gras_struct_compact" >&6; }
24753 if test x$gras_struct_compact != xyes ; then
24754 { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
24755 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
24756 { (exit 1); exit 1; }; }
24759 cat >>confdefs.h <<_ACEOF
24760 #define GRAS_STRUCT_COMPACT 1
24763 { echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
24764 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6; }
24766 cat >conftest.$ac_ext <<_ACEOF
24769 cat confdefs.h >>conftest.$ac_ext
24770 cat >>conftest.$ac_ext <<_ACEOF
24771 /* end confdefs.h. */
24772 #include "confdefs.h"
24773 #include <sys/types.h>
24774 #include <stddef.h> /* offsetof() */
24775 struct s { double d; int i; char c[6]; };
24782 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24788 rm -f conftest.$ac_objext
24789 if { (ac_try="$ac_compile"
24790 case "(($ac_try" in
24791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24792 *) ac_try_echo=$ac_try;;
24794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24795 (eval "$ac_compile") 2>conftest.er1
24797 grep -v '^ *+' conftest.er1 >conftest.err
24799 cat conftest.err >&5
24800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801 (exit $ac_status); } && {
24802 test -z "$ac_c_werror_flag" ||
24803 test ! -s conftest.err
24804 } && test -s conftest.$ac_objext; then
24805 gras_array_straddle_struct=yes
24807 echo "$as_me: failed program was:" >&5
24808 sed 's/^/| /' conftest.$ac_ext >&5
24810 gras_array_straddle_struct=no
24813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24815 { echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
24816 echo "${ECHO_T}$gras_array_straddle_struct" >&6; }
24818 if test x$gras_array_straddle_struct = xyes ; then
24820 cat >>confdefs.h <<_ACEOF
24821 #define GRAS_ARRAY_STRADDLE_STRUCT 1
24825 { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
24826 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
24827 { (exit 1); exit 1; }; }
24834 { echo "$as_me:$LINENO: result: " >&5
24835 echo "${ECHO_T}" >&6; }
24836 { echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
24837 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6; }
24842 { echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
24843 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6; }
24844 if test "${ac_cv_check_mcsc+set}" = set; then
24845 echo $ECHO_N "(cached) $ECHO_C" >&6
24848 if test "$cross_compiling" = yes; then
24849 ac_cv_check_mcsc=no
24852 cat >conftest.$ac_ext <<_ACEOF
24855 cat confdefs.h >>conftest.$ac_ext
24856 cat >>conftest.$ac_ext <<_ACEOF
24857 /* end confdefs.h. */
24861 #include <stdlib.h>
24862 #include <ucontext.h>
24864 ucontext_t uc_child;
24865 ucontext_t uc_main;
24869 if (swapcontext(&uc_child, &uc_main) != 0)
24873 int main(int argc, char *argv[])
24878 /* the default is that it fails */
24879 if ((fp = fopen("conftestval", "w")) == NULL)
24881 fprintf(fp, "no\n");
24884 /* configure a child user-space context */
24885 if ((stack = malloc(64*1024)) == NULL)
24887 if (getcontext(&uc_child) != 0)
24889 uc_child.uc_link = NULL;
24890 uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
24891 uc_child.uc_stack.ss_size = 32*1024;
24892 uc_child.uc_stack.ss_flags = 0;
24893 makecontext(&uc_child, child, 0);
24895 /* switch into the user context */
24896 if (swapcontext(&uc_main, &uc_child) != 0)
24899 /* Fine, child came home */
24900 if ((fp = fopen("conftestval", "w")) == NULL)
24902 fprintf(fp, "yes\n");
24905 /* die successfully */
24910 rm -f conftest$ac_exeext
24911 if { (ac_try="$ac_link"
24912 case "(($ac_try" in
24913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24914 *) ac_try_echo=$ac_try;;
24916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24917 (eval "$ac_link") 2>&5
24919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24921 { (case "(($ac_try" in
24922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24923 *) ac_try_echo=$ac_try;;
24925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24926 (eval "$ac_try") 2>&5
24928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929 (exit $ac_status); }; }; then
24930 ac_cv_check_mcsc=`cat conftestval`
24932 echo "$as_me: program exited with status $ac_status" >&5
24933 echo "$as_me: failed program was:" >&5
24934 sed 's/^/| /' conftest.$ac_ext >&5
24936 ( exit $ac_status )
24937 ac_cv_check_mcsc=no
24939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24944 { echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
24945 echo "${ECHO_T}$ac_cv_check_mcsc" >&6; }
24946 if test ".$ac_cv_check_mcsc" = .yes; then
24954 for ac_header in pthread.h
24956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24961 echo $ECHO_N "(cached) $ECHO_C" >&6
24963 ac_res=`eval echo '${'$as_ac_Header'}'`
24964 { echo "$as_me:$LINENO: result: $ac_res" >&5
24965 echo "${ECHO_T}$ac_res" >&6; }
24967 # Is the header compilable?
24968 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24970 cat >conftest.$ac_ext <<_ACEOF
24973 cat confdefs.h >>conftest.$ac_ext
24974 cat >>conftest.$ac_ext <<_ACEOF
24975 /* end confdefs.h. */
24976 $ac_includes_default
24977 #include <$ac_header>
24979 rm -f conftest.$ac_objext
24980 if { (ac_try="$ac_compile"
24981 case "(($ac_try" in
24982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24983 *) ac_try_echo=$ac_try;;
24985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24986 (eval "$ac_compile") 2>conftest.er1
24988 grep -v '^ *+' conftest.er1 >conftest.err
24990 cat conftest.err >&5
24991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24992 (exit $ac_status); } && {
24993 test -z "$ac_c_werror_flag" ||
24994 test ! -s conftest.err
24995 } && test -s conftest.$ac_objext; then
24996 ac_header_compiler=yes
24998 echo "$as_me: failed program was:" >&5
24999 sed 's/^/| /' conftest.$ac_ext >&5
25001 ac_header_compiler=no
25004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25006 echo "${ECHO_T}$ac_header_compiler" >&6; }
25008 # Is the header present?
25009 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25011 cat >conftest.$ac_ext <<_ACEOF
25014 cat confdefs.h >>conftest.$ac_ext
25015 cat >>conftest.$ac_ext <<_ACEOF
25016 /* end confdefs.h. */
25017 #include <$ac_header>
25019 if { (ac_try="$ac_cpp conftest.$ac_ext"
25020 case "(($ac_try" in
25021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25022 *) ac_try_echo=$ac_try;;
25024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25027 grep -v '^ *+' conftest.er1 >conftest.err
25029 cat conftest.err >&5
25030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25031 (exit $ac_status); } >/dev/null && {
25032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25033 test ! -s conftest.err
25035 ac_header_preproc=yes
25037 echo "$as_me: failed program was:" >&5
25038 sed 's/^/| /' conftest.$ac_ext >&5
25040 ac_header_preproc=no
25043 rm -f conftest.err conftest.$ac_ext
25044 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25045 echo "${ECHO_T}$ac_header_preproc" >&6; }
25047 # So? What about this header?
25048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25054 ac_header_preproc=yes
25057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25060 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25064 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25070 ## -------------------------------------------------- ##
25071 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
25072 ## -------------------------------------------------- ##
25074 ) | sed "s/^/$as_me: WARNING: /" >&2
25077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25080 echo $ECHO_N "(cached) $ECHO_C" >&6
25082 eval "$as_ac_Header=\$ac_header_preproc"
25084 ac_res=`eval echo '${'$as_ac_Header'}'`
25085 { echo "$as_me:$LINENO: result: $ac_res" >&5
25086 echo "${ECHO_T}$ac_res" >&6; }
25089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25090 cat >>confdefs.h <<_ACEOF
25091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25098 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
25099 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
25100 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
25101 echo $ECHO_N "(cached) $ECHO_C" >&6
25103 ac_check_lib_save_LIBS=$LIBS
25104 LIBS="-lpthread $LIBS"
25105 cat >conftest.$ac_ext <<_ACEOF
25108 cat confdefs.h >>conftest.$ac_ext
25109 cat >>conftest.$ac_ext <<_ACEOF
25110 /* end confdefs.h. */
25112 /* Override any GCC internal prototype to avoid an error.
25113 Use char because int might match the return type of a GCC
25114 builtin and then its argument prototype would still apply. */
25118 char pthread_create ();
25122 return pthread_create ();
25127 rm -f conftest.$ac_objext conftest$ac_exeext
25128 if { (ac_try="$ac_link"
25129 case "(($ac_try" in
25130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25131 *) ac_try_echo=$ac_try;;
25133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25134 (eval "$ac_link") 2>conftest.er1
25136 grep -v '^ *+' conftest.er1 >conftest.err
25138 cat conftest.err >&5
25139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25140 (exit $ac_status); } && {
25141 test -z "$ac_c_werror_flag" ||
25142 test ! -s conftest.err
25143 } && test -s conftest$ac_exeext &&
25144 $as_test_x conftest$ac_exeext; then
25145 ac_cv_lib_pthread_pthread_create=yes
25147 echo "$as_me: failed program was:" >&5
25148 sed 's/^/| /' conftest.$ac_ext >&5
25150 ac_cv_lib_pthread_pthread_create=no
25153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25154 conftest$ac_exeext conftest.$ac_ext
25155 LIBS=$ac_check_lib_save_LIBS
25157 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
25158 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
25159 if test $ac_cv_lib_pthread_pthread_create = yes; then
25166 if test x$pthread = xyes ; then
25167 { echo "$as_me:$LINENO: checking for sem_init in -lpthread" >&5
25168 echo $ECHO_N "checking for sem_init in -lpthread... $ECHO_C" >&6; }
25169 if test "${ac_cv_lib_pthread_sem_init+set}" = set; then
25170 echo $ECHO_N "(cached) $ECHO_C" >&6
25172 ac_check_lib_save_LIBS=$LIBS
25173 LIBS="-lpthread $LIBS"
25174 cat >conftest.$ac_ext <<_ACEOF
25177 cat confdefs.h >>conftest.$ac_ext
25178 cat >>conftest.$ac_ext <<_ACEOF
25179 /* end confdefs.h. */
25181 /* Override any GCC internal prototype to avoid an error.
25182 Use char because int might match the return type of a GCC
25183 builtin and then its argument prototype would still apply. */
25191 return sem_init ();
25196 rm -f conftest.$ac_objext conftest$ac_exeext
25197 if { (ac_try="$ac_link"
25198 case "(($ac_try" in
25199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25200 *) ac_try_echo=$ac_try;;
25202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25203 (eval "$ac_link") 2>conftest.er1
25205 grep -v '^ *+' conftest.er1 >conftest.err
25207 cat conftest.err >&5
25208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209 (exit $ac_status); } && {
25210 test -z "$ac_c_werror_flag" ||
25211 test ! -s conftest.err
25212 } && test -s conftest$ac_exeext &&
25213 $as_test_x conftest$ac_exeext; then
25214 ac_cv_lib_pthread_sem_init=yes
25216 echo "$as_me: failed program was:" >&5
25217 sed 's/^/| /' conftest.$ac_ext >&5
25219 ac_cv_lib_pthread_sem_init=no
25222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25223 conftest$ac_exeext conftest.$ac_ext
25224 LIBS=$ac_check_lib_save_LIBS
25226 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_init" >&5
25227 echo "${ECHO_T}$ac_cv_lib_pthread_sem_init" >&6; }
25228 if test $ac_cv_lib_pthread_sem_init = yes; then
25234 if test ${HAVE_SEM_INIT} = yes ; then
25235 { echo "$as_me:$LINENO: checking if sem_init is compilable" >&5
25236 echo $ECHO_N "checking if sem_init is compilable... $ECHO_C" >&6; }
25237 cat >conftest.$ac_ext <<_ACEOF
25240 cat confdefs.h >>conftest.$ac_ext
25241 cat >>conftest.$ac_ext <<_ACEOF
25242 /* end confdefs.h. */
25243 #include <semaphore.h>
25247 sem_t s; sem_init(&s);
25252 rm -f conftest.$ac_objext
25253 if { (ac_try="$ac_compile"
25254 case "(($ac_try" in
25255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25256 *) ac_try_echo=$ac_try;;
25258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25259 (eval "$ac_compile") 2>conftest.er1
25261 grep -v '^ *+' conftest.er1 >conftest.err
25263 cat conftest.err >&5
25264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25265 (exit $ac_status); } && {
25266 test -z "$ac_c_werror_flag" ||
25267 test ! -s conftest.err
25268 } && test -s conftest.$ac_objext; then
25271 echo "$as_me: failed program was:" >&5
25272 sed 's/^/| /' conftest.$ac_ext >&5
25277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25278 if test ${HAVE_SEM_INIT} = yes ; then
25280 cat >>confdefs.h <<\_ACEOF
25281 #define HAVE_SEM_INIT 1
25284 { echo "$as_me:$LINENO: result: yes" >&5
25285 echo "${ECHO_T}yes" >&6; }
25287 { echo "$as_me:$LINENO: result: no" >&5
25288 echo "${ECHO_T}no" >&6; }
25291 { echo "$as_me:$LINENO: checking for sem_timedwait in -lpthread" >&5
25292 echo $ECHO_N "checking for sem_timedwait in -lpthread... $ECHO_C" >&6; }
25293 if test "${ac_cv_lib_pthread_sem_timedwait+set}" = set; then
25294 echo $ECHO_N "(cached) $ECHO_C" >&6
25296 ac_check_lib_save_LIBS=$LIBS
25297 LIBS="-lpthread $LIBS"
25298 cat >conftest.$ac_ext <<_ACEOF
25301 cat confdefs.h >>conftest.$ac_ext
25302 cat >>conftest.$ac_ext <<_ACEOF
25303 /* end confdefs.h. */
25305 /* Override any GCC internal prototype to avoid an error.
25306 Use char because int might match the return type of a GCC
25307 builtin and then its argument prototype would still apply. */
25311 char sem_timedwait ();
25315 return sem_timedwait ();
25320 rm -f conftest.$ac_objext conftest$ac_exeext
25321 if { (ac_try="$ac_link"
25322 case "(($ac_try" in
25323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25324 *) ac_try_echo=$ac_try;;
25326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25327 (eval "$ac_link") 2>conftest.er1
25329 grep -v '^ *+' conftest.er1 >conftest.err
25331 cat conftest.err >&5
25332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333 (exit $ac_status); } && {
25334 test -z "$ac_c_werror_flag" ||
25335 test ! -s conftest.err
25336 } && test -s conftest$ac_exeext &&
25337 $as_test_x conftest$ac_exeext; then
25338 ac_cv_lib_pthread_sem_timedwait=yes
25340 echo "$as_me: failed program was:" >&5
25341 sed 's/^/| /' conftest.$ac_ext >&5
25343 ac_cv_lib_pthread_sem_timedwait=no
25346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25347 conftest$ac_exeext conftest.$ac_ext
25348 LIBS=$ac_check_lib_save_LIBS
25350 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_timedwait" >&5
25351 echo "${ECHO_T}$ac_cv_lib_pthread_sem_timedwait" >&6; }
25352 if test $ac_cv_lib_pthread_sem_timedwait = yes; then
25353 HAVE_SEM_TIMEDWAIT=yes
25355 HAVE_SEM_TIMEDWAIT=no
25358 if test ${HAVE_SEM_TIMEDWAIT} = yes ; then
25359 { echo "$as_me:$LINENO: checking if sem_timedwait is compilable" >&5
25360 echo $ECHO_N "checking if sem_timedwait is compilable... $ECHO_C" >&6; }
25361 cat >conftest.$ac_ext <<_ACEOF
25364 cat confdefs.h >>conftest.$ac_ext
25365 cat >>conftest.$ac_ext <<_ACEOF
25366 /* end confdefs.h. */
25367 #include <semaphore.h>
25371 sem_t *s; const struct timespec * t; sem_timedwait(s, t);
25376 rm -f conftest.$ac_objext
25377 if { (ac_try="$ac_compile"
25378 case "(($ac_try" in
25379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25380 *) ac_try_echo=$ac_try;;
25382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25383 (eval "$ac_compile") 2>conftest.er1
25385 grep -v '^ *+' conftest.er1 >conftest.err
25387 cat conftest.err >&5
25388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25389 (exit $ac_status); } && {
25390 test -z "$ac_c_werror_flag" ||
25391 test ! -s conftest.err
25392 } && test -s conftest.$ac_objext; then
25393 HAVE_SEM_TIMEDWAIT=yes
25395 echo "$as_me: failed program was:" >&5
25396 sed 's/^/| /' conftest.$ac_ext >&5
25398 HAVE_SEM_TIMEDWAIT=no
25401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25402 if test ${HAVE_SEM_TIMEDWAIT} = yes ; then
25404 cat >>confdefs.h <<\_ACEOF
25405 #define HAVE_SEM_TIMEDWAIT 1
25408 { echo "$as_me:$LINENO: result: yes" >&5
25409 echo "${ECHO_T}yes" >&6; }
25411 { echo "$as_me:$LINENO: result: no" >&5
25412 echo "${ECHO_T}no" >&6; }
25416 { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock in -lpthread" >&5
25417 echo $ECHO_N "checking for pthread_mutex_timedlock in -lpthread... $ECHO_C" >&6; }
25418 if test "${ac_cv_lib_pthread_pthread_mutex_timedlock+set}" = set; then
25419 echo $ECHO_N "(cached) $ECHO_C" >&6
25421 ac_check_lib_save_LIBS=$LIBS
25422 LIBS="-lpthread $LIBS"
25423 cat >conftest.$ac_ext <<_ACEOF
25426 cat confdefs.h >>conftest.$ac_ext
25427 cat >>conftest.$ac_ext <<_ACEOF
25428 /* end confdefs.h. */
25430 /* Override any GCC internal prototype to avoid an error.
25431 Use char because int might match the return type of a GCC
25432 builtin and then its argument prototype would still apply. */
25436 char pthread_mutex_timedlock ();
25440 return pthread_mutex_timedlock ();
25445 rm -f conftest.$ac_objext conftest$ac_exeext
25446 if { (ac_try="$ac_link"
25447 case "(($ac_try" in
25448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25449 *) ac_try_echo=$ac_try;;
25451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25452 (eval "$ac_link") 2>conftest.er1
25454 grep -v '^ *+' conftest.er1 >conftest.err
25456 cat conftest.err >&5
25457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25458 (exit $ac_status); } && {
25459 test -z "$ac_c_werror_flag" ||
25460 test ! -s conftest.err
25461 } && test -s conftest$ac_exeext &&
25462 $as_test_x conftest$ac_exeext; then
25463 ac_cv_lib_pthread_pthread_mutex_timedlock=yes
25465 echo "$as_me: failed program was:" >&5
25466 sed 's/^/| /' conftest.$ac_ext >&5
25468 ac_cv_lib_pthread_pthread_mutex_timedlock=no
25471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25472 conftest$ac_exeext conftest.$ac_ext
25473 LIBS=$ac_check_lib_save_LIBS
25475 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_timedlock" >&5
25476 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_timedlock" >&6; }
25477 if test $ac_cv_lib_pthread_pthread_mutex_timedlock = yes; then
25478 HAVE_MUTEX_TIMEDLOCK=yes
25480 HAVE_MUTEX_TIMEDLOCK=no
25483 if test ${HAVE_MUTEX_TIMEDLOCK} = yes ; then
25484 { echo "$as_me:$LINENO: checking if pthread_mutex_timedlock is compilable" >&5
25485 echo $ECHO_N "checking if pthread_mutex_timedlock is compilable... $ECHO_C" >&6; }
25486 cat >conftest.$ac_ext <<_ACEOF
25489 cat confdefs.h >>conftest.$ac_ext
25490 cat >>conftest.$ac_ext <<_ACEOF
25491 /* end confdefs.h. */
25492 #include <pthread.h>
25496 pthread_mutex_t s; const struct timespec t; sem_timedlock(&s, &t);
25501 rm -f conftest.$ac_objext
25502 if { (ac_try="$ac_compile"
25503 case "(($ac_try" in
25504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25505 *) ac_try_echo=$ac_try;;
25507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25508 (eval "$ac_compile") 2>conftest.er1
25510 grep -v '^ *+' conftest.er1 >conftest.err
25512 cat conftest.err >&5
25513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514 (exit $ac_status); } && {
25515 test -z "$ac_c_werror_flag" ||
25516 test ! -s conftest.err
25517 } && test -s conftest.$ac_objext; then
25518 HAVE_MUTEX_TIMEDLOCK=yes
25520 echo "$as_me: failed program was:" >&5
25521 sed 's/^/| /' conftest.$ac_ext >&5
25523 HAVE_MUTEX_TIMEDLOCK=no
25526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25527 if test ${HAVE_MUTEX_TIMEDLOCK} = yes ; then
25529 cat >>confdefs.h <<\_ACEOF
25530 #define HAVE_MUTEX_TIMEDLOCK 1
25533 { echo "$as_me:$LINENO: result: yes" >&5
25534 echo "${ECHO_T}yes" >&6; }
25536 { echo "$as_me:$LINENO: result: no" >&5
25537 echo "${ECHO_T}no" >&6; }
25543 if test ".$mcsc" = .yes; then
25546 elif test ".$pthread" = .yes; then
25547 # ucontext not found, but pthread found
25550 ac_header=windows.h
25551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25553 windows_context=yes
25555 { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
25556 echo "$as_me: error: no appropriate backend found" >&2;}
25557 { (exit 1); exit 1; }; }
25560 if test x$windows_context = xyes; then
25562 IS_WINDOWS_FALSE='#'
25564 IS_WINDOWS_TRUE='#'
25571 { echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
25572 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6; }
25575 # Check whether --with-pthread was given.
25576 if test "${with_pthread+set}" = set; then
25577 withval=$with_pthread; with_context=pthread
25581 # Check whether --with-pthread was given.
25582 if test "${with_pthread+set}" = set; then
25583 withval=$with_pthread; with_context=pthread
25588 # Check whether --with-context was given.
25589 if test "${with_context+set}" = set; then
25590 withval=$with_context;
25596 if test "x$with_context$mcsc" = "xucontextno" ; then
25597 { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
25598 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
25599 { (exit 77); exit 77; }; }
25602 case $with_context in
25607 auto) with_context=ucontext;;
25608 *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
25609 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
25610 { (exit 1); exit 1; }; } ;;
25613 if test "x$with_context" = "xucontext" ; then
25614 if test ".$mcsc" = .yes; then
25615 { echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
25616 echo "${ECHO_T}found working ucontext. Great!" >&6; }
25618 cat >>confdefs.h <<\_ACEOF
25619 #define CONTEXT_UCONTEXT 1
25623 if test ".$windows_context" = .yes ; then
25624 { echo "$as_me:$LINENO: result: use windows context portability layer." >&5
25625 echo "${ECHO_T}use windows context portability layer." >&6; }
25626 with_context=windows
25628 { echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
25629 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6; }
25630 with_context=pthread
25635 if test "x$with_context" = "xpthread"; then
25636 if test x$pthread != xyes ; then # reuse previous checks
25637 { { echo "$as_me:$LINENO: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&5
25638 echo "$as_me: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&2;}
25639 { (exit 1); exit 1; }; }
25642 cat >>confdefs.h <<\_ACEOF
25643 #define CONTEXT_THREADS 1
25646 { echo "$as_me:$LINENO: result: You have pthreads and requested for them. Fine." >&5
25647 echo "${ECHO_T}You have pthreads and requested for them. Fine." >&6; }
25649 if test "x$with_context" != xucontext; then
25650 CONTEXT_THREADS_TRUE=
25651 CONTEXT_THREADS_FALSE='#'
25653 CONTEXT_THREADS_TRUE='#'
25654 CONTEXT_THREADS_FALSE=
25659 if test "x$with_context" = "xucontext" ; then
25660 { echo "$as_me:$LINENO: checking for direction of stack growth" >&5
25661 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6; }
25662 if test "${ac_cv_check_stackgrowth+set}" = set; then
25663 echo $ECHO_N "(cached) $ECHO_C" >&6
25667 if test "$cross_compiling" = yes; then
25668 ac_cv_check_stackgrowth=down
25671 cat >conftest.$ac_ext <<_ACEOF
25674 cat confdefs.h >>conftest.$ac_ext
25675 cat >>conftest.$ac_ext <<_ACEOF
25676 /* end confdefs.h. */
25679 #include <stdlib.h>
25680 static int iterate = 10;
25681 static int growsdown(int *x)
25691 int main(int argc, char *argv[])
25695 if ((f = fopen("conftestval", "w")) == NULL)
25697 fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
25704 rm -f conftest$ac_exeext
25705 if { (ac_try="$ac_link"
25706 case "(($ac_try" in
25707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25708 *) ac_try_echo=$ac_try;;
25710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25711 (eval "$ac_link") 2>&5
25713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25715 { (case "(($ac_try" in
25716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25717 *) ac_try_echo=$ac_try;;
25719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25720 (eval "$ac_try") 2>&5
25722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25723 (exit $ac_status); }; }; then
25724 ac_cv_check_stackgrowth=`cat conftestval`
25726 echo "$as_me: program exited with status $ac_status" >&5
25727 echo "$as_me: failed program was:" >&5
25728 sed 's/^/| /' conftest.$ac_ext >&5
25730 ( exit $ac_status )
25731 ac_cv_check_stackgrowth=down
25733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25738 { echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
25739 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6; }
25740 if test ".$ac_cv_check_stackgrowth" = ".down"; then
25746 cat >>confdefs.h <<_ACEOF
25747 #define PTH_STACKGROWTH $val
25751 if test ".$ac_cv_check_stackgrowth" = ".down"; then
25752 PTH_STACK_GROWTH="down"
25754 PTH_STACK_GROWTH="up"
25762 for ac_func in makecontext
25764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25765 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25768 echo $ECHO_N "(cached) $ECHO_C" >&6
25770 cat >conftest.$ac_ext <<_ACEOF
25773 cat confdefs.h >>conftest.$ac_ext
25774 cat >>conftest.$ac_ext <<_ACEOF
25775 /* end confdefs.h. */
25776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25778 #define $ac_func innocuous_$ac_func
25780 /* System header to define __stub macros and hopefully few prototypes,
25781 which can conflict with char $ac_func (); below.
25782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25783 <limits.h> exists even on freestanding compilers. */
25786 # include <limits.h>
25788 # include <assert.h>
25793 /* Override any GCC internal prototype to avoid an error.
25794 Use char because int might match the return type of a GCC
25795 builtin and then its argument prototype would still apply. */
25800 /* The GNU C library defines this for functions which it implements
25801 to always fail with ENOSYS. Some functions are actually named
25802 something starting with __ and the normal name is an alias. */
25803 #if defined __stub_$ac_func || defined __stub___$ac_func
25810 return $ac_func ();
25815 rm -f conftest.$ac_objext conftest$ac_exeext
25816 if { (ac_try="$ac_link"
25817 case "(($ac_try" in
25818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25819 *) ac_try_echo=$ac_try;;
25821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25822 (eval "$ac_link") 2>conftest.er1
25824 grep -v '^ *+' conftest.er1 >conftest.err
25826 cat conftest.err >&5
25827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828 (exit $ac_status); } && {
25829 test -z "$ac_c_werror_flag" ||
25830 test ! -s conftest.err
25831 } && test -s conftest$ac_exeext &&
25832 $as_test_x conftest$ac_exeext; then
25833 eval "$as_ac_var=yes"
25835 echo "$as_me: failed program was:" >&5
25836 sed 's/^/| /' conftest.$ac_ext >&5
25838 eval "$as_ac_var=no"
25841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25842 conftest$ac_exeext conftest.$ac_ext
25844 ac_res=`eval echo '${'$as_ac_var'}'`
25845 { echo "$as_me:$LINENO: result: $ac_res" >&5
25846 echo "${ECHO_T}$ac_res" >&6; }
25847 if test `eval echo '${'$as_ac_var'}'` = yes; then
25848 cat >>confdefs.h <<_ACEOF
25849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25856 { echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
25857 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6; }
25858 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
25859 echo $ECHO_N "(cached) $ECHO_C" >&6
25862 if test ".$ac_cv_func_makecontext" = .no; then
25863 ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
25866 CFLAGS="$CFLAGS -DTEST_makecontext"
25868 if test "$cross_compiling" = yes; then
25870 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25873 cat >conftest.$ac_ext <<_ACEOF
25876 cat confdefs.h >>conftest.$ac_ext
25877 cat >>conftest.$ac_ext <<_ACEOF
25878 /* end confdefs.h. */
25881 #include <stdlib.h>
25882 #include <string.h>
25883 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25884 #include <sys/types.h>
25885 #include <signal.h>
25886 #include <unistd.h>
25888 #if defined(TEST_makecontext)
25889 #include <ucontext.h>
25898 static volatile char *handler_addr = (char *)0xDEAD;
25899 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25900 static volatile int handler_done = 0;
25901 void handler(int sig)
25903 char garbage[1024];
25906 for (i = 0; i < 1024; i++)
25908 handler_addr = (char *)&dummy;
25913 #if defined(TEST_makecontext)
25914 static ucontext_t uc_handler;
25915 static ucontext_t uc_main;
25918 char garbage[1024];
25921 for (i = 0; i < 1024; i++)
25923 handler_addr = (char *)&dummy;
25924 swapcontext(&uc_handler, &uc_main);
25928 int main(int argc, char *argv[])
25937 skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
25940 for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
25942 skaddr = skbuf+sizeof(union alltypes);
25943 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25945 struct sigaction sa;
25946 #if defined(TEST_sigstack)
25947 struct sigstack ss;
25948 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
25951 struct sigaltstack ss;
25953 #if defined(TEST_sigstack)
25954 ss.ss_sp = (void *)(skaddr + sksize);
25956 if (sigstack(&ss, NULL) < 0)
25958 #elif defined(TEST_sigaltstack)
25959 ss.ss_sp = (void *)(skaddr + sksize);
25960 ss.ss_size = sksize;
25962 if (sigaltstack(&ss, NULL) < 0)
25965 memset((void *)&sa, 0, sizeof(struct sigaction));
25966 sa.sa_handler = handler;
25967 sa.sa_flags = SA_ONSTACK;
25968 sigemptyset(&sa.sa_mask);
25969 sigaction(SIGUSR1, &sa, NULL);
25970 kill(getpid(), SIGUSR1);
25971 while (!handler_done)
25975 #if defined(TEST_makecontext)
25977 if (getcontext(&uc_handler) != 0)
25979 uc_handler.uc_link = NULL;
25980 uc_handler.uc_stack.ss_sp = (void *)(skaddr + sksize);
25981 uc_handler.uc_stack.ss_size = sksize;
25982 uc_handler.uc_stack.ss_flags = 0;
25983 makecontext(&uc_handler, handler, 0);
25984 swapcontext(&uc_main, &uc_handler);
25987 if (handler_addr == (char *)0xDEAD)
25989 if (handler_addr < skaddr+sksize) {
25990 /* stack was placed into lower area */
25991 if (*(skaddr+sksize) != 'A')
25992 sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
25993 sizeof(union alltypes), sizeof(union alltypes));
25995 strcpy(result, "(skaddr)+(sksize),(sksize)");
25998 /* stack was placed into higher area */
25999 if (*(skaddr+sksize*2) != 'A')
26000 sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
26002 strcpy(result, "(skaddr),(sksize)");
26004 if ((f = fopen("conftestval", "w")) == NULL)
26006 fprintf(f, "%s\n", result);
26012 rm -f conftest$ac_exeext
26013 if { (ac_try="$ac_link"
26014 case "(($ac_try" in
26015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26016 *) ac_try_echo=$ac_try;;
26018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26019 (eval "$ac_link") 2>&5
26021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26023 { (case "(($ac_try" in
26024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26025 *) ac_try_echo=$ac_try;;
26027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26028 (eval "$ac_try") 2>&5
26030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031 (exit $ac_status); }; }; then
26033 ac_cv_stacksetup_makecontext=`cat conftestval`
26034 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
26037 echo "$as_me: program exited with status $ac_status" >&5
26038 echo "$as_me: failed program was:" >&5
26039 sed 's/^/| /' conftest.$ac_ext >&5
26041 ( exit $ac_status )
26043 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
26046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26054 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
26055 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
26056 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
26057 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
26058 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
26059 { echo "$as_me:$LINENO: result: $type" >&5
26060 echo "${ECHO_T}$type" >&6; }
26061 if test ".$verbose" = .yes; then
26062 { echo "$as_me:$LINENO: result: $pth_skaddr_makecontext" >&5
26063 echo "${ECHO_T} $pth_skaddr_makecontext" >&6; }
26066 if test ".$verbose" = .yes; then
26067 { echo "$as_me:$LINENO: result: $pth_sksize_makecontext" >&5
26068 echo "${ECHO_T} $pth_sksize_makecontext" >&6; }
26074 #########################################
26075 ## Check for libraries extra-dependencies
26079 { echo "$as_me:$LINENO: result: " >&5
26080 echo "${ECHO_T}" >&6; }
26081 { echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
26082 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6; }
26089 if test xpthread=xyes ; then
26090 # if the pthreads are usable
26091 if test "x$with_context" = "xpthread" ; then
26092 # if we use them to implement the xbt_context
26093 SIMGRID_DEP="-lpthread"
26095 # we need them in any case for the gras lib (which is multithreaded), but on windows (of course)
26096 if test "x$with_context" != "xwindows" ; then
26097 GRAS_DEP="-lpthread"
26101 #########################################
26102 ## Build optional modules (gtnets)
26106 # Check whether --with-gtnets was given.
26107 if test "${with_gtnets+set}" = set; then
26108 withval=$with_gtnets; gtnets_path="$withval"
26113 if test "x$gtnets_path" = "xno" ; then
26114 { echo "$as_me:$LINENO: result: Eventually you will come to GTNetS." >&5
26115 echo "${ECHO_T}Eventually you will come to GTNetS." >&6; }
26117 { echo "$as_me:$LINENO: result: ***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. *****" >&5
26118 echo "${ECHO_T}***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. *****" >&6; }
26119 { echo "$as_me:$LINENO: checking for gtnets" >&5
26120 echo $ECHO_N "checking for gtnets... $ECHO_C" >&6; }
26122 ac_cpp='$CXXCPP $CPPFLAGS'
26123 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26124 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26125 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26127 GTNETS_LDFLAGS="-lgtnets -L$gtnets_path/lib"
26128 GTNETS_CPPFLAGS="-I$gtnets_path/include -I$gtnets_path/include/gtnets"
26129 LDFLAGS_SAV=$LDFLAGS
26130 CPPFLAGS_SAV=$CPPFLAGS
26131 CPPFLAGS+=$GTNETS_CPPFLAGS
26132 LDFLAGS+=$GTNETS_LDFLAGS
26133 cat >conftest.$ac_ext <<_ACEOF
26136 cat confdefs.h >>conftest.$ac_ext
26137 cat >>conftest.$ac_ext <<_ACEOF
26138 /* end confdefs.h. */
26139 #include <simulator.h>
26144 Simulator s; s.RunUntilNextCompletion();
26149 rm -f conftest.$ac_objext conftest$ac_exeext
26150 if { (ac_try="$ac_link"
26151 case "(($ac_try" in
26152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26153 *) ac_try_echo=$ac_try;;
26155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26156 (eval "$ac_link") 2>conftest.er1
26158 grep -v '^ *+' conftest.er1 >conftest.err
26160 cat conftest.err >&5
26161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26162 (exit $ac_status); } && {
26163 test -z "$ac_cxx_werror_flag" ||
26164 test ! -s conftest.err
26165 } && test -s conftest$ac_exeext &&
26166 $as_test_x conftest$ac_exeext; then
26169 echo "$as_me: failed program was:" >&5
26170 sed 's/^/| /' conftest.$ac_ext >&5
26175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26176 conftest$ac_exeext conftest.$ac_ext
26177 CPPFLAGS=$CPPFLAGS_SAV
26178 LDFLAGS=$LDFLAGS_SAV
26180 ac_cpp='$CPP $CPPFLAGS'
26181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26186 if test "x$gtnets" = xyes ; then
26187 AM_CPPFLAGS="$AM_CPPFLAGS $GTNETS_CPPFLAGS"
26188 SIMGRID_DEP="$SIMGRID_DEP $GTNETS_LDFLAGS"
26189 { echo "$as_me:$LINENO: result: Found working gtnets library." >&5
26190 echo "${ECHO_T}Found working gtnets library." >&6; }
26192 cat >>confdefs.h <<\_ACEOF
26193 #define HAVE_GTNETS 1
26197 { echo "$as_me:$LINENO: result: Could not find any working gtnets library or not patched version" >&5
26198 echo "${ECHO_T}Could not find any working gtnets library or not patched version" >&6; }
26201 if test "x$gtnets" != xno; then
26203 HAVE_GTNETS_FALSE='#'
26205 HAVE_GTNETS_TRUE='#'
26210 #########################################
26211 ## Build optional modules (csdp)
26215 # Check whether --with-csdp was given.
26216 if test "${with_csdp+set}" = set; then
26217 withval=$with_csdp; csdp_path="$withval"
26222 if test "x$csdp_path" = "xno" ; then
26223 { echo "$as_me:$LINENO: result: Eventually you will come to csdp." >&5
26224 echo "${ECHO_T}Eventually you will come to csdp." >&6; }
26226 { echo "$as_me:$LINENO: result: ***** You have decided to use csdp. Let's check whether it works or not *****" >&5
26227 echo "${ECHO_T}***** You have decided to use csdp. Let's check whether it works or not *****" >&6; }
26228 { echo "$as_me:$LINENO: checking for csdp" >&5
26229 echo $ECHO_N "checking for csdp... $ECHO_C" >&6; }
26230 CSDP_LDFLAGS="-L$csdp_path/lib -lsdp -llapack -lblas -lm"
26231 CSDP_CPPFLAGS="-I$csdp_path/include -I$csdp_path/include/csdp"
26233 { echo "$as_me:$LINENO: checking for easy_sdp in -lsdp" >&5
26234 echo $ECHO_N "checking for easy_sdp in -lsdp... $ECHO_C" >&6; }
26235 if test "${ac_cv_lib_sdp_easy_sdp+set}" = set; then
26236 echo $ECHO_N "(cached) $ECHO_C" >&6
26238 ac_check_lib_save_LIBS=$LIBS
26239 LIBS="-lsdp $CSDP_LDFLAGS $LIBS"
26240 cat >conftest.$ac_ext <<_ACEOF
26243 cat confdefs.h >>conftest.$ac_ext
26244 cat >>conftest.$ac_ext <<_ACEOF
26245 /* end confdefs.h. */
26247 /* Override any GCC internal prototype to avoid an error.
26248 Use char because int might match the return type of a GCC
26249 builtin and then its argument prototype would still apply. */
26257 return easy_sdp ();
26262 rm -f conftest.$ac_objext conftest$ac_exeext
26263 if { (ac_try="$ac_link"
26264 case "(($ac_try" in
26265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26266 *) ac_try_echo=$ac_try;;
26268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26269 (eval "$ac_link") 2>conftest.er1
26271 grep -v '^ *+' conftest.er1 >conftest.err
26273 cat conftest.err >&5
26274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275 (exit $ac_status); } && {
26276 test -z "$ac_c_werror_flag" ||
26277 test ! -s conftest.err
26278 } && test -s conftest$ac_exeext &&
26279 $as_test_x conftest$ac_exeext; then
26280 ac_cv_lib_sdp_easy_sdp=yes
26282 echo "$as_me: failed program was:" >&5
26283 sed 's/^/| /' conftest.$ac_ext >&5
26285 ac_cv_lib_sdp_easy_sdp=no
26288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26289 conftest$ac_exeext conftest.$ac_ext
26290 LIBS=$ac_check_lib_save_LIBS
26292 { echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_easy_sdp" >&5
26293 echo "${ECHO_T}$ac_cv_lib_sdp_easy_sdp" >&6; }
26294 if test $ac_cv_lib_sdp_easy_sdp = yes; then
26301 CPPFLAGS_SAV=$CPPFLAGS
26302 CPPFLAGS+=$CSDP_CPPFLAGS
26303 if test "${ac_cv_header_declarations_h+set}" = set; then
26304 { echo "$as_me:$LINENO: checking for declarations.h" >&5
26305 echo $ECHO_N "checking for declarations.h... $ECHO_C" >&6; }
26306 if test "${ac_cv_header_declarations_h+set}" = set; then
26307 echo $ECHO_N "(cached) $ECHO_C" >&6
26309 { echo "$as_me:$LINENO: result: $ac_cv_header_declarations_h" >&5
26310 echo "${ECHO_T}$ac_cv_header_declarations_h" >&6; }
26312 # Is the header compilable?
26313 { echo "$as_me:$LINENO: checking declarations.h usability" >&5
26314 echo $ECHO_N "checking declarations.h usability... $ECHO_C" >&6; }
26315 cat >conftest.$ac_ext <<_ACEOF
26318 cat confdefs.h >>conftest.$ac_ext
26319 cat >>conftest.$ac_ext <<_ACEOF
26320 /* end confdefs.h. */
26321 $ac_includes_default
26322 #include <declarations.h>
26324 rm -f conftest.$ac_objext
26325 if { (ac_try="$ac_compile"
26326 case "(($ac_try" in
26327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26328 *) ac_try_echo=$ac_try;;
26330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26331 (eval "$ac_compile") 2>conftest.er1
26333 grep -v '^ *+' conftest.er1 >conftest.err
26335 cat conftest.err >&5
26336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26337 (exit $ac_status); } && {
26338 test -z "$ac_c_werror_flag" ||
26339 test ! -s conftest.err
26340 } && test -s conftest.$ac_objext; then
26341 ac_header_compiler=yes
26343 echo "$as_me: failed program was:" >&5
26344 sed 's/^/| /' conftest.$ac_ext >&5
26346 ac_header_compiler=no
26349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26350 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26351 echo "${ECHO_T}$ac_header_compiler" >&6; }
26353 # Is the header present?
26354 { echo "$as_me:$LINENO: checking declarations.h presence" >&5
26355 echo $ECHO_N "checking declarations.h presence... $ECHO_C" >&6; }
26356 cat >conftest.$ac_ext <<_ACEOF
26359 cat confdefs.h >>conftest.$ac_ext
26360 cat >>conftest.$ac_ext <<_ACEOF
26361 /* end confdefs.h. */
26362 #include <declarations.h>
26364 if { (ac_try="$ac_cpp conftest.$ac_ext"
26365 case "(($ac_try" in
26366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26367 *) ac_try_echo=$ac_try;;
26369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26372 grep -v '^ *+' conftest.er1 >conftest.err
26374 cat conftest.err >&5
26375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26376 (exit $ac_status); } >/dev/null && {
26377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26378 test ! -s conftest.err
26380 ac_header_preproc=yes
26382 echo "$as_me: failed program was:" >&5
26383 sed 's/^/| /' conftest.$ac_ext >&5
26385 ac_header_preproc=no
26388 rm -f conftest.err conftest.$ac_ext
26389 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26390 echo "${ECHO_T}$ac_header_preproc" >&6; }
26392 # So? What about this header?
26393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26395 { echo "$as_me:$LINENO: WARNING: declarations.h: accepted by the compiler, rejected by the preprocessor!" >&5
26396 echo "$as_me: WARNING: declarations.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26397 { echo "$as_me:$LINENO: WARNING: declarations.h: proceeding with the compiler's result" >&5
26398 echo "$as_me: WARNING: declarations.h: proceeding with the compiler's result" >&2;}
26399 ac_header_preproc=yes
26402 { echo "$as_me:$LINENO: WARNING: declarations.h: present but cannot be compiled" >&5
26403 echo "$as_me: WARNING: declarations.h: present but cannot be compiled" >&2;}
26404 { echo "$as_me:$LINENO: WARNING: declarations.h: check for missing prerequisite headers?" >&5
26405 echo "$as_me: WARNING: declarations.h: check for missing prerequisite headers?" >&2;}
26406 { echo "$as_me:$LINENO: WARNING: declarations.h: see the Autoconf documentation" >&5
26407 echo "$as_me: WARNING: declarations.h: see the Autoconf documentation" >&2;}
26408 { echo "$as_me:$LINENO: WARNING: declarations.h: section \"Present But Cannot Be Compiled\"" >&5
26409 echo "$as_me: WARNING: declarations.h: section \"Present But Cannot Be Compiled\"" >&2;}
26410 { echo "$as_me:$LINENO: WARNING: declarations.h: proceeding with the preprocessor's result" >&5
26411 echo "$as_me: WARNING: declarations.h: proceeding with the preprocessor's result" >&2;}
26412 { echo "$as_me:$LINENO: WARNING: declarations.h: in the future, the compiler will take precedence" >&5
26413 echo "$as_me: WARNING: declarations.h: in the future, the compiler will take precedence" >&2;}
26415 ## -------------------------------------------------- ##
26416 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
26417 ## -------------------------------------------------- ##
26419 ) | sed "s/^/$as_me: WARNING: /" >&2
26422 { echo "$as_me:$LINENO: checking for declarations.h" >&5
26423 echo $ECHO_N "checking for declarations.h... $ECHO_C" >&6; }
26424 if test "${ac_cv_header_declarations_h+set}" = set; then
26425 echo $ECHO_N "(cached) $ECHO_C" >&6
26427 ac_cv_header_declarations_h=$ac_header_preproc
26429 { echo "$as_me:$LINENO: result: $ac_cv_header_declarations_h" >&5
26430 echo "${ECHO_T}$ac_cv_header_declarations_h" >&6; }
26433 if test $ac_cv_header_declarations_h = yes; then
26440 CPPFLAGS=$CPPFLAGS_SAV
26444 if test "x$csdp_lib = xyes" -a "x$csdp_header = xyes" ; then
26449 if test "x$csdp" = xyes; then
26450 AM_CPPFLAGS="$AM_CPPFLAGS $CSDP_CPPFLAGS"
26451 SIMGRID_DEP="$SIMGRID_DEP $CSDP_LDFLAGS"
26452 { echo "$as_me:$LINENO: result: Found working sdp library." >&5
26453 echo "${ECHO_T}Found working sdp library." >&6; }
26455 cat >>confdefs.h <<\_ACEOF
26460 { echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
26461 echo "${ECHO_T}Could not find any working sdp library." >&6; }
26464 if test x$csdp != xno; then
26476 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26477 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
26478 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26479 echo $ECHO_N "(cached) $ECHO_C" >&6
26481 ac_check_lib_save_LIBS=$LIBS
26483 cat >conftest.$ac_ext <<_ACEOF
26486 cat confdefs.h >>conftest.$ac_ext
26487 cat >>conftest.$ac_ext <<_ACEOF
26488 /* end confdefs.h. */
26490 /* Override any GCC internal prototype to avoid an error.
26491 Use char because int might match the return type of a GCC
26492 builtin and then its argument prototype would still apply. */
26496 char gethostbyname ();
26500 return gethostbyname ();
26505 rm -f conftest.$ac_objext conftest$ac_exeext
26506 if { (ac_try="$ac_link"
26507 case "(($ac_try" in
26508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26509 *) ac_try_echo=$ac_try;;
26511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26512 (eval "$ac_link") 2>conftest.er1
26514 grep -v '^ *+' conftest.er1 >conftest.err
26516 cat conftest.err >&5
26517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26518 (exit $ac_status); } && {
26519 test -z "$ac_c_werror_flag" ||
26520 test ! -s conftest.err
26521 } && test -s conftest$ac_exeext &&
26522 $as_test_x conftest$ac_exeext; then
26523 ac_cv_lib_nsl_gethostbyname=yes
26525 echo "$as_me: failed program was:" >&5
26526 sed 's/^/| /' conftest.$ac_ext >&5
26528 ac_cv_lib_nsl_gethostbyname=no
26531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26532 conftest$ac_exeext conftest.$ac_ext
26533 LIBS=$ac_check_lib_save_LIBS
26535 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26536 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
26537 if test $ac_cv_lib_nsl_gethostbyname = yes; then
26538 GRAS_DEP="$GRAS_DEP -lnsl"
26541 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
26542 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
26543 if test "${ac_cv_lib_socket_connect+set}" = set; then
26544 echo $ECHO_N "(cached) $ECHO_C" >&6
26546 ac_check_lib_save_LIBS=$LIBS
26547 LIBS="-lsocket $LIBS"
26548 cat >conftest.$ac_ext <<_ACEOF
26551 cat confdefs.h >>conftest.$ac_ext
26552 cat >>conftest.$ac_ext <<_ACEOF
26553 /* end confdefs.h. */
26555 /* Override any GCC internal prototype to avoid an error.
26556 Use char because int might match the return type of a GCC
26557 builtin and then its argument prototype would still apply. */
26570 rm -f conftest.$ac_objext conftest$ac_exeext
26571 if { (ac_try="$ac_link"
26572 case "(($ac_try" in
26573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26574 *) ac_try_echo=$ac_try;;
26576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26577 (eval "$ac_link") 2>conftest.er1
26579 grep -v '^ *+' conftest.er1 >conftest.err
26581 cat conftest.err >&5
26582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26583 (exit $ac_status); } && {
26584 test -z "$ac_c_werror_flag" ||
26585 test ! -s conftest.err
26586 } && test -s conftest$ac_exeext &&
26587 $as_test_x conftest$ac_exeext; then
26588 ac_cv_lib_socket_connect=yes
26590 echo "$as_me: failed program was:" >&5
26591 sed 's/^/| /' conftest.$ac_ext >&5
26593 ac_cv_lib_socket_connect=no
26596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26597 conftest$ac_exeext conftest.$ac_ext
26598 LIBS=$ac_check_lib_save_LIBS
26600 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
26601 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
26602 if test $ac_cv_lib_socket_connect = yes; then
26603 GRAS_DEP="$GRAS_DEP -lsocket"
26607 { echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
26608 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6; }
26610 *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32";
26611 AM_CPPFLAGS="$AM_CPPFLAGS -DDLL_EXPORT"
26612 cat >>confdefs.h <<\_ACEOF
26613 #define CONTEXT_THREADS 1
26620 if test "x$GRAS_DEP" = x; then
26621 { echo "$as_me:$LINENO: result: none" >&5
26622 echo "${ECHO_T}none" >&6; }
26624 { echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
26625 echo "${ECHO_T}$GRAS_DEP" >&6; }
26629 ##############################################
26630 ## Enhance maintainer mode and SUBST variables
26631 ## (must be placed after any compilation tests since our overprotective flags
26632 ## let some tests fail)
26634 # Check whether we are doing a regular build or a GRAMINE (minimal) one
26635 # Next line is modified by sed when building gramine source tree
26637 if test x$gramine_mode = xyes
26639 USE_MAINTAINER_MODE=no
26641 if test x$gramine_mode != xno; then
26643 GRAMINE_MODE_FALSE='#'
26645 GRAMINE_MODE_TRUE='#'
26646 GRAMINE_MODE_FALSE=
26651 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
26652 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
26653 # Check whether --enable-maintainer-mode was given.
26654 if test "${enable_maintainer_mode+set}" = set; then
26655 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
26657 USE_MAINTAINER_MODE=no
26660 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
26661 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
26662 if test $USE_MAINTAINER_MODE = yes; then
26663 MAINTAINER_MODE_TRUE=
26664 MAINTAINER_MODE_FALSE='#'
26666 MAINTAINER_MODE_TRUE='#'
26667 MAINTAINER_MODE_FALSE=
26670 MAINT=$MAINTAINER_MODE_TRUE
26673 if test x$USE_MAINTAINER_MODE = xyes
26675 # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
26676 enable_compile_warnings=yes
26679 # Check whether --enable-compile-warnings was given.
26680 if test "${enable_compile_warnings+set}" = set; then
26681 enableval=$enable_compile_warnings; enable_compile_warnings=$enableval
26683 enable_compile_warnings=no
26687 # Check whether --enable-compile-optimizations was given.
26688 if test "${enable_compile_optimizations+set}" = set; then
26689 enableval=$enable_compile_optimizations; enable_compile_optimizations=$enableval
26691 enable_compile_optimizations=auto
26695 # AC PROG CC tests whether -g is accepted.
26696 # Cool, but it also tries to set -O2 and -g.
26697 # I don't want it with gcc, but -O3 and -g2, and optimization only when asked by user
26700 if test "$CFLAGS" = "-g -O2" ; then
26703 if test "$CXXFLAGS" = "-g -O2" ; then
26706 if test "$GCJFLAGS" = "-g -O2" ; then
26711 if test "x$enable_compile_warnings" = "xyes" ; then
26712 { echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
26713 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6; }
26715 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
26716 case " $CFLAGS " in
26718 *) warnCFLAGS="-Wall -Wunused" ;;
26721 ## -W is not all that useful. And it cannot be controlled
26722 ## with individual -Wno-xxx flags, unlike -Wall
26724 ##Â -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
26725 ## -Wshadow chokes on try{ try{} } constructs
26726 if test "x$enable_compile_warnings" = "xyes"; then
26727 warnCFLAGS=`echo $warnCFLAGS -Wmissing-prototypes -Wmissing-declarations \
26728 -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
26729 -Wno-unused-function -Wno-strict-aliasing \
26732 # -Wno-unused-variable -Wno-unused-label
26735 { echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
26736 echo "${ECHO_T}$warnCFLAGS" >&6; }
26737 # placed before since gcc remembers the last one on conflict
26738 CFLAGS="$warnCFLAGS $CFLAGS"
26741 if test "x$enable_compile_optimizations" = "xyes" ||
26742 test "x$enable_compile_optimizations" = "xauto" ; then
26743 { echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
26744 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6; }
26746 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
26747 case " $CFLAGS " in
26749 *) optCFLAGS="$optCFLAGS -O3" ;;
26751 optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
26753 GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
26754 GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
26755 if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" == "x3" ; then
26756 # avoid gcc bug #12828, which apeared in 3.x branch and is fixed in 3.4.0
26757 # but the check would be too complicated to get 3.4.
26758 # Instead, rule out any 3.x compiler.
26760 # Note that the flag didn't exist before gcc 3.0
26761 optCFLAGS="$optCFLAGS -fno-loop-optimize"
26764 { echo "$as_me:$LINENO: result: $optCFLAGS" >&5
26765 echo "${ECHO_T}$optCFLAGS" >&6; }
26766 # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
26767 if test "x$cflags_set" != "xyes" ; then
26768 CFLAGS="$optCFLAGS $CFLAGS"
26772 if test x$lt_cv_prog_gnu_ld = xyes ; then
26773 LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
26790 ##############################################
26791 ## Specific mode for build daemons.
26792 ## (they compile the SVN without having the autotools installed)
26793 # Check whether --enable-botbuild was given.
26794 if test "${enable_botbuild+set}" = set; then
26795 enableval=$enable_botbuild; botbuild=$enableval
26800 if test x$botbuild != xno; then
26801 BOTBUILD_MODE_TRUE=
26802 BOTBUILD_MODE_FALSE='#'
26804 BOTBUILD_MODE_TRUE='#'
26805 BOTBUILD_MODE_FALSE=
26809 if test -e .svn && test x$USE_MAINTAINER_MODE != xyes && test x$botbuild != xyes ; then
26811 echo "ERROR: You have to enable the maintainer mode to compile the SVN."
26812 echo "ERROR: For this, just call configure this way:"
26814 echo "ERROR: ./configure '--enable-maintainer-mode' $ac_configure_args"
26821 { echo "$as_me:$LINENO: result: " >&5
26822 echo "${ECHO_T}" >&6; }
26823 { echo "$as_me:$LINENO: result: ${T_MD}Check for Java bindings...${T_ME}" >&5
26824 echo "${ECHO_T}${T_MD}Check for Java bindings...${T_ME}" >&6; }
26827 # Check whether --enable-java was given.
26828 if test "${enable_java+set}" = set; then
26829 enableval=$enable_java; disable_java=$enableval
26834 if test "x$disable_java" != "xyes" ; then
26835 use_java="disabled by user"
26837 # Extract the first word of "javac", so it can be a program name with args.
26838 set dummy javac; ac_word=$2
26839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26841 if test "${ac_cv_path_JAVAC+set}" = set; then
26842 echo $ECHO_N "(cached) $ECHO_C" >&6
26846 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
26849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26850 for as_dir in $PATH
26853 test -z "$as_dir" && as_dir=.
26854 for ac_exec_ext in '' $ac_executable_extensions; do
26855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26856 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
26857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26864 test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="`which javac`"
26868 JAVAC=$ac_cv_path_JAVAC
26869 if test -n "$JAVAC"; then
26870 { echo "$as_me:$LINENO: result: $JAVAC" >&5
26871 echo "${ECHO_T}$JAVAC" >&6; }
26873 { echo "$as_me:$LINENO: result: no" >&5
26874 echo "${ECHO_T}no" >&6; }
26878 # Extract the first word of "java ", so it can be a program name with args.
26879 set dummy java ; ac_word=$2
26880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26882 if test "${ac_cv_path_JAVA+set}" = set; then
26883 echo $ECHO_N "(cached) $ECHO_C" >&6
26887 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
26890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26891 for as_dir in $PATH
26894 test -z "$as_dir" && as_dir=.
26895 for ac_exec_ext in '' $ac_executable_extensions; do
26896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26897 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
26898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26905 test -z "$ac_cv_path_JAVA" && ac_cv_path_JAVA="`which java`"
26909 JAVA=$ac_cv_path_JAVA
26910 if test -n "$JAVA"; then
26911 { echo "$as_me:$LINENO: result: $JAVA" >&5
26912 echo "${ECHO_T}$JAVA" >&6; }
26914 { echo "$as_me:$LINENO: result: no" >&5
26915 echo "${ECHO_T}no" >&6; }
26919 # Extract the first word of "jar ", so it can be a program name with args.
26920 set dummy jar ; ac_word=$2
26921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26923 if test "${ac_cv_path_JAR+set}" = set; then
26924 echo $ECHO_N "(cached) $ECHO_C" >&6
26928 ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
26931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26932 for as_dir in $PATH
26935 test -z "$as_dir" && as_dir=.
26936 for ac_exec_ext in '' $ac_executable_extensions; do
26937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26938 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
26939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26946 test -z "$ac_cv_path_JAR" && ac_cv_path_JAR="`which jar`"
26950 JAR=$ac_cv_path_JAR
26951 if test -n "$JAR"; then
26952 { echo "$as_me:$LINENO: result: $JAR" >&5
26953 echo "${ECHO_T}$JAR" >&6; }
26955 { echo "$as_me:$LINENO: result: no" >&5
26956 echo "${ECHO_T}no" >&6; }
26961 for ac_header in jni.h
26963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26965 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26968 echo $ECHO_N "(cached) $ECHO_C" >&6
26970 ac_res=`eval echo '${'$as_ac_Header'}'`
26971 { echo "$as_me:$LINENO: result: $ac_res" >&5
26972 echo "${ECHO_T}$ac_res" >&6; }
26974 # Is the header compilable?
26975 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26976 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26977 cat >conftest.$ac_ext <<_ACEOF
26980 cat confdefs.h >>conftest.$ac_ext
26981 cat >>conftest.$ac_ext <<_ACEOF
26982 /* end confdefs.h. */
26983 $ac_includes_default
26984 #include <$ac_header>
26986 rm -f conftest.$ac_objext
26987 if { (ac_try="$ac_compile"
26988 case "(($ac_try" in
26989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26990 *) ac_try_echo=$ac_try;;
26992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26993 (eval "$ac_compile") 2>conftest.er1
26995 grep -v '^ *+' conftest.er1 >conftest.err
26997 cat conftest.err >&5
26998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999 (exit $ac_status); } && {
27000 test -z "$ac_c_werror_flag" ||
27001 test ! -s conftest.err
27002 } && test -s conftest.$ac_objext; then
27003 ac_header_compiler=yes
27005 echo "$as_me: failed program was:" >&5
27006 sed 's/^/| /' conftest.$ac_ext >&5
27008 ac_header_compiler=no
27011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27012 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27013 echo "${ECHO_T}$ac_header_compiler" >&6; }
27015 # Is the header present?
27016 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27018 cat >conftest.$ac_ext <<_ACEOF
27021 cat confdefs.h >>conftest.$ac_ext
27022 cat >>conftest.$ac_ext <<_ACEOF
27023 /* end confdefs.h. */
27024 #include <$ac_header>
27026 if { (ac_try="$ac_cpp conftest.$ac_ext"
27027 case "(($ac_try" in
27028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27029 *) ac_try_echo=$ac_try;;
27031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27034 grep -v '^ *+' conftest.er1 >conftest.err
27036 cat conftest.err >&5
27037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27038 (exit $ac_status); } >/dev/null && {
27039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27040 test ! -s conftest.err
27042 ac_header_preproc=yes
27044 echo "$as_me: failed program was:" >&5
27045 sed 's/^/| /' conftest.$ac_ext >&5
27047 ac_header_preproc=no
27050 rm -f conftest.err conftest.$ac_ext
27051 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27052 echo "${ECHO_T}$ac_header_preproc" >&6; }
27054 # So? What about this header?
27055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27057 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27060 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27061 ac_header_preproc=yes
27064 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27066 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27067 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27068 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27069 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27070 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27071 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27074 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27075 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27077 ## -------------------------------------------------- ##
27078 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
27079 ## -------------------------------------------------- ##
27081 ) | sed "s/^/$as_me: WARNING: /" >&2
27084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27087 echo $ECHO_N "(cached) $ECHO_C" >&6
27089 eval "$as_ac_Header=\$ac_header_preproc"
27091 ac_res=`eval echo '${'$as_ac_Header'}'`
27092 { echo "$as_me:$LINENO: result: $ac_res" >&5
27093 echo "${ECHO_T}$ac_res" >&6; }
27096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27097 cat >>confdefs.h <<_ACEOF
27098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27105 if test -n "$JAVAC" \
27106 && test -n "$JAVA" \
27107 && test -n "$JAR" \
27108 && test "x$ac_cv_header_jni_h" = "xyes" ; then
27112 cat >>confdefs.h <<\_ACEOF
27113 #define HAVE_JAVA 1
27120 { echo "$as_me:$LINENO: result: decide whether to compile java bindings... $use_java" >&5
27121 echo "${ECHO_T}decide whether to compile java bindings... $use_java" >&6; }
27122 if test "x$use_java" = "xyes"; then
27124 HAVE_JAVA_FALSE='#'
27132 #####################
27133 ## Check for programs
27137 { echo "$as_me:$LINENO: result: " >&5
27138 echo "${ECHO_T}" >&6; }
27139 { echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
27140 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6; }
27142 # Extract the first word of "bash", so it can be a program name with args.
27143 set dummy bash; ac_word=$2
27144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27146 if test "${ac_cv_prog_BASH+set}" = set; then
27147 echo $ECHO_N "(cached) $ECHO_C" >&6
27149 if test -n "$BASH"; then
27150 ac_cv_prog_BASH="$BASH" # Let the user override the test.
27152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27153 for as_dir in $PATH
27156 test -z "$as_dir" && as_dir=.
27157 for ac_exec_ext in '' $ac_executable_extensions; do
27158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27159 ac_cv_prog_BASH="`which bash`"
27160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27167 test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
27170 BASH=$ac_cv_prog_BASH
27171 if test -n "$BASH"; then
27172 { echo "$as_me:$LINENO: result: $BASH" >&5
27173 echo "${ECHO_T}$BASH" >&6; }
27175 { echo "$as_me:$LINENO: result: no" >&5
27176 echo "${ECHO_T}no" >&6; }
27180 WARNING="This file is generated, do not edit"
27184 # Can we rebuild the parsers?
27185 # We really want flex and refuse other lex. So, the parser is portable and
27186 # does not induce extra lib dependency
27187 for ac_prog in flex lex
27189 # Extract the first word of "$ac_prog", so it can be a program name with args.
27190 set dummy $ac_prog; ac_word=$2
27191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27193 if test "${ac_cv_prog_LEX+set}" = set; then
27194 echo $ECHO_N "(cached) $ECHO_C" >&6
27196 if test -n "$LEX"; then
27197 ac_cv_prog_LEX="$LEX" # Let the user override the test.
27199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27200 for as_dir in $PATH
27203 test -z "$as_dir" && as_dir=.
27204 for ac_exec_ext in '' $ac_executable_extensions; do
27205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27206 ac_cv_prog_LEX="$ac_prog"
27207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27216 LEX=$ac_cv_prog_LEX
27217 if test -n "$LEX"; then
27218 { echo "$as_me:$LINENO: result: $LEX" >&5
27219 echo "${ECHO_T}$LEX" >&6; }
27221 { echo "$as_me:$LINENO: result: no" >&5
27222 echo "${ECHO_T}no" >&6; }
27226 test -n "$LEX" && break
27228 test -n "$LEX" || LEX=":"
27230 if test "x$LEX" != "x:"; then
27231 cat >conftest.l <<_ACEOF
27237 e { yyless (input () != 0); }
27238 f { unput (yytext[0]); }
27239 . { BEGIN INITIAL; }
27241 #ifdef YYTEXT_POINTER
27242 extern char *yytext;
27247 return ! yylex () + ! yywrap ();
27250 { (ac_try="$LEX conftest.l"
27251 case "(($ac_try" in
27252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27253 *) ac_try_echo=$ac_try;;
27255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27256 (eval "$LEX conftest.l") 2>&5
27258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27259 (exit $ac_status); }
27260 { echo "$as_me:$LINENO: checking lex output file root" >&5
27261 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
27262 if test "${ac_cv_prog_lex_root+set}" = set; then
27263 echo $ECHO_N "(cached) $ECHO_C" >&6
27266 if test -f lex.yy.c; then
27267 ac_cv_prog_lex_root=lex.yy
27268 elif test -f lexyy.c; then
27269 ac_cv_prog_lex_root=lexyy
27271 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
27272 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
27273 { (exit 1); exit 1; }; }
27276 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
27277 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
27278 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
27280 if test -z "${LEXLIB+set}"; then
27281 { echo "$as_me:$LINENO: checking lex library" >&5
27282 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
27283 if test "${ac_cv_lib_lex+set}" = set; then
27284 echo $ECHO_N "(cached) $ECHO_C" >&6
27288 ac_cv_lib_lex='none needed'
27289 for ac_lib in '' -lfl -ll; do
27290 LIBS="$ac_lib $ac_save_LIBS"
27291 cat >conftest.$ac_ext <<_ACEOF
27292 `cat $LEX_OUTPUT_ROOT.c`
27294 rm -f conftest.$ac_objext conftest$ac_exeext
27295 if { (ac_try="$ac_link"
27296 case "(($ac_try" in
27297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27298 *) ac_try_echo=$ac_try;;
27300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27301 (eval "$ac_link") 2>conftest.er1
27303 grep -v '^ *+' conftest.er1 >conftest.err
27305 cat conftest.err >&5
27306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27307 (exit $ac_status); } && {
27308 test -z "$ac_c_werror_flag" ||
27309 test ! -s conftest.err
27310 } && test -s conftest$ac_exeext &&
27311 $as_test_x conftest$ac_exeext; then
27312 ac_cv_lib_lex=$ac_lib
27314 echo "$as_me: failed program was:" >&5
27315 sed 's/^/| /' conftest.$ac_ext >&5
27320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27321 conftest$ac_exeext conftest.$ac_ext
27322 test "$ac_cv_lib_lex" != 'none needed' && break
27327 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
27328 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
27329 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
27333 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
27334 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
27335 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
27336 echo $ECHO_N "(cached) $ECHO_C" >&6
27338 # POSIX says lex can declare yytext either as a pointer or an array; the
27339 # default is implementation-dependent. Figure out which it is, since
27340 # not all implementations provide the %pointer and %array declarations.
27341 ac_cv_prog_lex_yytext_pointer=no
27343 LIBS="$LEXLIB $ac_save_LIBS"
27344 cat >conftest.$ac_ext <<_ACEOF
27345 #define YYTEXT_POINTER 1
27346 `cat $LEX_OUTPUT_ROOT.c`
27348 rm -f conftest.$ac_objext conftest$ac_exeext
27349 if { (ac_try="$ac_link"
27350 case "(($ac_try" in
27351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27352 *) ac_try_echo=$ac_try;;
27354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27355 (eval "$ac_link") 2>conftest.er1
27357 grep -v '^ *+' conftest.er1 >conftest.err
27359 cat conftest.err >&5
27360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27361 (exit $ac_status); } && {
27362 test -z "$ac_c_werror_flag" ||
27363 test ! -s conftest.err
27364 } && test -s conftest$ac_exeext &&
27365 $as_test_x conftest$ac_exeext; then
27366 ac_cv_prog_lex_yytext_pointer=yes
27368 echo "$as_me: failed program was:" >&5
27369 sed 's/^/| /' conftest.$ac_ext >&5
27374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27375 conftest$ac_exeext conftest.$ac_ext
27379 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
27380 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
27381 if test $ac_cv_prog_lex_yytext_pointer = yes; then
27383 cat >>confdefs.h <<\_ACEOF
27384 #define YYTEXT_POINTER 1
27388 rm -f conftest.l $LEX_OUTPUT_ROOT.c
27392 if test "$LEX" != flex; then
27393 { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
27394 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
27395 LEX=${am_missing_run}flex
27399 if test "x2.5.30" != "x" ; then
27400 FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
27402 FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
27403 FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
27404 FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
27406 WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
27407 WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
27408 WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
27410 if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
27411 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED" ||
27412 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
27414 { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
27415 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
27416 LEX=${am_missing_run}flex
27420 { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
27421 echo "$as_me: Flex found. Parsers will get updated" >&6;}
27427 # Can we rebuild the xml-lexers from the XML specification?
27428 # if not, simply touch the flex source files (which are distributed in
27429 # tarballs even if generated by flexml) and hope for the best.
27430 # Extract the first word of "flexml", so it can be a program name with args.
27431 set dummy flexml; ac_word=$2
27432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27434 if test "${ac_cv_prog_FLEXML+set}" = set; then
27435 echo $ECHO_N "(cached) $ECHO_C" >&6
27437 if test -n "$FLEXML"; then
27438 ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
27440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27441 for as_dir in $PATH
27444 test -z "$as_dir" && as_dir=.
27445 for ac_exec_ext in '' $ac_executable_extensions; do
27446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27447 ac_cv_prog_FLEXML="`which flexml`"
27448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27455 test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
27458 FLEXML=$ac_cv_prog_FLEXML
27459 if test -n "$FLEXML"; then
27460 { echo "$as_me:$LINENO: result: $FLEXML" >&5
27461 echo "${ECHO_T}$FLEXML" >&6; }
27463 { echo "$as_me:$LINENO: result: no" >&5
27464 echo "${ECHO_T}no" >&6; }
27468 if test x$FLEXML != xNOTFOUND; then
27470 HAVE_FLEXML_FALSE='#'
27472 HAVE_FLEXML_TRUE='#'
27477 if test x$USE_MAINTAINER_MODE = xyes
27479 # Check for doxygen when in maintainer mode since dist* targets fail
27481 # Extract the first word of "doxygen", so it can be a program name with args.
27482 set dummy doxygen; ac_word=$2
27483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27485 if test "${ac_cv_path_DOXYGEN+set}" = set; then
27486 echo $ECHO_N "(cached) $ECHO_C" >&6
27490 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
27493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27494 for as_dir in $PATH
27497 test -z "$as_dir" && as_dir=.
27498 for ac_exec_ext in '' $ac_executable_extensions; do
27499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27500 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
27501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27508 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
27512 DOXYGEN=$ac_cv_path_DOXYGEN
27513 if test -n "$DOXYGEN"; then
27514 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
27515 echo "${ECHO_T}$DOXYGEN" >&6; }
27517 { echo "$as_me:$LINENO: result: no" >&5
27518 echo "${ECHO_T}no" >&6; }
27522 if test x$DOXYGEN = x ; then
27523 { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
27524 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
27525 { (exit 1); exit 1; }; }
27529 # Can we extract really usable backtraces? (also need the popen function)
27530 # Extract the first word of "addr2line", so it can be a program name with args.
27531 set dummy addr2line; ac_word=$2
27532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27534 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
27535 echo $ECHO_N "(cached) $ECHO_C" >&6
27539 ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
27542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27543 for as_dir in $PATH
27546 test -z "$as_dir" && as_dir=.
27547 for ac_exec_ext in '' $ac_executable_extensions; do
27548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27549 ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
27550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27560 ADDR2LINE=$ac_cv_path_ADDR2LINE
27561 if test -n "$ADDR2LINE"; then
27562 { echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
27563 echo "${ECHO_T}$ADDR2LINE" >&6; }
27565 { echo "$as_me:$LINENO: result: no" >&5
27566 echo "${ECHO_T}no" >&6; }
27570 if test x$ADDR2LINE != x ; then
27572 cat >>confdefs.h <<_ACEOF
27573 #define ADDR2LINE "$ADDR2LINE"
27579 # Can we make status line about the compilation result?
27580 # Extract the first word of "md5sum", so it can be a program name with args.
27581 set dummy md5sum; ac_word=$2
27582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27584 if test "${ac_cv_prog_MD5SUM+set}" = set; then
27585 echo $ECHO_N "(cached) $ECHO_C" >&6
27587 if test -n "$MD5SUM"; then
27588 ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
27590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27591 for as_dir in $PATH
27594 test -z "$as_dir" && as_dir=.
27595 for ac_exec_ext in '' $ac_executable_extensions; do
27596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27597 ac_cv_prog_MD5SUM="`which md5sum`"
27598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27607 MD5SUM=$ac_cv_prog_MD5SUM
27608 if test -n "$MD5SUM"; then
27609 { echo "$as_me:$LINENO: result: $MD5SUM" >&5
27610 echo "${ECHO_T}$MD5SUM" >&6; }
27612 { echo "$as_me:$LINENO: result: no" >&5
27613 echo "${ECHO_T}no" >&6; }
27617 if test x$MD5SUM != xno ; then
27618 build_version=`find . -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
27619 xargs cat| $MD5SUM | sed 's/ .*$//'`
27621 build_version="no_md5sum_binary"
27623 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
27626 ###################
27627 ## Makes the output
27632 # examples/gras/chord/Makefile examples/gras/chord/test_sg examples/gras/chord/test_rl
27633 # src/amok/Makefile
27636 { echo "$as_me:$LINENO: result: " >&5
27637 echo "${ECHO_T}" >&6; }
27638 { echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
27639 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6; }
27642 # Core of the libraries
27644 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
27647 # Tools being embeeded in gramine (stub generator)
27648 ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile tools/tesh/Makefile"
27652 # GRAMINE_CUT_BEGIN
27654 # Tools NOT being embeeded in gramine
27655 ac_config_files="$ac_config_files tools/graspe-slave"
27660 ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests"
27663 # Teshsuite (testsuite using tesh)
27664 ac_config_files="$ac_config_files teshsuite/Makefile"
27668 ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
27673 # examples/gras/p2p/Makefile
27674 # examples/gras/p2p/chord/Makefile
27675 # examples/gras/p2p/can/Makefile
27677 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"
27680 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/properties/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"
27683 ac_config_files="$ac_config_files src/smpi/smpicc src/smpi/smpirun"
27688 cat >confcache <<\_ACEOF
27689 # This file is a shell script that caches the results of configure
27690 # tests run on this system so they can be shared between configure
27691 # scripts and configure runs, see configure's option --config-cache.
27692 # It is not useful on other systems. If it contains results you don't
27693 # want to keep, you may remove or edit it.
27695 # config.status only pays attention to the cache file if you give it
27696 # the --recheck option to rerun configure.
27698 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27699 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27700 # following values.
27704 # The following way of writing the cache mishandles newlines in values,
27705 # but we know of no workaround that is simple, portable, and efficient.
27706 # So, we kill variables containing newlines.
27707 # Ultrix sh set writes to stderr and can't be redirected directly,
27708 # and sets the high bit in the cache file unless we assign to the vars.
27710 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27711 eval ac_val=\$$ac_var
27715 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27716 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27719 _ | IFS | as_nl) ;; #(
27720 *) $as_unset $ac_var ;;
27726 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27727 *${as_nl}ac_space=\ *)
27728 # `set' does not quote correctly, so add quotes (double-quote
27729 # substitution turns \\\\ into \\, and sed turns \\ into \).
27732 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27735 # `set' quotes correctly as required by POSIX, so do not add quotes.
27736 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27745 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27747 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27749 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27750 if test -w "$cache_file"; then
27751 test "x$cache_file" != "x/dev/null" &&
27752 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27753 echo "$as_me: updating cache $cache_file" >&6;}
27754 cat confcache >$cache_file
27756 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27757 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27762 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27763 # Let make expand exec_prefix.
27764 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27766 DEFS=-DHAVE_CONFIG_H
27770 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27771 # 1. Remove the extension, and $U if already installed.
27772 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27773 ac_i=`echo "$ac_i" | sed "$ac_script"`
27774 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27775 # will be set to the directory where LIBOBJS objects are built.
27776 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27777 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27779 LIBOBJS=$ac_libobjs
27781 LTLIBOBJS=$ac_ltlibobjs
27784 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27785 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27786 Usually this means the macro was only invoked conditionally." >&5
27787 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27788 Usually this means the macro was only invoked conditionally." >&2;}
27789 { (exit 1); exit 1; }; }
27791 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
27792 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
27793 Usually this means the macro was only invoked conditionally." >&5
27794 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
27795 Usually this means the macro was only invoked conditionally." >&2;}
27796 { (exit 1); exit 1; }; }
27798 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27799 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27800 Usually this means the macro was only invoked conditionally." >&5
27801 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27802 Usually this means the macro was only invoked conditionally." >&2;}
27803 { (exit 1); exit 1; }; }
27805 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27806 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27807 Usually this means the macro was only invoked conditionally." >&5
27808 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27809 Usually this means the macro was only invoked conditionally." >&2;}
27810 { (exit 1); exit 1; }; }
27812 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27813 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27814 Usually this means the macro was only invoked conditionally." >&5
27815 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27816 Usually this means the macro was only invoked conditionally." >&2;}
27817 { (exit 1); exit 1; }; }
27819 if test -z "${GRAS_ARCH_32_BITS_TRUE}" && test -z "${GRAS_ARCH_32_BITS_FALSE}"; then
27820 { { echo "$as_me:$LINENO: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
27821 Usually this means the macro was only invoked conditionally." >&5
27822 echo "$as_me: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
27823 Usually this means the macro was only invoked conditionally." >&2;}
27824 { (exit 1); exit 1; }; }
27826 if test -z "${IS_WINDOWS_TRUE}" && test -z "${IS_WINDOWS_FALSE}"; then
27827 { { echo "$as_me:$LINENO: error: conditional \"IS_WINDOWS\" was never defined.
27828 Usually this means the macro was only invoked conditionally." >&5
27829 echo "$as_me: error: conditional \"IS_WINDOWS\" was never defined.
27830 Usually this means the macro was only invoked conditionally." >&2;}
27831 { (exit 1); exit 1; }; }
27833 if test -z "${CONTEXT_THREADS_TRUE}" && test -z "${CONTEXT_THREADS_FALSE}"; then
27834 { { echo "$as_me:$LINENO: error: conditional \"CONTEXT_THREADS\" was never defined.
27835 Usually this means the macro was only invoked conditionally." >&5
27836 echo "$as_me: error: conditional \"CONTEXT_THREADS\" was never defined.
27837 Usually this means the macro was only invoked conditionally." >&2;}
27838 { (exit 1); exit 1; }; }
27840 if test -z "${HAVE_GTNETS_TRUE}" && test -z "${HAVE_GTNETS_FALSE}"; then
27841 { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTNETS\" was never defined.
27842 Usually this means the macro was only invoked conditionally." >&5
27843 echo "$as_me: error: conditional \"HAVE_GTNETS\" was never defined.
27844 Usually this means the macro was only invoked conditionally." >&2;}
27845 { (exit 1); exit 1; }; }
27847 if test -z "${HAVE_SDP_TRUE}" && test -z "${HAVE_SDP_FALSE}"; then
27848 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDP\" was never defined.
27849 Usually this means the macro was only invoked conditionally." >&5
27850 echo "$as_me: error: conditional \"HAVE_SDP\" was never defined.
27851 Usually this means the macro was only invoked conditionally." >&2;}
27852 { (exit 1); exit 1; }; }
27854 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
27855 { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
27856 Usually this means the macro was only invoked conditionally." >&5
27857 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
27858 Usually this means the macro was only invoked conditionally." >&2;}
27859 { (exit 1); exit 1; }; }
27861 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27862 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27863 Usually this means the macro was only invoked conditionally." >&5
27864 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27865 Usually this means the macro was only invoked conditionally." >&2;}
27866 { (exit 1); exit 1; }; }
27868 if test -z "${BOTBUILD_MODE_TRUE}" && test -z "${BOTBUILD_MODE_FALSE}"; then
27869 { { echo "$as_me:$LINENO: error: conditional \"BOTBUILD_MODE\" was never defined.
27870 Usually this means the macro was only invoked conditionally." >&5
27871 echo "$as_me: error: conditional \"BOTBUILD_MODE\" was never defined.
27872 Usually this means the macro was only invoked conditionally." >&2;}
27873 { (exit 1); exit 1; }; }
27875 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
27876 { { echo "$as_me:$LINENO: error: conditional \"HAVE_JAVA\" was never defined.
27877 Usually this means the macro was only invoked conditionally." >&5
27878 echo "$as_me: error: conditional \"HAVE_JAVA\" was never defined.
27879 Usually this means the macro was only invoked conditionally." >&2;}
27880 { (exit 1); exit 1; }; }
27882 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
27883 { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
27884 Usually this means the macro was only invoked conditionally." >&5
27885 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
27886 Usually this means the macro was only invoked conditionally." >&2;}
27887 { (exit 1); exit 1; }; }
27890 : ${CONFIG_STATUS=./config.status}
27891 ac_clean_files_save=$ac_clean_files
27892 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27893 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27894 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27895 cat >$CONFIG_STATUS <<_ACEOF
27897 # Generated by $as_me.
27898 # Run this file to recreate the current configuration.
27899 # Compiler output produced by configure, useful for debugging
27900 # configure, is in config.log if it exists.
27903 ac_cs_recheck=false
27905 SHELL=\${CONFIG_SHELL-$SHELL}
27908 cat >>$CONFIG_STATUS <<\_ACEOF
27909 ## --------------------- ##
27910 ## M4sh Initialization. ##
27911 ## --------------------- ##
27913 # Be more Bourne compatible
27914 DUALCASE=1; export DUALCASE # for MKS sh
27915 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27918 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27919 # is contrary to our usage. Disable this feature.
27920 alias -g '${1+"$@"}'='"$@"'
27921 setopt NO_GLOB_SUBST
27923 case `(set -o) 2>/dev/null` in
27924 *posix*) set -o posix ;;
27933 # Avoid depending upon Character Ranges.
27934 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27935 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27936 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27937 as_cr_digits='0123456789'
27938 as_cr_alnum=$as_cr_Letters$as_cr_digits
27940 # The user is always right.
27941 if test "${PATH_SEPARATOR+set}" != set; then
27942 echo "#! /bin/sh" >conf$$.sh
27943 echo "exit 0" >>conf$$.sh
27945 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27953 # Support unset when possible.
27954 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27962 # We need space, tab and new line, in precisely that order. Quoting is
27963 # there to prevent editors from complaining about space-tab.
27964 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27965 # splitting by setting IFS to empty value.)
27970 # Find who we are. Look in the path if we contain no directory separator.
27972 *[\\/]* ) as_myself=$0 ;;
27973 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27974 for as_dir in $PATH
27977 test -z "$as_dir" && as_dir=.
27978 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27984 # We did not find ourselves, most probably we were run as `sh COMMAND'
27985 # in which case we are not to be found in the path.
27986 if test "x$as_myself" = x; then
27989 if test ! -f "$as_myself"; then
27990 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27991 { (exit 1); exit 1; }
27994 # Work around bugs in pre-3.0 UWIN ksh.
27995 for as_var in ENV MAIL MAILPATH
27996 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28004 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28005 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28006 LC_TELEPHONE LC_TIME
28008 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28009 eval $as_var=C; export $as_var
28011 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28015 # Required to use basename.
28016 if expr a : '\(a\)' >/dev/null 2>&1 &&
28017 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28023 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28024 as_basename=basename
28030 # Name of the executable.
28031 as_me=`$as_basename -- "$0" ||
28032 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28033 X"$0" : 'X\(//\)$' \| \
28034 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28036 sed '/^.*\/\([^/][^/]*\)\/*$/{
28055 as_lineno_1=$LINENO
28056 as_lineno_2=$LINENO
28057 test "x$as_lineno_1" != "x$as_lineno_2" &&
28058 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
28060 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28061 # uniformly replaced by the line number. The first 'sed' inserts a
28062 # line-number line after each line using $LINENO; the second 'sed'
28063 # does the real work. The second script uses 'N' to pair each
28064 # line-number line with the line containing $LINENO, and appends
28065 # trailing '-' during substitution so that $LINENO is not a special
28066 # case at line end.
28067 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28068 # scripts with optimization help from Paolo Bonzini. Blame Lee
28069 # E. McMahon (1931-1989) for sed's syntax. :-)
28081 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
28084 ' >$as_me.lineno &&
28085 chmod +x "$as_me.lineno" ||
28086 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
28087 { (exit 1); exit 1; }; }
28089 # Don't try to exec as it changes $[0], causing all sort of problems
28090 # (the dirname of $[0] is not the place where we might find the
28091 # original and so on. Autoconf is especially sensitive to this).
28092 . "./$as_me.lineno"
28093 # Exit status is that of the last command.
28098 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28104 ECHO_C= ECHO_N= ECHO_T=
28105 case `echo -n x` in
28107 case `echo 'x\c'` in
28108 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28115 if expr a : '\(a\)' >/dev/null 2>&1 &&
28116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28122 rm -f conf$$ conf$$.exe conf$$.file
28123 if test -d conf$$.dir; then
28124 rm -f conf$$.dir/conf$$.file
28130 if ln -s conf$$.file conf$$ 2>/dev/null; then
28132 # ... but there are two gotchas:
28133 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28134 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28135 # In both cases, we have to default to `cp -p'.
28136 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28138 elif ln conf$$.file conf$$ 2>/dev/null; then
28143 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28144 rmdir conf$$.dir 2>/dev/null
28146 if mkdir -p . 2>/dev/null; then
28149 test -d ./-p && rmdir ./-p
28153 if test -x / >/dev/null 2>&1; then
28154 as_test_x='test -x'
28156 if ls -dL / >/dev/null 2>&1; then
28163 if test -d "$1"; then
28169 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
28170 ???[sx]*):;;*)false;;esac;fi
28174 as_executable_p=$as_test_x
28176 # Sed expression to map a string onto a valid CPP name.
28177 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28179 # Sed expression to map a string onto a valid variable name.
28180 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28185 # Save the log message, to keep $[0] and so on meaningful, and to
28186 # report actual input values of CONFIG_FILES etc. instead of their
28187 # values after options handling.
28189 This file was extended by simgrid $as_me 3.3-svn, which was
28190 generated by GNU Autoconf 2.61. Invocation command line was
28192 CONFIG_FILES = $CONFIG_FILES
28193 CONFIG_HEADERS = $CONFIG_HEADERS
28194 CONFIG_LINKS = $CONFIG_LINKS
28195 CONFIG_COMMANDS = $CONFIG_COMMANDS
28198 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28203 cat >>$CONFIG_STATUS <<_ACEOF
28204 # Files that config.status was made for.
28205 config_files="$ac_config_files"
28206 config_headers="$ac_config_headers"
28207 config_commands="$ac_config_commands"
28211 cat >>$CONFIG_STATUS <<\_ACEOF
28213 \`$as_me' instantiates files from templates according to the
28214 current configuration.
28216 Usage: $0 [OPTIONS] [FILE]...
28218 -h, --help print this help, then exit
28219 -V, --version print version number and configuration settings, then exit
28220 -q, --quiet do not print progress messages
28221 -d, --debug don't remove temporary files
28222 --recheck update $as_me by reconfiguring in the same conditions
28223 --file=FILE[:TEMPLATE]
28224 instantiate the configuration file FILE
28225 --header=FILE[:TEMPLATE]
28226 instantiate the configuration header FILE
28228 Configuration files:
28231 Configuration headers:
28234 Configuration commands:
28237 Report bugs to <bug-autoconf@gnu.org>."
28240 cat >>$CONFIG_STATUS <<_ACEOF
28242 simgrid config.status 3.3-svn
28243 configured by $0, generated by GNU Autoconf 2.61,
28244 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28246 Copyright (C) 2006 Free Software Foundation, Inc.
28247 This config.status script is free software; the Free Software Foundation
28248 gives unlimited permission to copy, distribute and modify it."
28256 cat >>$CONFIG_STATUS <<\_ACEOF
28257 # If no file are specified by the user, then we need to provide default
28258 # value. By we need to know if files were specified by the user.
28264 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28265 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28276 # Handling of the options.
28277 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28279 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28280 echo "$ac_cs_version"; exit ;;
28281 --debug | --debu | --deb | --de | --d | -d )
28283 --file | --fil | --fi | --f )
28285 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28286 ac_need_defaults=false;;
28287 --header | --heade | --head | --hea )
28289 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28290 ac_need_defaults=false;;
28292 # Conflict between --help and --header
28293 { echo "$as_me: error: ambiguous option: $1
28294 Try \`$0 --help' for more information." >&2
28295 { (exit 1); exit 1; }; };;
28296 --help | --hel | -h )
28297 echo "$ac_cs_usage"; exit ;;
28298 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28299 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28302 # This is an error.
28303 -*) { echo "$as_me: error: unrecognized option: $1
28304 Try \`$0 --help' for more information." >&2
28305 { (exit 1); exit 1; }; } ;;
28307 *) ac_config_targets="$ac_config_targets $1"
28308 ac_need_defaults=false ;;
28314 ac_configure_extra_args=
28316 if $ac_cs_silent; then
28318 ac_configure_extra_args="$ac_configure_extra_args --silent"
28322 cat >>$CONFIG_STATUS <<_ACEOF
28323 if \$ac_cs_recheck; then
28324 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28325 CONFIG_SHELL=$SHELL
28326 export CONFIG_SHELL
28327 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28331 cat >>$CONFIG_STATUS <<\_ACEOF
28335 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28336 ## Running $as_me. ##
28342 cat >>$CONFIG_STATUS <<_ACEOF
28346 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28350 cat >>$CONFIG_STATUS <<\_ACEOF
28352 # Handling of arguments.
28353 for ac_config_target in $ac_config_targets
28355 case $ac_config_target in
28356 "src/gras_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
28357 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28358 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28359 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
28360 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
28361 "src/ucontext_stack.h") CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
28362 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
28363 "tools/gras/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
28364 "tools/tesh/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tesh/Makefile" ;;
28365 "tools/graspe-slave") CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
28366 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
28367 "testsuite/run_tests") CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
28368 "teshsuite/Makefile") CONFIG_FILES="$CONFIG_FILES teshsuite/Makefile" ;;
28369 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
28370 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
28371 "examples/java/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/Makefile" ;;
28372 "examples/java/basic/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/basic/Makefile" ;;
28373 "examples/java/comm_time/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/comm_time/Makefile" ;;
28374 "examples/java/suspend/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/suspend/Makefile" ;;
28375 "examples/java/ping_pong/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/ping_pong/Makefile" ;;
28376 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
28377 "examples/msg/Makefile") CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
28378 "examples/simdag/Makefile") CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
28379 "examples/gras/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
28380 "examples/gras/ping/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
28381 "examples/gras/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
28382 "examples/gras/spawn/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/spawn/Makefile" ;;
28383 "examples/gras/synchro/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/synchro/Makefile" ;;
28384 "examples/gras/timer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
28385 "examples/gras/properties/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/properties/Makefile" ;;
28386 "examples/gras/chrono/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
28387 "examples/gras/mutual_exclusion/simple_token/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
28388 "examples/gras/mmrpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
28389 "examples/gras/pmm/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
28390 "examples/gras/all2all/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
28391 "examples/amok/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
28392 "src/smpi/smpicc") CONFIG_FILES="$CONFIG_FILES src/smpi/smpicc" ;;
28393 "src/smpi/smpirun") CONFIG_FILES="$CONFIG_FILES src/smpi/smpirun" ;;
28395 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28396 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28397 { (exit 1); exit 1; }; };;
28402 # If the user did not use the arguments to specify the items to instantiate,
28403 # then the envvar interface is used. Set only those that are not.
28404 # We use the long form for the default assignment because of an extremely
28405 # bizarre bug on SunOS 4.1.3.
28406 if $ac_need_defaults; then
28407 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28408 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28409 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28412 # Have a temporary directory for convenience. Make it in the build tree
28413 # simply because there is no reason against having it here, and in addition,
28414 # creating and moving files from /tmp can sometimes cause problems.
28415 # Hook for its removal unless debugging.
28416 # Note that there is a small window in which the directory will not be cleaned:
28417 # after its creation but before its name has been assigned to `$tmp'.
28421 trap 'exit_status=$?
28422 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28424 trap '{ (exit 1); exit 1; }' 1 2 13 15
28426 # Create a (secure) tmp directory for tmp files.
28429 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28430 test -n "$tmp" && test -d "$tmp"
28433 tmp=./conf$$-$RANDOM
28434 (umask 077 && mkdir "$tmp")
28437 echo "$me: cannot create a temporary directory in ." >&2
28438 { (exit 1); exit 1; }
28442 # Set up the sed scripts for CONFIG_FILES section.
28445 # No need to generate the scripts if there are no CONFIG_FILES.
28446 # This happens for instance when ./config.status config.h
28447 if test -n "$CONFIG_FILES"; then
28454 for ac_last_try in false false false false false :; do
28455 cat >conf$$subs.sed <<_ACEOF
28456 SHELL!$SHELL$ac_delim
28457 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
28458 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
28459 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
28460 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
28461 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
28462 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
28463 exec_prefix!$exec_prefix$ac_delim
28464 prefix!$prefix$ac_delim
28465 program_transform_name!$program_transform_name$ac_delim
28466 bindir!$bindir$ac_delim
28467 sbindir!$sbindir$ac_delim
28468 libexecdir!$libexecdir$ac_delim
28469 datarootdir!$datarootdir$ac_delim
28470 datadir!$datadir$ac_delim
28471 sysconfdir!$sysconfdir$ac_delim
28472 sharedstatedir!$sharedstatedir$ac_delim
28473 localstatedir!$localstatedir$ac_delim
28474 includedir!$includedir$ac_delim
28475 oldincludedir!$oldincludedir$ac_delim
28476 docdir!$docdir$ac_delim
28477 infodir!$infodir$ac_delim
28478 htmldir!$htmldir$ac_delim
28479 dvidir!$dvidir$ac_delim
28480 pdfdir!$pdfdir$ac_delim
28481 psdir!$psdir$ac_delim
28482 libdir!$libdir$ac_delim
28483 localedir!$localedir$ac_delim
28484 mandir!$mandir$ac_delim
28485 DEFS!$DEFS$ac_delim
28486 ECHO_C!$ECHO_C$ac_delim
28487 ECHO_N!$ECHO_N$ac_delim
28488 ECHO_T!$ECHO_T$ac_delim
28489 LIBS!$LIBS$ac_delim
28490 build_alias!$build_alias$ac_delim
28491 host_alias!$host_alias$ac_delim
28492 target_alias!$target_alias$ac_delim
28493 build!$build$ac_delim
28494 build_cpu!$build_cpu$ac_delim
28495 build_vendor!$build_vendor$ac_delim
28496 build_os!$build_os$ac_delim
28497 host!$host$ac_delim
28498 host_cpu!$host_cpu$ac_delim
28499 host_vendor!$host_vendor$ac_delim
28500 host_os!$host_os$ac_delim
28501 target!$target$ac_delim
28502 target_cpu!$target_cpu$ac_delim
28503 target_vendor!$target_vendor$ac_delim
28504 target_os!$target_os$ac_delim
28506 GCJFLAGS!$GCJFLAGS$ac_delim
28507 am__leading_dot!$am__leading_dot$ac_delim
28508 DEPDIR!$DEPDIR$ac_delim
28509 am__include!$am__include$ac_delim
28510 am__quote!$am__quote$ac_delim
28511 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
28512 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
28513 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
28514 GCJDEPMODE!$GCJDEPMODE$ac_delim
28515 am__fastdepGCJ_TRUE!$am__fastdepGCJ_TRUE$ac_delim
28516 am__fastdepGCJ_FALSE!$am__fastdepGCJ_FALSE$ac_delim
28517 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
28518 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
28519 INSTALL_DATA!$INSTALL_DATA$ac_delim
28520 am__isrc!$am__isrc$ac_delim
28521 CYGPATH_W!$CYGPATH_W$ac_delim
28522 PACKAGE!$PACKAGE$ac_delim
28523 VERSION!$VERSION$ac_delim
28524 ACLOCAL!$ACLOCAL$ac_delim
28525 AUTOCONF!$AUTOCONF$ac_delim
28526 AUTOMAKE!$AUTOMAKE$ac_delim
28527 AUTOHEADER!$AUTOHEADER$ac_delim
28528 MAKEINFO!$MAKEINFO$ac_delim
28529 install_sh!$install_sh$ac_delim
28530 STRIP!$STRIP$ac_delim
28531 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
28532 mkdir_p!$mkdir_p$ac_delim
28534 SET_MAKE!$SET_MAKE$ac_delim
28535 AMTAR!$AMTAR$ac_delim
28536 am__tar!$am__tar$ac_delim
28537 am__untar!$am__untar$ac_delim
28539 CFLAGS!$CFLAGS$ac_delim
28540 LDFLAGS!$LDFLAGS$ac_delim
28541 CPPFLAGS!$CPPFLAGS$ac_delim
28542 ac_ct_CC!$ac_ct_CC$ac_delim
28543 EXEEXT!$EXEEXT$ac_delim
28544 OBJEXT!$OBJEXT$ac_delim
28545 CCDEPMODE!$CCDEPMODE$ac_delim
28546 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
28547 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
28549 GREP!$GREP$ac_delim
28550 EGREP!$EGREP$ac_delim
28551 LN_S!$LN_S$ac_delim
28552 ECHO!$ECHO$ac_delim
28555 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28557 elif $ac_last_try; then
28558 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28559 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28560 { (exit 1); exit 1; }; }
28562 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28566 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28567 if test -n "$ac_eof"; then
28568 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28569 ac_eof=`expr $ac_eof + 1`
28572 cat >>$CONFIG_STATUS <<_ACEOF
28573 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
28574 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28577 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28578 s/^/s,@/; s/!/@,|#_!!_#|/
28581 s/'"$ac_delim"'$/,g/; t
28583 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28584 ' >>$CONFIG_STATUS <conf$$subs.sed
28585 rm -f conf$$subs.sed
28586 cat >>$CONFIG_STATUS <<_ACEOF
28592 for ac_last_try in false false false false false :; do
28593 cat >conf$$subs.sed <<_ACEOF
28595 RANLIB!$RANLIB$ac_delim
28596 DSYMUTIL!$DSYMUTIL$ac_delim
28597 NMEDIT!$NMEDIT$ac_delim
28598 DLLTOOL!$DLLTOOL$ac_delim
28600 OBJDUMP!$OBJDUMP$ac_delim
28603 CXXFLAGS!$CXXFLAGS$ac_delim
28604 ac_ct_CXX!$ac_ct_CXX$ac_delim
28605 CXXDEPMODE!$CXXDEPMODE$ac_delim
28606 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
28607 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
28608 CXXCPP!$CXXCPP$ac_delim
28609 LIBTOOL!$LIBTOOL$ac_delim
28610 LIBOBJS!$LIBOBJS$ac_delim
28611 GRAS_ARCH_32_BITS_TRUE!$GRAS_ARCH_32_BITS_TRUE$ac_delim
28612 GRAS_ARCH_32_BITS_FALSE!$GRAS_ARCH_32_BITS_FALSE$ac_delim
28613 IS_WINDOWS_TRUE!$IS_WINDOWS_TRUE$ac_delim
28614 IS_WINDOWS_FALSE!$IS_WINDOWS_FALSE$ac_delim
28615 CONTEXT_THREADS_TRUE!$CONTEXT_THREADS_TRUE$ac_delim
28616 CONTEXT_THREADS_FALSE!$CONTEXT_THREADS_FALSE$ac_delim
28617 PTH_STACK_GROWTH!$PTH_STACK_GROWTH$ac_delim
28618 pth_skaddr_makecontext!$pth_skaddr_makecontext$ac_delim
28619 pth_sksize_makecontext!$pth_sksize_makecontext$ac_delim
28620 HAVE_GTNETS_TRUE!$HAVE_GTNETS_TRUE$ac_delim
28621 HAVE_GTNETS_FALSE!$HAVE_GTNETS_FALSE$ac_delim
28622 HAVE_SDP_TRUE!$HAVE_SDP_TRUE$ac_delim
28623 HAVE_SDP_FALSE!$HAVE_SDP_FALSE$ac_delim
28624 SIMGRID_DEP!$SIMGRID_DEP$ac_delim
28625 SMPI_DEP!$SMPI_DEP$ac_delim
28626 GRAS_DEP!$GRAS_DEP$ac_delim
28627 GRAMINE_MODE_TRUE!$GRAMINE_MODE_TRUE$ac_delim
28628 GRAMINE_MODE_FALSE!$GRAMINE_MODE_FALSE$ac_delim
28629 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
28630 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
28631 MAINT!$MAINT$ac_delim
28632 LD_DYNAMIC_FLAGS!$LD_DYNAMIC_FLAGS$ac_delim
28633 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
28634 abs_builddir!$abs_builddir$ac_delim
28635 abs_srcdir!$abs_srcdir$ac_delim
28636 abs_top_builddir!$abs_top_builddir$ac_delim
28637 abs_top_srcdir!$abs_top_srcdir$ac_delim
28638 BOTBUILD_MODE_TRUE!$BOTBUILD_MODE_TRUE$ac_delim
28639 BOTBUILD_MODE_FALSE!$BOTBUILD_MODE_FALSE$ac_delim
28640 JAVAC!$JAVAC$ac_delim
28641 JAVA!$JAVA$ac_delim
28643 HAVE_JAVA_TRUE!$HAVE_JAVA_TRUE$ac_delim
28644 HAVE_JAVA_FALSE!$HAVE_JAVA_FALSE$ac_delim
28645 BASH!$BASH$ac_delim
28646 WARNING!$WARNING$ac_delim
28648 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
28649 LEXLIB!$LEXLIB$ac_delim
28650 FLEXML!$FLEXML$ac_delim
28651 HAVE_FLEXML_TRUE!$HAVE_FLEXML_TRUE$ac_delim
28652 HAVE_FLEXML_FALSE!$HAVE_FLEXML_FALSE$ac_delim
28653 DOXYGEN!$DOXYGEN$ac_delim
28654 ADDR2LINE!$ADDR2LINE$ac_delim
28655 ac_configure_args!$ac_configure_args$ac_delim
28656 MD5SUM!$MD5SUM$ac_delim
28657 build_id!$build_id$ac_delim
28658 LTLIBOBJS!$LTLIBOBJS$ac_delim
28661 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 65; then
28663 elif $ac_last_try; then
28664 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28665 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28666 { (exit 1); exit 1; }; }
28668 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28672 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28673 if test -n "$ac_eof"; then
28674 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28675 ac_eof=`expr $ac_eof + 1`
28678 cat >>$CONFIG_STATUS <<_ACEOF
28679 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28680 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28683 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28684 s/^/s,@/; s/!/@,|#_!!_#|/
28687 s/'"$ac_delim"'$/,g/; t
28689 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28690 ' >>$CONFIG_STATUS <conf$$subs.sed
28691 rm -f conf$$subs.sed
28692 cat >>$CONFIG_STATUS <<_ACEOF
28699 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28700 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28701 # trailing colons and then remove the whole line if VPATH becomes empty
28702 # (actually we leave an empty line to preserve line numbers).
28703 if test "x$srcdir" = x.; then
28704 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28705 s/:*\$(srcdir):*/:/
28706 s/:*\${srcdir}:*/:/
28708 s/^\([^=]*=[ ]*\):*/\1/
28714 cat >>$CONFIG_STATUS <<\_ACEOF
28715 fi # test -n "$CONFIG_FILES"
28718 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
28721 :[FHLC]) ac_mode=$ac_tag; continue;;
28723 case $ac_mode$ac_tag in
28725 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
28726 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
28727 { (exit 1); exit 1; }; };;
28728 :[FH]-) ac_tag=-:-;;
28729 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28746 -) ac_f="$tmp/stdin";;
28747 *) # Look for the file first in the build tree, then in the source tree
28748 # (if the path is not absolute). The absolute path cannot be DOS-style,
28749 # because $ac_f cannot contain `:'.
28753 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28755 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28756 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28757 { (exit 1); exit 1; }; };;
28759 ac_file_inputs="$ac_file_inputs $ac_f"
28762 # Let's still pretend it is `configure' which instantiates (i.e., don't
28763 # use $as_me), people would be surprised to read:
28764 # /* config.h. Generated by config.status. */
28765 configure_input="Generated from "`IFS=:
28766 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28767 if test x"$ac_file" != x-; then
28768 configure_input="$ac_file. $configure_input"
28769 { echo "$as_me:$LINENO: creating $ac_file" >&5
28770 echo "$as_me: creating $ac_file" >&6;}
28774 *:-:* | *:-) cat >"$tmp/stdin";;
28779 ac_dir=`$as_dirname -- "$ac_file" ||
28780 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28781 X"$ac_file" : 'X\(//\)[^/]' \| \
28782 X"$ac_file" : 'X\(//\)$' \| \
28783 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28789 /^X\(\/\/\)[^/].*/{
28804 -*) as_dir=./$as_dir;;
28806 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28810 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28811 *) as_qdir=$as_dir;;
28813 as_dirs="'$as_qdir' $as_dirs"
28814 as_dir=`$as_dirname -- "$as_dir" ||
28815 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28816 X"$as_dir" : 'X\(//\)[^/]' \| \
28817 X"$as_dir" : 'X\(//\)$' \| \
28818 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28824 /^X\(\/\/\)[^/].*/{
28837 test -d "$as_dir" && break
28839 test -z "$as_dirs" || eval "mkdir $as_dirs"
28840 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28841 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28842 { (exit 1); exit 1; }; }; }
28846 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28848 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28849 # A ".." for each directory in $ac_dir_suffix.
28850 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28851 case $ac_top_builddir_sub in
28852 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28853 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28856 ac_abs_top_builddir=$ac_pwd
28857 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28858 # for backward compatibility:
28859 ac_top_builddir=$ac_top_build_prefix
28862 .) # We are building in place.
28864 ac_top_srcdir=$ac_top_builddir_sub
28865 ac_abs_top_srcdir=$ac_pwd ;;
28866 [\\/]* | ?:[\\/]* ) # Absolute name.
28867 ac_srcdir=$srcdir$ac_dir_suffix;
28868 ac_top_srcdir=$srcdir
28869 ac_abs_top_srcdir=$srcdir ;;
28870 *) # Relative name.
28871 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28872 ac_top_srcdir=$ac_top_build_prefix$srcdir
28873 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28875 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28885 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28886 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28888 ac_MKDIR_P=$MKDIR_P
28890 [\\/$]* | ?:[\\/]* ) ;;
28891 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28895 cat >>$CONFIG_STATUS <<\_ACEOF
28896 # If the template does not know about datarootdir, expand it.
28897 # FIXME: This hack should be removed a few years after 2.60.
28898 ac_datarootdir_hack=; ac_datarootdir_seen=
28900 case `sed -n '/datarootdir/ {
28909 ' $ac_file_inputs` in
28910 *datarootdir*) ac_datarootdir_seen=yes;;
28911 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28912 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28913 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28915 cat >>$CONFIG_STATUS <<_ACEOF
28916 ac_datarootdir_hack='
28917 s&@datadir@&$datadir&g
28918 s&@docdir@&$docdir&g
28919 s&@infodir@&$infodir&g
28920 s&@localedir@&$localedir&g
28921 s&@mandir@&$mandir&g
28922 s&\\\${datarootdir}&$datarootdir&g' ;;
28926 # Neutralize VPATH when `$srcdir' = `.'.
28927 # Shell code in configure.ac might set extrasub.
28928 # FIXME: do we really want to maintain this feature?
28929 cat >>$CONFIG_STATUS <<_ACEOF
28933 cat >>$CONFIG_STATUS <<\_ACEOF
28935 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28936 s&@configure_input@&$configure_input&;t t
28937 s&@top_builddir@&$ac_top_builddir_sub&;t t
28938 s&@srcdir@&$ac_srcdir&;t t
28939 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28940 s&@top_srcdir@&$ac_top_srcdir&;t t
28941 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28942 s&@builddir@&$ac_builddir&;t t
28943 s&@abs_builddir@&$ac_abs_builddir&;t t
28944 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28945 s&@INSTALL@&$ac_INSTALL&;t t
28946 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28947 $ac_datarootdir_hack
28948 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
28950 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28951 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28952 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28953 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28954 which seems to be undefined. Please make sure it is defined." >&5
28955 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28956 which seems to be undefined. Please make sure it is defined." >&2;}
28960 -) cat "$tmp/out"; rm -f "$tmp/out";;
28961 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28970 # Transform confdefs.h into a sed script `conftest.defines', that
28971 # substitutes the proper values into config.h.in to produce config.h.
28972 rm -f conftest.defines conftest.tail
28973 # First, append a space to every undef/define line, to ease matching.
28974 echo 's/$/ /' >conftest.defines
28975 # Then, protect against being on the right side of a sed subst, or in
28976 # an unquoted here document, in config.status. If some macros were
28977 # called several times there might be several #defines for the same
28978 # symbol, which is useless. But do not sort them, since the last
28979 # AC_DEFINE must be honored.
28980 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28981 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28982 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28983 # PARAMS is the parameter list in the macro definition--in most cases, it's
28984 # just an empty string.
28985 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
28986 ac_dB='\\)[ (].*,\\1define\\2'
28994 s/^[ ]*#[ ]*define[ ][ ]*//
28999 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
29000 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
29001 ' >>conftest.defines
29003 # Remove the space that was appended to ease matching.
29004 # Then replace #undef with comments. This is necessary, for
29005 # example, in the case of _POSIX_SOURCE, which is predefined and required
29006 # on some systems where configure will not decide to define it.
29007 # (The regexp can be short, since the line contains either #define or #undef.)
29009 s,^[ #]*u.*,/* & */,' >>conftest.defines
29011 # Break up conftest.defines:
29012 ac_max_sed_lines=50
29014 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
29015 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
29016 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
29018 ac_in='$ac_file_inputs'
29019 ac_out='"$tmp/out1"'
29020 ac_nxt='"$tmp/out2"'
29024 # Write a here document:
29025 cat >>$CONFIG_STATUS <<_ACEOF
29026 # First, check the format of the line:
29027 cat >"\$tmp/defines.sed" <<\\CEOF
29028 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
29029 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
29033 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
29035 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
29036 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
29037 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
29038 grep . conftest.tail >/dev/null || break
29039 rm -f conftest.defines
29040 mv conftest.tail conftest.defines
29042 rm -f conftest.defines conftest.tail
29044 echo "ac_result=$ac_in" >>$CONFIG_STATUS
29045 cat >>$CONFIG_STATUS <<\_ACEOF
29046 if test x"$ac_file" != x-; then
29047 echo "/* $configure_input */" >"$tmp/config.h"
29048 cat "$ac_result" >>"$tmp/config.h"
29049 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
29050 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29051 echo "$as_me: $ac_file is unchanged" >&6;}
29054 mv "$tmp/config.h" $ac_file
29057 echo "/* $configure_input */"
29061 # Compute $ac_file's index in $config_headers.
29064 for _am_header in $config_headers :; do
29065 case $_am_header in
29066 $_am_arg | $_am_arg:* )
29069 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29072 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
29073 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29074 X"$_am_arg" : 'X\(//\)[^/]' \| \
29075 X"$_am_arg" : 'X\(//\)$' \| \
29076 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
29078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29082 /^X\(\/\/\)[^/].*/{
29094 s/.*/./; q'`/stamp-h$_am_stamp_count
29097 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
29098 echo "$as_me: executing $ac_file commands" >&6;}
29103 case $ac_file$ac_mode in
29104 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
29105 # Strip MF so we end up with the name of the file.
29106 mf=`echo "$mf" | sed -e 's/:.*$//'`
29107 # Check whether this is an Automake generated Makefile or not.
29108 # We used to match only the files named `Makefile.in', but
29109 # some people rename them; so instead we look at the file content.
29110 # Grep'ing the first line is not enough: some people post-process
29111 # each Makefile.in and add a new line on top of each file to say so.
29112 # Grep'ing the whole file is not good either: AIX grep has a line
29113 # limit of 2048, but all sed's we know have understand at least 4000.
29114 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
29115 dirpart=`$as_dirname -- "$mf" ||
29116 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29117 X"$mf" : 'X\(//\)[^/]' \| \
29118 X"$mf" : 'X\(//\)$' \| \
29119 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29125 /^X\(\/\/\)[^/].*/{
29141 # Extract the definition of DEPDIR, am__include, and am__quote
29142 # from the Makefile without running `make'.
29143 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29144 test -z "$DEPDIR" && continue
29145 am__include=`sed -n 's/^am__include = //p' < "$mf"`
29146 test -z "am__include" && continue
29147 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29148 # When using ansi2knr, U may be empty or an underscore; expand it
29149 U=`sed -n 's/^U = //p' < "$mf"`
29150 # Find all dependency output files, they are included files with
29151 # $(DEPDIR) in their names. We invoke sed twice because it is the
29152 # simplest approach to changing $(DEPDIR) to its actual value in the
29154 for file in `sed -n "
29155 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29156 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29157 # Make sure the directory exists.
29158 test -f "$dirpart/$file" && continue
29159 fdir=`$as_dirname -- "$file" ||
29160 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29161 X"$file" : 'X\(//\)[^/]' \| \
29162 X"$file" : 'X\(//\)$' \| \
29163 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29169 /^X\(\/\/\)[^/].*/{
29182 { as_dir=$dirpart/$fdir
29184 -*) as_dir=./$as_dir;;
29186 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29190 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29191 *) as_qdir=$as_dir;;
29193 as_dirs="'$as_qdir' $as_dirs"
29194 as_dir=`$as_dirname -- "$as_dir" ||
29195 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29196 X"$as_dir" : 'X\(//\)[^/]' \| \
29197 X"$as_dir" : 'X\(//\)$' \| \
29198 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29204 /^X\(\/\/\)[^/].*/{
29217 test -d "$as_dir" && break
29219 test -z "$as_dirs" || eval "mkdir $as_dirs"
29220 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29221 echo "$as_me: error: cannot create directory $as_dir" >&2;}
29222 { (exit 1); exit 1; }; }; }
29223 # echo "creating $dirpart/$file"
29224 echo '# dummy' > "$dirpart/$file"
29228 "tools/graspe-slave":F)
29230 tools/graspe-slave tools/graspe-master \
29232 test -e $file && chmod +x $file; \
29235 "testsuite/Makefile":F)
29237 testsuite/run_tests \
29239 test -e $file && chmod +x $file; \
29242 "testsuite/run_tests":F)
29244 testsuite/run_tests \
29246 test -e $file && chmod +x $file; \
29254 { (exit 0); exit 0; }
29256 chmod +x $CONFIG_STATUS
29257 ac_clean_files=$ac_clean_files_save
29260 # configure is writing to config.log, and then calls config.status.
29261 # config.status does its own redirection, appending to config.log.
29262 # Unfortunately, on DOS this fails, as config.log is still kept open
29263 # by configure, so config.status won't be able to write to it; its
29264 # output is simply discarded. So we exec the FD to /dev/null,
29265 # effectively closing config.log, so it can be properly (re)opened and
29266 # appended to by config.status. When coming back to configure, we
29267 # need to make the FD available again.
29268 if test "$no_create" != yes; then
29270 ac_config_status_args=
29271 test "$silent" = yes &&
29272 ac_config_status_args="$ac_config_status_args --quiet"
29274 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29276 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29277 # would make configure fail if this is the last instruction.
29278 $ac_cs_success || { (exit 1); exit 1; }
29284 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
29286 Compiler: ${CC} (version: ${GCC_VERSION})
29289 CPPFlags: ${CPPFLAGS}
29290 LDFlags: ${LDFLAGS}
29292 Context backend: ${with_context}
29293 Compile Java: ${use_java}
29295 Maintainer mode: ${USE_MAINTAINER_MODE}
29298 if test x$botbuild = xyes ; then
29299 echo " This is a bot build. Do not specify --enable-botbuild if you are not a bot."
29303 if test -e .svn && test x$USE_MAINTAINER_MODE != xyes && test x$botbuild = xyes ; then
29305 echo "WARNING: You are compiling the SVN in botbuild mode. If you are not a daemon, don't do so. "
29306 echo "WARNING: Remove the --enable-botbuild from your configure line, and add --enable-maintainer-mode instead."
29308 echo "WARNING: You won't be able to build archives until then (make dist is likely to fail). "
29312 echo $build_id > stamp.configure