2 # From configure.ac Revision: 1.156 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for simgrid 3.3-cvs.
6 # Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
73 # Find who we are. Look in the path if we contain no directory separator.
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
164 if test $as_have_required = yes && (eval ":
174 as_func_ret_success () {
177 as_func_ret_failure () {
182 if as_func_success; then
186 echo as_func_success failed.
189 if as_func_failure; then
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
228 test -z "$as_dir" && as_dir=.
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
261 CONFIG_SHELL=$as_shell
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
289 as_func_ret_success () {
292 as_func_ret_failure () {
297 if as_func_success; then
301 echo as_func_success failed.
304 if as_func_failure; then
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
378 as_func_ret_success () {
381 as_func_ret_failure () {
386 if as_func_success; then
390 echo as_func_success failed.
393 if as_func_failure; then
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
475 ECHO_C= ECHO_N= ECHO_T=
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509 elif ln conf$$.file conf$$ 2>/dev/null; then
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
520 test -d ./-p && rmdir ./-p
524 if test -x / >/dev/null 2>&1; then
527 if ls -dL / >/dev/null 2>&1; then
534 if test -d "$1"; then
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556 # Check that we are running under the correct shell.
557 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Remove one level of quotation (which was required for Make).
562 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
567 if test "X$1" = X--no-reexec; then
568 # Discard the --no-reexec flag, and continue.
570 elif test "X$1" = X--fallback-echo; then
571 # Avoid inline document here, it may be left over
573 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574 # Yippee, $echo works!
577 # Restart under the correct shell.
578 exec $SHELL "$0" --no-reexec ${1+"$@"}
581 if test "X$1" = X--fallback-echo; then
582 # used as fallback echo
590 # The HP-UX ksh and POSIX shell print the target directory to stdout
592 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
594 if test -z "$ECHO"; then
595 if test "X${echo_test_string+set}" != Xset; then
596 # find a string as large as possible, as long as the shell can cope with it
597 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600 echo_test_string=`eval $cmd` &&
601 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
608 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # The Solaris, AIX, and Digital Unix default echo programs unquote
614 # backslashes. This makes it impossible to quote backslashes using
615 # echo "$something" | sed 's/\\/\\\\/g'
617 # So, first we look for a working echo in the user's PATH.
619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620 for dir in $PATH /usr/ucb; do
622 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
632 if test "X$echo" = Xecho; then
633 # We didn't find a better echo, so look for alternatives.
634 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636 test "X$echo_testing_string" = "X$echo_test_string"; then
637 # This shell has a builtin print -r that does the trick.
639 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640 test "X$CONFIG_SHELL" != X/bin/ksh; then
641 # If we have ksh, try running configure again with it.
642 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643 export ORIGINAL_CONFIG_SHELL
644 CONFIG_SHELL=/bin/ksh
646 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
650 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652 test "X$echo_testing_string" = "X$echo_test_string"; then
655 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656 test "X$echo_testing_string" = 'X\t' &&
657 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658 test "X$echo_testing_string" = "X$echo_test_string"; then
659 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661 SHELL="$CONFIG_SHELL"
663 echo="$CONFIG_SHELL $0 --fallback-echo"
664 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665 test "X$echo_testing_string" = 'X\t' &&
666 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667 test "X$echo_testing_string" = "X$echo_test_string"; then
668 echo="$CONFIG_SHELL $0 --fallback-echo"
670 # maybe with a smaller string...
673 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
681 if test "$prev" != 'sed 50q "$0"'; then
682 echo_test_string=`eval $prev`
683 export echo_test_string
684 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686 # Oops. We lost completely, so just stick with echo.
695 # Copy echo and quote the copy suitably for passing to libtool from
696 # the Makefile, instead of quoting the original, which is used later.
698 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
705 tagnames=${tagnames+${tagnames},}CXX
707 tagnames=${tagnames+${tagnames},}F77
709 exec 7<&0 </dev/null 6>&1
712 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
713 # so uname gets run too.
714 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
719 ac_default_prefix=/usr/local
721 ac_config_libobj_dir=.
727 SHELL=${CONFIG_SHELL-/bin/sh}
729 # Identity of this package.
730 PACKAGE_NAME='simgrid'
731 PACKAGE_TARNAME='simgrid'
732 PACKAGE_VERSION='3.3-cvs'
733 PACKAGE_STRING='simgrid 3.3-cvs'
734 PACKAGE_BUGREPORT='simgrid-devel@lists.gforge.inria.fr'
736 ac_unique_file="include/gras.h"
737 # Factoring default headers for most tests.
738 ac_includes_default="\
740 #ifdef HAVE_SYS_TYPES_H
741 # include <sys/types.h>
743 #ifdef HAVE_SYS_STAT_H
744 # include <sys/stat.h>
750 # ifdef HAVE_STDLIB_H
755 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
760 #ifdef HAVE_STRINGS_H
761 # include <strings.h>
763 #ifdef HAVE_INTTYPES_H
764 # include <inttypes.h>
782 program_transform_name
835 INSTALL_STRIP_PROGRAM
881 GRAS_ARCH_32_BITS_TRUE
882 GRAS_ARCH_32_BITS_FALSE
884 pth_skaddr_makecontext
885 pth_sksize_makecontext
900 MAINTAINER_MODE_FALSE
922 ac_precious_vars='build_alias
939 # Initialize some variables set by options.
941 ac_init_version=false
942 # The variables have the same names as the options, with
943 # dashes changed to underlines.
951 program_transform_name=s,x,x,
959 # Installation directory options.
960 # These are left unexpanded so users can "make install exec_prefix=/foo"
961 # and all the variables that are supposed to be based on exec_prefix
962 # by default will actually change.
963 # Use braces instead of parens because sh, perl, etc. also accept them.
964 # (The list follows the same order as the GNU Coding Standards.)
965 bindir='${exec_prefix}/bin'
966 sbindir='${exec_prefix}/sbin'
967 libexecdir='${exec_prefix}/libexec'
968 datarootdir='${prefix}/share'
969 datadir='${datarootdir}'
970 sysconfdir='${prefix}/etc'
971 sharedstatedir='${prefix}/com'
972 localstatedir='${prefix}/var'
973 includedir='${prefix}/include'
974 oldincludedir='/usr/include'
975 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
976 infodir='${datarootdir}/info'
981 libdir='${exec_prefix}/lib'
982 localedir='${datarootdir}/locale'
983 mandir='${datarootdir}/man'
989 # If the previous option needs an argument, assign it.
990 if test -n "$ac_prev"; then
991 eval $ac_prev=\$ac_option
997 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1001 # Accept the important Cygnus configure options, so we can diagnose typos.
1003 case $ac_dashdash$ac_option in
1007 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1009 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010 bindir=$ac_optarg ;;
1012 -build | --build | --buil | --bui | --bu)
1013 ac_prev=build_alias ;;
1014 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015 build_alias=$ac_optarg ;;
1017 -cache-file | --cache-file | --cache-fil | --cache-fi \
1018 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019 ac_prev=cache_file ;;
1020 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022 cache_file=$ac_optarg ;;
1024 --config-cache | -C)
1025 cache_file=config.cache ;;
1027 -datadir | --datadir | --datadi | --datad)
1029 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030 datadir=$ac_optarg ;;
1032 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033 | --dataroo | --dataro | --datar)
1034 ac_prev=datarootdir ;;
1035 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037 datarootdir=$ac_optarg ;;
1039 -disable-* | --disable-*)
1040 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1043 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1044 { (exit 1); exit 1; }; }
1045 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1046 eval enable_$ac_feature=no ;;
1048 -docdir | --docdir | --docdi | --doc | --do)
1050 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1051 docdir=$ac_optarg ;;
1053 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1055 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1056 dvidir=$ac_optarg ;;
1058 -enable-* | --enable-*)
1059 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1062 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1063 { (exit 1); exit 1; }; }
1064 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1065 eval enable_$ac_feature=\$ac_optarg ;;
1067 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1068 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1069 | --exec | --exe | --ex)
1070 ac_prev=exec_prefix ;;
1071 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1072 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1073 | --exec=* | --exe=* | --ex=*)
1074 exec_prefix=$ac_optarg ;;
1076 -gas | --gas | --ga | --g)
1077 # Obsolete; use --with-gas.
1080 -help | --help | --hel | --he | -h)
1081 ac_init_help=long ;;
1082 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1083 ac_init_help=recursive ;;
1084 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1085 ac_init_help=short ;;
1087 -host | --host | --hos | --ho)
1088 ac_prev=host_alias ;;
1089 -host=* | --host=* | --hos=* | --ho=*)
1090 host_alias=$ac_optarg ;;
1092 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1094 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1096 htmldir=$ac_optarg ;;
1098 -includedir | --includedir | --includedi | --included | --include \
1099 | --includ | --inclu | --incl | --inc)
1100 ac_prev=includedir ;;
1101 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1102 | --includ=* | --inclu=* | --incl=* | --inc=*)
1103 includedir=$ac_optarg ;;
1105 -infodir | --infodir | --infodi | --infod | --info | --inf)
1107 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1108 infodir=$ac_optarg ;;
1110 -libdir | --libdir | --libdi | --libd)
1112 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1113 libdir=$ac_optarg ;;
1115 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1116 | --libexe | --libex | --libe)
1117 ac_prev=libexecdir ;;
1118 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1119 | --libexe=* | --libex=* | --libe=*)
1120 libexecdir=$ac_optarg ;;
1122 -localedir | --localedir | --localedi | --localed | --locale)
1123 ac_prev=localedir ;;
1124 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1125 localedir=$ac_optarg ;;
1127 -localstatedir | --localstatedir | --localstatedi | --localstated \
1128 | --localstate | --localstat | --localsta | --localst | --locals)
1129 ac_prev=localstatedir ;;
1130 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1131 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1132 localstatedir=$ac_optarg ;;
1134 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1136 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1137 mandir=$ac_optarg ;;
1139 -nfp | --nfp | --nf)
1140 # Obsolete; use --without-fp.
1143 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1144 | --no-cr | --no-c | -n)
1147 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1148 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1151 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1152 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1153 | --oldin | --oldi | --old | --ol | --o)
1154 ac_prev=oldincludedir ;;
1155 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1156 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1157 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1158 oldincludedir=$ac_optarg ;;
1160 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1162 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1163 prefix=$ac_optarg ;;
1165 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1166 | --program-pre | --program-pr | --program-p)
1167 ac_prev=program_prefix ;;
1168 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1169 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1170 program_prefix=$ac_optarg ;;
1172 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1173 | --program-suf | --program-su | --program-s)
1174 ac_prev=program_suffix ;;
1175 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1176 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1177 program_suffix=$ac_optarg ;;
1179 -program-transform-name | --program-transform-name \
1180 | --program-transform-nam | --program-transform-na \
1181 | --program-transform-n | --program-transform- \
1182 | --program-transform | --program-transfor \
1183 | --program-transfo | --program-transf \
1184 | --program-trans | --program-tran \
1185 | --progr-tra | --program-tr | --program-t)
1186 ac_prev=program_transform_name ;;
1187 -program-transform-name=* | --program-transform-name=* \
1188 | --program-transform-nam=* | --program-transform-na=* \
1189 | --program-transform-n=* | --program-transform-=* \
1190 | --program-transform=* | --program-transfor=* \
1191 | --program-transfo=* | --program-transf=* \
1192 | --program-trans=* | --program-tran=* \
1193 | --progr-tra=* | --program-tr=* | --program-t=*)
1194 program_transform_name=$ac_optarg ;;
1196 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1198 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1199 pdfdir=$ac_optarg ;;
1201 -psdir | --psdir | --psdi | --psd | --ps)
1203 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1207 | -silent | --silent | --silen | --sile | --sil)
1210 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1212 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1214 sbindir=$ac_optarg ;;
1216 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1217 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1218 | --sharedst | --shareds | --shared | --share | --shar \
1220 ac_prev=sharedstatedir ;;
1221 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1222 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1223 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1225 sharedstatedir=$ac_optarg ;;
1227 -site | --site | --sit)
1229 -site=* | --site=* | --sit=*)
1232 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1234 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1235 srcdir=$ac_optarg ;;
1237 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1238 | --syscon | --sysco | --sysc | --sys | --sy)
1239 ac_prev=sysconfdir ;;
1240 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1241 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1242 sysconfdir=$ac_optarg ;;
1244 -target | --target | --targe | --targ | --tar | --ta | --t)
1245 ac_prev=target_alias ;;
1246 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1247 target_alias=$ac_optarg ;;
1249 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1252 -version | --version | --versio | --versi | --vers | -V)
1253 ac_init_version=: ;;
1256 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259 { echo "$as_me: error: invalid package name: $ac_package" >&2
1260 { (exit 1); exit 1; }; }
1261 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1262 eval with_$ac_package=\$ac_optarg ;;
1264 -without-* | --without-*)
1265 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268 { echo "$as_me: error: invalid package name: $ac_package" >&2
1269 { (exit 1); exit 1; }; }
1270 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1271 eval with_$ac_package=no ;;
1274 # Obsolete; use --with-x.
1277 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1278 | --x-incl | --x-inc | --x-in | --x-i)
1279 ac_prev=x_includes ;;
1280 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1281 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1282 x_includes=$ac_optarg ;;
1284 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1285 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1286 ac_prev=x_libraries ;;
1287 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1288 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1289 x_libraries=$ac_optarg ;;
1291 -*) { echo "$as_me: error: unrecognized option: $ac_option
1292 Try \`$0 --help' for more information." >&2
1293 { (exit 1); exit 1; }; }
1297 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1300 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1301 { (exit 1); exit 1; }; }
1302 eval $ac_envvar=\$ac_optarg
1303 export $ac_envvar ;;
1306 # FIXME: should be removed in autoconf 3.0.
1307 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1308 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1309 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1310 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1316 if test -n "$ac_prev"; then
1317 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1318 { echo "$as_me: error: missing argument to $ac_option" >&2
1319 { (exit 1); exit 1; }; }
1322 # Be sure to have absolute directory names.
1323 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324 datadir sysconfdir sharedstatedir localstatedir includedir \
1325 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326 libdir localedir mandir
1328 eval ac_val=\$$ac_var
1330 [\\/$]* | ?:[\\/]* ) continue;;
1331 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1333 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1334 { (exit 1); exit 1; }; }
1337 # There might be people who depend on the old broken behavior: `$host'
1338 # used to hold the argument of --host etc.
1339 # FIXME: To remove some day.
1342 target=$target_alias
1344 # FIXME: To remove some day.
1345 if test "x$host_alias" != x; then
1346 if test "x$build_alias" = x; then
1347 cross_compiling=maybe
1348 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1349 If a cross compiler is detected then cross compile mode will be used." >&2
1350 elif test "x$build_alias" != "x$host_alias"; then
1356 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1358 test "$silent" = yes && exec 6>/dev/null
1361 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1362 ac_ls_di=`ls -di .` &&
1363 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1364 { echo "$as_me: error: Working directory cannot be determined" >&2
1365 { (exit 1); exit 1; }; }
1366 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1367 { echo "$as_me: error: pwd does not report name of working directory" >&2
1368 { (exit 1); exit 1; }; }
1371 # Find the source files, if location was not specified.
1372 if test -z "$srcdir"; then
1373 ac_srcdir_defaulted=yes
1374 # Try the directory containing this script, then the parent directory.
1375 ac_confdir=`$as_dirname -- "$0" ||
1376 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1377 X"$0" : 'X\(//\)[^/]' \| \
1378 X"$0" : 'X\(//\)$' \| \
1379 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1399 if test ! -r "$srcdir/$ac_unique_file"; then
1403 ac_srcdir_defaulted=no
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1406 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1407 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1408 { (exit 1); exit 1; }; }
1410 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1412 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1413 { (exit 1); exit 1; }; }
1415 # When building in place, set srcdir=.
1416 if test "$ac_abs_confdir" = "$ac_pwd"; then
1419 # Remove unnecessary trailing slashes from srcdir.
1420 # Double slashes in file names in object file debugging info
1421 # mess up M-x gdb in Emacs.
1423 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1425 for ac_var in $ac_precious_vars; do
1426 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_env_${ac_var}_value=\$${ac_var}
1428 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1429 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1433 # Report the --help message.
1435 if test "$ac_init_help" = "long"; then
1436 # Omit some internal or obsolete options to make the list less imposing.
1437 # This message is too long to be a string in the A/UX 3.1 sh.
1439 \`configure' configures simgrid 3.3-cvs to adapt to many kinds of systems.
1441 Usage: $0 [OPTION]... [VAR=VALUE]...
1443 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1444 VAR=VALUE. See below for descriptions of some of the useful variables.
1446 Defaults for the options are specified in brackets.
1449 -h, --help display this help and exit
1450 --help=short display options specific to this package
1451 --help=recursive display the short help of all the included packages
1452 -V, --version display version information and exit
1453 -q, --quiet, --silent do not print \`checking...' messages
1454 --cache-file=FILE cache test results in FILE [disabled]
1455 -C, --config-cache alias for \`--cache-file=config.cache'
1456 -n, --no-create do not create output files
1457 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1459 Installation directories:
1460 --prefix=PREFIX install architecture-independent files in PREFIX
1461 [$ac_default_prefix]
1462 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1465 By default, \`make install' will install all the files in
1466 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1467 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1468 for instance \`--prefix=\$HOME'.
1470 For better control, use the options below.
1472 Fine tuning of the installation directories:
1473 --bindir=DIR user executables [EPREFIX/bin]
1474 --sbindir=DIR system admin executables [EPREFIX/sbin]
1475 --libexecdir=DIR program executables [EPREFIX/libexec]
1476 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1477 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1478 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1479 --libdir=DIR object code libraries [EPREFIX/lib]
1480 --includedir=DIR C header files [PREFIX/include]
1481 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1482 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1483 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1484 --infodir=DIR info documentation [DATAROOTDIR/info]
1485 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1486 --mandir=DIR man documentation [DATAROOTDIR/man]
1487 --docdir=DIR documentation root [DATAROOTDIR/doc/simgrid]
1488 --htmldir=DIR html documentation [DOCDIR]
1489 --dvidir=DIR dvi documentation [DOCDIR]
1490 --pdfdir=DIR pdf documentation [DOCDIR]
1491 --psdir=DIR ps documentation [DOCDIR]
1497 --program-prefix=PREFIX prepend PREFIX to installed program names
1498 --program-suffix=SUFFIX append SUFFIX to installed program names
1499 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1502 --build=BUILD configure for building on BUILD [guessed]
1503 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1504 --target=TARGET configure for building compilers for TARGET [HOST]
1508 if test -n "$ac_init_help"; then
1509 case $ac_init_help in
1510 short | recursive ) echo "Configuration of simgrid 3.3-cvs:";;
1515 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1516 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1517 --enable-shared[=PKGS] build shared libraries [default=yes]
1518 --enable-static[=PKGS] build static libraries [default=yes]
1519 --enable-fast-install[=PKGS]
1520 optimize for fast installation [default=yes]
1521 --disable-dependency-tracking speeds up one-time build
1522 --enable-dependency-tracking do not reject slow dependency extractors
1523 --disable-libtool-lock avoid locking (might break parallel builds)
1524 --enable-simix Use the new SimIX module (default=no)
1525 --enable-maintainer-mode enable make rules and dependencies not useful
1526 (and sometimes confusing) to the casual installer
1527 --enable-compile-warnings
1528 use compiler warnings (default=no, unless in
1530 --disable-compile-optimizations
1531 use compiler optimizations (default=yes, unless if
1532 CFLAGS is explicitly set)
1535 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1536 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1537 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1538 --with-pic try to use only PIC/non-PIC objects [default=use
1540 --with-tags[=TAGS] include additional configurations [automatic]
1541 --with-pthread Use pthread instead of ucontext.
1542 --with-pthreads Use pthread instead of ucontext.
1543 --with-context=ucontext/pthread Use either (System V) swapcontext or pthread [default=auto].
1544 --with-gtnets Path to GTNetS installation (default to empty, ie
1547 Some influential environment variables:
1548 CC C compiler command
1549 CFLAGS C compiler flags
1550 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1551 nonstandard directory <lib dir>
1552 LIBS libraries to pass to the linker, e.g. -l<library>
1553 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1554 you have headers in a nonstandard directory <include dir>
1556 CXX C++ compiler command
1557 CXXFLAGS C++ compiler flags
1558 CXXCPP C++ preprocessor
1559 F77 Fortran 77 compiler command
1560 FFLAGS Fortran 77 compiler flags
1562 Use these variables to override the choices made by `configure' or to help
1563 it to find libraries and programs with nonstandard names/locations.
1565 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1570 if test "$ac_init_help" = "recursive"; then
1571 # If there are subdirs, report their specific --help.
1572 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1573 test -d "$ac_dir" || continue
1577 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1580 # A ".." for each directory in $ac_dir_suffix.
1581 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1582 case $ac_top_builddir_sub in
1583 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1587 ac_abs_top_builddir=$ac_pwd
1588 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1589 # for backward compatibility:
1590 ac_top_builddir=$ac_top_build_prefix
1593 .) # We are building in place.
1595 ac_top_srcdir=$ac_top_builddir_sub
1596 ac_abs_top_srcdir=$ac_pwd ;;
1597 [\\/]* | ?:[\\/]* ) # Absolute name.
1598 ac_srcdir=$srcdir$ac_dir_suffix;
1599 ac_top_srcdir=$srcdir
1600 ac_abs_top_srcdir=$srcdir ;;
1602 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1603 ac_top_srcdir=$ac_top_build_prefix$srcdir
1604 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1606 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1608 cd "$ac_dir" || { ac_status=$?; continue; }
1609 # Check for guested configure.
1610 if test -f "$ac_srcdir/configure.gnu"; then
1612 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1613 elif test -f "$ac_srcdir/configure"; then
1615 $SHELL "$ac_srcdir/configure" --help=recursive
1617 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1619 cd "$ac_pwd" || { ac_status=$?; break; }
1623 test -n "$ac_init_help" && exit $ac_status
1624 if $ac_init_version; then
1626 simgrid configure 3.3-cvs
1627 generated by GNU Autoconf 2.61
1629 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1630 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1631 This configure script is free software; the Free Software Foundation
1632 gives unlimited permission to copy, distribute and modify it.
1636 cat >config.log <<_ACEOF
1637 This file contains any messages produced by compilers while
1638 running configure, to aid debugging if configure makes a mistake.
1640 It was created by simgrid $as_me 3.3-cvs, which was
1641 generated by GNU Autoconf 2.61. Invocation command line was
1653 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1654 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1655 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1656 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1657 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1659 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1660 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1662 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1663 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1664 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1665 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1666 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1667 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1668 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676 test -z "$as_dir" && as_dir=.
1677 echo "PATH: $as_dir"
1693 # Keep a trace of the command line.
1694 # Strip out --no-create and --no-recursion so they do not pile up.
1695 # Strip out --silent because we don't want to record it for future runs.
1696 # Also quote any args containing shell meta-characters.
1697 # Make two passes to allow for proper duplicate-argument suppression.
1701 ac_must_keep_next=false
1707 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1708 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1709 | -silent | --silent | --silen | --sile | --sil)
1712 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1715 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1717 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1718 if test $ac_must_keep_next = true; then
1719 ac_must_keep_next=false # Got value, back to normal.
1722 *=* | --config-cache | -C | -disable-* | --disable-* \
1723 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1724 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1725 | -with-* | --with-* | -without-* | --without-* | --x)
1726 case "$ac_configure_args0 " in
1727 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1730 -* ) ac_must_keep_next=true ;;
1733 ac_configure_args="$ac_configure_args '$ac_arg'"
1738 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1739 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1741 # When interrupted or exit'd, cleanup temporary files, and complete
1742 # config.log. We remove comments because anyway the quotes in there
1743 # would cause problems or look ugly.
1744 # WARNING: Use '\'' to represent an apostrophe within the trap.
1745 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1746 trap 'exit_status=$?
1747 # Save into config.log some information that might help in debugging.
1752 ## ---------------- ##
1753 ## Cache variables. ##
1754 ## ---------------- ##
1757 # The following way of writing the cache mishandles newlines in values,
1759 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1760 eval ac_val=\$$ac_var
1764 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1765 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1768 _ | IFS | as_nl) ;; #(
1769 *) $as_unset $ac_var ;;
1774 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1775 *${as_nl}ac_space=\ *)
1777 "s/'\''/'\''\\\\'\'''\''/g;
1778 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1781 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1789 ## ----------------- ##
1790 ## Output variables. ##
1791 ## ----------------- ##
1794 for ac_var in $ac_subst_vars
1796 eval ac_val=\$$ac_var
1798 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1800 echo "$ac_var='\''$ac_val'\''"
1804 if test -n "$ac_subst_files"; then
1806 ## ------------------- ##
1807 ## File substitutions. ##
1808 ## ------------------- ##
1811 for ac_var in $ac_subst_files
1813 eval ac_val=\$$ac_var
1815 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1817 echo "$ac_var='\''$ac_val'\''"
1822 if test -s confdefs.h; then
1832 test "$ac_signal" != 0 &&
1833 echo "$as_me: caught signal $ac_signal"
1834 echo "$as_me: exit $exit_status"
1836 rm -f core *.core core.conftest.* &&
1837 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1840 for ac_signal in 1 2 13 15; do
1841 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1845 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1846 rm -f -r conftest* confdefs.h
1848 # Predefined preprocessor variables.
1850 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE_NAME "$PACKAGE_NAME"
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_STRING "$PACKAGE_STRING"
1870 cat >>confdefs.h <<_ACEOF
1871 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1875 # Let the site file select an alternate cache file if it wants to.
1876 # Prefer explicitly selected file to automatically selected ones.
1877 if test -n "$CONFIG_SITE"; then
1878 set x "$CONFIG_SITE"
1879 elif test "x$prefix" != xNONE; then
1880 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1882 set x "$ac_default_prefix/share/config.site" \
1883 "$ac_default_prefix/etc/config.site"
1888 if test -r "$ac_site_file"; then
1889 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1890 echo "$as_me: loading site script $ac_site_file" >&6;}
1891 sed 's/^/| /' "$ac_site_file" >&5
1896 if test -r "$cache_file"; then
1897 # Some versions of bash will fail to source /dev/null (special
1898 # files actually), so we avoid doing that.
1899 if test -f "$cache_file"; then
1900 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1901 echo "$as_me: loading cache $cache_file" >&6;}
1903 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1904 *) . "./$cache_file";;
1908 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1909 echo "$as_me: creating cache $cache_file" >&6;}
1913 # Check that the precious variables saved in the cache have kept the same
1915 ac_cache_corrupted=false
1916 for ac_var in $ac_precious_vars; do
1917 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1918 eval ac_new_set=\$ac_env_${ac_var}_set
1919 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1920 eval ac_new_val=\$ac_env_${ac_var}_value
1921 case $ac_old_set,$ac_new_set in
1923 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1924 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1925 ac_cache_corrupted=: ;;
1927 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1928 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1929 ac_cache_corrupted=: ;;
1932 if test "x$ac_old_val" != "x$ac_new_val"; then
1933 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1934 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1935 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1936 echo "$as_me: former value: $ac_old_val" >&2;}
1937 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1938 echo "$as_me: current value: $ac_new_val" >&2;}
1939 ac_cache_corrupted=:
1942 # Pass precious variables to config.status.
1943 if test "$ac_new_set" = set; then
1945 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1946 *) ac_arg=$ac_var=$ac_new_val ;;
1948 case " $ac_configure_args " in
1949 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1950 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1954 if $ac_cache_corrupted; then
1955 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1956 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1957 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1958 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1959 { (exit 1); exit 1; }; }
1987 ac_cpp='$CPP $CPPFLAGS'
1988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1994 ac_config_headers="$ac_config_headers src/gras_config.h"
1996 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
2000 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2001 if test -f "$ac_dir/install-sh"; then
2003 ac_install_sh="$ac_aux_dir/install-sh -c"
2005 elif test -f "$ac_dir/install.sh"; then
2007 ac_install_sh="$ac_aux_dir/install.sh -c"
2009 elif test -f "$ac_dir/shtool"; then
2011 ac_install_sh="$ac_aux_dir/shtool install -c"
2015 if test -z "$ac_aux_dir"; then
2016 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2017 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2018 { (exit 1); exit 1; }; }
2021 # These three variables are undocumented and unsupported,
2022 # and are intended to be withdrawn in a future Autoconf release.
2023 # They can cause serious problems if a builder's source tree is in a directory
2024 # whose full name contains unusual characters.
2025 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2026 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2027 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2030 # Make sure we can run config.sub.
2031 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2032 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2033 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2034 { (exit 1); exit 1; }; }
2036 { echo "$as_me:$LINENO: checking build system type" >&5
2037 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2038 if test "${ac_cv_build+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 ac_build_alias=$build_alias
2042 test "x$ac_build_alias" = x &&
2043 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2044 test "x$ac_build_alias" = x &&
2045 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2046 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2047 { (exit 1); exit 1; }; }
2048 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2049 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2050 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2051 { (exit 1); exit 1; }; }
2054 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2055 echo "${ECHO_T}$ac_cv_build" >&6; }
2056 case $ac_cv_build in
2058 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2059 echo "$as_me: error: invalid value of canonical build" >&2;}
2060 { (exit 1); exit 1; }; };;
2063 ac_save_IFS=$IFS; IFS='-'
2069 # Remember, the first character of IFS is used to create $*,
2070 # except with old shells:
2073 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2076 { echo "$as_me:$LINENO: checking host system type" >&5
2077 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2078 if test "${ac_cv_host+set}" = set; then
2079 echo $ECHO_N "(cached) $ECHO_C" >&6
2081 if test "x$host_alias" = x; then
2082 ac_cv_host=$ac_cv_build
2084 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2085 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2086 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2087 { (exit 1); exit 1; }; }
2091 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2092 echo "${ECHO_T}$ac_cv_host" >&6; }
2095 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2096 echo "$as_me: error: invalid value of canonical host" >&2;}
2097 { (exit 1); exit 1; }; };;
2100 ac_save_IFS=$IFS; IFS='-'
2106 # Remember, the first character of IFS is used to create $*,
2107 # except with old shells:
2110 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2113 { echo "$as_me:$LINENO: checking target system type" >&5
2114 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2115 if test "${ac_cv_target+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 if test "x$target_alias" = x; then
2119 ac_cv_target=$ac_cv_host
2121 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2122 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2123 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2124 { (exit 1); exit 1; }; }
2128 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2129 echo "${ECHO_T}$ac_cv_target" >&6; }
2130 case $ac_cv_target in
2132 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2133 echo "$as_me: error: invalid value of canonical target" >&2;}
2134 { (exit 1); exit 1; }; };;
2136 target=$ac_cv_target
2137 ac_save_IFS=$IFS; IFS='-'
2143 # Remember, the first character of IFS is used to create $*,
2144 # except with old shells:
2147 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2150 # The aliases save the names the user supplied, while $host etc.
2151 # will get canonicalized.
2152 test -n "$target_alias" &&
2153 test "$program_prefix$program_suffix$program_transform_name" = \
2155 program_prefix=${target_alias}-
2157 ac_cpp='$CPP $CPPFLAGS'
2158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2163 am__api_version="1.9"
2164 # Find a good install program. We prefer a C program (faster),
2165 # so one script is as good as another. But avoid the broken or
2166 # incompatible versions:
2167 # SysV /etc/install, /usr/sbin/install
2168 # SunOS /usr/etc/install
2169 # IRIX /sbin/install
2171 # AmigaOS /C/install, which installs bootblocks on floppy discs
2172 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2173 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2174 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2175 # OS/2's system install, which has a completely different semantic
2176 # ./install, which can be erroneously created by make from ./install.sh.
2177 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2178 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2179 if test -z "$INSTALL"; then
2180 if test "${ac_cv_path_install+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187 test -z "$as_dir" && as_dir=.
2188 # Account for people who put trailing slashes in PATH elements.
2190 ./ | .// | /cC/* | \
2191 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2192 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2195 # OSF1 and SCO ODT 3.0 have their own names for install.
2196 # Don't use installbsd from OSF since it installs stuff as root
2198 for ac_prog in ginstall scoinst install; do
2199 for ac_exec_ext in '' $ac_executable_extensions; do
2200 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2201 if test $ac_prog = install &&
2202 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2203 # AIX install. It has an incompatible calling convention.
2205 elif test $ac_prog = install &&
2206 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2207 # program-specific install script used by HP pwplus--don't use.
2210 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2223 if test "${ac_cv_path_install+set}" = set; then
2224 INSTALL=$ac_cv_path_install
2226 # As a last resort, use the slow shell script. Don't cache a
2227 # value for INSTALL within a source directory, because that will
2228 # break other packages using the cache if that directory is
2229 # removed, or if the value is a relative name.
2230 INSTALL=$ac_install_sh
2233 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2234 echo "${ECHO_T}$INSTALL" >&6; }
2236 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2237 # It thinks the first close brace ends the variable substitution.
2238 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2240 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2242 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2244 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2245 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2248 echo timestamp > conftest.file
2249 # Do `set' in a subshell so we don't clobber the current shell's
2250 # arguments. Must try -L first in case configure is actually a
2251 # symlink; some systems play weird games with the mod time of symlinks
2252 # (eg FreeBSD returns the mod time of the symlink's containing
2255 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2256 if test "$*" = "X"; then
2258 set X `ls -t $srcdir/configure conftest.file`
2261 if test "$*" != "X $srcdir/configure conftest.file" \
2262 && test "$*" != "X conftest.file $srcdir/configure"; then
2264 # If neither matched, then we have a broken ls. This can happen
2265 # if, for instance, CONFIG_SHELL is bash and it inherits a
2266 # broken ls alias from the environment. This has actually
2267 # happened. Such a system could not be considered "sane".
2268 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2269 alias in your environment" >&5
2270 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2271 alias in your environment" >&2;}
2272 { (exit 1); exit 1; }; }
2275 test "$2" = conftest.file
2281 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2282 Check your system clock" >&5
2283 echo "$as_me: error: newly created file is older than distributed files!
2284 Check your system clock" >&2;}
2285 { (exit 1); exit 1; }; }
2287 { echo "$as_me:$LINENO: result: yes" >&5
2288 echo "${ECHO_T}yes" >&6; }
2289 test "$program_prefix" != NONE &&
2290 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2291 # Use a double $ so make ignores it.
2292 test "$program_suffix" != NONE &&
2293 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2294 # Double any \ or $. echo might interpret backslashes.
2295 # By default was `s,x,x', remove it if useless.
2296 cat <<\_ACEOF >conftest.sed
2297 s/[\\$]/&&/g;s/;s,x,x,$//
2299 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2302 # expand $ac_aux_dir to an absolute path
2303 am_aux_dir=`cd $ac_aux_dir && pwd`
2305 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2306 # Use eval to expand $SHELL
2307 if eval "$MISSING --run true"; then
2308 am_missing_run="$MISSING --run "
2311 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2312 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2315 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2316 # We used to keeping the `.' as first argument, in order to
2317 # allow $(mkdir_p) to be used without argument. As in
2318 # $(mkdir_p) $(somedir)
2319 # where $(somedir) is conditionally defined. However this is wrong
2321 # 1. if the package is installed by a user who cannot write `.'
2322 # make install will fail,
2323 # 2. the above comment should most certainly read
2324 # $(mkdir_p) $(DESTDIR)$(somedir)
2325 # so it does not work when $(somedir) is undefined and
2326 # $(DESTDIR) is not.
2327 # To support the latter case, we have to write
2328 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2329 # so the `.' trick is pointless.
2330 mkdir_p='mkdir -p --'
2332 # On NextStep and OpenStep, the `mkdir' command does not
2333 # recognize any option. It will interpret all options as
2334 # directories to create, and then abort because `.' already
2336 for d in ./-p ./--version;
2338 test -d $d && rmdir $d
2340 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2341 if test -f "$ac_aux_dir/mkinstalldirs"; then
2342 mkdir_p='$(mkinstalldirs)'
2344 mkdir_p='$(install_sh) -d'
2348 for ac_prog in gawk mawk nawk awk
2350 # Extract the first word of "$ac_prog", so it can be a program name with args.
2351 set dummy $ac_prog; ac_word=$2
2352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2354 if test "${ac_cv_prog_AWK+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2357 if test -n "$AWK"; then
2358 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 test -z "$as_dir" && as_dir=.
2365 for ac_exec_ext in '' $ac_executable_extensions; do
2366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2367 ac_cv_prog_AWK="$ac_prog"
2368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378 if test -n "$AWK"; then
2379 { echo "$as_me:$LINENO: result: $AWK" >&5
2380 echo "${ECHO_T}$AWK" >&6; }
2382 { echo "$as_me:$LINENO: result: no" >&5
2383 echo "${ECHO_T}no" >&6; }
2387 test -n "$AWK" && break
2390 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2391 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2392 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2393 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2394 echo $ECHO_N "(cached) $ECHO_C" >&6
2396 cat >conftest.make <<\_ACEOF
2399 @echo '@@@%%%=$(MAKE)=@@@%%%'
2401 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2402 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2404 eval ac_cv_prog_make_${ac_make}_set=yes;;
2406 eval ac_cv_prog_make_${ac_make}_set=no;;
2410 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2411 { echo "$as_me:$LINENO: result: yes" >&5
2412 echo "${ECHO_T}yes" >&6; }
2415 { echo "$as_me:$LINENO: result: no" >&5
2416 echo "${ECHO_T}no" >&6; }
2417 SET_MAKE="MAKE=${MAKE-make}"
2420 rm -rf .tst 2>/dev/null
2421 mkdir .tst 2>/dev/null
2422 if test -d .tst; then
2427 rmdir .tst 2>/dev/null
2429 # test to see if srcdir already configured
2430 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2431 test -f $srcdir/config.status; then
2432 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2433 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2434 { (exit 1); exit 1; }; }
2437 # test whether we have cygpath
2438 if test -z "$CYGPATH_W"; then
2439 if (cygpath --version) >/dev/null 2>/dev/null; then
2440 CYGPATH_W='cygpath -w'
2447 # Define the identity of the package.
2452 cat >>confdefs.h <<_ACEOF
2453 #define PACKAGE "$PACKAGE"
2457 cat >>confdefs.h <<_ACEOF
2458 #define VERSION "$VERSION"
2461 # Some tools Automake needs.
2463 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2466 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2469 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2472 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2475 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2477 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2479 # Installed binaries are usually stripped using `strip' when the user
2480 # run `make install-strip'. However `strip' might not be the right
2481 # tool to use in cross-compilation environments, therefore Automake
2482 # will honor the `STRIP' environment variable to overrule this program.
2483 if test "$cross_compiling" != no; then
2484 if test -n "$ac_tool_prefix"; then
2485 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2486 set dummy ${ac_tool_prefix}strip; ac_word=$2
2487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2489 if test "${ac_cv_prog_STRIP+set}" = set; then
2490 echo $ECHO_N "(cached) $ECHO_C" >&6
2492 if test -n "$STRIP"; then
2493 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 test -z "$as_dir" && as_dir=.
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2502 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2512 STRIP=$ac_cv_prog_STRIP
2513 if test -n "$STRIP"; then
2514 { echo "$as_me:$LINENO: result: $STRIP" >&5
2515 echo "${ECHO_T}$STRIP" >&6; }
2517 { echo "$as_me:$LINENO: result: no" >&5
2518 echo "${ECHO_T}no" >&6; }
2523 if test -z "$ac_cv_prog_STRIP"; then
2525 # Extract the first word of "strip", so it can be a program name with args.
2526 set dummy strip; ac_word=$2
2527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2529 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2530 echo $ECHO_N "(cached) $ECHO_C" >&6
2532 if test -n "$ac_ct_STRIP"; then
2533 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 test -z "$as_dir" && as_dir=.
2540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2542 ac_cv_prog_ac_ct_STRIP="strip"
2543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2553 if test -n "$ac_ct_STRIP"; then
2554 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2555 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2557 { echo "$as_me:$LINENO: result: no" >&5
2558 echo "${ECHO_T}no" >&6; }
2561 if test "x$ac_ct_STRIP" = x; then
2564 case $cross_compiling:$ac_tool_warned in
2566 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2567 whose name does not start with the host triplet. If you think this
2568 configuration is useful to you, please write to autoconf@gnu.org." >&5
2569 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2570 whose name does not start with the host triplet. If you think this
2571 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2572 ac_tool_warned=yes ;;
2577 STRIP="$ac_cv_prog_STRIP"
2581 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2583 # We need awk for the "check" target. The system "awk" is bad on
2585 # Always define AMTAR for backward compatibility.
2587 AMTAR=${AMTAR-"${am_missing_run}tar"}
2589 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2596 ACLOCAL="$ACLOCAL -I acmacro"
2599 # Check whether --enable-shared was given.
2600 if test "${enable_shared+set}" = set; then
2601 enableval=$enable_shared; p=${PACKAGE-default}
2603 yes) enable_shared=yes ;;
2604 no) enable_shared=no ;;
2607 # Look at the argument we got. We use all the common list separators.
2608 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2609 for pkg in $enableval; do
2611 if test "X$pkg" = "X$p"; then
2623 # Check whether --enable-static was given.
2624 if test "${enable_static+set}" = set; then
2625 enableval=$enable_static; p=${PACKAGE-default}
2627 yes) enable_static=yes ;;
2628 no) enable_static=no ;;
2631 # Look at the argument we got. We use all the common list separators.
2632 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2633 for pkg in $enableval; do
2635 if test "X$pkg" = "X$p"; then
2647 # Check whether --enable-fast-install was given.
2648 if test "${enable_fast_install+set}" = set; then
2649 enableval=$enable_fast_install; p=${PACKAGE-default}
2651 yes) enable_fast_install=yes ;;
2652 no) enable_fast_install=no ;;
2654 enable_fast_install=no
2655 # Look at the argument we got. We use all the common list separators.
2656 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2657 for pkg in $enableval; do
2659 if test "X$pkg" = "X$p"; then
2660 enable_fast_install=yes
2667 enable_fast_install=yes
2671 DEPDIR="${am__leading_dot}deps"
2673 ac_config_commands="$ac_config_commands depfiles"
2676 am_make=${MAKE-make}
2677 cat > confinc << 'END'
2682 # If we don't find an include directive, just comment out the code.
2683 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2684 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2688 # First try GNU make style include.
2689 echo "include confinc" > confmf
2690 # We grep out `Entering directory' and `Leaving directory'
2691 # messages which can occur if `w' ends up in MAKEFLAGS.
2692 # In particular we don't look at `^make:' because GNU make might
2693 # be invoked under some other name (usually "gmake"), in which
2694 # case it prints its new name instead of `make'.
2695 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2700 # Now try BSD make style include.
2701 if test "$am__include" = "#"; then
2702 echo '.include "confinc"' > confmf
2703 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2704 am__include=.include
2711 { echo "$as_me:$LINENO: result: $_am_result" >&5
2712 echo "${ECHO_T}$_am_result" >&6; }
2713 rm -f confinc confmf
2715 # Check whether --enable-dependency-tracking was given.
2716 if test "${enable_dependency_tracking+set}" = set; then
2717 enableval=$enable_dependency_tracking;
2720 if test "x$enable_dependency_tracking" != xno; then
2721 am_depcomp="$ac_aux_dir/depcomp"
2726 if test "x$enable_dependency_tracking" != xno; then
2737 ac_cpp='$CPP $CPPFLAGS'
2738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2741 if test -n "$ac_tool_prefix"; then
2742 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2743 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2746 if test "${ac_cv_prog_CC+set}" = set; then
2747 echo $ECHO_N "(cached) $ECHO_C" >&6
2749 if test -n "$CC"; then
2750 ac_cv_prog_CC="$CC" # Let the user override the test.
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756 test -z "$as_dir" && as_dir=.
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2759 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 if test -n "$CC"; then
2771 { echo "$as_me:$LINENO: result: $CC" >&5
2772 echo "${ECHO_T}$CC" >&6; }
2774 { echo "$as_me:$LINENO: result: no" >&5
2775 echo "${ECHO_T}no" >&6; }
2780 if test -z "$ac_cv_prog_CC"; then
2782 # Extract the first word of "gcc", so it can be a program name with args.
2783 set dummy gcc; ac_word=$2
2784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2786 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2787 echo $ECHO_N "(cached) $ECHO_C" >&6
2789 if test -n "$ac_ct_CC"; then
2790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2799 ac_cv_prog_ac_ct_CC="gcc"
2800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2810 if test -n "$ac_ct_CC"; then
2811 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2812 echo "${ECHO_T}$ac_ct_CC" >&6; }
2814 { echo "$as_me:$LINENO: result: no" >&5
2815 echo "${ECHO_T}no" >&6; }
2818 if test "x$ac_ct_CC" = x; then
2821 case $cross_compiling:$ac_tool_warned in
2823 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2824 whose name does not start with the host triplet. If you think this
2825 configuration is useful to you, please write to autoconf@gnu.org." >&5
2826 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2827 whose name does not start with the host triplet. If you think this
2828 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2829 ac_tool_warned=yes ;;
2837 if test -z "$CC"; then
2838 if test -n "$ac_tool_prefix"; then
2839 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2840 set dummy ${ac_tool_prefix}cc; ac_word=$2
2841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2843 if test "${ac_cv_prog_CC+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2846 if test -n "$CC"; then
2847 ac_cv_prog_CC="$CC" # Let the user override the test.
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856 ac_cv_prog_CC="${ac_tool_prefix}cc"
2857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 if test -n "$CC"; then
2868 { echo "$as_me:$LINENO: result: $CC" >&5
2869 echo "${ECHO_T}$CC" >&6; }
2871 { echo "$as_me:$LINENO: result: no" >&5
2872 echo "${ECHO_T}no" >&6; }
2878 if test -z "$CC"; then
2879 # Extract the first word of "cc", so it can be a program name with args.
2880 set dummy cc; ac_word=$2
2881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2883 if test "${ac_cv_prog_CC+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2886 if test -n "$CC"; then
2887 ac_cv_prog_CC="$CC" # Let the user override the test.
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2898 ac_prog_rejected=yes
2902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 if test $ac_prog_rejected = yes; then
2910 # We found a bogon in the path, so make sure we never use it.
2911 set dummy $ac_cv_prog_CC
2913 if test $# != 0; then
2914 # We chose a different compiler from the bogus one.
2915 # However, it has the same basename, so the bogon will be chosen
2916 # first if we set CC to just the basename; use the full file name.
2918 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2924 if test -n "$CC"; then
2925 { echo "$as_me:$LINENO: result: $CC" >&5
2926 echo "${ECHO_T}$CC" >&6; }
2928 { echo "$as_me:$LINENO: result: no" >&5
2929 echo "${ECHO_T}no" >&6; }
2934 if test -z "$CC"; then
2935 if test -n "$ac_tool_prefix"; then
2936 for ac_prog in cl.exe
2938 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2939 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2942 if test "${ac_cv_prog_CC+set}" = set; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2945 if test -n "$CC"; then
2946 ac_cv_prog_CC="$CC" # Let the user override the test.
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2955 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2966 if test -n "$CC"; then
2967 { echo "$as_me:$LINENO: result: $CC" >&5
2968 echo "${ECHO_T}$CC" >&6; }
2970 { echo "$as_me:$LINENO: result: no" >&5
2971 echo "${ECHO_T}no" >&6; }
2975 test -n "$CC" && break
2978 if test -z "$CC"; then
2980 for ac_prog in cl.exe
2982 # Extract the first word of "$ac_prog", so it can be a program name with args.
2983 set dummy $ac_prog; ac_word=$2
2984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2986 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2989 if test -n "$ac_ct_CC"; then
2990 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2999 ac_cv_prog_ac_ct_CC="$ac_prog"
3000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3010 if test -n "$ac_ct_CC"; then
3011 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3012 echo "${ECHO_T}$ac_ct_CC" >&6; }
3014 { echo "$as_me:$LINENO: result: no" >&5
3015 echo "${ECHO_T}no" >&6; }
3019 test -n "$ac_ct_CC" && break
3022 if test "x$ac_ct_CC" = x; then
3025 case $cross_compiling:$ac_tool_warned in
3027 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3028 whose name does not start with the host triplet. If you think this
3029 configuration is useful to you, please write to autoconf@gnu.org." >&5
3030 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3031 whose name does not start with the host triplet. If you think this
3032 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3033 ac_tool_warned=yes ;;
3042 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3043 See \`config.log' for more details." >&5
3044 echo "$as_me: error: no acceptable C compiler found in \$PATH
3045 See \`config.log' for more details." >&2;}
3046 { (exit 1); exit 1; }; }
3048 # Provide some information about the compiler.
3049 echo "$as_me:$LINENO: checking for C compiler version" >&5
3050 ac_compiler=`set X $ac_compile; echo $2`
3051 { (ac_try="$ac_compiler --version >&5"
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_compiler --version >&5") 2>&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }
3061 { (ac_try="$ac_compiler -v >&5"
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_compiler -v >&5") 2>&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); }
3071 { (ac_try="$ac_compiler -V >&5"
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_compiler -V >&5") 2>&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }
3082 cat >conftest.$ac_ext <<_ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3097 ac_clean_files_save=$ac_clean_files
3098 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3099 # Try to create an executable without -o first, disregard a.out.
3100 # It will help us diagnose broken compilers, and finding out an intuition
3102 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3103 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3104 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3106 # List of possible output files, starting from the most likely.
3107 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3108 # only as a last resort. b.out is created by i960 compilers.
3109 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3111 # The IRIX 6 linker writes into existing files which may not be
3112 # executable, retaining their permissions. Remove them first so a
3113 # subsequent execution test works.
3115 for ac_file in $ac_files
3118 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3119 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3124 if { (ac_try="$ac_link_default"
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_link_default") 2>&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }; then
3134 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3135 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3136 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3137 # so that the user can short-circuit this test for compilers unknown to
3139 for ac_file in $ac_files ''
3141 test -f "$ac_file" || continue
3143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3146 # We found the default executable, but exeext='' is most
3150 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3152 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3154 # We set ac_cv_exeext here because the later test for it is not
3155 # safe: cross compilers may not add the suffix if given an `-o'
3156 # argument, so we may need to know it at that point already.
3157 # Even if this section looks crufty: it has the advantage of
3164 test "$ac_cv_exeext" = no && ac_cv_exeext=
3170 { echo "$as_me:$LINENO: result: $ac_file" >&5
3171 echo "${ECHO_T}$ac_file" >&6; }
3172 if test -z "$ac_file"; then
3173 echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3176 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3177 See \`config.log' for more details." >&5
3178 echo "$as_me: error: C compiler cannot create executables
3179 See \`config.log' for more details." >&2;}
3180 { (exit 77); exit 77; }; }
3183 ac_exeext=$ac_cv_exeext
3185 # Check that the compiler produces executables we can run. If not, either
3186 # the compiler is broken, or we cross compile.
3187 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3188 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3189 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3190 # If not cross compiling, check that we can run a simple program.
3191 if test "$cross_compiling" != yes; then
3192 if { ac_try='./$ac_file'
3193 { (case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_try") 2>&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; }; then
3204 if test "$cross_compiling" = maybe; then
3207 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3208 If you meant to cross compile, use \`--host'.
3209 See \`config.log' for more details." >&5
3210 echo "$as_me: error: cannot run C compiled programs.
3211 If you meant to cross compile, use \`--host'.
3212 See \`config.log' for more details." >&2;}
3213 { (exit 1); exit 1; }; }
3217 { echo "$as_me:$LINENO: result: yes" >&5
3218 echo "${ECHO_T}yes" >&6; }
3220 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3221 ac_clean_files=$ac_clean_files_save
3222 # Check that the compiler produces executables we can run. If not, either
3223 # the compiler is broken, or we cross compile.
3224 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3225 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3226 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3227 echo "${ECHO_T}$cross_compiling" >&6; }
3229 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3230 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3231 if { (ac_try="$ac_link"
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237 (eval "$ac_link") 2>&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; then
3241 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3242 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3243 # work properly (i.e., refer to `conftest.exe'), while it won't with
3245 for ac_file in conftest.exe conftest conftest.*; do
3246 test -f "$ac_file" || continue
3248 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3249 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3255 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3256 See \`config.log' for more details." >&5
3257 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3258 See \`config.log' for more details." >&2;}
3259 { (exit 1); exit 1; }; }
3262 rm -f conftest$ac_cv_exeext
3263 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3264 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3266 rm -f conftest.$ac_ext
3267 EXEEXT=$ac_cv_exeext
3269 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3270 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3271 if test "${ac_cv_objext+set}" = set; then
3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 cat >conftest.$ac_ext <<_ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3289 rm -f conftest.o conftest.obj
3290 if { (ac_try="$ac_compile"
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296 (eval "$ac_compile") 2>&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); }; then
3300 for ac_file in conftest.o conftest.obj conftest.*; do
3301 test -f "$ac_file" || continue;
3303 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3304 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3309 echo "$as_me: failed program was:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3312 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3313 See \`config.log' for more details." >&5
3314 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3315 See \`config.log' for more details." >&2;}
3316 { (exit 1); exit 1; }; }
3319 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3321 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3322 echo "${ECHO_T}$ac_cv_objext" >&6; }
3323 OBJEXT=$ac_cv_objext
3325 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3326 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3327 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3330 cat >conftest.$ac_ext <<_ACEOF
3333 cat confdefs.h >>conftest.$ac_ext
3334 cat >>conftest.$ac_ext <<_ACEOF
3335 /* end confdefs.h. */
3348 rm -f conftest.$ac_objext
3349 if { (ac_try="$ac_compile"
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355 (eval "$ac_compile") 2>conftest.er1
3357 grep -v '^ *+' conftest.er1 >conftest.err
3359 cat conftest.err >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); } && {
3362 test -z "$ac_c_werror_flag" ||
3363 test ! -s conftest.err
3364 } && test -s conftest.$ac_objext; then
3367 echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3374 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3377 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3378 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3379 GCC=`test $ac_compiler_gnu = yes && echo yes`
3380 ac_test_CFLAGS=${CFLAGS+set}
3381 ac_save_CFLAGS=$CFLAGS
3382 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3383 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3384 if test "${ac_cv_prog_cc_g+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 ac_save_c_werror_flag=$ac_c_werror_flag
3388 ac_c_werror_flag=yes
3391 cat >conftest.$ac_ext <<_ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3406 rm -f conftest.$ac_objext
3407 if { (ac_try="$ac_compile"
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3413 (eval "$ac_compile") 2>conftest.er1
3415 grep -v '^ *+' conftest.er1 >conftest.err
3417 cat conftest.err >&5
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); } && {
3420 test -z "$ac_c_werror_flag" ||
3421 test ! -s conftest.err
3422 } && test -s conftest.$ac_objext; then
3425 echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3429 cat >conftest.$ac_ext <<_ACEOF
3432 cat confdefs.h >>conftest.$ac_ext
3433 cat >>conftest.$ac_ext <<_ACEOF
3434 /* end confdefs.h. */
3444 rm -f conftest.$ac_objext
3445 if { (ac_try="$ac_compile"
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451 (eval "$ac_compile") 2>conftest.er1
3453 grep -v '^ *+' conftest.er1 >conftest.err
3455 cat conftest.err >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } && {
3458 test -z "$ac_c_werror_flag" ||
3459 test ! -s conftest.err
3460 } && test -s conftest.$ac_objext; then
3463 echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3466 ac_c_werror_flag=$ac_save_c_werror_flag
3468 cat >conftest.$ac_ext <<_ACEOF
3471 cat confdefs.h >>conftest.$ac_ext
3472 cat >>conftest.$ac_ext <<_ACEOF
3473 /* end confdefs.h. */
3483 rm -f conftest.$ac_objext
3484 if { (ac_try="$ac_compile"
3486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487 *) ac_try_echo=$ac_try;;
3489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3490 (eval "$ac_compile") 2>conftest.er1
3492 grep -v '^ *+' conftest.er1 >conftest.err
3494 cat conftest.err >&5
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); } && {
3497 test -z "$ac_c_werror_flag" ||
3498 test ! -s conftest.err
3499 } && test -s conftest.$ac_objext; then
3502 echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515 ac_c_werror_flag=$ac_save_c_werror_flag
3517 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3518 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3519 if test "$ac_test_CFLAGS" = set; then
3520 CFLAGS=$ac_save_CFLAGS
3521 elif test $ac_cv_prog_cc_g = yes; then
3522 if test "$GCC" = yes; then
3528 if test "$GCC" = yes; then
3534 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3535 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3536 if test "${ac_cv_prog_cc_c89+set}" = set; then
3537 echo $ECHO_N "(cached) $ECHO_C" >&6
3539 ac_cv_prog_cc_c89=no
3541 cat >conftest.$ac_ext <<_ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h. */
3549 #include <sys/types.h>
3550 #include <sys/stat.h>
3551 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3552 struct buf { int x; };
3553 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3554 static char *e (p, i)
3560 static char *f (char * (*g) (char **, int), char **p, ...)
3565 s = g (p, va_arg (v,int));
3570 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3571 function prototypes and stuff, but not '\xHH' hex character constants.
3572 These don't provoke an error unfortunately, instead are silently treated
3573 as 'x'. The following induces an error, until -std is added to get
3574 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3575 array size at least. It's necessary to write '\x00'==0 to get something
3576 that's true only with -std. */
3577 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3579 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3580 inside strings and character constants. */
3582 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3584 int test (int i, double x);
3585 struct s1 {int (*f) (int a);};
3586 struct s2 {int (*f) (double a);};
3587 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3593 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3598 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3599 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3601 CC="$ac_save_CC $ac_arg"
3602 rm -f conftest.$ac_objext
3603 if { (ac_try="$ac_compile"
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3609 (eval "$ac_compile") 2>conftest.er1
3611 grep -v '^ *+' conftest.er1 >conftest.err
3613 cat conftest.err >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } && {
3616 test -z "$ac_c_werror_flag" ||
3617 test ! -s conftest.err
3618 } && test -s conftest.$ac_objext; then
3619 ac_cv_prog_cc_c89=$ac_arg
3621 echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3627 rm -f core conftest.err conftest.$ac_objext
3628 test "x$ac_cv_prog_cc_c89" != "xno" && break
3630 rm -f conftest.$ac_ext
3635 case "x$ac_cv_prog_cc_c89" in
3637 { echo "$as_me:$LINENO: result: none needed" >&5
3638 echo "${ECHO_T}none needed" >&6; } ;;
3640 { echo "$as_me:$LINENO: result: unsupported" >&5
3641 echo "${ECHO_T}unsupported" >&6; } ;;
3643 CC="$CC $ac_cv_prog_cc_c89"
3644 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3645 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3650 ac_cpp='$CPP $CPPFLAGS'
3651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3655 depcc="$CC" am_compiler_list=
3657 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3658 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3659 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3663 # We make a subdir and do the tests there. Otherwise we can end up
3664 # making bogus files that we don't know about and never remove. For
3665 # instance it was reported that on HP-UX the gcc test will end up
3666 # making a dummy file named `D' -- because `-MD' means `put the output
3669 # Copy depcomp to subdir because otherwise we won't find it if we're
3670 # using a relative directory.
3671 cp "$am_depcomp" conftest.dir
3673 # We will build objects and dependencies in a subdirectory because
3674 # it helps to detect inapplicable dependency modes. For instance
3675 # both Tru64's cc and ICC support -MD to output dependencies as a
3676 # side effect of compilation, but ICC will put the dependencies in
3677 # the current directory while Tru64 will put them in the object
3681 am_cv_CC_dependencies_compiler_type=none
3682 if test "$am_compiler_list" = ""; then
3683 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3685 for depmode in $am_compiler_list; do
3686 # Setup a source with many dependencies, because some compilers
3687 # like to wrap large dependency lists on column 80 (with \), and
3688 # we should not choose a depcomp mode which is confused by this.
3690 # We need to recreate these files for each test, as the compiler may
3691 # overwrite some of them when testing with obscure command lines.
3692 # This happens at least with the AIX C compiler.
3694 for i in 1 2 3 4 5 6; do
3695 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3696 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3697 # Solaris 8's {/usr,}/bin/sh.
3698 touch sub/conftst$i.h
3700 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3704 # after this tag, mechanisms are not by side-effect, so they'll
3705 # only be used when explicitly requested
3706 if test "x$enable_dependency_tracking" = xyes; then
3714 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3715 # mode. It turns out that the SunPro C++ compiler does not properly
3716 # handle `-M -o', and we need to detect this.
3717 if depmode=$depmode \
3718 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3719 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3720 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3721 >/dev/null 2>conftest.err &&
3722 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3723 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3724 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3725 # icc doesn't choke on unknown options, it will just issue warnings
3726 # or remarks (even with -Werror). So we grep stderr for any message
3727 # that says an option was ignored or not supported.
3728 # When given -MP, icc 7.0 and 7.1 complain thusly:
3729 # icc: Command line warning: ignoring option '-M'; no argument required
3730 # The diagnosis changed in icc 8.0:
3731 # icc: Command line remark: option '-MP' not supported
3732 if (grep 'ignoring option' conftest.err ||
3733 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3734 am_cv_CC_dependencies_compiler_type=$depmode
3743 am_cv_CC_dependencies_compiler_type=none
3747 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3748 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3749 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3754 test "x$enable_dependency_tracking" != xno \
3755 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3757 am__fastdepCC_FALSE='#'
3759 am__fastdepCC_TRUE='#'
3760 am__fastdepCC_FALSE=
3764 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3765 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3766 if test "${lt_cv_path_SED+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3769 # Loop through the user's path and test for sed and gsed.
3770 # Then use that list of sed's as ones to test for truncation.
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 test -z "$as_dir" && as_dir=.
3776 for lt_ac_prog in sed gsed; do
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3779 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3786 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3787 # along with /bin/sed that truncates output.
3788 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3789 test ! -f $lt_ac_sed && continue
3790 cat /dev/null > conftest.in
3792 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3793 # Check for GNU sed and select it if it is found.
3794 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3795 lt_cv_path_SED=$lt_ac_sed
3799 cat conftest.in conftest.in >conftest.tmp
3800 mv conftest.tmp conftest.in
3801 cp conftest.in conftest.nl
3803 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3804 cmp -s conftest.out conftest.nl || break
3805 # 10000 chars as input seems more than enough
3806 test $lt_ac_count -gt 10 && break
3807 lt_ac_count=`expr $lt_ac_count + 1`
3808 if test $lt_ac_count -gt $lt_ac_max; then
3809 lt_ac_max=$lt_ac_count
3810 lt_cv_path_SED=$lt_ac_sed
3818 { echo "$as_me:$LINENO: result: $SED" >&5
3819 echo "${ECHO_T}$SED" >&6; }
3821 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3822 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3823 if test "${ac_cv_path_GREP+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3826 # Extract the first word of "grep ggrep" to use in msg output
3827 if test -z "$GREP"; then
3828 set dummy grep ggrep; ac_prog_name=$2
3829 if test "${ac_cv_path_GREP+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3832 ac_path_GREP_found=false
3833 # Loop through the user's path and test for each of PROGNAME-LIST
3834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3838 test -z "$as_dir" && as_dir=.
3839 for ac_prog in grep ggrep; do
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3842 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3843 # Check for GNU ac_path_GREP and select it if it is found.
3844 # Check for GNU $ac_path_GREP
3845 case `"$ac_path_GREP" --version 2>&1` in
3847 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3850 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3853 cat "conftest.in" "conftest.in" >"conftest.tmp"
3854 mv "conftest.tmp" "conftest.in"
3855 cp "conftest.in" "conftest.nl"
3856 echo 'GREP' >> "conftest.nl"
3857 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3858 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3859 ac_count=`expr $ac_count + 1`
3860 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3861 # Best one so far, save it but keep looking for a better one
3862 ac_cv_path_GREP="$ac_path_GREP"
3863 ac_path_GREP_max=$ac_count
3865 # 10*(2^10) chars as input seems more than enough
3866 test $ac_count -gt 10 && break
3868 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3872 $ac_path_GREP_found && break 3
3882 GREP="$ac_cv_path_GREP"
3883 if test -z "$GREP"; then
3884 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3885 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3886 { (exit 1); exit 1; }; }
3890 ac_cv_path_GREP=$GREP
3895 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3896 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3897 GREP="$ac_cv_path_GREP"
3900 { echo "$as_me:$LINENO: checking for egrep" >&5
3901 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3902 if test "${ac_cv_path_EGREP+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3905 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3906 then ac_cv_path_EGREP="$GREP -E"
3908 # Extract the first word of "egrep" to use in msg output
3909 if test -z "$EGREP"; then
3910 set dummy egrep; ac_prog_name=$2
3911 if test "${ac_cv_path_EGREP+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 ac_path_EGREP_found=false
3915 # Loop through the user's path and test for each of PROGNAME-LIST
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3920 test -z "$as_dir" && as_dir=.
3921 for ac_prog in egrep; do
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3924 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3925 # Check for GNU ac_path_EGREP and select it if it is found.
3926 # Check for GNU $ac_path_EGREP
3927 case `"$ac_path_EGREP" --version 2>&1` in
3929 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3932 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3935 cat "conftest.in" "conftest.in" >"conftest.tmp"
3936 mv "conftest.tmp" "conftest.in"
3937 cp "conftest.in" "conftest.nl"
3938 echo 'EGREP' >> "conftest.nl"
3939 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3940 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3941 ac_count=`expr $ac_count + 1`
3942 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3943 # Best one so far, save it but keep looking for a better one
3944 ac_cv_path_EGREP="$ac_path_EGREP"
3945 ac_path_EGREP_max=$ac_count
3947 # 10*(2^10) chars as input seems more than enough
3948 test $ac_count -gt 10 && break
3950 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3954 $ac_path_EGREP_found && break 3
3964 EGREP="$ac_cv_path_EGREP"
3965 if test -z "$EGREP"; then
3966 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3967 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3968 { (exit 1); exit 1; }; }
3972 ac_cv_path_EGREP=$EGREP
3978 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3979 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3980 EGREP="$ac_cv_path_EGREP"
3984 # Check whether --with-gnu-ld was given.
3985 if test "${with_gnu_ld+set}" = set; then
3986 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3992 if test "$GCC" = yes; then
3993 # Check if gcc -print-prog-name=ld gives a path.
3994 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3995 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3998 # gcc leaves a trailing carriage return which upsets mingw
3999 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4001 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4004 # Accept absolute paths.
4006 re_direlt='/[^/][^/]*/\.\./'
4007 # Canonicalize the pathname of ld
4008 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4009 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4010 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4012 test -z "$LD" && LD="$ac_prog"
4015 # If it fails, then pretend we aren't using GCC.
4019 # If it is relative, then search for the first ld in PATH.
4023 elif test "$with_gnu_ld" = yes; then
4024 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4025 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4027 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4028 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4030 if test "${lt_cv_path_LD+set}" = set; then
4031 echo $ECHO_N "(cached) $ECHO_C" >&6
4033 if test -z "$LD"; then
4034 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4035 for ac_dir in $PATH; do
4037 test -z "$ac_dir" && ac_dir=.
4038 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4039 lt_cv_path_LD="$ac_dir/$ac_prog"
4040 # Check to see if the program is GNU ld. I'd rather use --version,
4041 # but apparently some variants of GNU ld only accept -v.
4042 # Break only if it was the GNU/non-GNU ld that we prefer.
4043 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4044 *GNU* | *'with BFD'*)
4045 test "$with_gnu_ld" != no && break
4048 test "$with_gnu_ld" != yes && break
4055 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4060 if test -n "$LD"; then
4061 { echo "$as_me:$LINENO: result: $LD" >&5
4062 echo "${ECHO_T}$LD" >&6; }
4064 { echo "$as_me:$LINENO: result: no" >&5
4065 echo "${ECHO_T}no" >&6; }
4067 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4068 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4069 { (exit 1); exit 1; }; }
4070 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4071 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4072 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4076 case `$LD -v 2>&1 </dev/null` in
4077 *GNU* | *'with BFD'*)
4078 lt_cv_prog_gnu_ld=yes
4081 lt_cv_prog_gnu_ld=no
4085 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4086 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4087 with_gnu_ld=$lt_cv_prog_gnu_ld
4090 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4091 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4092 if test "${lt_cv_ld_reload_flag+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 lt_cv_ld_reload_flag='-r'
4097 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4098 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4099 reload_flag=$lt_cv_ld_reload_flag
4100 case $reload_flag in
4102 *) reload_flag=" $reload_flag" ;;
4104 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4107 if test "$GCC" = yes; then
4108 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4110 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4115 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4116 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4117 if test "${lt_cv_path_NM+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4120 if test -n "$NM"; then
4121 # Let the user override the test.
4124 lt_nm_to_check="${ac_tool_prefix}nm"
4125 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4126 lt_nm_to_check="$lt_nm_to_check nm"
4128 for lt_tmp_nm in $lt_nm_to_check; do
4129 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4130 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4132 test -z "$ac_dir" && ac_dir=.
4133 tmp_nm="$ac_dir/$lt_tmp_nm"
4134 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4135 # Check to see if the nm accepts a BSD-compat flag.
4136 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4137 # nm: unknown option "B" ignored
4138 # Tru64's nm complains that /dev/null is an invalid object file
4139 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4140 */dev/null* | *'Invalid file or object type'*)
4141 lt_cv_path_NM="$tmp_nm -B"
4145 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4147 lt_cv_path_NM="$tmp_nm -p"
4151 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4152 continue # so that we can try to find one that supports BSD flags
4161 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4164 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4165 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4168 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4169 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4171 if test "$LN_S" = "ln -s"; then
4172 { echo "$as_me:$LINENO: result: yes" >&5
4173 echo "${ECHO_T}yes" >&6; }
4175 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4176 echo "${ECHO_T}no, using $LN_S" >&6; }
4179 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4180 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4181 if test "${lt_cv_deplibs_check_method+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 lt_cv_file_magic_cmd='$MAGIC_CMD'
4185 lt_cv_file_magic_test_file=
4186 lt_cv_deplibs_check_method='unknown'
4187 # Need to set the preceding variable on all platforms that support
4188 # interlibrary dependencies.
4189 # 'none' -- dependencies not supported.
4190 # `unknown' -- same as none, but documents that we really don't know.
4191 # 'pass_all' -- all dependencies passed with no checks.
4192 # 'test_compile' -- check by making test program.
4193 # 'file_magic [[regex]]' -- check by looking for files in library path
4194 # which responds to the $file_magic_cmd with a given extended regex.
4195 # If you have `file' or equivalent on your system and you're not sure
4196 # whether `pass_all' will *always* work, you probably want this one.
4200 lt_cv_deplibs_check_method=pass_all
4204 lt_cv_deplibs_check_method=pass_all
4208 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4209 lt_cv_file_magic_cmd='/usr/bin/file -L'
4210 lt_cv_file_magic_test_file=/shlib/libc.so
4214 # func_win32_libid is a shell function defined in ltmain.sh
4215 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4216 lt_cv_file_magic_cmd='func_win32_libid'
4220 # Base MSYS/MinGW do not provide the 'file' command needed by
4221 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4222 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4223 lt_cv_file_magic_cmd='$OBJDUMP -f'
4226 darwin* | rhapsody*)
4227 lt_cv_deplibs_check_method=pass_all
4230 freebsd* | dragonfly*)
4231 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4234 # Not sure whether the presence of OpenBSD here was a mistake.
4235 # Let's accept both of them until this is cleared up.
4236 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4237 lt_cv_file_magic_cmd=/usr/bin/file
4238 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4242 lt_cv_deplibs_check_method=pass_all
4247 lt_cv_deplibs_check_method=pass_all
4250 hpux10.20* | hpux11*)
4251 lt_cv_file_magic_cmd=/usr/bin/file
4254 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4255 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4258 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]'
4259 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4262 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4263 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4269 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4270 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4273 irix5* | irix6* | nonstopux*)
4275 *-32|*"-32 ") libmagic=32-bit;;
4276 *-n32|*"-n32 ") libmagic=N32;;
4277 *-64|*"-64 ") libmagic=64-bit;;
4278 *) libmagic=never-match;;
4280 lt_cv_deplibs_check_method=pass_all
4283 # This must be Linux ELF.
4284 linux* | k*bsd*-gnu)
4285 lt_cv_deplibs_check_method=pass_all
4288 netbsd* | netbsdelf*-gnu)
4289 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4290 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4292 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4297 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4298 lt_cv_file_magic_cmd=/usr/bin/file
4299 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4303 lt_cv_deplibs_check_method=unknown
4307 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4308 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4310 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4314 osf3* | osf4* | osf5*)
4315 lt_cv_deplibs_check_method=pass_all
4319 lt_cv_deplibs_check_method=pass_all
4323 case $host_vendor in
4325 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]'
4326 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4329 lt_cv_deplibs_check_method=pass_all
4332 lt_cv_file_magic_cmd='/bin/file'
4333 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4336 lt_cv_file_magic_cmd='/bin/file'
4337 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4338 lt_cv_file_magic_test_file=/lib/libc.so
4341 lt_cv_deplibs_check_method=pass_all
4344 lt_cv_deplibs_check_method=pass_all
4349 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4350 lt_cv_deplibs_check_method=pass_all
4355 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4356 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4357 file_magic_cmd=$lt_cv_file_magic_cmd
4358 deplibs_check_method=$lt_cv_deplibs_check_method
4359 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4364 # If no C compiler was specified, use CC.
4367 # If no C compiler flags were specified, use CFLAGS.
4368 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4370 # Allow CC to be a program name with arguments.
4374 # Check whether --enable-libtool-lock was given.
4375 if test "${enable_libtool_lock+set}" = set; then
4376 enableval=$enable_libtool_lock;
4379 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4381 # Some flags need to be propagated to the compiler or linker for good
4385 # Find out which ABI we are using.
4386 echo 'int i;' > conftest.$ac_ext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388 (eval $ac_compile) 2>&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); }; then
4392 case `/usr/bin/file conftest.$ac_objext` in
4404 # Find out which ABI we are using.
4405 echo '#line 4405 "configure"' > conftest.$ac_ext
4406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4407 (eval $ac_compile) 2>&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; then
4411 if test "$lt_cv_prog_gnu_ld" = yes; then
4412 case `/usr/bin/file conftest.$ac_objext` in
4414 LD="${LD-ld} -melf32bsmip"
4417 LD="${LD-ld} -melf32bmipn32"
4420 LD="${LD-ld} -melf64bmip"
4424 case `/usr/bin/file conftest.$ac_objext` in
4440 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4441 # Find out which ABI we are using.
4442 echo 'int i;' > conftest.$ac_ext
4443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444 (eval $ac_compile) 2>&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; then
4448 case `/usr/bin/file conftest.o` in
4452 LD="${LD-ld} -m elf_i386"
4454 ppc64-*linux*|powerpc64-*linux*)
4455 LD="${LD-ld} -m elf32ppclinux"
4458 LD="${LD-ld} -m elf_s390"
4461 LD="${LD-ld} -m elf32_sparc"
4468 LD="${LD-ld} -m elf_x86_64"
4470 ppc*-*linux*|powerpc*-*linux*)
4471 LD="${LD-ld} -m elf64ppc"
4474 LD="${LD-ld} -m elf64_s390"
4477 LD="${LD-ld} -m elf64_sparc"
4487 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4488 SAVE_CFLAGS="$CFLAGS"
4489 CFLAGS="$CFLAGS -belf"
4490 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4491 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4492 if test "${lt_cv_cc_needs_belf+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4496 ac_cpp='$CPP $CPPFLAGS'
4497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4501 cat >conftest.$ac_ext <<_ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h. */
4516 rm -f conftest.$ac_objext conftest$ac_exeext
4517 if { (ac_try="$ac_link"
4519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4520 *) ac_try_echo=$ac_try;;
4522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4523 (eval "$ac_link") 2>conftest.er1
4525 grep -v '^ *+' conftest.er1 >conftest.err
4527 cat conftest.err >&5
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); } && {
4530 test -z "$ac_c_werror_flag" ||
4531 test ! -s conftest.err
4532 } && test -s conftest$ac_exeext &&
4533 $as_test_x conftest$ac_exeext; then
4534 lt_cv_cc_needs_belf=yes
4536 echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4539 lt_cv_cc_needs_belf=no
4542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4543 conftest$ac_exeext conftest.$ac_ext
4545 ac_cpp='$CPP $CPPFLAGS'
4546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4551 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4552 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4553 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4554 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4555 CFLAGS="$SAVE_CFLAGS"
4559 # Find out which ABI we are using.
4560 echo 'int i;' > conftest.$ac_ext
4561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4562 (eval $ac_compile) 2>&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); }; then
4566 case `/usr/bin/file conftest.o` in
4568 case $lt_cv_prog_gnu_ld in
4569 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4570 *) LD="${LD-ld} -64" ;;
4578 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4579 if test -n "$ac_tool_prefix"; then
4580 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4581 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4584 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4587 if test -n "$DLLTOOL"; then
4588 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4597 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4607 DLLTOOL=$ac_cv_prog_DLLTOOL
4608 if test -n "$DLLTOOL"; then
4609 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4610 echo "${ECHO_T}$DLLTOOL" >&6; }
4612 { echo "$as_me:$LINENO: result: no" >&5
4613 echo "${ECHO_T}no" >&6; }
4618 if test -z "$ac_cv_prog_DLLTOOL"; then
4619 ac_ct_DLLTOOL=$DLLTOOL
4620 # Extract the first word of "dlltool", so it can be a program name with args.
4621 set dummy dlltool; ac_word=$2
4622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4624 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 if test -n "$ac_ct_DLLTOOL"; then
4628 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 test -z "$as_dir" && as_dir=.
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4637 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4647 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4648 if test -n "$ac_ct_DLLTOOL"; then
4649 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4650 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4652 { echo "$as_me:$LINENO: result: no" >&5
4653 echo "${ECHO_T}no" >&6; }
4656 if test "x$ac_ct_DLLTOOL" = x; then
4659 case $cross_compiling:$ac_tool_warned in
4661 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4662 whose name does not start with the host triplet. If you think this
4663 configuration is useful to you, please write to autoconf@gnu.org." >&5
4664 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4665 whose name does not start with the host triplet. If you think this
4666 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4667 ac_tool_warned=yes ;;
4669 DLLTOOL=$ac_ct_DLLTOOL
4672 DLLTOOL="$ac_cv_prog_DLLTOOL"
4675 if test -n "$ac_tool_prefix"; then
4676 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4677 set dummy ${ac_tool_prefix}as; ac_word=$2
4678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4680 if test "${ac_cv_prog_AS+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 if test -n "$AS"; then
4684 ac_cv_prog_AS="$AS" # Let the user override the test.
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4693 ac_cv_prog_AS="${ac_tool_prefix}as"
4694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4704 if test -n "$AS"; then
4705 { echo "$as_me:$LINENO: result: $AS" >&5
4706 echo "${ECHO_T}$AS" >&6; }
4708 { echo "$as_me:$LINENO: result: no" >&5
4709 echo "${ECHO_T}no" >&6; }
4714 if test -z "$ac_cv_prog_AS"; then
4716 # Extract the first word of "as", so it can be a program name with args.
4717 set dummy as; ac_word=$2
4718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4720 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4723 if test -n "$ac_ct_AS"; then
4724 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4733 ac_cv_prog_ac_ct_AS="as"
4734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4743 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4744 if test -n "$ac_ct_AS"; then
4745 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4746 echo "${ECHO_T}$ac_ct_AS" >&6; }
4748 { echo "$as_me:$LINENO: result: no" >&5
4749 echo "${ECHO_T}no" >&6; }
4752 if test "x$ac_ct_AS" = x; then
4755 case $cross_compiling:$ac_tool_warned in
4757 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4758 whose name does not start with the host triplet. If you think this
4759 configuration is useful to you, please write to autoconf@gnu.org." >&5
4760 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4761 whose name does not start with the host triplet. If you think this
4762 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4763 ac_tool_warned=yes ;;
4771 if test -n "$ac_tool_prefix"; then
4772 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4773 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4776 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 if test -n "$OBJDUMP"; then
4780 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 test -z "$as_dir" && as_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4789 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 OBJDUMP=$ac_cv_prog_OBJDUMP
4800 if test -n "$OBJDUMP"; then
4801 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4802 echo "${ECHO_T}$OBJDUMP" >&6; }
4804 { echo "$as_me:$LINENO: result: no" >&5
4805 echo "${ECHO_T}no" >&6; }
4810 if test -z "$ac_cv_prog_OBJDUMP"; then
4811 ac_ct_OBJDUMP=$OBJDUMP
4812 # Extract the first word of "objdump", so it can be a program name with args.
4813 set dummy objdump; ac_word=$2
4814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4816 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4817 echo $ECHO_N "(cached) $ECHO_C" >&6
4819 if test -n "$ac_ct_OBJDUMP"; then
4820 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 test -z "$as_dir" && as_dir=.
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4829 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4840 if test -n "$ac_ct_OBJDUMP"; then
4841 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4842 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4844 { echo "$as_me:$LINENO: result: no" >&5
4845 echo "${ECHO_T}no" >&6; }
4848 if test "x$ac_ct_OBJDUMP" = x; then
4851 case $cross_compiling:$ac_tool_warned in
4853 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4854 whose name does not start with the host triplet. If you think this
4855 configuration is useful to you, please write to autoconf@gnu.org." >&5
4856 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4857 whose name does not start with the host triplet. If you think this
4858 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4859 ac_tool_warned=yes ;;
4861 OBJDUMP=$ac_ct_OBJDUMP
4864 OBJDUMP="$ac_cv_prog_OBJDUMP"
4871 need_locks="$enable_libtool_lock"
4875 ac_cpp='$CPP $CPPFLAGS'
4876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4879 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4880 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4881 # On Suns, sometimes $CPP names a directory.
4882 if test -n "$CPP" && test -d "$CPP"; then
4885 if test -z "$CPP"; then
4886 if test "${ac_cv_prog_CPP+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4889 # Double quotes because CPP needs to be expanded
4890 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4893 for ac_c_preproc_warn_flag in '' yes
4895 # Use a header file that comes with gcc, so configuring glibc
4896 # with a fresh cross-compiler works.
4897 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4898 # <limits.h> exists even on freestanding compilers.
4899 # On the NeXT, cc -E runs the code through the compiler's parser,
4900 # not just through cpp. "Syntax error" is here to catch this case.
4901 cat >conftest.$ac_ext <<_ACEOF
4904 cat confdefs.h >>conftest.$ac_ext
4905 cat >>conftest.$ac_ext <<_ACEOF
4906 /* end confdefs.h. */
4908 # include <limits.h>
4910 # include <assert.h>
4914 if { (ac_try="$ac_cpp conftest.$ac_ext"
4916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917 *) ac_try_echo=$ac_try;;
4919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4922 grep -v '^ *+' conftest.er1 >conftest.err
4924 cat conftest.err >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); } >/dev/null && {
4927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4928 test ! -s conftest.err
4932 echo "$as_me: failed program was:" >&5
4933 sed 's/^/| /' conftest.$ac_ext >&5
4935 # Broken: fails on valid input.
4939 rm -f conftest.err conftest.$ac_ext
4941 # OK, works on sane cases. Now check whether nonexistent headers
4942 # can be detected and how.
4943 cat >conftest.$ac_ext <<_ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h. */
4949 #include <ac_nonexistent.h>
4951 if { (ac_try="$ac_cpp conftest.$ac_ext"
4953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4954 *) ac_try_echo=$ac_try;;
4956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4959 grep -v '^ *+' conftest.er1 >conftest.err
4961 cat conftest.err >&5
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); } >/dev/null && {
4964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4965 test ! -s conftest.err
4967 # Broken: success on invalid input.
4970 echo "$as_me: failed program was:" >&5
4971 sed 's/^/| /' conftest.$ac_ext >&5
4973 # Passes both tests.
4978 rm -f conftest.err conftest.$ac_ext
4981 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4982 rm -f conftest.err conftest.$ac_ext
4983 if $ac_preproc_ok; then
4995 { echo "$as_me:$LINENO: result: $CPP" >&5
4996 echo "${ECHO_T}$CPP" >&6; }
4998 for ac_c_preproc_warn_flag in '' yes
5000 # Use a header file that comes with gcc, so configuring glibc
5001 # with a fresh cross-compiler works.
5002 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5003 # <limits.h> exists even on freestanding compilers.
5004 # On the NeXT, cc -E runs the code through the compiler's parser,
5005 # not just through cpp. "Syntax error" is here to catch this case.
5006 cat >conftest.$ac_ext <<_ACEOF
5009 cat confdefs.h >>conftest.$ac_ext
5010 cat >>conftest.$ac_ext <<_ACEOF
5011 /* end confdefs.h. */
5013 # include <limits.h>
5015 # include <assert.h>
5019 if { (ac_try="$ac_cpp conftest.$ac_ext"
5021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5022 *) ac_try_echo=$ac_try;;
5024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5027 grep -v '^ *+' conftest.er1 >conftest.err
5029 cat conftest.err >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); } >/dev/null && {
5032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5033 test ! -s conftest.err
5037 echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5040 # Broken: fails on valid input.
5044 rm -f conftest.err conftest.$ac_ext
5046 # OK, works on sane cases. Now check whether nonexistent headers
5047 # can be detected and how.
5048 cat >conftest.$ac_ext <<_ACEOF
5051 cat confdefs.h >>conftest.$ac_ext
5052 cat >>conftest.$ac_ext <<_ACEOF
5053 /* end confdefs.h. */
5054 #include <ac_nonexistent.h>
5056 if { (ac_try="$ac_cpp conftest.$ac_ext"
5058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5059 *) ac_try_echo=$ac_try;;
5061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5064 grep -v '^ *+' conftest.er1 >conftest.err
5066 cat conftest.err >&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } >/dev/null && {
5069 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5070 test ! -s conftest.err
5072 # Broken: success on invalid input.
5075 echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5078 # Passes both tests.
5083 rm -f conftest.err conftest.$ac_ext
5086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5087 rm -f conftest.err conftest.$ac_ext
5088 if $ac_preproc_ok; then
5091 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5092 See \`config.log' for more details." >&5
5093 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5094 See \`config.log' for more details." >&2;}
5095 { (exit 1); exit 1; }; }
5099 ac_cpp='$CPP $CPPFLAGS'
5100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5105 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5106 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5107 if test "${ac_cv_header_stdc+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5110 cat >conftest.$ac_ext <<_ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h. */
5129 rm -f conftest.$ac_objext
5130 if { (ac_try="$ac_compile"
5132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5133 *) ac_try_echo=$ac_try;;
5135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5136 (eval "$ac_compile") 2>conftest.er1
5138 grep -v '^ *+' conftest.er1 >conftest.err
5140 cat conftest.err >&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); } && {
5143 test -z "$ac_c_werror_flag" ||
5144 test ! -s conftest.err
5145 } && test -s conftest.$ac_objext; then
5146 ac_cv_header_stdc=yes
5148 echo "$as_me: failed program was:" >&5
5149 sed 's/^/| /' conftest.$ac_ext >&5
5151 ac_cv_header_stdc=no
5154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5156 if test $ac_cv_header_stdc = yes; then
5157 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5158 cat >conftest.$ac_ext <<_ACEOF
5161 cat confdefs.h >>conftest.$ac_ext
5162 cat >>conftest.$ac_ext <<_ACEOF
5163 /* end confdefs.h. */
5167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5168 $EGREP "memchr" >/dev/null 2>&1; then
5171 ac_cv_header_stdc=no
5177 if test $ac_cv_header_stdc = yes; then
5178 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5179 cat >conftest.$ac_ext <<_ACEOF
5182 cat confdefs.h >>conftest.$ac_ext
5183 cat >>conftest.$ac_ext <<_ACEOF
5184 /* end confdefs.h. */
5188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5189 $EGREP "free" >/dev/null 2>&1; then
5192 ac_cv_header_stdc=no
5198 if test $ac_cv_header_stdc = yes; then
5199 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5200 if test "$cross_compiling" = yes; then
5203 cat >conftest.$ac_ext <<_ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h. */
5211 #if ((' ' & 0x0FF) == 0x020)
5212 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5213 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5215 # define ISLOWER(c) \
5216 (('a' <= (c) && (c) <= 'i') \
5217 || ('j' <= (c) && (c) <= 'r') \
5218 || ('s' <= (c) && (c) <= 'z'))
5219 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5222 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5227 for (i = 0; i < 256; i++)
5228 if (XOR (islower (i), ISLOWER (i))
5229 || toupper (i) != TOUPPER (i))
5234 rm -f conftest$ac_exeext
5235 if { (ac_try="$ac_link"
5237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5238 *) ac_try_echo=$ac_try;;
5240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5241 (eval "$ac_link") 2>&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5245 { (case "(($ac_try" in
5246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5247 *) ac_try_echo=$ac_try;;
5249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5250 (eval "$ac_try") 2>&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }; }; then
5256 echo "$as_me: program exited with status $ac_status" >&5
5257 echo "$as_me: failed program was:" >&5
5258 sed 's/^/| /' conftest.$ac_ext >&5
5261 ac_cv_header_stdc=no
5263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5269 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5270 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5271 if test $ac_cv_header_stdc = yes; then
5273 cat >>confdefs.h <<\_ACEOF
5274 #define STDC_HEADERS 1
5279 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5289 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5290 inttypes.h stdint.h unistd.h
5292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5298 cat >conftest.$ac_ext <<_ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h. */
5304 $ac_includes_default
5306 #include <$ac_header>
5308 rm -f conftest.$ac_objext
5309 if { (ac_try="$ac_compile"
5311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5312 *) ac_try_echo=$ac_try;;
5314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5315 (eval "$ac_compile") 2>conftest.er1
5317 grep -v '^ *+' conftest.er1 >conftest.err
5319 cat conftest.err >&5
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); } && {
5322 test -z "$ac_c_werror_flag" ||
5323 test ! -s conftest.err
5324 } && test -s conftest.$ac_objext; then
5325 eval "$as_ac_Header=yes"
5327 echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.$ac_ext >&5
5330 eval "$as_ac_Header=no"
5333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5335 ac_res=`eval echo '${'$as_ac_Header'}'`
5336 { echo "$as_me:$LINENO: result: $ac_res" >&5
5337 echo "${ECHO_T}$ac_res" >&6; }
5338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5339 cat >>confdefs.h <<_ACEOF
5340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5349 for ac_header in dlfcn.h
5351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5353 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5358 ac_res=`eval echo '${'$as_ac_Header'}'`
5359 { echo "$as_me:$LINENO: result: $ac_res" >&5
5360 echo "${ECHO_T}$ac_res" >&6; }
5362 # Is the header compilable?
5363 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5365 cat >conftest.$ac_ext <<_ACEOF
5368 cat confdefs.h >>conftest.$ac_ext
5369 cat >>conftest.$ac_ext <<_ACEOF
5370 /* end confdefs.h. */
5371 $ac_includes_default
5372 #include <$ac_header>
5374 rm -f conftest.$ac_objext
5375 if { (ac_try="$ac_compile"
5377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5378 *) ac_try_echo=$ac_try;;
5380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5381 (eval "$ac_compile") 2>conftest.er1
5383 grep -v '^ *+' conftest.er1 >conftest.err
5385 cat conftest.err >&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); } && {
5388 test -z "$ac_c_werror_flag" ||
5389 test ! -s conftest.err
5390 } && test -s conftest.$ac_objext; then
5391 ac_header_compiler=yes
5393 echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.$ac_ext >&5
5396 ac_header_compiler=no
5399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5401 echo "${ECHO_T}$ac_header_compiler" >&6; }
5403 # Is the header present?
5404 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5406 cat >conftest.$ac_ext <<_ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h. */
5412 #include <$ac_header>
5414 if { (ac_try="$ac_cpp conftest.$ac_ext"
5416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5417 *) ac_try_echo=$ac_try;;
5419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5422 grep -v '^ *+' conftest.er1 >conftest.err
5424 cat conftest.err >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } >/dev/null && {
5427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5428 test ! -s conftest.err
5430 ac_header_preproc=yes
5432 echo "$as_me: failed program was:" >&5
5433 sed 's/^/| /' conftest.$ac_ext >&5
5435 ac_header_preproc=no
5438 rm -f conftest.err conftest.$ac_ext
5439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5440 echo "${ECHO_T}$ac_header_preproc" >&6; }
5442 # So? What about this header?
5443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5448 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5449 ac_header_preproc=yes
5452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5456 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5457 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5458 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5459 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5462 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5463 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5465 ## -------------------------------------------------- ##
5466 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
5467 ## -------------------------------------------------- ##
5469 ) | sed "s/^/$as_me: WARNING: /" >&2
5472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5477 eval "$as_ac_Header=\$ac_header_preproc"
5479 ac_res=`eval echo '${'$as_ac_Header'}'`
5480 { echo "$as_me:$LINENO: result: $ac_res" >&5
5481 echo "${ECHO_T}$ac_res" >&6; }
5484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5485 cat >>confdefs.h <<_ACEOF
5486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5494 ac_cpp='$CXXCPP $CPPFLAGS'
5495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5498 if test -z "$CXX"; then
5499 if test -n "$CCC"; then
5502 if test -n "$ac_tool_prefix"; then
5503 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5505 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5506 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5509 if test "${ac_cv_prog_CXX+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5512 if test -n "$CXX"; then
5513 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519 test -z "$as_dir" && as_dir=.
5520 for ac_exec_ext in '' $ac_executable_extensions; do
5521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5522 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5533 if test -n "$CXX"; then
5534 { echo "$as_me:$LINENO: result: $CXX" >&5
5535 echo "${ECHO_T}$CXX" >&6; }
5537 { echo "$as_me:$LINENO: result: no" >&5
5538 echo "${ECHO_T}no" >&6; }
5542 test -n "$CXX" && break
5545 if test -z "$CXX"; then
5547 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5549 # Extract the first word of "$ac_prog", so it can be a program name with args.
5550 set dummy $ac_prog; ac_word=$2
5551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5553 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 if test -n "$ac_ct_CXX"; then
5557 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 test -z "$as_dir" && as_dir=.
5564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5566 ac_cv_prog_ac_ct_CXX="$ac_prog"
5567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5576 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5577 if test -n "$ac_ct_CXX"; then
5578 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5579 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5581 { echo "$as_me:$LINENO: result: no" >&5
5582 echo "${ECHO_T}no" >&6; }
5586 test -n "$ac_ct_CXX" && break
5589 if test "x$ac_ct_CXX" = x; then
5592 case $cross_compiling:$ac_tool_warned in
5594 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5595 whose name does not start with the host triplet. If you think this
5596 configuration is useful to you, please write to autoconf@gnu.org." >&5
5597 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5598 whose name does not start with the host triplet. If you think this
5599 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5600 ac_tool_warned=yes ;;
5608 # Provide some information about the compiler.
5609 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5610 ac_compiler=`set X $ac_compile; echo $2`
5611 { (ac_try="$ac_compiler --version >&5"
5613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5614 *) ac_try_echo=$ac_try;;
5616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5617 (eval "$ac_compiler --version >&5") 2>&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }
5621 { (ac_try="$ac_compiler -v >&5"
5623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624 *) ac_try_echo=$ac_try;;
5626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627 (eval "$ac_compiler -v >&5") 2>&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); }
5631 { (ac_try="$ac_compiler -V >&5"
5633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634 *) ac_try_echo=$ac_try;;
5636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5637 (eval "$ac_compiler -V >&5") 2>&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }
5642 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5643 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5644 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5647 cat >conftest.$ac_ext <<_ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5665 rm -f conftest.$ac_objext
5666 if { (ac_try="$ac_compile"
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5672 (eval "$ac_compile") 2>conftest.er1
5674 grep -v '^ *+' conftest.er1 >conftest.err
5676 cat conftest.err >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } && {
5679 test -z "$ac_cxx_werror_flag" ||
5680 test ! -s conftest.err
5681 } && test -s conftest.$ac_objext; then
5684 echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.$ac_ext >&5
5690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5694 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5695 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5696 GXX=`test $ac_compiler_gnu = yes && echo yes`
5697 ac_test_CXXFLAGS=${CXXFLAGS+set}
5698 ac_save_CXXFLAGS=$CXXFLAGS
5699 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5700 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5701 if test "${ac_cv_prog_cxx_g+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5704 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5705 ac_cxx_werror_flag=yes
5708 cat >conftest.$ac_ext <<_ACEOF
5711 cat confdefs.h >>conftest.$ac_ext
5712 cat >>conftest.$ac_ext <<_ACEOF
5713 /* end confdefs.h. */
5723 rm -f conftest.$ac_objext
5724 if { (ac_try="$ac_compile"
5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727 *) ac_try_echo=$ac_try;;
5729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730 (eval "$ac_compile") 2>conftest.er1
5732 grep -v '^ *+' conftest.er1 >conftest.err
5734 cat conftest.err >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } && {
5737 test -z "$ac_cxx_werror_flag" ||
5738 test ! -s conftest.err
5739 } && test -s conftest.$ac_objext; then
5740 ac_cv_prog_cxx_g=yes
5742 echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5746 cat >conftest.$ac_ext <<_ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h. */
5761 rm -f conftest.$ac_objext
5762 if { (ac_try="$ac_compile"
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768 (eval "$ac_compile") 2>conftest.er1
5770 grep -v '^ *+' conftest.er1 >conftest.err
5772 cat conftest.err >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } && {
5775 test -z "$ac_cxx_werror_flag" ||
5776 test ! -s conftest.err
5777 } && test -s conftest.$ac_objext; then
5780 echo "$as_me: failed program was:" >&5
5781 sed 's/^/| /' conftest.$ac_ext >&5
5783 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5785 cat >conftest.$ac_ext <<_ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5800 rm -f conftest.$ac_objext
5801 if { (ac_try="$ac_compile"
5803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804 *) ac_try_echo=$ac_try;;
5806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5807 (eval "$ac_compile") 2>conftest.er1
5809 grep -v '^ *+' conftest.er1 >conftest.err
5811 cat conftest.err >&5
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); } && {
5814 test -z "$ac_cxx_werror_flag" ||
5815 test ! -s conftest.err
5816 } && test -s conftest.$ac_objext; then
5817 ac_cv_prog_cxx_g=yes
5819 echo "$as_me: failed program was:" >&5
5820 sed 's/^/| /' conftest.$ac_ext >&5
5825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5834 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5835 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5836 if test "$ac_test_CXXFLAGS" = set; then
5837 CXXFLAGS=$ac_save_CXXFLAGS
5838 elif test $ac_cv_prog_cxx_g = yes; then
5839 if test "$GXX" = yes; then
5845 if test "$GXX" = yes; then
5852 ac_cpp='$CXXCPP $CPPFLAGS'
5853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5857 depcc="$CXX" am_compiler_list=
5859 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5860 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5861 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
5864 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5865 # We make a subdir and do the tests there. Otherwise we can end up
5866 # making bogus files that we don't know about and never remove. For
5867 # instance it was reported that on HP-UX the gcc test will end up
5868 # making a dummy file named `D' -- because `-MD' means `put the output
5871 # Copy depcomp to subdir because otherwise we won't find it if we're
5872 # using a relative directory.
5873 cp "$am_depcomp" conftest.dir
5875 # We will build objects and dependencies in a subdirectory because
5876 # it helps to detect inapplicable dependency modes. For instance
5877 # both Tru64's cc and ICC support -MD to output dependencies as a
5878 # side effect of compilation, but ICC will put the dependencies in
5879 # the current directory while Tru64 will put them in the object
5883 am_cv_CXX_dependencies_compiler_type=none
5884 if test "$am_compiler_list" = ""; then
5885 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5887 for depmode in $am_compiler_list; do
5888 # Setup a source with many dependencies, because some compilers
5889 # like to wrap large dependency lists on column 80 (with \), and
5890 # we should not choose a depcomp mode which is confused by this.
5892 # We need to recreate these files for each test, as the compiler may
5893 # overwrite some of them when testing with obscure command lines.
5894 # This happens at least with the AIX C compiler.
5896 for i in 1 2 3 4 5 6; do
5897 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5898 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5899 # Solaris 8's {/usr,}/bin/sh.
5900 touch sub/conftst$i.h
5902 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5906 # after this tag, mechanisms are not by side-effect, so they'll
5907 # only be used when explicitly requested
5908 if test "x$enable_dependency_tracking" = xyes; then
5916 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5917 # mode. It turns out that the SunPro C++ compiler does not properly
5918 # handle `-M -o', and we need to detect this.
5919 if depmode=$depmode \
5920 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5921 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5922 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5923 >/dev/null 2>conftest.err &&
5924 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5925 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5926 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5927 # icc doesn't choke on unknown options, it will just issue warnings
5928 # or remarks (even with -Werror). So we grep stderr for any message
5929 # that says an option was ignored or not supported.
5930 # When given -MP, icc 7.0 and 7.1 complain thusly:
5931 # icc: Command line warning: ignoring option '-M'; no argument required
5932 # The diagnosis changed in icc 8.0:
5933 # icc: Command line remark: option '-MP' not supported
5934 if (grep 'ignoring option' conftest.err ||
5935 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5936 am_cv_CXX_dependencies_compiler_type=$depmode
5945 am_cv_CXX_dependencies_compiler_type=none
5949 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5950 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5951 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5956 test "x$enable_dependency_tracking" != xno \
5957 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5958 am__fastdepCXX_TRUE=
5959 am__fastdepCXX_FALSE='#'
5961 am__fastdepCXX_TRUE='#'
5962 am__fastdepCXX_FALSE=
5968 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5969 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5970 (test "X$CXX" != "Xg++"))) ; then
5972 ac_cpp='$CXXCPP $CPPFLAGS'
5973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5976 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5977 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5978 if test -z "$CXXCPP"; then
5979 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5982 # Double quotes because CXXCPP needs to be expanded
5983 for CXXCPP in "$CXX -E" "/lib/cpp"
5986 for ac_cxx_preproc_warn_flag in '' yes
5988 # Use a header file that comes with gcc, so configuring glibc
5989 # with a fresh cross-compiler works.
5990 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5991 # <limits.h> exists even on freestanding compilers.
5992 # On the NeXT, cc -E runs the code through the compiler's parser,
5993 # not just through cpp. "Syntax error" is here to catch this case.
5994 cat >conftest.$ac_ext <<_ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h. */
6001 # include <limits.h>
6003 # include <assert.h>
6007 if { (ac_try="$ac_cpp conftest.$ac_ext"
6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6015 grep -v '^ *+' conftest.er1 >conftest.err
6017 cat conftest.err >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } >/dev/null && {
6020 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6021 test ! -s conftest.err
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6028 # Broken: fails on valid input.
6032 rm -f conftest.err conftest.$ac_ext
6034 # OK, works on sane cases. Now check whether nonexistent headers
6035 # can be detected and how.
6036 cat >conftest.$ac_ext <<_ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h. */
6042 #include <ac_nonexistent.h>
6044 if { (ac_try="$ac_cpp conftest.$ac_ext"
6046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6047 *) ac_try_echo=$ac_try;;
6049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6052 grep -v '^ *+' conftest.er1 >conftest.err
6054 cat conftest.err >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } >/dev/null && {
6057 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6058 test ! -s conftest.err
6060 # Broken: success on invalid input.
6063 echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6066 # Passes both tests.
6071 rm -f conftest.err conftest.$ac_ext
6074 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6075 rm -f conftest.err conftest.$ac_ext
6076 if $ac_preproc_ok; then
6081 ac_cv_prog_CXXCPP=$CXXCPP
6084 CXXCPP=$ac_cv_prog_CXXCPP
6086 ac_cv_prog_CXXCPP=$CXXCPP
6088 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6089 echo "${ECHO_T}$CXXCPP" >&6; }
6091 for ac_cxx_preproc_warn_flag in '' yes
6093 # Use a header file that comes with gcc, so configuring glibc
6094 # with a fresh cross-compiler works.
6095 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6096 # <limits.h> exists even on freestanding compilers.
6097 # On the NeXT, cc -E runs the code through the compiler's parser,
6098 # not just through cpp. "Syntax error" is here to catch this case.
6099 cat >conftest.$ac_ext <<_ACEOF
6102 cat confdefs.h >>conftest.$ac_ext
6103 cat >>conftest.$ac_ext <<_ACEOF
6104 /* end confdefs.h. */
6106 # include <limits.h>
6108 # include <assert.h>
6112 if { (ac_try="$ac_cpp conftest.$ac_ext"
6114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6115 *) ac_try_echo=$ac_try;;
6117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6120 grep -v '^ *+' conftest.er1 >conftest.err
6122 cat conftest.err >&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); } >/dev/null && {
6125 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6126 test ! -s conftest.err
6130 echo "$as_me: failed program was:" >&5
6131 sed 's/^/| /' conftest.$ac_ext >&5
6133 # Broken: fails on valid input.
6137 rm -f conftest.err conftest.$ac_ext
6139 # OK, works on sane cases. Now check whether nonexistent headers
6140 # can be detected and how.
6141 cat >conftest.$ac_ext <<_ACEOF
6144 cat confdefs.h >>conftest.$ac_ext
6145 cat >>conftest.$ac_ext <<_ACEOF
6146 /* end confdefs.h. */
6147 #include <ac_nonexistent.h>
6149 if { (ac_try="$ac_cpp conftest.$ac_ext"
6151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6152 *) ac_try_echo=$ac_try;;
6154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6157 grep -v '^ *+' conftest.er1 >conftest.err
6159 cat conftest.err >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); } >/dev/null && {
6162 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6163 test ! -s conftest.err
6165 # Broken: success on invalid input.
6168 echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6171 # Passes both tests.
6176 rm -f conftest.err conftest.$ac_ext
6179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6180 rm -f conftest.err conftest.$ac_ext
6181 if $ac_preproc_ok; then
6184 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6185 See \`config.log' for more details." >&5
6186 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6187 See \`config.log' for more details." >&2;}
6188 { (exit 1); exit 1; }; }
6192 ac_cpp='$CXXCPP $CPPFLAGS'
6193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6201 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6202 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6203 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6204 if test -n "$ac_tool_prefix"; then
6205 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6207 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6211 if test "${ac_cv_prog_F77+set}" = set; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 if test -n "$F77"; then
6215 ac_cv_prog_F77="$F77" # Let the user override the test.
6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 test -z "$as_dir" && as_dir=.
6222 for ac_exec_ext in '' $ac_executable_extensions; do
6223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6224 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6235 if test -n "$F77"; then
6236 { echo "$as_me:$LINENO: result: $F77" >&5
6237 echo "${ECHO_T}$F77" >&6; }
6239 { echo "$as_me:$LINENO: result: no" >&5
6240 echo "${ECHO_T}no" >&6; }
6244 test -n "$F77" && break
6247 if test -z "$F77"; then
6249 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6251 # Extract the first word of "$ac_prog", so it can be a program name with args.
6252 set dummy $ac_prog; ac_word=$2
6253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6255 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6258 if test -n "$ac_ct_F77"; then
6259 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 test -z "$as_dir" && as_dir=.
6266 for ac_exec_ext in '' $ac_executable_extensions; do
6267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6268 ac_cv_prog_ac_ct_F77="$ac_prog"
6269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6278 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6279 if test -n "$ac_ct_F77"; then
6280 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6281 echo "${ECHO_T}$ac_ct_F77" >&6; }
6283 { echo "$as_me:$LINENO: result: no" >&5
6284 echo "${ECHO_T}no" >&6; }
6288 test -n "$ac_ct_F77" && break
6291 if test "x$ac_ct_F77" = x; then
6294 case $cross_compiling:$ac_tool_warned in
6296 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6297 whose name does not start with the host triplet. If you think this
6298 configuration is useful to you, please write to autoconf@gnu.org." >&5
6299 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6300 whose name does not start with the host triplet. If you think this
6301 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6302 ac_tool_warned=yes ;;
6309 # Provide some information about the compiler.
6310 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6311 ac_compiler=`set X $ac_compile; echo $2`
6312 { (ac_try="$ac_compiler --version >&5"
6314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6318 (eval "$ac_compiler --version >&5") 2>&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }
6322 { (ac_try="$ac_compiler -v >&5"
6324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325 *) ac_try_echo=$ac_try;;
6327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6328 (eval "$ac_compiler -v >&5") 2>&5
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }
6332 { (ac_try="$ac_compiler -V >&5"
6334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6335 *) ac_try_echo=$ac_try;;
6337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6338 (eval "$ac_compiler -V >&5") 2>&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); }
6344 # If we don't use `.F' as extension, the preprocessor is not run on the
6345 # input file. (Note that this only needs to work for GNU compilers.)
6348 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6349 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6350 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6353 cat >conftest.$ac_ext <<_ACEOF
6361 rm -f conftest.$ac_objext
6362 if { (ac_try="$ac_compile"
6364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6365 *) ac_try_echo=$ac_try;;
6367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6368 (eval "$ac_compile") 2>conftest.er1
6370 grep -v '^ *+' conftest.er1 >conftest.err
6372 cat conftest.err >&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } && {
6375 test -z "$ac_f77_werror_flag" ||
6376 test ! -s conftest.err
6377 } && test -s conftest.$ac_objext; then
6380 echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.$ac_ext >&5
6386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6387 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6390 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6391 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6393 ac_test_FFLAGS=${FFLAGS+set}
6394 ac_save_FFLAGS=$FFLAGS
6396 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6397 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6398 if test "${ac_cv_prog_f77_g+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6402 cat >conftest.$ac_ext <<_ACEOF
6407 rm -f conftest.$ac_objext
6408 if { (ac_try="$ac_compile"
6410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6411 *) ac_try_echo=$ac_try;;
6413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6414 (eval "$ac_compile") 2>conftest.er1
6416 grep -v '^ *+' conftest.er1 >conftest.err
6418 cat conftest.err >&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); } && {
6421 test -z "$ac_f77_werror_flag" ||
6422 test ! -s conftest.err
6423 } && test -s conftest.$ac_objext; then
6424 ac_cv_prog_f77_g=yes
6426 echo "$as_me: failed program was:" >&5
6427 sed 's/^/| /' conftest.$ac_ext >&5
6432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6435 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6436 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6437 if test "$ac_test_FFLAGS" = set; then
6438 FFLAGS=$ac_save_FFLAGS
6439 elif test $ac_cv_prog_f77_g = yes; then
6440 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6446 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6453 G77=`test $ac_compiler_gnu = yes && echo yes`
6455 ac_cpp='$CPP $CPPFLAGS'
6456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6462 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6464 # find the maximum length of command line arguments
6465 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6466 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6467 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6468 echo $ECHO_N "(cached) $ECHO_C" >&6
6475 # On DJGPP, this test can blow up pretty badly due to problems in libc
6476 # (any single argument exceeding 2000 bytes causes a buffer overrun
6477 # during glob expansion). Even if it were fixed, the result of this
6478 # check would be larger than it should be.
6479 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6483 # Under GNU Hurd, this test is not required because there is
6484 # no limit to the length of command line arguments.
6485 # Libtool will interpret -1 as no limit whatsoever
6486 lt_cv_sys_max_cmd_len=-1;
6490 # On Win9x/ME, this test blows up -- it succeeds, but takes
6491 # about 5 minutes as the teststring grows exponentially.
6492 # Worse, since 9x/ME are not pre-emptively multitasking,
6493 # you end up with a "frozen" computer, even though with patience
6494 # the test eventually succeeds (with a max line length of 256k).
6495 # Instead, let's just punt: use the minimum linelength reported by
6496 # all of the supported platforms: 8192 (on NT/2K/XP).
6497 lt_cv_sys_max_cmd_len=8192;
6501 # On AmigaOS with pdksh, this test takes hours, literally.
6502 # So we just punt and use a minimum line length of 8192.
6503 lt_cv_sys_max_cmd_len=8192;
6506 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6507 # This has been around since 386BSD, at least. Likely further.
6508 if test -x /sbin/sysctl; then
6509 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6510 elif test -x /usr/sbin/sysctl; then
6511 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6513 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6515 # And add a safety zone
6516 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6517 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6521 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6522 lt_cv_sys_max_cmd_len=196608
6526 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6527 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6528 # nice to cause kernel panics so lets avoid the loop below.
6529 # First set a reasonable default.
6530 lt_cv_sys_max_cmd_len=16384
6532 if test -x /sbin/sysconfig; then
6533 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6534 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6539 lt_cv_sys_max_cmd_len=102400
6541 sysv5* | sco5v6* | sysv4.2uw2*)
6542 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6543 if test -n "$kargmax"; then
6544 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6546 lt_cv_sys_max_cmd_len=32768
6550 # If test is not a shell built-in, we'll probably end up computing a
6551 # maximum length that is only half of the actual maximum length, but
6553 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6554 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6555 = "XX$teststring") >/dev/null 2>&1 &&
6556 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6557 lt_cv_sys_max_cmd_len=$new_result &&
6558 test $i != 17 # 1/2 MB should be enough
6561 teststring=$teststring$teststring
6564 # Add a significant safety factor because C++ compilers can tack on massive
6565 # amounts of additional arguments before passing them to the linker.
6566 # It appears as though 1/2 is a usable value.
6567 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6573 if test -n $lt_cv_sys_max_cmd_len ; then
6574 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6575 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6577 { echo "$as_me:$LINENO: result: none" >&5
6578 echo "${ECHO_T}none" >&6; }
6584 # Check for command to grab the raw symbol name followed by C symbol from nm.
6585 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6586 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6587 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6588 echo $ECHO_N "(cached) $ECHO_C" >&6
6591 # These are sane defaults that work on at least a few old systems.
6592 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6594 # Character class describing NM global symbol codes.
6595 symcode='[BCDEGRST]'
6597 # Regexp to match symbols that can be accessed directly from C.
6598 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6600 # Transform an extracted symbol line into a proper C declaration
6601 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6603 # Transform an extracted symbol line into symbol name and symbol address
6604 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'"
6606 # Define system-specific variables.
6611 cygwin* | mingw* | pw32*)
6612 symcode='[ABCDGISTW]'
6614 hpux*) # Its linker distinguishes data from code symbols
6615 if test "$host_cpu" = ia64; then
6616 symcode='[ABCDEGRST]'
6618 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6619 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'"
6621 linux* | k*bsd*-gnu)
6622 if test "$host_cpu" = ia64; then
6623 symcode='[ABCDGIRSTW]'
6624 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6625 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'"
6629 symcode='[BCDEGRST]'
6632 symcode='[BCDEGQRST]'
6643 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6651 # Handle CRLF in mingw tool chain
6655 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6659 # If we're using GNU nm, then use its standard symbol codes.
6660 case `$NM -V 2>&1` in
6661 *GNU* | *'with BFD'*)
6662 symcode='[ABCDGIRSTW]' ;;
6665 # Try without a prefix undercore, then with it.
6666 for ac_symprfx in "" "_"; do
6668 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6669 symxfrm="\\1 $ac_symprfx\\2 \\2"
6671 # Write the raw and C identifiers.
6672 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6674 # Check to see that the pipe works correctly.
6678 cat > conftest.$ac_ext <<EOF
6683 void nm_test_func(){}
6687 int main(){nm_test_var='a';nm_test_func();return(0);}
6690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6691 (eval $ac_compile) 2>&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); }; then
6695 # Now try to grab the symbols.
6697 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6698 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } && test -s "$nlist"; then
6702 # Try sorting and uniquifying the output.
6703 if sort "$nlist" | uniq > "$nlist"T; then
6704 mv -f "$nlist"T "$nlist"
6709 # Make sure that we snagged all the symbols we need.
6710 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6711 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6712 cat <<EOF > conftest.$ac_ext
6718 # Now generate the symbol file.
6719 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6721 cat <<EOF >> conftest.$ac_ext
6722 #if defined (__STDC__) && __STDC__
6723 # define lt_ptr_t void *
6725 # define lt_ptr_t char *
6729 /* The mapping between symbol names and symbols. */
6734 lt_preloaded_symbols[] =
6737 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6738 cat <<\EOF >> conftest.$ac_ext
6746 # Now try linking the two files.
6747 mv conftest.$ac_objext conftstm.$ac_objext
6748 lt_save_LIBS="$LIBS"
6749 lt_save_CFLAGS="$CFLAGS"
6750 LIBS="conftstm.$ac_objext"
6751 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6753 (eval $ac_link) 2>&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6759 LIBS="$lt_save_LIBS"
6760 CFLAGS="$lt_save_CFLAGS"
6762 echo "cannot find nm_test_func in $nlist" >&5
6765 echo "cannot find nm_test_var in $nlist" >&5
6768 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6771 echo "$progname: failed program was:" >&5
6772 cat conftest.$ac_ext >&5
6774 rm -f conftest* conftst*
6776 # Do not use the global_symbol_pipe unless it works.
6777 if test "$pipe_works" = yes; then
6780 lt_cv_sys_global_symbol_pipe=
6786 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6787 lt_cv_sys_global_symbol_to_cdecl=
6789 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6790 { echo "$as_me:$LINENO: result: failed" >&5
6791 echo "${ECHO_T}failed" >&6; }
6793 { echo "$as_me:$LINENO: result: ok" >&5
6794 echo "${ECHO_T}ok" >&6; }
6797 { echo "$as_me:$LINENO: checking for objdir" >&5
6798 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6799 if test "${lt_cv_objdir+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6802 rm -f .libs 2>/dev/null
6803 mkdir .libs 2>/dev/null
6804 if test -d .libs; then
6807 # MS-DOS does not allow filenames that begin with a dot.
6810 rmdir .libs 2>/dev/null
6812 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6813 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6814 objdir=$lt_cv_objdir
6822 # AIX sometimes has problems with the GCC collect2 program. For some
6823 # reason, if we set the COLLECT_NAMES environment variable, the problems
6824 # vanish in a puff of smoke.
6825 if test "X${COLLECT_NAMES+set}" != Xset; then
6827 export COLLECT_NAMES
6832 # Sed substitution that helps us do robust quoting. It backslashifies
6833 # metacharacters that are still active within double-quoted strings.
6834 Xsed='sed -e 1s/^X//'
6835 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6837 # Same as above, but do not quote variable references.
6838 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6840 # Sed substitution to delay expansion of an escaped shell variable in a
6841 # double_quote_subst'ed string.
6842 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6844 # Sed substitution to avoid accidental globbing in evaled expressions
6845 no_glob_subst='s/\*/\\\*/g'
6851 default_ofile=libtool
6852 can_build_shared=yes
6854 # All known linkers require a `.a' archive for static linking (except MSVC,
6855 # which needs '.lib').
6857 ltmain="$ac_aux_dir/ltmain.sh"
6858 ofile="$default_ofile"
6859 with_gnu_ld="$lt_cv_prog_gnu_ld"
6861 if test -n "$ac_tool_prefix"; then
6862 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6863 set dummy ${ac_tool_prefix}ar; ac_word=$2
6864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6866 if test "${ac_cv_prog_AR+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6869 if test -n "$AR"; then
6870 ac_cv_prog_AR="$AR" # Let the user override the test.
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 test -z "$as_dir" && as_dir=.
6877 for ac_exec_ext in '' $ac_executable_extensions; do
6878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6879 ac_cv_prog_AR="${ac_tool_prefix}ar"
6880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6890 if test -n "$AR"; then
6891 { echo "$as_me:$LINENO: result: $AR" >&5
6892 echo "${ECHO_T}$AR" >&6; }
6894 { echo "$as_me:$LINENO: result: no" >&5
6895 echo "${ECHO_T}no" >&6; }
6900 if test -z "$ac_cv_prog_AR"; then
6902 # Extract the first word of "ar", so it can be a program name with args.
6903 set dummy ar; ac_word=$2
6904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6906 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
6909 if test -n "$ac_ct_AR"; then
6910 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6919 ac_cv_prog_ac_ct_AR="ar"
6920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6929 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6930 if test -n "$ac_ct_AR"; then
6931 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6932 echo "${ECHO_T}$ac_ct_AR" >&6; }
6934 { echo "$as_me:$LINENO: result: no" >&5
6935 echo "${ECHO_T}no" >&6; }
6938 if test "x$ac_ct_AR" = x; then
6941 case $cross_compiling:$ac_tool_warned in
6943 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6944 whose name does not start with the host triplet. If you think this
6945 configuration is useful to you, please write to autoconf@gnu.org." >&5
6946 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6947 whose name does not start with the host triplet. If you think this
6948 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6949 ac_tool_warned=yes ;;
6957 if test -n "$ac_tool_prefix"; then
6958 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6959 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6962 if test "${ac_cv_prog_RANLIB+set}" = set; then
6963 echo $ECHO_N "(cached) $ECHO_C" >&6
6965 if test -n "$RANLIB"; then
6966 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972 test -z "$as_dir" && as_dir=.
6973 for ac_exec_ext in '' $ac_executable_extensions; do
6974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6975 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6985 RANLIB=$ac_cv_prog_RANLIB
6986 if test -n "$RANLIB"; then
6987 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6988 echo "${ECHO_T}$RANLIB" >&6; }
6990 { echo "$as_me:$LINENO: result: no" >&5
6991 echo "${ECHO_T}no" >&6; }
6996 if test -z "$ac_cv_prog_RANLIB"; then
6997 ac_ct_RANLIB=$RANLIB
6998 # Extract the first word of "ranlib", so it can be a program name with args.
6999 set dummy ranlib; ac_word=$2
7000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7002 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
7005 if test -n "$ac_ct_RANLIB"; then
7006 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 test -z "$as_dir" && as_dir=.
7013 for ac_exec_ext in '' $ac_executable_extensions; do
7014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7015 ac_cv_prog_ac_ct_RANLIB="ranlib"
7016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7026 if test -n "$ac_ct_RANLIB"; then
7027 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7028 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7030 { echo "$as_me:$LINENO: result: no" >&5
7031 echo "${ECHO_T}no" >&6; }
7034 if test "x$ac_ct_RANLIB" = x; then
7037 case $cross_compiling:$ac_tool_warned in
7039 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7040 whose name does not start with the host triplet. If you think this
7041 configuration is useful to you, please write to autoconf@gnu.org." >&5
7042 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7043 whose name does not start with the host triplet. If you think this
7044 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7045 ac_tool_warned=yes ;;
7047 RANLIB=$ac_ct_RANLIB
7050 RANLIB="$ac_cv_prog_RANLIB"
7053 if test -n "$ac_tool_prefix"; then
7054 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7055 set dummy ${ac_tool_prefix}strip; ac_word=$2
7056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7058 if test "${ac_cv_prog_STRIP+set}" = set; then
7059 echo $ECHO_N "(cached) $ECHO_C" >&6
7061 if test -n "$STRIP"; then
7062 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7071 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7081 STRIP=$ac_cv_prog_STRIP
7082 if test -n "$STRIP"; then
7083 { echo "$as_me:$LINENO: result: $STRIP" >&5
7084 echo "${ECHO_T}$STRIP" >&6; }
7086 { echo "$as_me:$LINENO: result: no" >&5
7087 echo "${ECHO_T}no" >&6; }
7092 if test -z "$ac_cv_prog_STRIP"; then
7094 # Extract the first word of "strip", so it can be a program name with args.
7095 set dummy strip; ac_word=$2
7096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7098 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7101 if test -n "$ac_ct_STRIP"; then
7102 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7111 ac_cv_prog_ac_ct_STRIP="strip"
7112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7121 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7122 if test -n "$ac_ct_STRIP"; then
7123 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7124 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7126 { echo "$as_me:$LINENO: result: no" >&5
7127 echo "${ECHO_T}no" >&6; }
7130 if test "x$ac_ct_STRIP" = x; then
7133 case $cross_compiling:$ac_tool_warned in
7135 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7136 whose name does not start with the host triplet. If you think this
7137 configuration is useful to you, please write to autoconf@gnu.org." >&5
7138 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7139 whose name does not start with the host triplet. If you think this
7140 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7141 ac_tool_warned=yes ;;
7146 STRIP="$ac_cv_prog_STRIP"
7151 old_CFLAGS="$CFLAGS"
7153 # Set sane defaults for various variables
7154 test -z "$AR" && AR=ar
7155 test -z "$AR_FLAGS" && AR_FLAGS=cru
7156 test -z "$AS" && AS=as
7157 test -z "$CC" && CC=cc
7158 test -z "$LTCC" && LTCC=$CC
7159 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7160 test -z "$DLLTOOL" && DLLTOOL=dlltool
7161 test -z "$LD" && LD=ld
7162 test -z "$LN_S" && LN_S="ln -s"
7163 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7164 test -z "$NM" && NM=nm
7165 test -z "$SED" && SED=sed
7166 test -z "$OBJDUMP" && OBJDUMP=objdump
7167 test -z "$RANLIB" && RANLIB=:
7168 test -z "$STRIP" && STRIP=:
7169 test -z "$ac_objext" && ac_objext=o
7171 # Determine commands to create old-style static archives.
7172 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7173 old_postinstall_cmds='chmod 644 $oldlib'
7174 old_postuninstall_cmds=
7176 if test -n "$RANLIB"; then
7179 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7182 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7185 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7188 for cc_temp in $compiler""; do
7190 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7191 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7196 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7199 # Only perform the check for file, if the check method requires it
7200 case $deplibs_check_method in
7202 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7203 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7204 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7205 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7206 echo $ECHO_N "(cached) $ECHO_C" >&6
7210 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7213 lt_save_MAGIC_CMD="$MAGIC_CMD"
7214 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7215 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7216 for ac_dir in $ac_dummy; do
7218 test -z "$ac_dir" && ac_dir=.
7219 if test -f $ac_dir/${ac_tool_prefix}file; then
7220 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7221 if test -n "$file_magic_test_file"; then
7222 case $deplibs_check_method in
7224 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7225 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7226 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7227 $EGREP "$file_magic_regex" > /dev/null; then
7232 *** Warning: the command libtool uses to detect shared libraries,
7233 *** $file_magic_cmd, produces output that libtool cannot recognize.
7234 *** The result is that libtool may fail to recognize shared libraries
7235 *** as such. This will affect the creation of libtool libraries that
7236 *** depend on shared libraries, but programs linked with such libtool
7237 *** libraries will work regardless of this problem. Nevertheless, you
7238 *** may want to report the problem to your system manager and/or to
7239 *** bug-libtool@gnu.org
7249 MAGIC_CMD="$lt_save_MAGIC_CMD"
7254 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7255 if test -n "$MAGIC_CMD"; then
7256 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7257 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7259 { echo "$as_me:$LINENO: result: no" >&5
7260 echo "${ECHO_T}no" >&6; }
7263 if test -z "$lt_cv_path_MAGIC_CMD"; then
7264 if test -n "$ac_tool_prefix"; then
7265 { echo "$as_me:$LINENO: checking for file" >&5
7266 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7267 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7272 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7275 lt_save_MAGIC_CMD="$MAGIC_CMD"
7276 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7277 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7278 for ac_dir in $ac_dummy; do
7280 test -z "$ac_dir" && ac_dir=.
7281 if test -f $ac_dir/file; then
7282 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7283 if test -n "$file_magic_test_file"; then
7284 case $deplibs_check_method in
7286 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7287 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7288 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7289 $EGREP "$file_magic_regex" > /dev/null; then
7294 *** Warning: the command libtool uses to detect shared libraries,
7295 *** $file_magic_cmd, produces output that libtool cannot recognize.
7296 *** The result is that libtool may fail to recognize shared libraries
7297 *** as such. This will affect the creation of libtool libraries that
7298 *** depend on shared libraries, but programs linked with such libtool
7299 *** libraries will work regardless of this problem. Nevertheless, you
7300 *** may want to report the problem to your system manager and/or to
7301 *** bug-libtool@gnu.org
7311 MAGIC_CMD="$lt_save_MAGIC_CMD"
7316 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7317 if test -n "$MAGIC_CMD"; then
7318 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7319 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7321 { echo "$as_me:$LINENO: result: no" >&5
7322 echo "${ECHO_T}no" >&6; }
7335 enable_win32_dll=yes
7337 # Check whether --enable-libtool-lock was given.
7338 if test "${enable_libtool_lock+set}" = set; then
7339 enableval=$enable_libtool_lock;
7342 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7345 # Check whether --with-pic was given.
7346 if test "${with_pic+set}" = set; then
7347 withval=$with_pic; pic_mode="$withval"
7352 test -z "$pic_mode" && pic_mode=default
7354 # Use C for the default configuration in the libtool script
7358 ac_cpp='$CPP $CPPFLAGS'
7359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7364 # Source file extension for C test sources.
7367 # Object file extension for compiled C test sources.
7371 # Code to be used in simple compile tests
7372 lt_simple_compile_test_code="int some_variable = 0;\n"
7374 # Code to be used in simple link tests
7375 lt_simple_link_test_code='int main(){return(0);}\n'
7378 # If no C compiler was specified, use CC.
7381 # If no C compiler flags were specified, use CFLAGS.
7382 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7384 # Allow CC to be a program name with arguments.
7388 # save warnings/boilerplate of simple test code
7389 ac_outfile=conftest.$ac_objext
7390 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7391 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7392 _lt_compiler_boilerplate=`cat conftest.err`
7395 ac_outfile=conftest.$ac_objext
7396 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7397 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7398 _lt_linker_boilerplate=`cat conftest.err`
7403 lt_prog_compiler_no_builtin_flag=
7405 if test "$GCC" = yes; then
7406 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7409 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7410 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7411 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7414 lt_cv_prog_compiler_rtti_exceptions=no
7415 ac_outfile=conftest.$ac_objext
7416 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7417 lt_compiler_flag="-fno-rtti -fno-exceptions"
7418 # Insert the option either (1) after the last *FLAGS variable, or
7419 # (2) before a word containing "conftest.", or (3) at the end.
7420 # Note that $ac_compile itself does not contain backslashes and begins
7421 # with a dollar sign (not a hyphen), so the echo should work correctly.
7422 # The option is referenced via a variable to avoid confusing sed.
7423 lt_compile=`echo "$ac_compile" | $SED \
7424 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7425 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7426 -e 's:$: $lt_compiler_flag:'`
7427 (eval echo "\"\$as_me:7427: $lt_compile\"" >&5)
7428 (eval "$lt_compile" 2>conftest.err)
7430 cat conftest.err >&5
7431 echo "$as_me:7431: \$? = $ac_status" >&5
7432 if (exit $ac_status) && test -s "$ac_outfile"; then
7433 # The compiler can only warn and ignore the option if not recognized
7434 # So say no if there are warnings other than the usual output.
7435 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7436 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7437 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7438 lt_cv_prog_compiler_rtti_exceptions=yes
7444 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7445 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7447 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7448 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7455 lt_prog_compiler_wl=
7456 lt_prog_compiler_pic=
7457 lt_prog_compiler_static=
7459 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7460 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7462 if test "$GCC" = yes; then
7463 lt_prog_compiler_wl='-Wl,'
7464 lt_prog_compiler_static='-static'
7468 # All AIX code is PIC.
7469 if test "$host_cpu" = ia64; then
7470 # AIX 5 now supports IA64 processor
7471 lt_prog_compiler_static='-Bstatic'
7476 # FIXME: we need at least 68020 code to build shared libraries, but
7477 # adding the `-m68020' flag to GCC prevents building anything better,
7479 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7482 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7483 # PIC is the default for these OSes.
7486 mingw* | pw32* | os2*)
7487 # This hack is so that the source file can tell whether it is being
7488 # built for inclusion in a dll (and should export symbols for example).
7489 lt_prog_compiler_pic='-DDLL_EXPORT'
7492 darwin* | rhapsody*)
7493 # PIC is the default on this platform
7494 # Common symbols not allowed in MH_DYLIB files
7495 lt_prog_compiler_pic='-fno-common'
7499 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7500 # Instead, we relocate shared libraries at runtime.
7504 # Just because we use GCC doesn't mean we suddenly get shared libraries
7505 # on systems that don't support them.
7506 lt_prog_compiler_can_build_shared=no
7511 if test -d /usr/nec; then
7512 lt_prog_compiler_pic=-Kconform_pic
7517 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7524 lt_prog_compiler_pic='-fPIC'
7530 lt_prog_compiler_pic='-fPIC'
7534 # PORTME Check for flag to pass linker flags through the system compiler.
7537 lt_prog_compiler_wl='-Wl,'
7538 if test "$host_cpu" = ia64; then
7539 # AIX 5 now supports IA64 processor
7540 lt_prog_compiler_static='-Bstatic'
7542 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7546 # PIC is the default on this platform
7547 # Common symbols not allowed in MH_DYLIB files
7548 case $cc_basename in
7550 lt_prog_compiler_pic='-qnocommon'
7551 lt_prog_compiler_wl='-Wl,'
7556 mingw* | pw32* | os2*)
7557 # This hack is so that the source file can tell whether it is being
7558 # built for inclusion in a dll (and should export symbols for example).
7559 lt_prog_compiler_pic='-DDLL_EXPORT'
7562 hpux9* | hpux10* | hpux11*)
7563 lt_prog_compiler_wl='-Wl,'
7564 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7571 lt_prog_compiler_pic='+Z'
7574 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7575 lt_prog_compiler_static='${wl}-a ${wl}archive'
7578 irix5* | irix6* | nonstopux*)
7579 lt_prog_compiler_wl='-Wl,'
7580 # PIC (with -KPIC) is the default.
7581 lt_prog_compiler_static='-non_shared'
7585 lt_prog_compiler_pic='-KPIC'
7586 lt_prog_compiler_static='-Bstatic'
7589 linux* | k*bsd*-gnu)
7590 case $cc_basename in
7592 lt_prog_compiler_wl='-Wl,'
7593 lt_prog_compiler_pic='-KPIC'
7594 lt_prog_compiler_static='-static'
7596 pgcc* | pgf77* | pgf90* | pgf95*)
7597 # Portland Group compilers (*not* the Pentium gcc compiler,
7598 # which looks to be a dead project)
7599 lt_prog_compiler_wl='-Wl,'
7600 lt_prog_compiler_pic='-fpic'
7601 lt_prog_compiler_static='-Bstatic'
7604 lt_prog_compiler_wl='-Wl,'
7605 # All Alpha code is PIC.
7606 lt_prog_compiler_static='-non_shared'
7611 osf3* | osf4* | osf5*)
7612 lt_prog_compiler_wl='-Wl,'
7613 # All OSF/1 code is PIC.
7614 lt_prog_compiler_static='-non_shared'
7618 lt_prog_compiler_pic='-KPIC'
7619 lt_prog_compiler_static='-Bstatic'
7620 case $cc_basename in
7622 lt_prog_compiler_wl='-Qoption ld ';;
7624 lt_prog_compiler_wl='-Wl,';;
7629 lt_prog_compiler_wl='-Qoption ld '
7630 lt_prog_compiler_pic='-PIC'
7631 lt_prog_compiler_static='-Bstatic'
7634 sysv4 | sysv4.2uw2* | sysv4.3*)
7635 lt_prog_compiler_wl='-Wl,'
7636 lt_prog_compiler_pic='-KPIC'
7637 lt_prog_compiler_static='-Bstatic'
7641 if test -d /usr/nec ;then
7642 lt_prog_compiler_pic='-Kconform_pic'
7643 lt_prog_compiler_static='-Bstatic'
7647 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7648 lt_prog_compiler_wl='-Wl,'
7649 lt_prog_compiler_pic='-KPIC'
7650 lt_prog_compiler_static='-Bstatic'
7654 lt_prog_compiler_wl='-Wl,'
7655 lt_prog_compiler_can_build_shared=no
7659 lt_prog_compiler_pic='-pic'
7660 lt_prog_compiler_static='-Bstatic'
7664 lt_prog_compiler_can_build_shared=no
7669 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7670 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7673 # Check to make sure the PIC flag actually works.
7675 if test -n "$lt_prog_compiler_pic"; then
7677 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7678 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7679 if test "${lt_prog_compiler_pic_works+set}" = set; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 lt_prog_compiler_pic_works=no
7683 ac_outfile=conftest.$ac_objext
7684 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7685 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7686 # Insert the option either (1) after the last *FLAGS variable, or
7687 # (2) before a word containing "conftest.", or (3) at the end.
7688 # Note that $ac_compile itself does not contain backslashes and begins
7689 # with a dollar sign (not a hyphen), so the echo should work correctly.
7690 # The option is referenced via a variable to avoid confusing sed.
7691 lt_compile=`echo "$ac_compile" | $SED \
7692 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7693 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7694 -e 's:$: $lt_compiler_flag:'`
7695 (eval echo "\"\$as_me:7695: $lt_compile\"" >&5)
7696 (eval "$lt_compile" 2>conftest.err)
7698 cat conftest.err >&5
7699 echo "$as_me:7699: \$? = $ac_status" >&5
7700 if (exit $ac_status) && test -s "$ac_outfile"; then
7701 # The compiler can only warn and ignore the option if not recognized
7702 # So say no if there are warnings other than the usual output.
7703 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7704 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7705 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7706 lt_prog_compiler_pic_works=yes
7712 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7713 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7715 if test x"$lt_prog_compiler_pic_works" = xyes; then
7716 case $lt_prog_compiler_pic in
7718 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7721 lt_prog_compiler_pic=
7722 lt_prog_compiler_can_build_shared=no
7727 # For platforms which do not support PIC, -DPIC is meaningless:
7729 lt_prog_compiler_pic=
7732 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7737 # Check to make sure the static flag actually works.
7739 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7740 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7741 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7742 if test "${lt_prog_compiler_static_works+set}" = set; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7745 lt_prog_compiler_static_works=no
7746 save_LDFLAGS="$LDFLAGS"
7747 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7748 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7749 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7750 # The linker can only warn and ignore the option if not recognized
7751 # So say no if there are warnings
7752 if test -s conftest.err; then
7753 # Append any errors to the config.log.
7754 cat conftest.err 1>&5
7755 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7757 if diff conftest.exp conftest.er2 >/dev/null; then
7758 lt_prog_compiler_static_works=yes
7761 lt_prog_compiler_static_works=yes
7765 LDFLAGS="$save_LDFLAGS"
7768 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7769 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7771 if test x"$lt_prog_compiler_static_works" = xyes; then
7774 lt_prog_compiler_static=
7778 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7779 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7780 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 lt_cv_prog_compiler_c_o=no
7784 $rm -r conftest 2>/dev/null
7788 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7790 lt_compiler_flag="-o out/conftest2.$ac_objext"
7791 # Insert the option either (1) after the last *FLAGS variable, or
7792 # (2) before a word containing "conftest.", or (3) at the end.
7793 # Note that $ac_compile itself does not contain backslashes and begins
7794 # with a dollar sign (not a hyphen), so the echo should work correctly.
7795 lt_compile=`echo "$ac_compile" | $SED \
7796 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7798 -e 's:$: $lt_compiler_flag:'`
7799 (eval echo "\"\$as_me:7799: $lt_compile\"" >&5)
7800 (eval "$lt_compile" 2>out/conftest.err)
7802 cat out/conftest.err >&5
7803 echo "$as_me:7803: \$? = $ac_status" >&5
7804 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7806 # The compiler can only warn and ignore the option if not recognized
7807 # So say no if there are warnings
7808 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7809 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7810 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7811 lt_cv_prog_compiler_c_o=yes
7816 # SGI C++ compiler will create directory out/ii_files/ for
7817 # template instantiation
7818 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7819 $rm out/* && rmdir out
7825 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7826 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7829 hard_links="nottested"
7830 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7831 # do not overwrite the value of need_locks provided by the user
7832 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7833 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7836 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7838 ln conftest.a conftest.b 2>&5 || hard_links=no
7839 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7840 { echo "$as_me:$LINENO: result: $hard_links" >&5
7841 echo "${ECHO_T}$hard_links" >&6; }
7842 if test "$hard_links" = no; then
7843 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7844 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7851 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7852 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7855 allow_undefined_flag=
7856 enable_shared_with_static_runtimes=no
7858 archive_expsym_cmds=
7859 old_archive_From_new_cmds=
7860 old_archive_from_expsyms_cmds=
7861 export_dynamic_flag_spec=
7862 whole_archive_flag_spec=
7863 thread_safe_flag_spec=
7864 hardcode_libdir_flag_spec=
7865 hardcode_libdir_flag_spec_ld=
7866 hardcode_libdir_separator=
7869 hardcode_shlibpath_var=unsupported
7870 link_all_deplibs=unknown
7871 hardcode_automatic=no
7874 always_export_symbols=no
7875 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7876 # include_expsyms should be a list of space-separated symbols to be *always*
7877 # included in the symbol list
7879 # exclude_expsyms can be an extended regexp of symbols to exclude
7880 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7881 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7882 # as well as any symbol that contains `d'.
7883 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7884 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7885 # platforms (ab)use it in PIC code, but their linkers get confused if
7886 # the symbol is explicitly referenced. Since portable code cannot
7887 # rely on this symbol name, it's probably fine to never include it in
7888 # preloaded symbol tables.
7889 extract_expsyms_cmds=
7890 # Just being paranoid about ensuring that cc_basename is set.
7891 for cc_temp in $compiler""; do
7893 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7894 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7899 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7902 cygwin* | mingw* | pw32*)
7903 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7904 # When not using gcc, we currently assume that we are using
7905 # Microsoft Visual C++.
7906 if test "$GCC" != yes; then
7911 # we just hope/assume this is gcc and not c89 (= MSVC++)
7920 if test "$with_gnu_ld" = yes; then
7921 # If archive_cmds runs LD, not CC, wlarc should be empty
7924 # Set some defaults for GNU ld with shared library support. These
7925 # are reset later if shared libraries are not supported. Putting them
7926 # here allows them to be overridden if necessary.
7927 runpath_var=LD_RUN_PATH
7928 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7929 export_dynamic_flag_spec='${wl}--export-dynamic'
7930 # ancient GNU ld didn't support --whole-archive et. al.
7931 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7932 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7934 whole_archive_flag_spec=
7936 supports_anon_versioning=no
7937 case `$LD -v 2>/dev/null` in
7938 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7939 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7940 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7941 *\ 2.11.*) ;; # other 2.11 versions
7942 *) supports_anon_versioning=yes ;;
7945 # See if GNU ld supports shared libraries.
7947 aix3* | aix4* | aix5*)
7948 # On AIX/PPC, the GNU linker is very broken
7949 if test "$host_cpu" != ia64; then
7953 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7954 *** to be unable to reliably create shared libraries on AIX.
7955 *** Therefore, libtool is disabling shared libraries support. If you
7956 *** really care for shared libraries, you may want to modify your PATH
7957 *** so that a non-GNU linker is found, and then restart.
7964 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)'
7965 hardcode_libdir_flag_spec='-L$libdir'
7966 hardcode_minus_L=yes
7968 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7969 # that the semantics of dynamic libraries on AmigaOS, at least up
7970 # to version 4, is to share data among multiple programs linked
7971 # with the same dynamic library. Since this doesn't match the
7972 # behavior of shared libraries on other platforms, we can't use
7978 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7979 allow_undefined_flag=unsupported
7980 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7981 # support --undefined. This deserves some investigation. FIXME
7982 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7988 cygwin* | mingw* | pw32*)
7989 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7990 # as there is no search path for DLLs.
7991 hardcode_libdir_flag_spec='-L$libdir'
7992 allow_undefined_flag=unsupported
7993 always_export_symbols=no
7994 enable_shared_with_static_runtimes=yes
7995 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7997 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7998 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7999 # If the export-symbols file already is a .def file (1st line
8000 # is EXPORTS), use it as is; otherwise, prepend...
8001 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8002 cp $export_symbols $output_objdir/$soname.def;
8004 echo EXPORTS > $output_objdir/$soname.def;
8005 cat $export_symbols >> $output_objdir/$soname.def;
8007 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8015 hardcode_shlibpath_var=no
8016 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8017 export_dynamic_flag_spec='${wl}-E'
8018 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8019 # Instead, shared libraries are loaded at an image base (0x10000000 by
8020 # default) and relocated if they conflict, which is a slow very memory
8021 # consuming and fragmenting process. To avoid this, we pick a random,
8022 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8023 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8024 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8025 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'
8028 linux* | k*bsd*-gnu)
8029 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8031 case $cc_basename,$host_cpu in
8032 pgcc*) # Portland Group C compiler
8033 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'
8034 tmp_addflag=' $pic_flag'
8036 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8037 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'
8038 tmp_addflag=' $pic_flag -Mnomain' ;;
8039 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8040 tmp_addflag=' -i_dynamic' ;;
8041 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8042 tmp_addflag=' -i_dynamic -nofor_main' ;;
8043 ifc* | ifort*) # Intel Fortran compiler
8044 tmp_addflag=' -nofor_main' ;;
8046 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8048 if test $supports_anon_versioning = yes; then
8049 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8050 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8051 $echo "local: *; };" >> $output_objdir/$libname.ver~
8052 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8060 netbsd* | netbsdelf*-gnu)
8061 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8062 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8065 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8066 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8071 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8075 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8076 *** create shared libraries on Solaris systems. Therefore, libtool
8077 *** is disabling shared libraries support. We urge you to upgrade GNU
8078 *** binutils to release 2.9.1 or newer. Another option is to modify
8079 *** your PATH or compiler configuration so that the native linker is
8080 *** used, and then restart.
8083 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8084 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8085 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8091 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8092 case `$LD -v 2>&1` in
8093 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8097 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8098 *** reliably create shared libraries on SCO systems. Therefore, libtool
8099 *** is disabling shared libraries support. We urge you to upgrade GNU
8100 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8101 *** your PATH or compiler configuration so that the native linker is
8102 *** used, and then restart.
8107 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8108 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8110 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8119 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8122 hardcode_shlibpath_var=no
8126 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8127 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8128 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8135 if test "$ld_shlibs" = no; then
8137 hardcode_libdir_flag_spec=
8138 export_dynamic_flag_spec=
8139 whole_archive_flag_spec=
8142 # PORTME fill in a description of your system's linker (not GNU ld)
8145 allow_undefined_flag=unsupported
8146 always_export_symbols=yes
8147 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'
8148 # Note: this linker hardcodes the directories in LIBPATH if there
8149 # are no directories specified by -L.
8150 hardcode_minus_L=yes
8151 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8152 # Neither direct hardcoding nor static linking is supported with a
8154 hardcode_direct=unsupported
8159 if test "$host_cpu" = ia64; then
8160 # On IA64, the linker does run time linking by default, so we don't
8161 # have to do anything special.
8162 aix_use_runtimelinking=no
8163 exp_sym_flag='-Bexport'
8166 # If we're using GNU nm, then we don't want the "-C" option.
8167 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8168 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8169 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'
8171 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'
8173 aix_use_runtimelinking=no
8175 # Test if we are trying to use run time linking or normal
8176 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8177 # need to do runtime linking.
8178 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8179 for ld_flag in $LDFLAGS; do
8180 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8181 aix_use_runtimelinking=yes
8188 exp_sym_flag='-bexport'
8189 no_entry_flag='-bnoentry'
8192 # When large executables or shared objects are built, AIX ld can
8193 # have problems creating the table of contents. If linking a library
8194 # or program results in "error TOC overflow" add -mminimal-toc to
8195 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8196 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8200 hardcode_libdir_separator=':'
8201 link_all_deplibs=yes
8203 if test "$GCC" = yes; then
8204 case $host_os in aix4.[012]|aix4.[012].*)
8205 # We only want to do this on AIX 4.2 and lower, the check
8206 # below for broken collect2 doesn't work under 4.3+
8207 collect2name=`${CC} -print-prog-name=collect2`
8208 if test -f "$collect2name" && \
8209 strings "$collect2name" | grep resolve_lib_name >/dev/null
8211 # We have reworked collect2
8214 # We have old collect2
8215 hardcode_direct=unsupported
8216 # It fails to find uninstalled libraries when the uninstalled
8217 # path is not listed in the libpath. Setting hardcode_minus_L
8218 # to unsupported forces relinking
8219 hardcode_minus_L=yes
8220 hardcode_libdir_flag_spec='-L$libdir'
8221 hardcode_libdir_separator=
8225 shared_flag='-shared'
8226 if test "$aix_use_runtimelinking" = yes; then
8227 shared_flag="$shared_flag "'${wl}-G'
8231 if test "$host_cpu" = ia64; then
8232 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8233 # chokes on -Wl,-G. The following line is correct:
8236 if test "$aix_use_runtimelinking" = yes; then
8237 shared_flag='${wl}-G'
8239 shared_flag='${wl}-bM:SRE'
8244 # It seems that -bexpall does not export symbols beginning with
8245 # underscore (_), so it is better to generate a list of symbols to export.
8246 always_export_symbols=yes
8247 if test "$aix_use_runtimelinking" = yes; then
8248 # Warning - without using the other runtime loading flags (-brtl),
8249 # -berok will link without error, but may produce a broken library.
8250 allow_undefined_flag='-berok'
8251 # Determine the default libpath from the value encoded in an empty executable.
8252 cat >conftest.$ac_ext <<_ACEOF
8255 cat confdefs.h >>conftest.$ac_ext
8256 cat >>conftest.$ac_ext <<_ACEOF
8257 /* end confdefs.h. */
8267 rm -f conftest.$ac_objext conftest$ac_exeext
8268 if { (ac_try="$ac_link"
8270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8271 *) ac_try_echo=$ac_try;;
8273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8274 (eval "$ac_link") 2>conftest.er1
8276 grep -v '^ *+' conftest.er1 >conftest.err
8278 cat conftest.err >&5
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); } && {
8281 test -z "$ac_c_werror_flag" ||
8282 test ! -s conftest.err
8283 } && test -s conftest$ac_exeext &&
8284 $as_test_x conftest$ac_exeext; then
8286 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8288 # Check for a 64-bit object if we didn't find anything.
8289 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8292 echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8299 conftest$ac_exeext conftest.$ac_ext
8300 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8302 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8303 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"
8305 if test "$host_cpu" = ia64; then
8306 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8307 allow_undefined_flag="-z nodefs"
8308 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"
8310 # Determine the default libpath from the value encoded in an empty executable.
8311 cat >conftest.$ac_ext <<_ACEOF
8314 cat confdefs.h >>conftest.$ac_ext
8315 cat >>conftest.$ac_ext <<_ACEOF
8316 /* end confdefs.h. */
8326 rm -f conftest.$ac_objext conftest$ac_exeext
8327 if { (ac_try="$ac_link"
8329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330 *) ac_try_echo=$ac_try;;
8332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8333 (eval "$ac_link") 2>conftest.er1
8335 grep -v '^ *+' conftest.er1 >conftest.err
8337 cat conftest.err >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } && {
8340 test -z "$ac_c_werror_flag" ||
8341 test ! -s conftest.err
8342 } && test -s conftest$ac_exeext &&
8343 $as_test_x conftest$ac_exeext; then
8345 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8347 # Check for a 64-bit object if we didn't find anything.
8348 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8351 echo "$as_me: failed program was:" >&5
8352 sed 's/^/| /' conftest.$ac_ext >&5
8357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8358 conftest$ac_exeext conftest.$ac_ext
8359 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8361 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8362 # Warning - without using the other run time loading flags,
8363 # -berok will link without error, but may produce a broken library.
8364 no_undefined_flag=' ${wl}-bernotok'
8365 allow_undefined_flag=' ${wl}-berok'
8366 # Exported symbols can be pulled into shared objects from archives
8367 whole_archive_flag_spec='$convenience'
8368 archive_cmds_need_lc=yes
8369 # This is similar to how AIX traditionally builds its shared libraries.
8370 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'
8376 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)'
8377 hardcode_libdir_flag_spec='-L$libdir'
8378 hardcode_minus_L=yes
8379 # see comment about different semantics on the GNU ld section
8384 export_dynamic_flag_spec=-rdynamic
8387 cygwin* | mingw* | pw32*)
8388 # When not using gcc, we currently assume that we are using
8389 # Microsoft Visual C++.
8390 # hardcode_libdir_flag_spec is actually meaningless, as there is
8391 # no search path for DLLs.
8392 hardcode_libdir_flag_spec=' '
8393 allow_undefined_flag=unsupported
8394 # Tell ltmain to make .lib files, not .a files.
8396 # Tell ltmain to make .dll files, not .so files.
8398 # FIXME: Setting linknames here is a bad hack.
8399 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8400 # The linker will automatically build a .lib file if we build a DLL.
8401 old_archive_From_new_cmds='true'
8402 # FIXME: Should let the user specify the lib program.
8403 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8404 fix_srcfile_path='`cygpath -w "$srcfile"`'
8405 enable_shared_with_static_runtimes=yes
8408 darwin* | rhapsody*)
8410 rhapsody* | darwin1.[012])
8411 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8414 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8415 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8417 case ${MACOSX_DEPLOYMENT_TARGET} in
8419 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8422 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8428 archive_cmds_need_lc=no
8430 hardcode_automatic=yes
8431 hardcode_shlibpath_var=unsupported
8432 whole_archive_flag_spec=''
8433 link_all_deplibs=yes
8434 if test "$GCC" = yes ; then
8435 output_verbose_link_cmd='echo'
8436 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8437 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8438 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8439 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8440 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}'
8442 case $cc_basename in
8444 output_verbose_link_cmd='echo'
8445 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8446 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8447 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8448 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8449 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}'
8459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8460 hardcode_libdir_flag_spec='-L$libdir'
8461 hardcode_shlibpath_var=no
8468 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8469 # support. Future versions do this automatically, but an explicit c++rt0.o
8470 # does not break anything, and helps significantly (at the cost of a little
8473 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8474 hardcode_libdir_flag_spec='-R$libdir'
8476 hardcode_shlibpath_var=no
8479 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8481 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8483 hardcode_minus_L=yes
8484 hardcode_shlibpath_var=no
8487 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8488 freebsd* | dragonfly*)
8489 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8490 hardcode_libdir_flag_spec='-R$libdir'
8492 hardcode_shlibpath_var=no
8496 if test "$GCC" = yes; then
8497 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'
8499 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'
8501 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8502 hardcode_libdir_separator=:
8505 # hardcode_minus_L: Not really in the search PATH,
8506 # but as the default location of the library.
8507 hardcode_minus_L=yes
8508 export_dynamic_flag_spec='${wl}-E'
8512 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8513 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8515 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8517 if test "$with_gnu_ld" = no; then
8518 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8519 hardcode_libdir_separator=:
8522 export_dynamic_flag_spec='${wl}-E'
8524 # hardcode_minus_L: Not really in the search PATH,
8525 # but as the default location of the library.
8526 hardcode_minus_L=yes
8531 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8534 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8537 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8540 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8546 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8549 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8552 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8556 if test "$with_gnu_ld" = no; then
8557 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8558 hardcode_libdir_separator=:
8562 hardcode_libdir_flag_spec_ld='+b $libdir'
8564 hardcode_shlibpath_var=no
8568 export_dynamic_flag_spec='${wl}-E'
8570 # hardcode_minus_L: Not really in the search PATH,
8571 # but as the default location of the library.
8572 hardcode_minus_L=yes
8578 irix5* | irix6* | nonstopux*)
8579 if test "$GCC" = yes; then
8580 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'
8582 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'
8583 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8585 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8586 hardcode_libdir_separator=:
8587 link_all_deplibs=yes
8590 netbsd* | netbsdelf*-gnu)
8591 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8592 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8594 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8596 hardcode_libdir_flag_spec='-R$libdir'
8598 hardcode_shlibpath_var=no
8602 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8604 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8605 hardcode_libdir_separator=:
8606 hardcode_shlibpath_var=no
8611 hardcode_shlibpath_var=no
8612 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8613 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8614 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8615 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8616 export_dynamic_flag_spec='${wl}-E'
8619 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8620 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8621 hardcode_libdir_flag_spec='-R$libdir'
8624 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8625 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8632 hardcode_libdir_flag_spec='-L$libdir'
8633 hardcode_minus_L=yes
8634 allow_undefined_flag=unsupported
8635 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'
8636 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8640 if test "$GCC" = yes; then
8641 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8642 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'
8644 allow_undefined_flag=' -expect_unresolved \*'
8645 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'
8647 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8648 hardcode_libdir_separator=:
8651 osf4* | osf5*) # as osf3* with the addition of -msym flag
8652 if test "$GCC" = yes; then
8653 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8654 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'
8655 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8657 allow_undefined_flag=' -expect_unresolved \*'
8658 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'
8659 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8660 $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'
8662 # Both c and cxx compiler support -rpath directly
8663 hardcode_libdir_flag_spec='-rpath $libdir'
8665 hardcode_libdir_separator=:
8669 no_undefined_flag=' -z text'
8670 if test "$GCC" = yes; then
8672 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8673 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8674 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8677 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8678 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8679 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8681 hardcode_libdir_flag_spec='-R$libdir'
8682 hardcode_shlibpath_var=no
8684 solaris2.[0-5] | solaris2.[0-5].*) ;;
8686 # The compiler driver will combine linker options so we
8687 # cannot just pass the convience library names through
8688 # without $wl, iff we do not link with $LD.
8689 # Luckily, gcc supports the same syntax we need for Sun Studio.
8690 # Supported since Solaris 2.6 (maybe 2.5.1?)
8693 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8695 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8698 link_all_deplibs=yes
8702 if test "x$host_vendor" = xsequent; then
8703 # Use $CC to link under sequent, because it throws in some extra .o
8704 # files that make .init and .fini sections work.
8705 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8707 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8709 hardcode_libdir_flag_spec='-L$libdir'
8711 hardcode_minus_L=yes
8712 hardcode_shlibpath_var=no
8716 case $host_vendor in
8718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8719 hardcode_direct=yes # is this really true???
8722 ## LD is ld it makes a PLAMLIB
8723 ## CC just makes a GrossModule.
8724 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8725 reload_cmds='$CC -r -o $output$reload_objs'
8729 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8730 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8733 runpath_var='LD_RUN_PATH'
8734 hardcode_shlibpath_var=no
8738 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8739 hardcode_shlibpath_var=no
8740 export_dynamic_flag_spec='-Bexport'
8744 if test -d /usr/nec; then
8745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8746 hardcode_shlibpath_var=no
8747 runpath_var=LD_RUN_PATH
8748 hardcode_runpath_var=yes
8753 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8754 no_undefined_flag='${wl}-z,text'
8755 archive_cmds_need_lc=no
8756 hardcode_shlibpath_var=no
8757 runpath_var='LD_RUN_PATH'
8759 if test "$GCC" = yes; then
8760 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8761 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8763 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8764 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8768 sysv5* | sco3.2v5* | sco5v6*)
8769 # Note: We can NOT use -z defs as we might desire, because we do not
8770 # link with -lc, and that would cause any symbols used from libc to
8771 # always be unresolved, which means just about no library would
8772 # ever link correctly. If we're not using GNU ld we use -z text
8773 # though, which does catch some bad symbols but isn't as heavy-handed
8775 no_undefined_flag='${wl}-z,text'
8776 allow_undefined_flag='${wl}-z,nodefs'
8777 archive_cmds_need_lc=no
8778 hardcode_shlibpath_var=no
8779 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8780 hardcode_libdir_separator=':'
8781 link_all_deplibs=yes
8782 export_dynamic_flag_spec='${wl}-Bexport'
8783 runpath_var='LD_RUN_PATH'
8785 if test "$GCC" = yes; then
8786 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8787 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8789 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8790 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8796 hardcode_libdir_flag_spec='-L$libdir'
8797 hardcode_shlibpath_var=no
8806 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8807 echo "${ECHO_T}$ld_shlibs" >&6; }
8808 test "$ld_shlibs" = no && can_build_shared=no
8811 # Do we need to explicitly link libc?
8813 case "x$archive_cmds_need_lc" in
8815 # Assume -lc should be added
8816 archive_cmds_need_lc=yes
8818 if test "$enable_shared" = yes && test "$GCC" = yes; then
8819 case $archive_cmds in
8821 # FIXME: we may have to deal with multi-command sequences.
8824 # Test whether the compiler implicitly links with -lc since on some
8825 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8826 # to ld, don't add -lc before -lgcc.
8827 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8828 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8830 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8833 (eval $ac_compile) 2>&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); } 2>conftest.err; then
8839 libobjs=conftest.$ac_objext
8841 wl=$lt_prog_compiler_wl
8842 pic_flag=$lt_prog_compiler_pic
8848 lt_save_allow_undefined_flag=$allow_undefined_flag
8849 allow_undefined_flag=
8850 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8851 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); }
8856 archive_cmds_need_lc=no
8858 archive_cmds_need_lc=yes
8860 allow_undefined_flag=$lt_save_allow_undefined_flag
8862 cat conftest.err 1>&5
8865 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8866 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8873 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8874 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8876 libname_spec='lib$name'
8884 shlibpath_overrides_runpath=unknown
8886 dynamic_linker="$host_os ld.so"
8887 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8888 if test "$GCC" = yes; then
8889 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8890 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8891 # if the path contains ";" then we assume it to be the separator
8892 # otherwise default to the standard path separator (i.e. ":") - it is
8893 # assumed that no part of a normal pathname contains ";" but that should
8894 # okay in the real world where ";" in dirpaths is itself problematic.
8895 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8897 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8900 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8902 need_lib_prefix=unknown
8903 hardcode_into_libs=no
8905 # when you set need_version to no, make sure it does not cause -set_version
8906 # flags to be left without arguments
8907 need_version=unknown
8912 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8913 shlibpath_var=LIBPATH
8915 # AIX 3 has no versioning support, so we append a major version to the name.
8916 soname_spec='${libname}${release}${shared_ext}$major'
8923 hardcode_into_libs=yes
8924 if test "$host_cpu" = ia64; then
8925 # AIX 5 supports IA64
8926 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8927 shlibpath_var=LD_LIBRARY_PATH
8929 # With GCC up to 2.95.x, collect2 would create an import file
8930 # for dependence libraries. The import file would start with
8931 # the line `#! .'. This would cause the generated library to
8932 # depend on `.', always an invalid library. This was fixed in
8933 # development snapshots of GCC prior to 3.0.
8935 aix4 | aix4.[01] | aix4.[01].*)
8936 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8938 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8945 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8946 # soname into executable. Probably we can add versioning support to
8947 # collect2, so additional links can be useful in future.
8948 if test "$aix_use_runtimelinking" = yes; then
8949 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8950 # instead of lib<name>.a to let people know that these are not
8951 # typical AIX shared libraries.
8952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8954 # We preserve .a as extension for shared libraries through AIX4.2
8955 # and later when we are not doing run time linking.
8956 library_names_spec='${libname}${release}.a $libname.a'
8957 soname_spec='${libname}${release}${shared_ext}$major'
8959 shlibpath_var=LIBPATH
8964 library_names_spec='$libname.ixlibrary $libname.a'
8965 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8966 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'
8970 library_names_spec='${libname}${shared_ext}'
8971 dynamic_linker="$host_os ld.so"
8972 shlibpath_var=LIBRARY_PATH
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8979 soname_spec='${libname}${release}${shared_ext}$major'
8980 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8981 shlibpath_var=LD_LIBRARY_PATH
8982 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8983 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8984 # the default ld.so.conf also contains /usr/contrib/lib and
8985 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8986 # libtool to hard-code these into programs
8989 cygwin* | mingw* | pw32*)
8990 version_type=windows
8995 case $GCC,$host_os in
8996 yes,cygwin* | yes,mingw* | yes,pw32*)
8997 library_names_spec='$libname.dll.a'
8998 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8999 postinstall_cmds='base_file=`basename \${file}`~
9000 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9001 dldir=$destdir/`dirname \$dlpath`~
9002 test -d \$dldir || mkdir -p \$dldir~
9003 $install_prog $dir/$dlname \$dldir/$dlname~
9004 chmod a+x \$dldir/$dlname'
9005 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9006 dlpath=$dir/\$dldll~
9008 shlibpath_overrides_runpath=yes
9012 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9013 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9014 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9017 # MinGW DLLs use traditional 'lib' prefix
9018 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9019 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9020 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9021 # It is most probably a Windows format PATH printed by
9022 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9023 # path with ; separators, and with drive letters. We can handle the
9024 # drive letters (cygwin fileutils understands them), so leave them,
9025 # especially as we might pass files found there to a mingw objdump,
9026 # which wouldn't understand a cygwinified path. Ahh.
9027 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9029 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9033 # pw32 DLLs use 'pw' prefix rather than 'lib'
9034 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9040 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9043 dynamic_linker='Win32 ld.exe'
9044 # FIXME: first we should search . and the directory the executable is in
9048 darwin* | rhapsody*)
9049 dynamic_linker="$host_os dyld"
9053 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9054 soname_spec='${libname}${release}${major}$shared_ext'
9055 shlibpath_overrides_runpath=yes
9056 shlibpath_var=DYLD_LIBRARY_PATH
9057 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9058 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9059 if test "$GCC" = yes; then
9060 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9062 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9064 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9072 soname_spec='${libname}${release}${shared_ext}$major'
9073 shlibpath_var=LD_LIBRARY_PATH
9080 freebsd* | dragonfly*)
9081 # DragonFly does not have aout. When/if they implement a new
9082 # versioning mechanism, adjust this.
9083 if test -x /usr/bin/objformat; then
9084 objformat=`/usr/bin/objformat`
9087 freebsd[123]*) objformat=aout ;;
9091 version_type=freebsd-$objformat
9092 case $version_type in
9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9099 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9103 shlibpath_var=LD_LIBRARY_PATH
9106 shlibpath_overrides_runpath=yes
9108 freebsd3.[01]* | freebsdelf3.[01]*)
9109 shlibpath_overrides_runpath=yes
9110 hardcode_into_libs=yes
9112 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9113 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9114 shlibpath_overrides_runpath=no
9115 hardcode_into_libs=yes
9117 freebsd*) # from 4.6 on
9118 shlibpath_overrides_runpath=yes
9119 hardcode_into_libs=yes
9128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9129 soname_spec='${libname}${release}${shared_ext}$major'
9130 shlibpath_var=LD_LIBRARY_PATH
9131 hardcode_into_libs=yes
9134 hpux9* | hpux10* | hpux11*)
9135 # Give a soname corresponding to the major version so that dld.sl refuses to
9136 # link against other versions.
9143 hardcode_into_libs=yes
9144 dynamic_linker="$host_os dld.so"
9145 shlibpath_var=LD_LIBRARY_PATH
9146 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9148 soname_spec='${libname}${release}${shared_ext}$major'
9149 if test "X$HPUX_IA64_MODE" = X32; then
9150 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9152 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9154 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9158 hardcode_into_libs=yes
9159 dynamic_linker="$host_os dld.sl"
9160 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9161 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9163 soname_spec='${libname}${release}${shared_ext}$major'
9164 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9165 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9169 dynamic_linker="$host_os dld.sl"
9170 shlibpath_var=SHLIB_PATH
9171 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9173 soname_spec='${libname}${release}${shared_ext}$major'
9176 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9177 postinstall_cmds='chmod 555 $lib'
9184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9185 soname_spec='${libname}${release}${shared_ext}$major'
9186 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9187 shlibpath_var=LD_LIBRARY_PATH
9188 shlibpath_overrides_runpath=no
9189 hardcode_into_libs=yes
9192 irix5* | irix6* | nonstopux*)
9194 nonstopux*) version_type=nonstopux ;;
9196 if test "$lt_cv_prog_gnu_ld" = yes; then
9204 soname_spec='${libname}${release}${shared_ext}$major'
9205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9207 irix5* | nonstopux*)
9211 case $LD in # libtool.m4 will add one of these switches to LD
9212 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9213 libsuff= shlibsuff= libmagic=32-bit;;
9214 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9215 libsuff=32 shlibsuff=N32 libmagic=N32;;
9216 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9217 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9218 *) libsuff= shlibsuff= libmagic=never-match;;
9222 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9223 shlibpath_overrides_runpath=no
9224 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9225 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9226 hardcode_into_libs=yes
9229 # No shared lib support for Linux oldld, aout, or coff.
9230 linux*oldld* | linux*aout* | linux*coff*)
9234 # This must be Linux ELF.
9235 linux* | k*bsd*-gnu)
9239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9240 soname_spec='${libname}${release}${shared_ext}$major'
9241 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9242 shlibpath_var=LD_LIBRARY_PATH
9243 shlibpath_overrides_runpath=no
9244 # This implies no fast_install, which is unacceptable.
9245 # Some rework will be needed to allow for fast_install
9246 # before this can be enabled.
9247 hardcode_into_libs=yes
9249 # Append ld.so.conf contents to the search path
9250 if test -f /etc/ld.so.conf; then
9251 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9252 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9255 # We used to test for /lib/ld.so.1 and disable shared libraries on
9256 # powerpc, because MkLinux only supported shared libraries with the
9257 # GNU dynamic linker. Since this was broken with cross compilers,
9258 # most powerpc-linux boxes support dynamic linking these days and
9259 # people can always --disable-shared, the test was removed, and we
9260 # assume the GNU/Linux dynamic linker is in use.
9261 dynamic_linker='GNU/Linux ld.so'
9268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9269 soname_spec='${libname}${release}${shared_ext}$major'
9270 shlibpath_var=LD_LIBRARY_PATH
9271 shlibpath_overrides_runpath=no
9272 hardcode_into_libs=yes
9273 dynamic_linker='NetBSD ld.elf_so'
9280 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9283 dynamic_linker='NetBSD (a.out) ld.so'
9285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9286 soname_spec='${libname}${release}${shared_ext}$major'
9287 dynamic_linker='NetBSD ld.elf_so'
9289 shlibpath_var=LD_LIBRARY_PATH
9290 shlibpath_overrides_runpath=yes
9291 hardcode_into_libs=yes
9296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9297 shlibpath_var=LD_LIBRARY_PATH
9298 shlibpath_overrides_runpath=yes
9305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9306 soname_spec='${libname}${release}${shared_ext}$major'
9307 shlibpath_var=LD_LIBRARY_PATH
9308 shlibpath_overrides_runpath=yes
9313 sys_lib_dlsearch_path_spec="/usr/lib"
9315 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9317 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9318 *) need_version=no ;;
9320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9321 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9322 shlibpath_var=LD_LIBRARY_PATH
9323 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9325 openbsd2.[89] | openbsd2.[89].*)
9326 shlibpath_overrides_runpath=no
9329 shlibpath_overrides_runpath=yes
9333 shlibpath_overrides_runpath=yes
9338 libname_spec='$name'
9341 library_names_spec='$libname${shared_ext} $libname.a'
9342 dynamic_linker='OS/2 ld.exe'
9343 shlibpath_var=LIBPATH
9346 osf3* | osf4* | osf5*)
9350 soname_spec='${libname}${release}${shared_ext}$major'
9351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9352 shlibpath_var=LD_LIBRARY_PATH
9353 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9354 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9362 soname_spec='${libname}${release}${shared_ext}$major'
9363 shlibpath_var=LD_LIBRARY_PATH
9364 shlibpath_overrides_runpath=yes
9365 hardcode_into_libs=yes
9366 # ldd complains unless libraries are executable
9367 postinstall_cmds='chmod +x $lib'
9372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9373 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9374 shlibpath_var=LD_LIBRARY_PATH
9375 shlibpath_overrides_runpath=yes
9376 if test "$with_gnu_ld" = yes; then
9384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9385 soname_spec='${libname}${release}${shared_ext}$major'
9386 shlibpath_var=LD_LIBRARY_PATH
9387 case $host_vendor in
9389 shlibpath_overrides_runpath=no
9391 export_dynamic_flag_spec='${wl}-Blargedynsym'
9392 runpath_var=LD_RUN_PATH
9400 shlibpath_overrides_runpath=no
9401 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9407 if test -d /usr/nec ;then
9409 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9410 soname_spec='$libname${shared_ext}.$major'
9411 shlibpath_var=LD_LIBRARY_PATH
9415 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9416 version_type=freebsd-elf
9419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9420 soname_spec='${libname}${release}${shared_ext}$major'
9421 shlibpath_var=LD_LIBRARY_PATH
9422 hardcode_into_libs=yes
9423 if test "$with_gnu_ld" = yes; then
9424 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9425 shlibpath_overrides_runpath=no
9427 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9428 shlibpath_overrides_runpath=yes
9431 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9435 sys_lib_dlsearch_path_spec='/usr/lib'
9440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9441 soname_spec='${libname}${release}${shared_ext}$major'
9442 shlibpath_var=LD_LIBRARY_PATH
9449 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9450 echo "${ECHO_T}$dynamic_linker" >&6; }
9451 test "$dynamic_linker" = no && can_build_shared=no
9453 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9454 if test "$GCC" = yes; then
9455 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9458 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9459 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9461 if test -n "$hardcode_libdir_flag_spec" || \
9462 test -n "$runpath_var" || \
9463 test "X$hardcode_automatic" = "Xyes" ; then
9465 # We can hardcode non-existant directories.
9466 if test "$hardcode_direct" != no &&
9467 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9468 # have to relink, otherwise we might link with an installed library
9469 # when we should be linking with a yet-to-be-installed one
9470 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9471 test "$hardcode_minus_L" != no; then
9472 # Linking always hardcodes the temporary library directory.
9473 hardcode_action=relink
9475 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9476 hardcode_action=immediate
9479 # We cannot hardcode anything, or else we can only hardcode existing
9481 hardcode_action=unsupported
9483 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9484 echo "${ECHO_T}$hardcode_action" >&6; }
9486 if test "$hardcode_action" = relink; then
9487 # Fast installation is not supported
9488 enable_fast_install=no
9489 elif test "$shlibpath_overrides_runpath" = yes ||
9490 test "$enable_shared" = no; then
9491 # Fast installation is not necessary
9492 enable_fast_install=needless
9497 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9498 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9499 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9500 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9501 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9502 { echo "$as_me:$LINENO: result: yes" >&5
9503 echo "${ECHO_T}yes" >&6; }
9505 # FIXME - insert some real tests, host_os isn't really good enough
9508 if test -n "$STRIP" ; then
9509 striplib="$STRIP -x"
9510 { echo "$as_me:$LINENO: result: yes" >&5
9511 echo "${ECHO_T}yes" >&6; }
9513 { echo "$as_me:$LINENO: result: no" >&5
9514 echo "${ECHO_T}no" >&6; }
9518 { echo "$as_me:$LINENO: result: no" >&5
9519 echo "${ECHO_T}no" >&6; }
9524 if test "x$enable_dlopen" != xyes; then
9525 enable_dlopen=unknown
9526 enable_dlopen_self=unknown
9527 enable_dlopen_self_static=unknown
9534 lt_cv_dlopen="load_add_on"
9536 lt_cv_dlopen_self=yes
9540 lt_cv_dlopen="LoadLibrary"
9545 lt_cv_dlopen="dlopen"
9550 # if libdl is installed we need to link against it
9551 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9552 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9553 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9554 echo $ECHO_N "(cached) $ECHO_C" >&6
9556 ac_check_lib_save_LIBS=$LIBS
9558 cat >conftest.$ac_ext <<_ACEOF
9561 cat confdefs.h >>conftest.$ac_ext
9562 cat >>conftest.$ac_ext <<_ACEOF
9563 /* end confdefs.h. */
9565 /* Override any GCC internal prototype to avoid an error.
9566 Use char because int might match the return type of a GCC
9567 builtin and then its argument prototype would still apply. */
9580 rm -f conftest.$ac_objext conftest$ac_exeext
9581 if { (ac_try="$ac_link"
9583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9584 *) ac_try_echo=$ac_try;;
9586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9587 (eval "$ac_link") 2>conftest.er1
9589 grep -v '^ *+' conftest.er1 >conftest.err
9591 cat conftest.err >&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); } && {
9594 test -z "$ac_c_werror_flag" ||
9595 test ! -s conftest.err
9596 } && test -s conftest$ac_exeext &&
9597 $as_test_x conftest$ac_exeext; then
9598 ac_cv_lib_dl_dlopen=yes
9600 echo "$as_me: failed program was:" >&5
9601 sed 's/^/| /' conftest.$ac_ext >&5
9603 ac_cv_lib_dl_dlopen=no
9606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9607 conftest$ac_exeext conftest.$ac_ext
9608 LIBS=$ac_check_lib_save_LIBS
9610 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9611 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9612 if test $ac_cv_lib_dl_dlopen = yes; then
9613 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9618 lt_cv_dlopen_self=yes
9625 { echo "$as_me:$LINENO: checking for shl_load" >&5
9626 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9627 if test "${ac_cv_func_shl_load+set}" = set; then
9628 echo $ECHO_N "(cached) $ECHO_C" >&6
9630 cat >conftest.$ac_ext <<_ACEOF
9633 cat confdefs.h >>conftest.$ac_ext
9634 cat >>conftest.$ac_ext <<_ACEOF
9635 /* end confdefs.h. */
9636 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9638 #define shl_load innocuous_shl_load
9640 /* System header to define __stub macros and hopefully few prototypes,
9641 which can conflict with char shl_load (); below.
9642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9643 <limits.h> exists even on freestanding compilers. */
9646 # include <limits.h>
9648 # include <assert.h>
9653 /* Override any GCC internal prototype to avoid an error.
9654 Use char because int might match the return type of a GCC
9655 builtin and then its argument prototype would still apply. */
9660 /* The GNU C library defines this for functions which it implements
9661 to always fail with ENOSYS. Some functions are actually named
9662 something starting with __ and the normal name is an alias. */
9663 #if defined __stub_shl_load || defined __stub___shl_load
9675 rm -f conftest.$ac_objext conftest$ac_exeext
9676 if { (ac_try="$ac_link"
9678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9679 *) ac_try_echo=$ac_try;;
9681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9682 (eval "$ac_link") 2>conftest.er1
9684 grep -v '^ *+' conftest.er1 >conftest.err
9686 cat conftest.err >&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); } && {
9689 test -z "$ac_c_werror_flag" ||
9690 test ! -s conftest.err
9691 } && test -s conftest$ac_exeext &&
9692 $as_test_x conftest$ac_exeext; then
9693 ac_cv_func_shl_load=yes
9695 echo "$as_me: failed program was:" >&5
9696 sed 's/^/| /' conftest.$ac_ext >&5
9698 ac_cv_func_shl_load=no
9701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9702 conftest$ac_exeext conftest.$ac_ext
9704 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9705 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9706 if test $ac_cv_func_shl_load = yes; then
9707 lt_cv_dlopen="shl_load"
9709 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9710 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9711 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9712 echo $ECHO_N "(cached) $ECHO_C" >&6
9714 ac_check_lib_save_LIBS=$LIBS
9716 cat >conftest.$ac_ext <<_ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9723 /* Override any GCC internal prototype to avoid an error.
9724 Use char because int might match the return type of a GCC
9725 builtin and then its argument prototype would still apply. */
9738 rm -f conftest.$ac_objext conftest$ac_exeext
9739 if { (ac_try="$ac_link"
9741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9742 *) ac_try_echo=$ac_try;;
9744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9745 (eval "$ac_link") 2>conftest.er1
9747 grep -v '^ *+' conftest.er1 >conftest.err
9749 cat conftest.err >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } && {
9752 test -z "$ac_c_werror_flag" ||
9753 test ! -s conftest.err
9754 } && test -s conftest$ac_exeext &&
9755 $as_test_x conftest$ac_exeext; then
9756 ac_cv_lib_dld_shl_load=yes
9758 echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9761 ac_cv_lib_dld_shl_load=no
9764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9765 conftest$ac_exeext conftest.$ac_ext
9766 LIBS=$ac_check_lib_save_LIBS
9768 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9769 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9770 if test $ac_cv_lib_dld_shl_load = yes; then
9771 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9773 { echo "$as_me:$LINENO: checking for dlopen" >&5
9774 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9775 if test "${ac_cv_func_dlopen+set}" = set; then
9776 echo $ECHO_N "(cached) $ECHO_C" >&6
9778 cat >conftest.$ac_ext <<_ACEOF
9781 cat confdefs.h >>conftest.$ac_ext
9782 cat >>conftest.$ac_ext <<_ACEOF
9783 /* end confdefs.h. */
9784 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9786 #define dlopen innocuous_dlopen
9788 /* System header to define __stub macros and hopefully few prototypes,
9789 which can conflict with char dlopen (); below.
9790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9791 <limits.h> exists even on freestanding compilers. */
9794 # include <limits.h>
9796 # include <assert.h>
9801 /* Override any GCC internal prototype to avoid an error.
9802 Use char because int might match the return type of a GCC
9803 builtin and then its argument prototype would still apply. */
9808 /* The GNU C library defines this for functions which it implements
9809 to always fail with ENOSYS. Some functions are actually named
9810 something starting with __ and the normal name is an alias. */
9811 #if defined __stub_dlopen || defined __stub___dlopen
9823 rm -f conftest.$ac_objext conftest$ac_exeext
9824 if { (ac_try="$ac_link"
9826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9827 *) ac_try_echo=$ac_try;;
9829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9830 (eval "$ac_link") 2>conftest.er1
9832 grep -v '^ *+' conftest.er1 >conftest.err
9834 cat conftest.err >&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); } && {
9837 test -z "$ac_c_werror_flag" ||
9838 test ! -s conftest.err
9839 } && test -s conftest$ac_exeext &&
9840 $as_test_x conftest$ac_exeext; then
9841 ac_cv_func_dlopen=yes
9843 echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.$ac_ext >&5
9846 ac_cv_func_dlopen=no
9849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9850 conftest$ac_exeext conftest.$ac_ext
9852 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9853 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9854 if test $ac_cv_func_dlopen = yes; then
9855 lt_cv_dlopen="dlopen"
9857 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9858 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9859 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9860 echo $ECHO_N "(cached) $ECHO_C" >&6
9862 ac_check_lib_save_LIBS=$LIBS
9864 cat >conftest.$ac_ext <<_ACEOF
9867 cat confdefs.h >>conftest.$ac_ext
9868 cat >>conftest.$ac_ext <<_ACEOF
9869 /* end confdefs.h. */
9871 /* Override any GCC internal prototype to avoid an error.
9872 Use char because int might match the return type of a GCC
9873 builtin and then its argument prototype would still apply. */
9886 rm -f conftest.$ac_objext conftest$ac_exeext
9887 if { (ac_try="$ac_link"
9889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890 *) ac_try_echo=$ac_try;;
9892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893 (eval "$ac_link") 2>conftest.er1
9895 grep -v '^ *+' conftest.er1 >conftest.err
9897 cat conftest.err >&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); } && {
9900 test -z "$ac_c_werror_flag" ||
9901 test ! -s conftest.err
9902 } && test -s conftest$ac_exeext &&
9903 $as_test_x conftest$ac_exeext; then
9904 ac_cv_lib_dl_dlopen=yes
9906 echo "$as_me: failed program was:" >&5
9907 sed 's/^/| /' conftest.$ac_ext >&5
9909 ac_cv_lib_dl_dlopen=no
9912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9913 conftest$ac_exeext conftest.$ac_ext
9914 LIBS=$ac_check_lib_save_LIBS
9916 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9917 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9918 if test $ac_cv_lib_dl_dlopen = yes; then
9919 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9921 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9922 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9923 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9926 ac_check_lib_save_LIBS=$LIBS
9928 cat >conftest.$ac_ext <<_ACEOF
9931 cat confdefs.h >>conftest.$ac_ext
9932 cat >>conftest.$ac_ext <<_ACEOF
9933 /* end confdefs.h. */
9935 /* Override any GCC internal prototype to avoid an error.
9936 Use char because int might match the return type of a GCC
9937 builtin and then its argument prototype would still apply. */
9950 rm -f conftest.$ac_objext conftest$ac_exeext
9951 if { (ac_try="$ac_link"
9953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954 *) ac_try_echo=$ac_try;;
9956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957 (eval "$ac_link") 2>conftest.er1
9959 grep -v '^ *+' conftest.er1 >conftest.err
9961 cat conftest.err >&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); } && {
9964 test -z "$ac_c_werror_flag" ||
9965 test ! -s conftest.err
9966 } && test -s conftest$ac_exeext &&
9967 $as_test_x conftest$ac_exeext; then
9968 ac_cv_lib_svld_dlopen=yes
9970 echo "$as_me: failed program was:" >&5
9971 sed 's/^/| /' conftest.$ac_ext >&5
9973 ac_cv_lib_svld_dlopen=no
9976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9977 conftest$ac_exeext conftest.$ac_ext
9978 LIBS=$ac_check_lib_save_LIBS
9980 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9981 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9982 if test $ac_cv_lib_svld_dlopen = yes; then
9983 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9985 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9986 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9987 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9988 echo $ECHO_N "(cached) $ECHO_C" >&6
9990 ac_check_lib_save_LIBS=$LIBS
9992 cat >conftest.$ac_ext <<_ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
9999 /* Override any GCC internal prototype to avoid an error.
10000 Use char because int might match the return type of a GCC
10001 builtin and then its argument prototype would still apply. */
10009 return dld_link ();
10014 rm -f conftest.$ac_objext conftest$ac_exeext
10015 if { (ac_try="$ac_link"
10016 case "(($ac_try" in
10017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10018 *) ac_try_echo=$ac_try;;
10020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10021 (eval "$ac_link") 2>conftest.er1
10023 grep -v '^ *+' conftest.er1 >conftest.err
10025 cat conftest.err >&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); } && {
10028 test -z "$ac_c_werror_flag" ||
10029 test ! -s conftest.err
10030 } && test -s conftest$ac_exeext &&
10031 $as_test_x conftest$ac_exeext; then
10032 ac_cv_lib_dld_dld_link=yes
10034 echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10037 ac_cv_lib_dld_dld_link=no
10040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10041 conftest$ac_exeext conftest.$ac_ext
10042 LIBS=$ac_check_lib_save_LIBS
10044 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10045 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10046 if test $ac_cv_lib_dld_dld_link = yes; then
10047 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10068 if test "x$lt_cv_dlopen" != xno; then
10074 case $lt_cv_dlopen in
10076 save_CPPFLAGS="$CPPFLAGS"
10077 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10079 save_LDFLAGS="$LDFLAGS"
10080 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10083 LIBS="$lt_cv_dlopen_libs $LIBS"
10085 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10086 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10087 if test "${lt_cv_dlopen_self+set}" = set; then
10088 echo $ECHO_N "(cached) $ECHO_C" >&6
10090 if test "$cross_compiling" = yes; then :
10091 lt_cv_dlopen_self=cross
10093 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10094 lt_status=$lt_dlunknown
10095 cat > conftest.$ac_ext <<EOF
10096 #line 10096 "configure"
10097 #include "confdefs.h"
10106 # define LT_DLGLOBAL RTLD_GLOBAL
10109 # define LT_DLGLOBAL DL_GLOBAL
10111 # define LT_DLGLOBAL 0
10115 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10116 find out it does not work in some platform. */
10117 #ifndef LT_DLLAZY_OR_NOW
10119 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10122 # define LT_DLLAZY_OR_NOW DL_LAZY
10125 # define LT_DLLAZY_OR_NOW RTLD_NOW
10128 # define LT_DLLAZY_OR_NOW DL_NOW
10130 # define LT_DLLAZY_OR_NOW 0
10138 extern "C" void exit (int);
10141 void fnord() { int i=42;}
10144 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10145 int status = $lt_dlunknown;
10149 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10150 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10151 /* dlclose (self); */
10159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10160 (eval $ac_link) 2>&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10164 (./conftest; exit; ) >&5 2>/dev/null
10166 case x$lt_status in
10167 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10168 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10169 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10172 # compilation failed
10173 lt_cv_dlopen_self=no
10180 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10181 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10183 if test "x$lt_cv_dlopen_self" = xyes; then
10184 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10185 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10186 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10187 if test "${lt_cv_dlopen_self_static+set}" = set; then
10188 echo $ECHO_N "(cached) $ECHO_C" >&6
10190 if test "$cross_compiling" = yes; then :
10191 lt_cv_dlopen_self_static=cross
10193 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10194 lt_status=$lt_dlunknown
10195 cat > conftest.$ac_ext <<EOF
10196 #line 10196 "configure"
10197 #include "confdefs.h"
10206 # define LT_DLGLOBAL RTLD_GLOBAL
10209 # define LT_DLGLOBAL DL_GLOBAL
10211 # define LT_DLGLOBAL 0
10215 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10216 find out it does not work in some platform. */
10217 #ifndef LT_DLLAZY_OR_NOW
10219 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10222 # define LT_DLLAZY_OR_NOW DL_LAZY
10225 # define LT_DLLAZY_OR_NOW RTLD_NOW
10228 # define LT_DLLAZY_OR_NOW DL_NOW
10230 # define LT_DLLAZY_OR_NOW 0
10238 extern "C" void exit (int);
10241 void fnord() { int i=42;}
10244 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10245 int status = $lt_dlunknown;
10249 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10250 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10251 /* dlclose (self); */
10259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10260 (eval $ac_link) 2>&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10264 (./conftest; exit; ) >&5 2>/dev/null
10266 case x$lt_status in
10267 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10268 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10269 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10272 # compilation failed
10273 lt_cv_dlopen_self_static=no
10280 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10281 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10284 CPPFLAGS="$save_CPPFLAGS"
10285 LDFLAGS="$save_LDFLAGS"
10290 case $lt_cv_dlopen_self in
10291 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10292 *) enable_dlopen_self=unknown ;;
10295 case $lt_cv_dlopen_self_static in
10296 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10297 *) enable_dlopen_self_static=unknown ;;
10302 # Report which library types will actually be built
10303 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10304 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10305 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10306 echo "${ECHO_T}$can_build_shared" >&6; }
10308 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10309 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10310 test "$can_build_shared" = "no" && enable_shared=no
10312 # On AIX, shared libraries and static libraries use the same namespace, and
10313 # are all built from PIC.
10316 test "$enable_shared" = yes && enable_static=no
10317 if test -n "$RANLIB"; then
10318 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10319 postinstall_cmds='$RANLIB $lib'
10324 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10325 test "$enable_shared" = yes && enable_static=no
10329 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10330 echo "${ECHO_T}$enable_shared" >&6; }
10332 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10333 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10334 # Make sure either enable_shared or enable_static is yes.
10335 test "$enable_shared" = yes || enable_static=yes
10336 { echo "$as_me:$LINENO: result: $enable_static" >&5
10337 echo "${ECHO_T}$enable_static" >&6; }
10339 # The else clause should only fire when bootstrapping the
10340 # libtool distribution, otherwise you forgot to ship ltmain.sh
10341 # with your package, and you will get complaints that there are
10342 # no rules to generate ltmain.sh.
10343 if test -f "$ltmain"; then
10344 # See if we are running on zsh, and set the options which allow our commands through
10345 # without removal of \ escapes.
10346 if test -n "${ZSH_VERSION+set}" ; then
10347 setopt NO_GLOB_SUBST
10349 # Now quote all the things that may contain metacharacters while being
10350 # careful not to overquote the AC_SUBSTed values. We take copies of the
10351 # variables and quote the copies for generation of the libtool script.
10352 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10354 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10355 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10356 deplibs_check_method reload_flag reload_cmds need_locks \
10357 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10358 lt_cv_sys_global_symbol_to_c_name_address \
10359 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10360 old_postinstall_cmds old_postuninstall_cmds \
10364 lt_prog_compiler_wl \
10365 lt_prog_compiler_pic \
10366 lt_prog_compiler_static \
10367 lt_prog_compiler_no_builtin_flag \
10368 export_dynamic_flag_spec \
10369 thread_safe_flag_spec \
10370 whole_archive_flag_spec \
10371 enable_shared_with_static_runtimes \
10373 old_archive_from_new_cmds \
10378 compiler_lib_search_path \
10380 archive_expsym_cmds \
10382 postuninstall_cmds \
10383 old_archive_from_expsyms_cmds \
10384 allow_undefined_flag \
10385 no_undefined_flag \
10386 export_symbols_cmds \
10387 hardcode_libdir_flag_spec \
10388 hardcode_libdir_flag_spec_ld \
10389 hardcode_libdir_separator \
10390 hardcode_automatic \
10392 module_expsym_cmds \
10393 lt_cv_prog_compiler_c_o \
10395 include_expsyms; do
10398 old_archive_cmds | \
10399 old_archive_from_new_cmds | \
10401 archive_expsym_cmds | \
10403 module_expsym_cmds | \
10404 old_archive_from_expsyms_cmds | \
10405 export_symbols_cmds | \
10406 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10407 postinstall_cmds | postuninstall_cmds | \
10408 old_postinstall_cmds | old_postuninstall_cmds | \
10409 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10410 # Double-quote double-evaled strings.
10411 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10414 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10420 *'\$0 --fallback-echo"')
10421 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10425 cfgfile="${ofile}T"
10426 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10428 { echo "$as_me:$LINENO: creating $ofile" >&5
10429 echo "$as_me: creating $ofile" >&6;}
10431 cat <<__EOF__ >> "$cfgfile"
10434 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10435 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10436 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10438 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10439 # Free Software Foundation, Inc.
10441 # This file is part of GNU Libtool:
10442 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10444 # This program is free software; you can redistribute it and/or modify
10445 # it under the terms of the GNU General Public License as published by
10446 # the Free Software Foundation; either version 2 of the License, or
10447 # (at your option) any later version.
10449 # This program is distributed in the hope that it will be useful, but
10450 # WITHOUT ANY WARRANTY; without even the implied warranty of
10451 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10452 # General Public License for more details.
10454 # You should have received a copy of the GNU General Public License
10455 # along with this program; if not, write to the Free Software
10456 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10458 # As a special exception to the GNU General Public License, if you
10459 # distribute this file as part of a program that contains a
10460 # configuration script generated by Autoconf, you may include it under
10461 # the same distribution terms that you use for the rest of that program.
10463 # A sed program that does not truncate output.
10466 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10467 Xsed="$SED -e 1s/^X//"
10469 # The HP-UX ksh and POSIX shell print the target directory to stdout
10470 # if CDPATH is set.
10471 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10473 # The names of the tagged configurations supported by this script.
10476 # ### BEGIN LIBTOOL CONFIG
10478 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10480 # Shell to use when invoking shell scripts.
10483 # Whether or not to build shared libraries.
10484 build_libtool_libs=$enable_shared
10486 # Whether or not to build static libraries.
10487 build_old_libs=$enable_static
10489 # Whether or not to add -lc for building shared libraries.
10490 build_libtool_need_lc=$archive_cmds_need_lc
10492 # Whether or not to disallow shared libs when runtime libs are static
10493 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10495 # Whether or not to optimize for fast installation.
10496 fast_install=$enable_fast_install
10499 host_alias=$host_alias
10503 # The build system.
10504 build_alias=$build_alias
10508 # An echo program that does not interpret backslashes.
10513 AR_FLAGS=$lt_AR_FLAGS
10518 # LTCC compiler flags.
10519 LTCFLAGS=$lt_LTCFLAGS
10521 # A language-specific compiler.
10524 # Is the compiler the GNU C compiler?
10530 # The linker used to build libraries.
10533 # Whether we need hard or soft links.
10536 # A BSD-compatible nm program.
10539 # A symbol stripping program
10542 # Used to examine libraries when file_magic_cmd begins "file"
10543 MAGIC_CMD=$MAGIC_CMD
10545 # Used on cygwin: DLL creation program.
10548 # Used on cygwin: object dumper.
10551 # Used on cygwin: assembler.
10554 # The name of the directory that contains temporary libtool files.
10557 # How to create reloadable object files.
10558 reload_flag=$lt_reload_flag
10559 reload_cmds=$lt_reload_cmds
10561 # How to pass a linker flag through the compiler.
10562 wl=$lt_lt_prog_compiler_wl
10564 # Object file suffix (normally "o").
10565 objext="$ac_objext"
10567 # Old archive suffix (normally "a").
10570 # Shared library suffix (normally ".so").
10571 shrext_cmds='$shrext_cmds'
10573 # Executable file suffix (normally "").
10576 # Additional compiler flags for building library objects.
10577 pic_flag=$lt_lt_prog_compiler_pic
10580 # What is the maximum length of a command?
10581 max_cmd_len=$lt_cv_sys_max_cmd_len
10583 # Does compiler simultaneously support -c and -o options?
10584 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10586 # Must we lock files when doing compilation?
10587 need_locks=$lt_need_locks
10589 # Do we need the lib prefix for modules?
10590 need_lib_prefix=$need_lib_prefix
10592 # Do we need a version for libraries?
10593 need_version=$need_version
10595 # Whether dlopen is supported.
10596 dlopen_support=$enable_dlopen
10598 # Whether dlopen of programs is supported.
10599 dlopen_self=$enable_dlopen_self
10601 # Whether dlopen of statically linked programs is supported.
10602 dlopen_self_static=$enable_dlopen_self_static
10604 # Compiler flag to prevent dynamic linking.
10605 link_static_flag=$lt_lt_prog_compiler_static
10607 # Compiler flag to turn off builtin functions.
10608 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10610 # Compiler flag to allow reflexive dlopens.
10611 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10613 # Compiler flag to generate shared objects directly from archives.
10614 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10616 # Compiler flag to generate thread-safe objects.
10617 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10619 # Library versioning type.
10620 version_type=$version_type
10622 # Format of library name prefix.
10623 libname_spec=$lt_libname_spec
10625 # List of archive names. First name is the real one, the rest are links.
10626 # The last name is the one that the linker finds with -lNAME.
10627 library_names_spec=$lt_library_names_spec
10629 # The coded name of the library, if different from the real name.
10630 soname_spec=$lt_soname_spec
10632 # Commands used to build and install an old-style archive.
10634 old_archive_cmds=$lt_old_archive_cmds
10635 old_postinstall_cmds=$lt_old_postinstall_cmds
10636 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10638 # Create an old-style archive from a shared archive.
10639 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10641 # Create a temporary old-style archive to link instead of a shared archive.
10642 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10644 # Commands used to build and install a shared archive.
10645 archive_cmds=$lt_archive_cmds
10646 archive_expsym_cmds=$lt_archive_expsym_cmds
10647 postinstall_cmds=$lt_postinstall_cmds
10648 postuninstall_cmds=$lt_postuninstall_cmds
10650 # Commands used to build a loadable module (assumed same as above if empty)
10651 module_cmds=$lt_module_cmds
10652 module_expsym_cmds=$lt_module_expsym_cmds
10654 # Commands to strip libraries.
10655 old_striplib=$lt_old_striplib
10656 striplib=$lt_striplib
10658 # Dependencies to place before the objects being linked to create a
10660 predep_objects=$lt_predep_objects
10662 # Dependencies to place after the objects being linked to create a
10664 postdep_objects=$lt_postdep_objects
10666 # Dependencies to place before the objects being linked to create a
10668 predeps=$lt_predeps
10670 # Dependencies to place after the objects being linked to create a
10672 postdeps=$lt_postdeps
10674 # The library search path used internally by the compiler when linking
10675 # a shared library.
10676 compiler_lib_search_path=$lt_compiler_lib_search_path
10678 # Method to check whether dependent libraries are shared objects.
10679 deplibs_check_method=$lt_deplibs_check_method
10681 # Command to use when deplibs_check_method == file_magic.
10682 file_magic_cmd=$lt_file_magic_cmd
10684 # Flag that allows shared libraries with undefined symbols to be built.
10685 allow_undefined_flag=$lt_allow_undefined_flag
10687 # Flag that forces no undefined symbols.
10688 no_undefined_flag=$lt_no_undefined_flag
10690 # Commands used to finish a libtool library installation in a directory.
10691 finish_cmds=$lt_finish_cmds
10693 # Same as above, but a single script fragment to be evaled but not shown.
10694 finish_eval=$lt_finish_eval
10696 # Take the output of nm and produce a listing of raw symbols and C names.
10697 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10699 # Transform the output of nm in a proper C declaration
10700 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10702 # Transform the output of nm in a C name address pair
10703 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10705 # This is the shared library runtime path variable.
10706 runpath_var=$runpath_var
10708 # This is the shared library path variable.
10709 shlibpath_var=$shlibpath_var
10711 # Is shlibpath searched before the hard-coded library search path?
10712 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10714 # How to hardcode a shared library path into an executable.
10715 hardcode_action=$hardcode_action
10717 # Whether we should hardcode library paths into libraries.
10718 hardcode_into_libs=$hardcode_into_libs
10720 # Flag to hardcode \$libdir into a binary during linking.
10721 # This must work even if \$libdir does not exist.
10722 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10724 # If ld is used when linking, flag to hardcode \$libdir into
10725 # a binary during linking. This must work even if \$libdir does
10727 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10729 # Whether we need a single -rpath flag with a separated argument.
10730 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10732 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10733 # resulting binary.
10734 hardcode_direct=$hardcode_direct
10736 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10737 # resulting binary.
10738 hardcode_minus_L=$hardcode_minus_L
10740 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10741 # the resulting binary.
10742 hardcode_shlibpath_var=$hardcode_shlibpath_var
10744 # Set to yes if building a shared library automatically hardcodes DIR into the library
10745 # and all subsequent libraries and executables linked against it.
10746 hardcode_automatic=$hardcode_automatic
10748 # Variables whose values should be saved in libtool wrapper scripts and
10749 # restored at relink time.
10750 variables_saved_for_relink="$variables_saved_for_relink"
10752 # Whether libtool must link a program against all its dependency libraries.
10753 link_all_deplibs=$link_all_deplibs
10755 # Compile-time system search path for libraries
10756 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10758 # Run-time system search path for libraries
10759 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10761 # Fix the shell variable \$srcfile for the compiler.
10762 fix_srcfile_path="$fix_srcfile_path"
10764 # Set to yes if exported symbols are required.
10765 always_export_symbols=$always_export_symbols
10767 # The commands to list exported symbols.
10768 export_symbols_cmds=$lt_export_symbols_cmds
10770 # The commands to extract the exported symbol list from a shared archive.
10771 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10773 # Symbols that should not be listed in the preloaded symbols.
10774 exclude_expsyms=$lt_exclude_expsyms
10776 # Symbols that must always be exported.
10777 include_expsyms=$lt_include_expsyms
10779 # ### END LIBTOOL CONFIG
10786 cat <<\EOF >> "$cfgfile"
10788 # AIX sometimes has problems with the GCC collect2 program. For some
10789 # reason, if we set the COLLECT_NAMES environment variable, the problems
10790 # vanish in a puff of smoke.
10791 if test "X${COLLECT_NAMES+set}" != Xset; then
10793 export COLLECT_NAMES
10799 # We use sed instead of cat because bash on DJGPP gets confused if
10800 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10801 # text mode, it properly converts lines to CR/LF. This bash problem
10802 # is reportedly fixed, but why not run on old versions too?
10803 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10805 mv -f "$cfgfile" "$ofile" || \
10806 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10810 # If there is no Makefile yet, we rely on a make rule to execute
10811 # `config.status --recheck' to rerun these tests and create the
10812 # libtool script then.
10813 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10814 if test -f "$ltmain_in"; then
10815 test -f Makefile && make "$ltmain"
10821 ac_cpp='$CPP $CPPFLAGS'
10822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10829 # Check whether --with-tags was given.
10830 if test "${with_tags+set}" = set; then
10831 withval=$with_tags; tagnames="$withval"
10835 if test -f "$ltmain" && test -n "$tagnames"; then
10836 if test ! -f "${ofile}"; then
10837 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10838 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10841 if test -z "$LTCC"; then
10842 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10843 if test -z "$LTCC"; then
10844 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10845 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10847 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10848 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10851 if test -z "$LTCFLAGS"; then
10852 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10855 # Extract list of available tagged configurations in $ofile.
10856 # Note that this assumes the entire list is on one line.
10857 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10859 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10860 for tagname in $tagnames; do
10862 # Check whether tagname contains only valid characters
10863 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10865 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10866 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10867 { (exit 1); exit 1; }; }
10871 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10873 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10874 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10875 { (exit 1); exit 1; }; }
10878 # Update the list of available tags.
10879 if test -n "$tagname"; then
10880 echo appending configuration tag \"$tagname\" to $ofile
10884 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10885 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10886 (test "X$CXX" != "Xg++"))) ; then
10888 ac_cpp='$CXXCPP $CPPFLAGS'
10889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10896 archive_cmds_need_lc_CXX=no
10897 allow_undefined_flag_CXX=
10898 always_export_symbols_CXX=no
10899 archive_expsym_cmds_CXX=
10900 export_dynamic_flag_spec_CXX=
10901 hardcode_direct_CXX=no
10902 hardcode_libdir_flag_spec_CXX=
10903 hardcode_libdir_flag_spec_ld_CXX=
10904 hardcode_libdir_separator_CXX=
10905 hardcode_minus_L_CXX=no
10906 hardcode_shlibpath_var_CXX=unsupported
10907 hardcode_automatic_CXX=no
10909 module_expsym_cmds_CXX=
10910 link_all_deplibs_CXX=unknown
10911 old_archive_cmds_CXX=$old_archive_cmds
10912 no_undefined_flag_CXX=
10913 whole_archive_flag_spec_CXX=
10914 enable_shared_with_static_runtimes_CXX=no
10916 # Dependencies to place before and after the object being linked:
10917 predep_objects_CXX=
10918 postdep_objects_CXX=
10921 compiler_lib_search_path_CXX=
10923 # Source file extension for C++ test sources.
10926 # Object file extension for compiled C++ test sources.
10930 # Code to be used in simple compile tests
10931 lt_simple_compile_test_code="int some_variable = 0;\n"
10933 # Code to be used in simple link tests
10934 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10936 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10938 # If no C compiler was specified, use CC.
10941 # If no C compiler flags were specified, use CFLAGS.
10942 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10944 # Allow CC to be a program name with arguments.
10948 # save warnings/boilerplate of simple test code
10949 ac_outfile=conftest.$ac_objext
10950 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10951 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10952 _lt_compiler_boilerplate=`cat conftest.err`
10955 ac_outfile=conftest.$ac_objext
10956 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10957 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10958 _lt_linker_boilerplate=`cat conftest.err`
10962 # Allow CC to be a program name with arguments.
10967 lt_save_with_gnu_ld=$with_gnu_ld
10968 lt_save_path_LD=$lt_cv_path_LD
10969 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10970 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10972 $as_unset lt_cv_prog_gnu_ld
10974 if test -n "${lt_cv_path_LDCXX+set}"; then
10975 lt_cv_path_LD=$lt_cv_path_LDCXX
10977 $as_unset lt_cv_path_LD
10979 test -z "${LDCXX+set}" || LD=$LDCXX
10983 for cc_temp in $compiler""; do
10985 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10986 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10991 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10994 # We don't want -fno-exception wen compiling C++ code, so set the
10995 # no_builtin_flag separately
10996 if test "$GXX" = yes; then
10997 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10999 lt_prog_compiler_no_builtin_flag_CXX=
11002 if test "$GXX" = yes; then
11003 # Set up default GNU C++ configuration
11006 # Check whether --with-gnu-ld was given.
11007 if test "${with_gnu_ld+set}" = set; then
11008 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11014 if test "$GCC" = yes; then
11015 # Check if gcc -print-prog-name=ld gives a path.
11016 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11017 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11020 # gcc leaves a trailing carriage return which upsets mingw
11021 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11023 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11026 # Accept absolute paths.
11028 re_direlt='/[^/][^/]*/\.\./'
11029 # Canonicalize the pathname of ld
11030 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11031 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11032 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11034 test -z "$LD" && LD="$ac_prog"
11037 # If it fails, then pretend we aren't using GCC.
11041 # If it is relative, then search for the first ld in PATH.
11042 with_gnu_ld=unknown
11045 elif test "$with_gnu_ld" = yes; then
11046 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11047 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11049 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11050 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11052 if test "${lt_cv_path_LD+set}" = set; then
11053 echo $ECHO_N "(cached) $ECHO_C" >&6
11055 if test -z "$LD"; then
11056 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11057 for ac_dir in $PATH; do
11059 test -z "$ac_dir" && ac_dir=.
11060 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11061 lt_cv_path_LD="$ac_dir/$ac_prog"
11062 # Check to see if the program is GNU ld. I'd rather use --version,
11063 # but apparently some variants of GNU ld only accept -v.
11064 # Break only if it was the GNU/non-GNU ld that we prefer.
11065 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11066 *GNU* | *'with BFD'*)
11067 test "$with_gnu_ld" != no && break
11070 test "$with_gnu_ld" != yes && break
11077 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11081 LD="$lt_cv_path_LD"
11082 if test -n "$LD"; then
11083 { echo "$as_me:$LINENO: result: $LD" >&5
11084 echo "${ECHO_T}$LD" >&6; }
11086 { echo "$as_me:$LINENO: result: no" >&5
11087 echo "${ECHO_T}no" >&6; }
11089 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11090 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11091 { (exit 1); exit 1; }; }
11092 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11093 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11094 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11095 echo $ECHO_N "(cached) $ECHO_C" >&6
11097 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11098 case `$LD -v 2>&1 </dev/null` in
11099 *GNU* | *'with BFD'*)
11100 lt_cv_prog_gnu_ld=yes
11103 lt_cv_prog_gnu_ld=no
11107 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11108 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11109 with_gnu_ld=$lt_cv_prog_gnu_ld
11113 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11114 # archiving commands below assume that GNU ld is being used.
11115 if test "$with_gnu_ld" = yes; then
11116 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11117 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'
11119 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11120 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11122 # If archive_cmds runs LD, not CC, wlarc should be empty
11123 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11124 # investigate it a little bit more. (MM)
11127 # ancient GNU ld didn't support --whole-archive et. al.
11128 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11129 grep 'no-whole-archive' > /dev/null; then
11130 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11132 whole_archive_flag_spec_CXX=
11138 # A generic and very simple default shared library creation
11139 # command for GNU C++ for the case where it uses the native
11140 # linker, instead of GNU ld. If possible, this setting should
11141 # overridden to take advantage of the native linker features on
11142 # the platform it is being used on.
11143 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11146 # Commands to make compiler produce verbose output that lists
11147 # what "hidden" libraries, object files and flags are used when
11148 # linking a shared library.
11149 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11157 # PORTME: fill in a description of your system's C++ link characteristics
11158 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11159 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11163 # FIXME: insert proper C++ library support
11167 if test "$host_cpu" = ia64; then
11168 # On IA64, the linker does run time linking by default, so we don't
11169 # have to do anything special.
11170 aix_use_runtimelinking=no
11171 exp_sym_flag='-Bexport'
11174 aix_use_runtimelinking=no
11176 # Test if we are trying to use run time linking or normal
11177 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11178 # need to do runtime linking.
11179 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11180 for ld_flag in $LDFLAGS; do
11183 aix_use_runtimelinking=yes
11191 exp_sym_flag='-bexport'
11192 no_entry_flag='-bnoentry'
11195 # When large executables or shared objects are built, AIX ld can
11196 # have problems creating the table of contents. If linking a library
11197 # or program results in "error TOC overflow" add -mminimal-toc to
11198 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11199 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11201 archive_cmds_CXX=''
11202 hardcode_direct_CXX=yes
11203 hardcode_libdir_separator_CXX=':'
11204 link_all_deplibs_CXX=yes
11206 if test "$GXX" = yes; then
11207 case $host_os in aix4.[012]|aix4.[012].*)
11208 # We only want to do this on AIX 4.2 and lower, the check
11209 # below for broken collect2 doesn't work under 4.3+
11210 collect2name=`${CC} -print-prog-name=collect2`
11211 if test -f "$collect2name" && \
11212 strings "$collect2name" | grep resolve_lib_name >/dev/null
11214 # We have reworked collect2
11215 hardcode_direct_CXX=yes
11217 # We have old collect2
11218 hardcode_direct_CXX=unsupported
11219 # It fails to find uninstalled libraries when the uninstalled
11220 # path is not listed in the libpath. Setting hardcode_minus_L
11221 # to unsupported forces relinking
11222 hardcode_minus_L_CXX=yes
11223 hardcode_libdir_flag_spec_CXX='-L$libdir'
11224 hardcode_libdir_separator_CXX=
11228 shared_flag='-shared'
11229 if test "$aix_use_runtimelinking" = yes; then
11230 shared_flag="$shared_flag "'${wl}-G'
11234 if test "$host_cpu" = ia64; then
11235 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11236 # chokes on -Wl,-G. The following line is correct:
11239 if test "$aix_use_runtimelinking" = yes; then
11240 shared_flag='${wl}-G'
11242 shared_flag='${wl}-bM:SRE'
11247 # It seems that -bexpall does not export symbols beginning with
11248 # underscore (_), so it is better to generate a list of symbols to export.
11249 always_export_symbols_CXX=yes
11250 if test "$aix_use_runtimelinking" = yes; then
11251 # Warning - without using the other runtime loading flags (-brtl),
11252 # -berok will link without error, but may produce a broken library.
11253 allow_undefined_flag_CXX='-berok'
11254 # Determine the default libpath from the value encoded in an empty executable.
11255 cat >conftest.$ac_ext <<_ACEOF
11258 cat confdefs.h >>conftest.$ac_ext
11259 cat >>conftest.$ac_ext <<_ACEOF
11260 /* end confdefs.h. */
11270 rm -f conftest.$ac_objext conftest$ac_exeext
11271 if { (ac_try="$ac_link"
11272 case "(($ac_try" in
11273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11274 *) ac_try_echo=$ac_try;;
11276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11277 (eval "$ac_link") 2>conftest.er1
11279 grep -v '^ *+' conftest.er1 >conftest.err
11281 cat conftest.err >&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); } && {
11284 test -z "$ac_cxx_werror_flag" ||
11285 test ! -s conftest.err
11286 } && test -s conftest$ac_exeext &&
11287 $as_test_x conftest$ac_exeext; then
11289 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11291 # Check for a 64-bit object if we didn't find anything.
11292 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11295 echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.$ac_ext >&5
11301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11302 conftest$ac_exeext conftest.$ac_ext
11303 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11305 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11307 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"
11309 if test "$host_cpu" = ia64; then
11310 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11311 allow_undefined_flag_CXX="-z nodefs"
11312 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"
11314 # Determine the default libpath from the value encoded in an empty executable.
11315 cat >conftest.$ac_ext <<_ACEOF
11318 cat confdefs.h >>conftest.$ac_ext
11319 cat >>conftest.$ac_ext <<_ACEOF
11320 /* end confdefs.h. */
11330 rm -f conftest.$ac_objext conftest$ac_exeext
11331 if { (ac_try="$ac_link"
11332 case "(($ac_try" in
11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_link") 2>conftest.er1
11339 grep -v '^ *+' conftest.er1 >conftest.err
11341 cat conftest.err >&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } && {
11344 test -z "$ac_cxx_werror_flag" ||
11345 test ! -s conftest.err
11346 } && test -s conftest$ac_exeext &&
11347 $as_test_x conftest$ac_exeext; then
11349 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11351 # Check for a 64-bit object if we didn't find anything.
11352 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11355 echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.$ac_ext >&5
11361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11362 conftest$ac_exeext conftest.$ac_ext
11363 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11365 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11366 # Warning - without using the other run time loading flags,
11367 # -berok will link without error, but may produce a broken library.
11368 no_undefined_flag_CXX=' ${wl}-bernotok'
11369 allow_undefined_flag_CXX=' ${wl}-berok'
11370 # Exported symbols can be pulled into shared objects from archives
11371 whole_archive_flag_spec_CXX='$convenience'
11372 archive_cmds_need_lc_CXX=yes
11373 # This is similar to how AIX traditionally builds its shared libraries.
11374 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'
11380 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11381 allow_undefined_flag_CXX=unsupported
11382 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11383 # support --undefined. This deserves some investigation. FIXME
11384 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11391 case $cc_basename in
11393 # FIXME: insert proper C++ library support
11399 cygwin* | mingw* | pw32*)
11400 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11401 # as there is no search path for DLLs.
11402 hardcode_libdir_flag_spec_CXX='-L$libdir'
11403 allow_undefined_flag_CXX=unsupported
11404 always_export_symbols_CXX=no
11405 enable_shared_with_static_runtimes_CXX=yes
11407 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11408 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'
11409 # If the export-symbols file already is a .def file (1st line
11410 # is EXPORTS), use it as is; otherwise, prepend...
11411 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11412 cp $export_symbols $output_objdir/$soname.def;
11414 echo EXPORTS > $output_objdir/$soname.def;
11415 cat $export_symbols >> $output_objdir/$soname.def;
11417 $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'
11422 darwin* | rhapsody*)
11424 rhapsody* | darwin1.[012])
11425 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11428 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11429 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11431 case ${MACOSX_DEPLOYMENT_TARGET} in
11433 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11436 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11442 archive_cmds_need_lc_CXX=no
11443 hardcode_direct_CXX=no
11444 hardcode_automatic_CXX=yes
11445 hardcode_shlibpath_var_CXX=unsupported
11446 whole_archive_flag_spec_CXX=''
11447 link_all_deplibs_CXX=yes
11449 if test "$GXX" = yes ; then
11450 lt_int_apple_cc_single_mod=no
11451 output_verbose_link_cmd='echo'
11452 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11453 lt_int_apple_cc_single_mod=yes
11455 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11456 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11458 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'
11460 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11461 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11462 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11463 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11465 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11467 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}'
11469 case $cc_basename in
11471 output_verbose_link_cmd='echo'
11472 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11473 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11474 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11475 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11476 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}'
11486 case $cc_basename in
11488 # FIXME: insert proper C++ library support
11492 # Green Hills C++ Compiler
11493 # FIXME: insert proper C++ library support
11497 # FIXME: insert proper C++ library support
11503 # C++ shared libraries reported to be fairly broken before switch to ELF
11507 archive_cmds_need_lc_CXX=no
11509 freebsd* | dragonfly*)
11510 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11517 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11518 hardcode_libdir_separator_CXX=:
11519 export_dynamic_flag_spec_CXX='${wl}-E'
11520 hardcode_direct_CXX=yes
11521 hardcode_minus_L_CXX=yes # Not in the search PATH,
11522 # but as the default
11523 # location of the library.
11525 case $cc_basename in
11527 # FIXME: insert proper C++ library support
11531 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'
11532 # Commands to make compiler produce verbose output that lists
11533 # what "hidden" libraries, object files and flags are used when
11534 # linking a shared library.
11536 # There doesn't appear to be a way to prevent this compiler from
11537 # explicitly linking system object files so we need to strip them
11538 # from the output so that they don't get included in the library
11540 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'
11543 if test "$GXX" = yes; then
11544 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'
11546 # FIXME: insert proper C++ library support
11553 if test $with_gnu_ld = no; then
11554 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11555 hardcode_libdir_separator_CXX=:
11559 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11562 export_dynamic_flag_spec_CXX='${wl}-E'
11568 hardcode_direct_CXX=no
11569 hardcode_shlibpath_var_CXX=no
11572 hardcode_direct_CXX=yes
11573 hardcode_minus_L_CXX=yes # Not in the search PATH,
11574 # but as the default
11575 # location of the library.
11579 case $cc_basename in
11581 # FIXME: insert proper C++ library support
11587 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11590 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11593 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11596 # Commands to make compiler produce verbose output that lists
11597 # what "hidden" libraries, object files and flags are used when
11598 # linking a shared library.
11600 # There doesn't appear to be a way to prevent this compiler from
11601 # explicitly linking system object files so we need to strip them
11602 # from the output so that they don't get included in the library
11604 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'
11607 if test "$GXX" = yes; then
11608 if test $with_gnu_ld = no; then
11611 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11614 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11617 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'
11622 # FIXME: insert proper C++ library support
11629 hardcode_direct_CXX=no
11630 hardcode_shlibpath_var_CXX=no
11631 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11632 export_dynamic_flag_spec_CXX='${wl}-E'
11633 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11634 # Instead, shared libraries are loaded at an image base (0x10000000 by
11635 # default) and relocated if they conflict, which is a slow very memory
11636 # consuming and fragmenting process. To avoid this, we pick a random,
11637 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11638 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11639 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'
11640 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'
11643 case $cc_basename in
11646 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'
11648 # Archives containing C++ object files must be created using
11649 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11650 # necessary to make sure instantiated templates are included
11652 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11655 if test "$GXX" = yes; then
11656 if test "$with_gnu_ld" = no; then
11657 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'
11659 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'
11662 link_all_deplibs_CXX=yes
11665 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11666 hardcode_libdir_separator_CXX=:
11668 linux* | k*bsd*-gnu)
11669 case $cc_basename in
11671 # Kuck and Associates, Inc. (KAI) C++ Compiler
11673 # KCC will only create a shared library if the output file
11674 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11675 # to its proper name (with version) after linking.
11676 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'
11677 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'
11678 # Commands to make compiler produce verbose output that lists
11679 # what "hidden" libraries, object files and flags are used when
11680 # linking a shared library.
11682 # There doesn't appear to be a way to prevent this compiler from
11683 # explicitly linking system object files so we need to strip them
11684 # from the output so that they don't get included in the library
11686 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'
11688 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11689 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11691 # Archives containing C++ object files must be created using
11692 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11693 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11698 # version 8.0 and above of icpc choke on multiply defined symbols
11699 # if we add $predep_objects and $postdep_objects, however 7.1 and
11700 # earlier do not add the objects themselves.
11701 case `$CC -V 2>&1` in
11703 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11704 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'
11706 *) # Version 8.0 or newer
11709 ia64*) tmp_idyn=' -i_dynamic';;
11711 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11712 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'
11715 archive_cmds_need_lc_CXX=no
11716 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11717 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11718 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11721 # Portland Group C++ compiler
11722 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11723 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'
11725 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11726 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11727 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'
11731 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11732 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'
11734 runpath_var=LD_RUN_PATH
11735 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11736 hardcode_libdir_separator_CXX=:
11738 # Commands to make compiler produce verbose output that lists
11739 # what "hidden" libraries, object files and flags are used when
11740 # linking a shared library.
11742 # There doesn't appear to be a way to prevent this compiler from
11743 # explicitly linking system object files so we need to strip them
11744 # from the output so that they don't get included in the library
11746 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'
11751 # FIXME: insert proper C++ library support
11755 # FIXME: insert proper C++ library support
11759 case $cc_basename in
11761 # FIXME: insert proper C++ library support
11765 # FIXME: insert proper C++ library support
11770 netbsd* | netbsdelf*-gnu)
11771 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11772 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11774 hardcode_libdir_flag_spec_CXX='-R$libdir'
11775 hardcode_direct_CXX=yes
11776 hardcode_shlibpath_var_CXX=no
11778 # Workaround some broken pre-1.5 toolchains
11779 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11782 # C++ shared libraries are fairly broken
11786 hardcode_direct_CXX=yes
11787 hardcode_shlibpath_var_CXX=no
11788 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11789 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11790 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11791 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11792 export_dynamic_flag_spec_CXX='${wl}-E'
11793 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11795 output_verbose_link_cmd='echo'
11798 case $cc_basename in
11800 # Kuck and Associates, Inc. (KAI) C++ Compiler
11802 # KCC will only create a shared library if the output file
11803 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11804 # to its proper name (with version) after linking.
11805 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'
11807 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11808 hardcode_libdir_separator_CXX=:
11810 # Archives containing C++ object files must be created using
11811 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11812 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11816 # Rational C++ 2.4.1
11817 # FIXME: insert proper C++ library support
11821 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11822 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'
11824 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11825 hardcode_libdir_separator_CXX=:
11827 # Commands to make compiler produce verbose output that lists
11828 # what "hidden" libraries, object files and flags are used when
11829 # linking a shared library.
11831 # There doesn't appear to be a way to prevent this compiler from
11832 # explicitly linking system object files so we need to strip them
11833 # from the output so that they don't get included in the library
11835 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'
11838 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11839 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11840 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'
11842 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11843 hardcode_libdir_separator_CXX=:
11845 # Commands to make compiler produce verbose output that lists
11846 # what "hidden" libraries, object files and flags are used when
11847 # linking a shared library.
11848 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11851 # FIXME: insert proper C++ library support
11858 case $cc_basename in
11860 # Kuck and Associates, Inc. (KAI) C++ Compiler
11862 # KCC will only create a shared library if the output file
11863 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11864 # to its proper name (with version) after linking.
11865 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'
11867 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11868 hardcode_libdir_separator_CXX=:
11870 # Archives containing C++ object files must be created using
11871 # the KAI C++ compiler.
11872 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11875 # Rational C++ 2.4.1
11876 # FIXME: insert proper C++ library support
11880 allow_undefined_flag_CXX=' -expect_unresolved \*'
11881 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'
11882 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11883 echo "-hidden">> $lib.exp~
11884 $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~
11887 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11888 hardcode_libdir_separator_CXX=:
11890 # Commands to make compiler produce verbose output that lists
11891 # what "hidden" libraries, object files and flags are used when
11892 # linking a shared library.
11894 # There doesn't appear to be a way to prevent this compiler from
11895 # explicitly linking system object files so we need to strip them
11896 # from the output so that they don't get included in the library
11898 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'
11901 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11902 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11903 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'
11905 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11906 hardcode_libdir_separator_CXX=:
11908 # Commands to make compiler produce verbose output that lists
11909 # what "hidden" libraries, object files and flags are used when
11910 # linking a shared library.
11911 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11914 # FIXME: insert proper C++ library support
11921 # FIXME: insert proper C++ library support
11925 case $cc_basename in
11928 # FIXME: insert proper C++ library support
11933 # FIXME: insert proper C++ library support
11937 # FIXME: insert proper C++ library support
11943 case $cc_basename in
11945 # Sun C++ 4.2, 5.x and Centerline C++
11946 archive_cmds_need_lc_CXX=yes
11947 no_undefined_flag_CXX=' -zdefs'
11948 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11949 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11950 $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'
11952 hardcode_libdir_flag_spec_CXX='-R$libdir'
11953 hardcode_shlibpath_var_CXX=no
11955 solaris2.[0-5] | solaris2.[0-5].*) ;;
11957 # The C++ compiler is used as linker so we must use $wl
11958 # flag to pass the commands to the underlying system
11959 # linker. We must also pass each convience library through
11960 # to the system linker between allextract/defaultextract.
11961 # The C++ compiler will combine linker options so we
11962 # cannot just pass the convience library names through
11964 # Supported since Solaris 2.6 (maybe 2.5.1?)
11965 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11968 link_all_deplibs_CXX=yes
11970 output_verbose_link_cmd='echo'
11972 # Archives containing C++ object files must be created using
11973 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11974 # necessary to make sure instantiated templates are included
11976 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11979 # Green Hills C++ Compiler
11980 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11982 # The C++ compiler must be used to create the archive.
11983 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11986 # GNU C++ compiler with Solaris linker
11987 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11988 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11989 if $CC --version | grep -v '^2\.7' > /dev/null; then
11990 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11991 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11992 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11994 # Commands to make compiler produce verbose output that lists
11995 # what "hidden" libraries, object files and flags are used when
11996 # linking a shared library.
11997 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11999 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12001 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12002 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12003 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12005 # Commands to make compiler produce verbose output that lists
12006 # what "hidden" libraries, object files and flags are used when
12007 # linking a shared library.
12008 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12011 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12016 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12017 no_undefined_flag_CXX='${wl}-z,text'
12018 archive_cmds_need_lc_CXX=no
12019 hardcode_shlibpath_var_CXX=no
12020 runpath_var='LD_RUN_PATH'
12022 case $cc_basename in
12024 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12025 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12028 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12029 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12033 sysv5* | sco3.2v5* | sco5v6*)
12034 # Note: We can NOT use -z defs as we might desire, because we do not
12035 # link with -lc, and that would cause any symbols used from libc to
12036 # always be unresolved, which means just about no library would
12037 # ever link correctly. If we're not using GNU ld we use -z text
12038 # though, which does catch some bad symbols but isn't as heavy-handed
12040 # For security reasons, it is highly recommended that you always
12041 # use absolute paths for naming shared libraries, and exclude the
12042 # DT_RUNPATH tag from executables and libraries. But doing so
12043 # requires that you compile everything twice, which is a pain.
12044 # So that behaviour is only enabled if SCOABSPATH is set to a
12045 # non-empty value in the environment. Most likely only useful for
12046 # creating official distributions of packages.
12047 # This is a hack until libtool officially supports absolute path
12048 # names for shared libraries.
12049 no_undefined_flag_CXX='${wl}-z,text'
12050 allow_undefined_flag_CXX='${wl}-z,nodefs'
12051 archive_cmds_need_lc_CXX=no
12052 hardcode_shlibpath_var_CXX=no
12053 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12054 hardcode_libdir_separator_CXX=':'
12055 link_all_deplibs_CXX=yes
12056 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12057 runpath_var='LD_RUN_PATH'
12059 case $cc_basename in
12061 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12062 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12065 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12066 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12071 case $cc_basename in
12073 # NonStop-UX NCC 3.20
12074 # FIXME: insert proper C++ library support
12078 # FIXME: insert proper C++ library support
12084 # FIXME: insert proper C++ library support
12088 # FIXME: insert proper C++ library support
12092 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12093 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12094 test "$ld_shlibs_CXX" = no && can_build_shared=no
12100 cat > conftest.$ac_ext <<EOF
12104 Foo (void) { a = 0; }
12110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12111 (eval $ac_compile) 2>&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); }; then
12115 # Parse the compiler output and extract the necessary
12116 # objects, libraries and library flags.
12118 # Sentinel used to keep track of whether or not we are before
12119 # the conftest object file.
12120 pre_test_object_deps_done=no
12122 # The `*' in the case matches for architectures that use `case' in
12123 # $output_verbose_cmd can trigger glob expansion during the loop
12124 # eval without this substitution.
12125 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12127 for p in `eval $output_verbose_link_cmd`; do
12131 # Some compilers place space between "-{L,R}" and the path.
12132 # Remove the space.
12133 if test $p = "-L" \
12134 || test $p = "-R"; then
12141 if test "$pre_test_object_deps_done" = no; then
12144 # Internal compiler library paths should come after those
12145 # provided the user. The postdeps already come after the
12146 # user supplied libs so there is no need to process them.
12147 if test -z "$compiler_lib_search_path_CXX"; then
12148 compiler_lib_search_path_CXX="${prev}${p}"
12150 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12153 # The "-l" case would never come before the object being
12154 # linked, so don't bother handling this case.
12157 if test -z "$postdeps_CXX"; then
12158 postdeps_CXX="${prev}${p}"
12160 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12166 # This assumes that the test object file only shows up
12167 # once in the compiler output.
12168 if test "$p" = "conftest.$objext"; then
12169 pre_test_object_deps_done=yes
12173 if test "$pre_test_object_deps_done" = no; then
12174 if test -z "$predep_objects_CXX"; then
12175 predep_objects_CXX="$p"
12177 predep_objects_CXX="$predep_objects_CXX $p"
12180 if test -z "$postdep_objects_CXX"; then
12181 postdep_objects_CXX="$p"
12183 postdep_objects_CXX="$postdep_objects_CXX $p"
12188 *) ;; # Ignore the rest.
12196 echo "libtool.m4: error: problem compiling CXX test program"
12199 $rm -f confest.$objext
12201 # PORTME: override above test on systems where it is broken
12204 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12205 # hack all around it, let's just trust "g++" to DTRT.
12206 predep_objects_CXX=
12207 postdep_objects_CXX=
12212 case $cc_basename in
12214 # Adding this requires a known-good setup of shared libraries for
12215 # Sun compiler versions before 5.6, else PIC objects from an old
12216 # archive will be linked into the output, leading to subtle bugs.
12217 postdeps_CXX='-lCstd -lCrun'
12224 case " $postdeps_CXX " in
12225 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12228 lt_prog_compiler_wl_CXX=
12229 lt_prog_compiler_pic_CXX=
12230 lt_prog_compiler_static_CXX=
12232 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12233 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12235 # C++ specific cases for pic, static, wl, etc.
12236 if test "$GXX" = yes; then
12237 lt_prog_compiler_wl_CXX='-Wl,'
12238 lt_prog_compiler_static_CXX='-static'
12242 # All AIX code is PIC.
12243 if test "$host_cpu" = ia64; then
12244 # AIX 5 now supports IA64 processor
12245 lt_prog_compiler_static_CXX='-Bstatic'
12249 # FIXME: we need at least 68020 code to build shared libraries, but
12250 # adding the `-m68020' flag to GCC prevents building anything better,
12252 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12254 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12255 # PIC is the default for these OSes.
12257 mingw* | os2* | pw32*)
12258 # This hack is so that the source file can tell whether it is being
12259 # built for inclusion in a dll (and should export symbols for example).
12260 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12262 darwin* | rhapsody*)
12263 # PIC is the default on this platform
12264 # Common symbols not allowed in MH_DYLIB files
12265 lt_prog_compiler_pic_CXX='-fno-common'
12268 # DJGPP does not support shared libraries at all
12269 lt_prog_compiler_pic_CXX=
12272 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12273 # Instead, we relocate shared libraries at runtime.
12276 if test -d /usr/nec; then
12277 lt_prog_compiler_pic_CXX=-Kconform_pic
12281 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12282 # not for PA HP-UX.
12287 lt_prog_compiler_pic_CXX='-fPIC'
12292 lt_prog_compiler_pic_CXX='-fPIC'
12298 # All AIX code is PIC.
12299 if test "$host_cpu" = ia64; then
12300 # AIX 5 now supports IA64 processor
12301 lt_prog_compiler_static_CXX='-Bstatic'
12303 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12307 case $cc_basename in
12309 # Green Hills C++ Compiler
12310 # _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"
12315 # PIC is the default on this platform
12316 # Common symbols not allowed in MH_DYLIB files
12317 case $cc_basename in
12319 lt_prog_compiler_pic_CXX='-qnocommon'
12320 lt_prog_compiler_wl_CXX='-Wl,'
12325 case $cc_basename in
12327 lt_prog_compiler_pic_CXX='-KPIC'
12330 # Green Hills C++ Compiler
12331 lt_prog_compiler_pic_CXX='-pic'
12337 freebsd* | dragonfly*)
12338 # FreeBSD uses GNU C++
12340 hpux9* | hpux10* | hpux11*)
12341 case $cc_basename in
12343 lt_prog_compiler_wl_CXX='-Wl,'
12344 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12345 if test "$host_cpu" != ia64; then
12346 lt_prog_compiler_pic_CXX='+Z'
12350 lt_prog_compiler_wl_CXX='-Wl,'
12351 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12357 lt_prog_compiler_pic_CXX='+Z'
12366 # This is c89, which is MS Visual C++ (no shared libs)
12367 # Anyone wants to do a port?
12369 irix5* | irix6* | nonstopux*)
12370 case $cc_basename in
12372 lt_prog_compiler_wl_CXX='-Wl,'
12373 lt_prog_compiler_static_CXX='-non_shared'
12374 # CC pic flag -KPIC is the default.
12380 linux* | k*bsd*-gnu)
12381 case $cc_basename in
12384 lt_prog_compiler_wl_CXX='--backend -Wl,'
12385 lt_prog_compiler_pic_CXX='-fPIC'
12389 lt_prog_compiler_wl_CXX='-Wl,'
12390 lt_prog_compiler_pic_CXX='-KPIC'
12391 lt_prog_compiler_static_CXX='-static'
12394 # Portland Group C++ compiler.
12395 lt_prog_compiler_wl_CXX='-Wl,'
12396 lt_prog_compiler_pic_CXX='-fpic'
12397 lt_prog_compiler_static_CXX='-Bstatic'
12401 # Make sure the PIC flag is empty. It appears that all Alpha
12402 # Linux and Compaq Tru64 Unix objects are PIC.
12403 lt_prog_compiler_pic_CXX=
12404 lt_prog_compiler_static_CXX='-non_shared'
12415 case $cc_basename in
12417 lt_prog_compiler_pic_CXX='-W c,exportall'
12423 netbsd* | netbsdelf*-gnu)
12425 osf3* | osf4* | osf5*)
12426 case $cc_basename in
12428 lt_prog_compiler_wl_CXX='--backend -Wl,'
12431 # Rational C++ 2.4.1
12432 lt_prog_compiler_pic_CXX='-pic'
12435 # Digital/Compaq C++
12436 lt_prog_compiler_wl_CXX='-Wl,'
12437 # Make sure the PIC flag is empty. It appears that all Alpha
12438 # Linux and Compaq Tru64 Unix objects are PIC.
12439 lt_prog_compiler_pic_CXX=
12440 lt_prog_compiler_static_CXX='-non_shared'
12449 case $cc_basename in
12451 # Sun C++ 4.2, 5.x and Centerline C++
12452 lt_prog_compiler_pic_CXX='-KPIC'
12453 lt_prog_compiler_static_CXX='-Bstatic'
12454 lt_prog_compiler_wl_CXX='-Qoption ld '
12457 # Green Hills C++ Compiler
12458 lt_prog_compiler_pic_CXX='-PIC'
12465 case $cc_basename in
12468 lt_prog_compiler_pic_CXX='-pic'
12469 lt_prog_compiler_static_CXX='-Bstatic'
12473 lt_prog_compiler_pic_CXX='-pic'
12480 case $cc_basename in
12482 # NonStop-UX NCC 3.20
12483 lt_prog_compiler_pic_CXX='-KPIC'
12489 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12490 case $cc_basename in
12492 lt_prog_compiler_wl_CXX='-Wl,'
12493 lt_prog_compiler_pic_CXX='-KPIC'
12494 lt_prog_compiler_static_CXX='-Bstatic'
12501 lt_prog_compiler_can_build_shared_CXX=no
12506 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12507 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12510 # Check to make sure the PIC flag actually works.
12512 if test -n "$lt_prog_compiler_pic_CXX"; then
12514 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12515 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12516 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12517 echo $ECHO_N "(cached) $ECHO_C" >&6
12519 lt_prog_compiler_pic_works_CXX=no
12520 ac_outfile=conftest.$ac_objext
12521 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12522 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12523 # Insert the option either (1) after the last *FLAGS variable, or
12524 # (2) before a word containing "conftest.", or (3) at the end.
12525 # Note that $ac_compile itself does not contain backslashes and begins
12526 # with a dollar sign (not a hyphen), so the echo should work correctly.
12527 # The option is referenced via a variable to avoid confusing sed.
12528 lt_compile=`echo "$ac_compile" | $SED \
12529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12531 -e 's:$: $lt_compiler_flag:'`
12532 (eval echo "\"\$as_me:12532: $lt_compile\"" >&5)
12533 (eval "$lt_compile" 2>conftest.err)
12535 cat conftest.err >&5
12536 echo "$as_me:12536: \$? = $ac_status" >&5
12537 if (exit $ac_status) && test -s "$ac_outfile"; then
12538 # The compiler can only warn and ignore the option if not recognized
12539 # So say no if there are warnings other than the usual output.
12540 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12541 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12542 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12543 lt_prog_compiler_pic_works_CXX=yes
12549 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12550 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12552 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12553 case $lt_prog_compiler_pic_CXX in
12555 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12558 lt_prog_compiler_pic_CXX=
12559 lt_prog_compiler_can_build_shared_CXX=no
12564 # For platforms which do not support PIC, -DPIC is meaningless:
12566 lt_prog_compiler_pic_CXX=
12569 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12574 # Check to make sure the static flag actually works.
12576 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12577 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12578 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12579 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12580 echo $ECHO_N "(cached) $ECHO_C" >&6
12582 lt_prog_compiler_static_works_CXX=no
12583 save_LDFLAGS="$LDFLAGS"
12584 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12585 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12586 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12587 # The linker can only warn and ignore the option if not recognized
12588 # So say no if there are warnings
12589 if test -s conftest.err; then
12590 # Append any errors to the config.log.
12591 cat conftest.err 1>&5
12592 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12594 if diff conftest.exp conftest.er2 >/dev/null; then
12595 lt_prog_compiler_static_works_CXX=yes
12598 lt_prog_compiler_static_works_CXX=yes
12602 LDFLAGS="$save_LDFLAGS"
12605 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12606 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12608 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12611 lt_prog_compiler_static_CXX=
12615 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12616 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12617 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12618 echo $ECHO_N "(cached) $ECHO_C" >&6
12620 lt_cv_prog_compiler_c_o_CXX=no
12621 $rm -r conftest 2>/dev/null
12625 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12627 lt_compiler_flag="-o out/conftest2.$ac_objext"
12628 # Insert the option either (1) after the last *FLAGS variable, or
12629 # (2) before a word containing "conftest.", or (3) at the end.
12630 # Note that $ac_compile itself does not contain backslashes and begins
12631 # with a dollar sign (not a hyphen), so the echo should work correctly.
12632 lt_compile=`echo "$ac_compile" | $SED \
12633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12635 -e 's:$: $lt_compiler_flag:'`
12636 (eval echo "\"\$as_me:12636: $lt_compile\"" >&5)
12637 (eval "$lt_compile" 2>out/conftest.err)
12639 cat out/conftest.err >&5
12640 echo "$as_me:12640: \$? = $ac_status" >&5
12641 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12643 # The compiler can only warn and ignore the option if not recognized
12644 # So say no if there are warnings
12645 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12646 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12647 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12648 lt_cv_prog_compiler_c_o_CXX=yes
12653 # SGI C++ compiler will create directory out/ii_files/ for
12654 # template instantiation
12655 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12656 $rm out/* && rmdir out
12662 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12663 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12666 hard_links="nottested"
12667 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12668 # do not overwrite the value of need_locks provided by the user
12669 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12670 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12673 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12675 ln conftest.a conftest.b 2>&5 || hard_links=no
12676 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12677 { echo "$as_me:$LINENO: result: $hard_links" >&5
12678 echo "${ECHO_T}$hard_links" >&6; }
12679 if test "$hard_links" = no; then
12680 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12681 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12688 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12689 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12691 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12694 # If we're using GNU nm, then we don't want the "-C" option.
12695 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12696 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12697 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'
12699 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'
12703 export_symbols_cmds_CXX="$ltdll_cmds"
12706 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'
12708 linux* | k*bsd*-gnu)
12709 link_all_deplibs_CXX=no
12712 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12716 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12717 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12718 test "$ld_shlibs_CXX" = no && can_build_shared=no
12721 # Do we need to explicitly link libc?
12723 case "x$archive_cmds_need_lc_CXX" in
12725 # Assume -lc should be added
12726 archive_cmds_need_lc_CXX=yes
12728 if test "$enable_shared" = yes && test "$GCC" = yes; then
12729 case $archive_cmds_CXX in
12731 # FIXME: we may have to deal with multi-command sequences.
12734 # Test whether the compiler implicitly links with -lc since on some
12735 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12736 # to ld, don't add -lc before -lgcc.
12737 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12738 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12740 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12743 (eval $ac_compile) 2>&5
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); } 2>conftest.err; then
12749 libobjs=conftest.$ac_objext
12751 wl=$lt_prog_compiler_wl_CXX
12752 pic_flag=$lt_prog_compiler_pic_CXX
12758 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12759 allow_undefined_flag_CXX=
12760 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12761 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }
12766 archive_cmds_need_lc_CXX=no
12768 archive_cmds_need_lc_CXX=yes
12770 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12772 cat conftest.err 1>&5
12775 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12776 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12783 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12784 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12785 library_names_spec=
12786 libname_spec='lib$name'
12790 postuninstall_cmds=
12794 shlibpath_overrides_runpath=unknown
12796 dynamic_linker="$host_os ld.so"
12797 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12798 if test "$GCC" = yes; then
12799 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12800 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12801 # if the path contains ";" then we assume it to be the separator
12802 # otherwise default to the standard path separator (i.e. ":") - it is
12803 # assumed that no part of a normal pathname contains ";" but that should
12804 # okay in the real world where ";" in dirpaths is itself problematic.
12805 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12807 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12810 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12812 need_lib_prefix=unknown
12813 hardcode_into_libs=no
12815 # when you set need_version to no, make sure it does not cause -set_version
12816 # flags to be left without arguments
12817 need_version=unknown
12822 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12823 shlibpath_var=LIBPATH
12825 # AIX 3 has no versioning support, so we append a major version to the name.
12826 soname_spec='${libname}${release}${shared_ext}$major'
12833 hardcode_into_libs=yes
12834 if test "$host_cpu" = ia64; then
12835 # AIX 5 supports IA64
12836 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12837 shlibpath_var=LD_LIBRARY_PATH
12839 # With GCC up to 2.95.x, collect2 would create an import file
12840 # for dependence libraries. The import file would start with
12841 # the line `#! .'. This would cause the generated library to
12842 # depend on `.', always an invalid library. This was fixed in
12843 # development snapshots of GCC prior to 3.0.
12845 aix4 | aix4.[01] | aix4.[01].*)
12846 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12848 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12851 can_build_shared=no
12855 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12856 # soname into executable. Probably we can add versioning support to
12857 # collect2, so additional links can be useful in future.
12858 if test "$aix_use_runtimelinking" = yes; then
12859 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12860 # instead of lib<name>.a to let people know that these are not
12861 # typical AIX shared libraries.
12862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12864 # We preserve .a as extension for shared libraries through AIX4.2
12865 # and later when we are not doing run time linking.
12866 library_names_spec='${libname}${release}.a $libname.a'
12867 soname_spec='${libname}${release}${shared_ext}$major'
12869 shlibpath_var=LIBPATH
12874 library_names_spec='$libname.ixlibrary $libname.a'
12875 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12876 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'
12880 library_names_spec='${libname}${shared_ext}'
12881 dynamic_linker="$host_os ld.so"
12882 shlibpath_var=LIBRARY_PATH
12888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12889 soname_spec='${libname}${release}${shared_ext}$major'
12890 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12891 shlibpath_var=LD_LIBRARY_PATH
12892 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12893 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12894 # the default ld.so.conf also contains /usr/contrib/lib and
12895 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12896 # libtool to hard-code these into programs
12899 cygwin* | mingw* | pw32*)
12900 version_type=windows
12905 case $GCC,$host_os in
12906 yes,cygwin* | yes,mingw* | yes,pw32*)
12907 library_names_spec='$libname.dll.a'
12908 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12909 postinstall_cmds='base_file=`basename \${file}`~
12910 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12911 dldir=$destdir/`dirname \$dlpath`~
12912 test -d \$dldir || mkdir -p \$dldir~
12913 $install_prog $dir/$dlname \$dldir/$dlname~
12914 chmod a+x \$dldir/$dlname'
12915 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12916 dlpath=$dir/\$dldll~
12918 shlibpath_overrides_runpath=yes
12922 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12923 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12924 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12927 # MinGW DLLs use traditional 'lib' prefix
12928 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12929 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12930 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12931 # It is most probably a Windows format PATH printed by
12932 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12933 # path with ; separators, and with drive letters. We can handle the
12934 # drive letters (cygwin fileutils understands them), so leave them,
12935 # especially as we might pass files found there to a mingw objdump,
12936 # which wouldn't understand a cygwinified path. Ahh.
12937 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12939 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12943 # pw32 DLLs use 'pw' prefix rather than 'lib'
12944 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12950 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12953 dynamic_linker='Win32 ld.exe'
12954 # FIXME: first we should search . and the directory the executable is in
12958 darwin* | rhapsody*)
12959 dynamic_linker="$host_os dyld"
12960 version_type=darwin
12963 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12964 soname_spec='${libname}${release}${major}$shared_ext'
12965 shlibpath_overrides_runpath=yes
12966 shlibpath_var=DYLD_LIBRARY_PATH
12967 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12968 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12969 if test "$GCC" = yes; then
12970 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12972 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12974 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12982 soname_spec='${libname}${release}${shared_ext}$major'
12983 shlibpath_var=LD_LIBRARY_PATH
12990 freebsd* | dragonfly*)
12991 # DragonFly does not have aout. When/if they implement a new
12992 # versioning mechanism, adjust this.
12993 if test -x /usr/bin/objformat; then
12994 objformat=`/usr/bin/objformat`
12997 freebsd[123]*) objformat=aout ;;
12998 *) objformat=elf ;;
13001 version_type=freebsd-$objformat
13002 case $version_type in
13004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13009 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13013 shlibpath_var=LD_LIBRARY_PATH
13016 shlibpath_overrides_runpath=yes
13018 freebsd3.[01]* | freebsdelf3.[01]*)
13019 shlibpath_overrides_runpath=yes
13020 hardcode_into_libs=yes
13022 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13023 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13024 shlibpath_overrides_runpath=no
13025 hardcode_into_libs=yes
13027 freebsd*) # from 4.6 on
13028 shlibpath_overrides_runpath=yes
13029 hardcode_into_libs=yes
13038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13039 soname_spec='${libname}${release}${shared_ext}$major'
13040 shlibpath_var=LD_LIBRARY_PATH
13041 hardcode_into_libs=yes
13044 hpux9* | hpux10* | hpux11*)
13045 # Give a soname corresponding to the major version so that dld.sl refuses to
13046 # link against other versions.
13053 hardcode_into_libs=yes
13054 dynamic_linker="$host_os dld.so"
13055 shlibpath_var=LD_LIBRARY_PATH
13056 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13058 soname_spec='${libname}${release}${shared_ext}$major'
13059 if test "X$HPUX_IA64_MODE" = X32; then
13060 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13062 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13064 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13068 hardcode_into_libs=yes
13069 dynamic_linker="$host_os dld.sl"
13070 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13071 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13073 soname_spec='${libname}${release}${shared_ext}$major'
13074 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13075 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13079 dynamic_linker="$host_os dld.sl"
13080 shlibpath_var=SHLIB_PATH
13081 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13083 soname_spec='${libname}${release}${shared_ext}$major'
13086 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13087 postinstall_cmds='chmod 555 $lib'
13094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13095 soname_spec='${libname}${release}${shared_ext}$major'
13096 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13097 shlibpath_var=LD_LIBRARY_PATH
13098 shlibpath_overrides_runpath=no
13099 hardcode_into_libs=yes
13102 irix5* | irix6* | nonstopux*)
13104 nonstopux*) version_type=nonstopux ;;
13106 if test "$lt_cv_prog_gnu_ld" = yes; then
13114 soname_spec='${libname}${release}${shared_ext}$major'
13115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13117 irix5* | nonstopux*)
13118 libsuff= shlibsuff=
13121 case $LD in # libtool.m4 will add one of these switches to LD
13122 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13123 libsuff= shlibsuff= libmagic=32-bit;;
13124 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13125 libsuff=32 shlibsuff=N32 libmagic=N32;;
13126 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13127 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13128 *) libsuff= shlibsuff= libmagic=never-match;;
13132 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13133 shlibpath_overrides_runpath=no
13134 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13135 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13136 hardcode_into_libs=yes
13139 # No shared lib support for Linux oldld, aout, or coff.
13140 linux*oldld* | linux*aout* | linux*coff*)
13144 # This must be Linux ELF.
13145 linux* | k*bsd*-gnu)
13149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13150 soname_spec='${libname}${release}${shared_ext}$major'
13151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13152 shlibpath_var=LD_LIBRARY_PATH
13153 shlibpath_overrides_runpath=no
13154 # This implies no fast_install, which is unacceptable.
13155 # Some rework will be needed to allow for fast_install
13156 # before this can be enabled.
13157 hardcode_into_libs=yes
13159 # Append ld.so.conf contents to the search path
13160 if test -f /etc/ld.so.conf; then
13161 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13162 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13165 # We used to test for /lib/ld.so.1 and disable shared libraries on
13166 # powerpc, because MkLinux only supported shared libraries with the
13167 # GNU dynamic linker. Since this was broken with cross compilers,
13168 # most powerpc-linux boxes support dynamic linking these days and
13169 # people can always --disable-shared, the test was removed, and we
13170 # assume the GNU/Linux dynamic linker is in use.
13171 dynamic_linker='GNU/Linux ld.so'
13178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13179 soname_spec='${libname}${release}${shared_ext}$major'
13180 shlibpath_var=LD_LIBRARY_PATH
13181 shlibpath_overrides_runpath=no
13182 hardcode_into_libs=yes
13183 dynamic_linker='NetBSD ld.elf_so'
13190 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13193 dynamic_linker='NetBSD (a.out) ld.so'
13195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13196 soname_spec='${libname}${release}${shared_ext}$major'
13197 dynamic_linker='NetBSD ld.elf_so'
13199 shlibpath_var=LD_LIBRARY_PATH
13200 shlibpath_overrides_runpath=yes
13201 hardcode_into_libs=yes
13206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13207 shlibpath_var=LD_LIBRARY_PATH
13208 shlibpath_overrides_runpath=yes
13215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13216 soname_spec='${libname}${release}${shared_ext}$major'
13217 shlibpath_var=LD_LIBRARY_PATH
13218 shlibpath_overrides_runpath=yes
13223 sys_lib_dlsearch_path_spec="/usr/lib"
13225 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13227 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13228 *) need_version=no ;;
13230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13232 shlibpath_var=LD_LIBRARY_PATH
13233 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13235 openbsd2.[89] | openbsd2.[89].*)
13236 shlibpath_overrides_runpath=no
13239 shlibpath_overrides_runpath=yes
13243 shlibpath_overrides_runpath=yes
13248 libname_spec='$name'
13251 library_names_spec='$libname${shared_ext} $libname.a'
13252 dynamic_linker='OS/2 ld.exe'
13253 shlibpath_var=LIBPATH
13256 osf3* | osf4* | osf5*)
13260 soname_spec='${libname}${release}${shared_ext}$major'
13261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13262 shlibpath_var=LD_LIBRARY_PATH
13263 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13264 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13272 soname_spec='${libname}${release}${shared_ext}$major'
13273 shlibpath_var=LD_LIBRARY_PATH
13274 shlibpath_overrides_runpath=yes
13275 hardcode_into_libs=yes
13276 # ldd complains unless libraries are executable
13277 postinstall_cmds='chmod +x $lib'
13282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13283 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13284 shlibpath_var=LD_LIBRARY_PATH
13285 shlibpath_overrides_runpath=yes
13286 if test "$with_gnu_ld" = yes; then
13294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13295 soname_spec='${libname}${release}${shared_ext}$major'
13296 shlibpath_var=LD_LIBRARY_PATH
13297 case $host_vendor in
13299 shlibpath_overrides_runpath=no
13301 export_dynamic_flag_spec='${wl}-Blargedynsym'
13302 runpath_var=LD_RUN_PATH
13310 shlibpath_overrides_runpath=no
13311 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13317 if test -d /usr/nec ;then
13319 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13320 soname_spec='$libname${shared_ext}.$major'
13321 shlibpath_var=LD_LIBRARY_PATH
13325 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13326 version_type=freebsd-elf
13329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13330 soname_spec='${libname}${release}${shared_ext}$major'
13331 shlibpath_var=LD_LIBRARY_PATH
13332 hardcode_into_libs=yes
13333 if test "$with_gnu_ld" = yes; then
13334 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13335 shlibpath_overrides_runpath=no
13337 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13338 shlibpath_overrides_runpath=yes
13341 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13345 sys_lib_dlsearch_path_spec='/usr/lib'
13350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13351 soname_spec='${libname}${release}${shared_ext}$major'
13352 shlibpath_var=LD_LIBRARY_PATH
13359 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13360 echo "${ECHO_T}$dynamic_linker" >&6; }
13361 test "$dynamic_linker" = no && can_build_shared=no
13363 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13364 if test "$GCC" = yes; then
13365 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13368 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13369 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13370 hardcode_action_CXX=
13371 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13372 test -n "$runpath_var_CXX" || \
13373 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13375 # We can hardcode non-existant directories.
13376 if test "$hardcode_direct_CXX" != no &&
13377 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13378 # have to relink, otherwise we might link with an installed library
13379 # when we should be linking with a yet-to-be-installed one
13380 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13381 test "$hardcode_minus_L_CXX" != no; then
13382 # Linking always hardcodes the temporary library directory.
13383 hardcode_action_CXX=relink
13385 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13386 hardcode_action_CXX=immediate
13389 # We cannot hardcode anything, or else we can only hardcode existing
13391 hardcode_action_CXX=unsupported
13393 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13394 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13396 if test "$hardcode_action_CXX" = relink; then
13397 # Fast installation is not supported
13398 enable_fast_install=no
13399 elif test "$shlibpath_overrides_runpath" = yes ||
13400 test "$enable_shared" = no; then
13401 # Fast installation is not necessary
13402 enable_fast_install=needless
13406 # The else clause should only fire when bootstrapping the
13407 # libtool distribution, otherwise you forgot to ship ltmain.sh
13408 # with your package, and you will get complaints that there are
13409 # no rules to generate ltmain.sh.
13410 if test -f "$ltmain"; then
13411 # See if we are running on zsh, and set the options which allow our commands through
13412 # without removal of \ escapes.
13413 if test -n "${ZSH_VERSION+set}" ; then
13414 setopt NO_GLOB_SUBST
13416 # Now quote all the things that may contain metacharacters while being
13417 # careful not to overquote the AC_SUBSTed values. We take copies of the
13418 # variables and quote the copies for generation of the libtool script.
13419 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13421 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13422 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13423 deplibs_check_method reload_flag reload_cmds need_locks \
13424 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13425 lt_cv_sys_global_symbol_to_c_name_address \
13426 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13427 old_postinstall_cmds old_postuninstall_cmds \
13431 lt_prog_compiler_wl_CXX \
13432 lt_prog_compiler_pic_CXX \
13433 lt_prog_compiler_static_CXX \
13434 lt_prog_compiler_no_builtin_flag_CXX \
13435 export_dynamic_flag_spec_CXX \
13436 thread_safe_flag_spec_CXX \
13437 whole_archive_flag_spec_CXX \
13438 enable_shared_with_static_runtimes_CXX \
13439 old_archive_cmds_CXX \
13440 old_archive_from_new_cmds_CXX \
13441 predep_objects_CXX \
13442 postdep_objects_CXX \
13445 compiler_lib_search_path_CXX \
13447 archive_expsym_cmds_CXX \
13448 postinstall_cmds_CXX \
13449 postuninstall_cmds_CXX \
13450 old_archive_from_expsyms_cmds_CXX \
13451 allow_undefined_flag_CXX \
13452 no_undefined_flag_CXX \
13453 export_symbols_cmds_CXX \
13454 hardcode_libdir_flag_spec_CXX \
13455 hardcode_libdir_flag_spec_ld_CXX \
13456 hardcode_libdir_separator_CXX \
13457 hardcode_automatic_CXX \
13459 module_expsym_cmds_CXX \
13460 lt_cv_prog_compiler_c_o_CXX \
13461 exclude_expsyms_CXX \
13462 include_expsyms_CXX; do
13465 old_archive_cmds_CXX | \
13466 old_archive_from_new_cmds_CXX | \
13467 archive_cmds_CXX | \
13468 archive_expsym_cmds_CXX | \
13469 module_cmds_CXX | \
13470 module_expsym_cmds_CXX | \
13471 old_archive_from_expsyms_cmds_CXX | \
13472 export_symbols_cmds_CXX | \
13473 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13474 postinstall_cmds | postuninstall_cmds | \
13475 old_postinstall_cmds | old_postuninstall_cmds | \
13476 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13477 # Double-quote double-evaled strings.
13478 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13481 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13487 *'\$0 --fallback-echo"')
13488 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13494 cat <<__EOF__ >> "$cfgfile"
13495 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13497 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13499 # Shell to use when invoking shell scripts.
13502 # Whether or not to build shared libraries.
13503 build_libtool_libs=$enable_shared
13505 # Whether or not to build static libraries.
13506 build_old_libs=$enable_static
13508 # Whether or not to add -lc for building shared libraries.
13509 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13511 # Whether or not to disallow shared libs when runtime libs are static
13512 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13514 # Whether or not to optimize for fast installation.
13515 fast_install=$enable_fast_install
13518 host_alias=$host_alias
13522 # The build system.
13523 build_alias=$build_alias
13527 # An echo program that does not interpret backslashes.
13532 AR_FLAGS=$lt_AR_FLAGS
13537 # LTCC compiler flags.
13538 LTCFLAGS=$lt_LTCFLAGS
13540 # A language-specific compiler.
13541 CC=$lt_compiler_CXX
13543 # Is the compiler the GNU C compiler?
13549 # The linker used to build libraries.
13552 # Whether we need hard or soft links.
13555 # A BSD-compatible nm program.
13558 # A symbol stripping program
13561 # Used to examine libraries when file_magic_cmd begins "file"
13562 MAGIC_CMD=$MAGIC_CMD
13564 # Used on cygwin: DLL creation program.
13567 # Used on cygwin: object dumper.
13570 # Used on cygwin: assembler.
13573 # The name of the directory that contains temporary libtool files.
13576 # How to create reloadable object files.
13577 reload_flag=$lt_reload_flag
13578 reload_cmds=$lt_reload_cmds
13580 # How to pass a linker flag through the compiler.
13581 wl=$lt_lt_prog_compiler_wl_CXX
13583 # Object file suffix (normally "o").
13584 objext="$ac_objext"
13586 # Old archive suffix (normally "a").
13589 # Shared library suffix (normally ".so").
13590 shrext_cmds='$shrext_cmds'
13592 # Executable file suffix (normally "").
13595 # Additional compiler flags for building library objects.
13596 pic_flag=$lt_lt_prog_compiler_pic_CXX
13599 # What is the maximum length of a command?
13600 max_cmd_len=$lt_cv_sys_max_cmd_len
13602 # Does compiler simultaneously support -c and -o options?
13603 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13605 # Must we lock files when doing compilation?
13606 need_locks=$lt_need_locks
13608 # Do we need the lib prefix for modules?
13609 need_lib_prefix=$need_lib_prefix
13611 # Do we need a version for libraries?
13612 need_version=$need_version
13614 # Whether dlopen is supported.
13615 dlopen_support=$enable_dlopen
13617 # Whether dlopen of programs is supported.
13618 dlopen_self=$enable_dlopen_self
13620 # Whether dlopen of statically linked programs is supported.
13621 dlopen_self_static=$enable_dlopen_self_static
13623 # Compiler flag to prevent dynamic linking.
13624 link_static_flag=$lt_lt_prog_compiler_static_CXX
13626 # Compiler flag to turn off builtin functions.
13627 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13629 # Compiler flag to allow reflexive dlopens.
13630 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13632 # Compiler flag to generate shared objects directly from archives.
13633 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13635 # Compiler flag to generate thread-safe objects.
13636 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13638 # Library versioning type.
13639 version_type=$version_type
13641 # Format of library name prefix.
13642 libname_spec=$lt_libname_spec
13644 # List of archive names. First name is the real one, the rest are links.
13645 # The last name is the one that the linker finds with -lNAME.
13646 library_names_spec=$lt_library_names_spec
13648 # The coded name of the library, if different from the real name.
13649 soname_spec=$lt_soname_spec
13651 # Commands used to build and install an old-style archive.
13653 old_archive_cmds=$lt_old_archive_cmds_CXX
13654 old_postinstall_cmds=$lt_old_postinstall_cmds
13655 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13657 # Create an old-style archive from a shared archive.
13658 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13660 # Create a temporary old-style archive to link instead of a shared archive.
13661 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13663 # Commands used to build and install a shared archive.
13664 archive_cmds=$lt_archive_cmds_CXX
13665 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13666 postinstall_cmds=$lt_postinstall_cmds
13667 postuninstall_cmds=$lt_postuninstall_cmds
13669 # Commands used to build a loadable module (assumed same as above if empty)
13670 module_cmds=$lt_module_cmds_CXX
13671 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13673 # Commands to strip libraries.
13674 old_striplib=$lt_old_striplib
13675 striplib=$lt_striplib
13677 # Dependencies to place before the objects being linked to create a
13679 predep_objects=$lt_predep_objects_CXX
13681 # Dependencies to place after the objects being linked to create a
13683 postdep_objects=$lt_postdep_objects_CXX
13685 # Dependencies to place before the objects being linked to create a
13687 predeps=$lt_predeps_CXX
13689 # Dependencies to place after the objects being linked to create a
13691 postdeps=$lt_postdeps_CXX
13693 # The library search path used internally by the compiler when linking
13694 # a shared library.
13695 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13697 # Method to check whether dependent libraries are shared objects.
13698 deplibs_check_method=$lt_deplibs_check_method
13700 # Command to use when deplibs_check_method == file_magic.
13701 file_magic_cmd=$lt_file_magic_cmd
13703 # Flag that allows shared libraries with undefined symbols to be built.
13704 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13706 # Flag that forces no undefined symbols.
13707 no_undefined_flag=$lt_no_undefined_flag_CXX
13709 # Commands used to finish a libtool library installation in a directory.
13710 finish_cmds=$lt_finish_cmds
13712 # Same as above, but a single script fragment to be evaled but not shown.
13713 finish_eval=$lt_finish_eval
13715 # Take the output of nm and produce a listing of raw symbols and C names.
13716 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13718 # Transform the output of nm in a proper C declaration
13719 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13721 # Transform the output of nm in a C name address pair
13722 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13724 # This is the shared library runtime path variable.
13725 runpath_var=$runpath_var
13727 # This is the shared library path variable.
13728 shlibpath_var=$shlibpath_var
13730 # Is shlibpath searched before the hard-coded library search path?
13731 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13733 # How to hardcode a shared library path into an executable.
13734 hardcode_action=$hardcode_action_CXX
13736 # Whether we should hardcode library paths into libraries.
13737 hardcode_into_libs=$hardcode_into_libs
13739 # Flag to hardcode \$libdir into a binary during linking.
13740 # This must work even if \$libdir does not exist.
13741 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13743 # If ld is used when linking, flag to hardcode \$libdir into
13744 # a binary during linking. This must work even if \$libdir does
13746 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13748 # Whether we need a single -rpath flag with a separated argument.
13749 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13751 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13752 # resulting binary.
13753 hardcode_direct=$hardcode_direct_CXX
13755 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13756 # resulting binary.
13757 hardcode_minus_L=$hardcode_minus_L_CXX
13759 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13760 # the resulting binary.
13761 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13763 # Set to yes if building a shared library automatically hardcodes DIR into the library
13764 # and all subsequent libraries and executables linked against it.
13765 hardcode_automatic=$hardcode_automatic_CXX
13767 # Variables whose values should be saved in libtool wrapper scripts and
13768 # restored at relink time.
13769 variables_saved_for_relink="$variables_saved_for_relink"
13771 # Whether libtool must link a program against all its dependency libraries.
13772 link_all_deplibs=$link_all_deplibs_CXX
13774 # Compile-time system search path for libraries
13775 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13777 # Run-time system search path for libraries
13778 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13780 # Fix the shell variable \$srcfile for the compiler.
13781 fix_srcfile_path="$fix_srcfile_path_CXX"
13783 # Set to yes if exported symbols are required.
13784 always_export_symbols=$always_export_symbols_CXX
13786 # The commands to list exported symbols.
13787 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13789 # The commands to extract the exported symbol list from a shared archive.
13790 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13792 # Symbols that should not be listed in the preloaded symbols.
13793 exclude_expsyms=$lt_exclude_expsyms_CXX
13795 # Symbols that must always be exported.
13796 include_expsyms=$lt_include_expsyms_CXX
13798 # ### END LIBTOOL TAG CONFIG: $tagname
13804 # If there is no Makefile yet, we rely on a make rule to execute
13805 # `config.status --recheck' to rerun these tests and create the
13806 # libtool script then.
13807 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13808 if test -f "$ltmain_in"; then
13809 test -f Makefile && make "$ltmain"
13815 ac_cpp='$CPP $CPPFLAGS'
13816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13824 with_gnu_ldcxx=$with_gnu_ld
13825 with_gnu_ld=$lt_save_with_gnu_ld
13826 lt_cv_path_LDCXX=$lt_cv_path_LD
13827 lt_cv_path_LD=$lt_save_path_LD
13828 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13829 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13837 if test -n "$F77" && test "X$F77" != "Xno"; then
13840 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13841 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13842 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13845 archive_cmds_need_lc_F77=no
13846 allow_undefined_flag_F77=
13847 always_export_symbols_F77=no
13848 archive_expsym_cmds_F77=
13849 export_dynamic_flag_spec_F77=
13850 hardcode_direct_F77=no
13851 hardcode_libdir_flag_spec_F77=
13852 hardcode_libdir_flag_spec_ld_F77=
13853 hardcode_libdir_separator_F77=
13854 hardcode_minus_L_F77=no
13855 hardcode_automatic_F77=no
13857 module_expsym_cmds_F77=
13858 link_all_deplibs_F77=unknown
13859 old_archive_cmds_F77=$old_archive_cmds
13860 no_undefined_flag_F77=
13861 whole_archive_flag_spec_F77=
13862 enable_shared_with_static_runtimes_F77=no
13864 # Source file extension for f77 test sources.
13867 # Object file extension for compiled f77 test sources.
13871 # Code to be used in simple compile tests
13872 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13874 # Code to be used in simple link tests
13875 lt_simple_link_test_code=" program t\n end\n"
13877 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13879 # If no C compiler was specified, use CC.
13882 # If no C compiler flags were specified, use CFLAGS.
13883 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13885 # Allow CC to be a program name with arguments.
13889 # save warnings/boilerplate of simple test code
13890 ac_outfile=conftest.$ac_objext
13891 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13892 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13893 _lt_compiler_boilerplate=`cat conftest.err`
13896 ac_outfile=conftest.$ac_objext
13897 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13898 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13899 _lt_linker_boilerplate=`cat conftest.err`
13903 # Allow CC to be a program name with arguments.
13908 for cc_temp in $compiler""; do
13910 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13911 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13916 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13919 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13920 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13921 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13922 echo "${ECHO_T}$can_build_shared" >&6; }
13924 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13925 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13926 test "$can_build_shared" = "no" && enable_shared=no
13928 # On AIX, shared libraries and static libraries use the same namespace, and
13929 # are all built from PIC.
13932 test "$enable_shared" = yes && enable_static=no
13933 if test -n "$RANLIB"; then
13934 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13935 postinstall_cmds='$RANLIB $lib'
13939 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13940 test "$enable_shared" = yes && enable_static=no
13944 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13945 echo "${ECHO_T}$enable_shared" >&6; }
13947 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13948 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13949 # Make sure either enable_shared or enable_static is yes.
13950 test "$enable_shared" = yes || enable_static=yes
13951 { echo "$as_me:$LINENO: result: $enable_static" >&5
13952 echo "${ECHO_T}$enable_static" >&6; }
13957 lt_prog_compiler_wl_F77=
13958 lt_prog_compiler_pic_F77=
13959 lt_prog_compiler_static_F77=
13961 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13962 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13964 if test "$GCC" = yes; then
13965 lt_prog_compiler_wl_F77='-Wl,'
13966 lt_prog_compiler_static_F77='-static'
13970 # All AIX code is PIC.
13971 if test "$host_cpu" = ia64; then
13972 # AIX 5 now supports IA64 processor
13973 lt_prog_compiler_static_F77='-Bstatic'
13978 # FIXME: we need at least 68020 code to build shared libraries, but
13979 # adding the `-m68020' flag to GCC prevents building anything better,
13981 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13984 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13985 # PIC is the default for these OSes.
13988 mingw* | pw32* | os2*)
13989 # This hack is so that the source file can tell whether it is being
13990 # built for inclusion in a dll (and should export symbols for example).
13991 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13994 darwin* | rhapsody*)
13995 # PIC is the default on this platform
13996 # Common symbols not allowed in MH_DYLIB files
13997 lt_prog_compiler_pic_F77='-fno-common'
14001 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14002 # Instead, we relocate shared libraries at runtime.
14006 # Just because we use GCC doesn't mean we suddenly get shared libraries
14007 # on systems that don't support them.
14008 lt_prog_compiler_can_build_shared_F77=no
14013 if test -d /usr/nec; then
14014 lt_prog_compiler_pic_F77=-Kconform_pic
14019 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14020 # not for PA HP-UX.
14026 lt_prog_compiler_pic_F77='-fPIC'
14032 lt_prog_compiler_pic_F77='-fPIC'
14036 # PORTME Check for flag to pass linker flags through the system compiler.
14039 lt_prog_compiler_wl_F77='-Wl,'
14040 if test "$host_cpu" = ia64; then
14041 # AIX 5 now supports IA64 processor
14042 lt_prog_compiler_static_F77='-Bstatic'
14044 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14048 # PIC is the default on this platform
14049 # Common symbols not allowed in MH_DYLIB files
14050 case $cc_basename in
14052 lt_prog_compiler_pic_F77='-qnocommon'
14053 lt_prog_compiler_wl_F77='-Wl,'
14058 mingw* | pw32* | os2*)
14059 # This hack is so that the source file can tell whether it is being
14060 # built for inclusion in a dll (and should export symbols for example).
14061 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14064 hpux9* | hpux10* | hpux11*)
14065 lt_prog_compiler_wl_F77='-Wl,'
14066 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14067 # not for PA HP-UX.
14073 lt_prog_compiler_pic_F77='+Z'
14076 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14077 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14080 irix5* | irix6* | nonstopux*)
14081 lt_prog_compiler_wl_F77='-Wl,'
14082 # PIC (with -KPIC) is the default.
14083 lt_prog_compiler_static_F77='-non_shared'
14087 lt_prog_compiler_pic_F77='-KPIC'
14088 lt_prog_compiler_static_F77='-Bstatic'
14091 linux* | k*bsd*-gnu)
14092 case $cc_basename in
14094 lt_prog_compiler_wl_F77='-Wl,'
14095 lt_prog_compiler_pic_F77='-KPIC'
14096 lt_prog_compiler_static_F77='-static'
14098 pgcc* | pgf77* | pgf90* | pgf95*)
14099 # Portland Group compilers (*not* the Pentium gcc compiler,
14100 # which looks to be a dead project)
14101 lt_prog_compiler_wl_F77='-Wl,'
14102 lt_prog_compiler_pic_F77='-fpic'
14103 lt_prog_compiler_static_F77='-Bstatic'
14106 lt_prog_compiler_wl_F77='-Wl,'
14107 # All Alpha code is PIC.
14108 lt_prog_compiler_static_F77='-non_shared'
14113 osf3* | osf4* | osf5*)
14114 lt_prog_compiler_wl_F77='-Wl,'
14115 # All OSF/1 code is PIC.
14116 lt_prog_compiler_static_F77='-non_shared'
14120 lt_prog_compiler_pic_F77='-KPIC'
14121 lt_prog_compiler_static_F77='-Bstatic'
14122 case $cc_basename in
14123 f77* | f90* | f95*)
14124 lt_prog_compiler_wl_F77='-Qoption ld ';;
14126 lt_prog_compiler_wl_F77='-Wl,';;
14131 lt_prog_compiler_wl_F77='-Qoption ld '
14132 lt_prog_compiler_pic_F77='-PIC'
14133 lt_prog_compiler_static_F77='-Bstatic'
14136 sysv4 | sysv4.2uw2* | sysv4.3*)
14137 lt_prog_compiler_wl_F77='-Wl,'
14138 lt_prog_compiler_pic_F77='-KPIC'
14139 lt_prog_compiler_static_F77='-Bstatic'
14143 if test -d /usr/nec ;then
14144 lt_prog_compiler_pic_F77='-Kconform_pic'
14145 lt_prog_compiler_static_F77='-Bstatic'
14149 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14150 lt_prog_compiler_wl_F77='-Wl,'
14151 lt_prog_compiler_pic_F77='-KPIC'
14152 lt_prog_compiler_static_F77='-Bstatic'
14156 lt_prog_compiler_wl_F77='-Wl,'
14157 lt_prog_compiler_can_build_shared_F77=no
14161 lt_prog_compiler_pic_F77='-pic'
14162 lt_prog_compiler_static_F77='-Bstatic'
14166 lt_prog_compiler_can_build_shared_F77=no
14171 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14172 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14175 # Check to make sure the PIC flag actually works.
14177 if test -n "$lt_prog_compiler_pic_F77"; then
14179 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14180 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14181 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14182 echo $ECHO_N "(cached) $ECHO_C" >&6
14184 lt_prog_compiler_pic_works_F77=no
14185 ac_outfile=conftest.$ac_objext
14186 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14187 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14188 # Insert the option either (1) after the last *FLAGS variable, or
14189 # (2) before a word containing "conftest.", or (3) at the end.
14190 # Note that $ac_compile itself does not contain backslashes and begins
14191 # with a dollar sign (not a hyphen), so the echo should work correctly.
14192 # The option is referenced via a variable to avoid confusing sed.
14193 lt_compile=`echo "$ac_compile" | $SED \
14194 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14195 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14196 -e 's:$: $lt_compiler_flag:'`
14197 (eval echo "\"\$as_me:14197: $lt_compile\"" >&5)
14198 (eval "$lt_compile" 2>conftest.err)
14200 cat conftest.err >&5
14201 echo "$as_me:14201: \$? = $ac_status" >&5
14202 if (exit $ac_status) && test -s "$ac_outfile"; then
14203 # The compiler can only warn and ignore the option if not recognized
14204 # So say no if there are warnings other than the usual output.
14205 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14206 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14207 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14208 lt_prog_compiler_pic_works_F77=yes
14214 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14215 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14217 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14218 case $lt_prog_compiler_pic_F77 in
14220 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14223 lt_prog_compiler_pic_F77=
14224 lt_prog_compiler_can_build_shared_F77=no
14229 # For platforms which do not support PIC, -DPIC is meaningless:
14231 lt_prog_compiler_pic_F77=
14234 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14239 # Check to make sure the static flag actually works.
14241 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14242 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14243 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14244 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14245 echo $ECHO_N "(cached) $ECHO_C" >&6
14247 lt_prog_compiler_static_works_F77=no
14248 save_LDFLAGS="$LDFLAGS"
14249 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14250 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14251 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14252 # The linker can only warn and ignore the option if not recognized
14253 # So say no if there are warnings
14254 if test -s conftest.err; then
14255 # Append any errors to the config.log.
14256 cat conftest.err 1>&5
14257 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14258 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14259 if diff conftest.exp conftest.er2 >/dev/null; then
14260 lt_prog_compiler_static_works_F77=yes
14263 lt_prog_compiler_static_works_F77=yes
14267 LDFLAGS="$save_LDFLAGS"
14270 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14271 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14273 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14276 lt_prog_compiler_static_F77=
14280 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14281 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14282 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14283 echo $ECHO_N "(cached) $ECHO_C" >&6
14285 lt_cv_prog_compiler_c_o_F77=no
14286 $rm -r conftest 2>/dev/null
14290 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14292 lt_compiler_flag="-o out/conftest2.$ac_objext"
14293 # Insert the option either (1) after the last *FLAGS variable, or
14294 # (2) before a word containing "conftest.", or (3) at the end.
14295 # Note that $ac_compile itself does not contain backslashes and begins
14296 # with a dollar sign (not a hyphen), so the echo should work correctly.
14297 lt_compile=`echo "$ac_compile" | $SED \
14298 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14299 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14300 -e 's:$: $lt_compiler_flag:'`
14301 (eval echo "\"\$as_me:14301: $lt_compile\"" >&5)
14302 (eval "$lt_compile" 2>out/conftest.err)
14304 cat out/conftest.err >&5
14305 echo "$as_me:14305: \$? = $ac_status" >&5
14306 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14308 # The compiler can only warn and ignore the option if not recognized
14309 # So say no if there are warnings
14310 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14311 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14312 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14313 lt_cv_prog_compiler_c_o_F77=yes
14318 # SGI C++ compiler will create directory out/ii_files/ for
14319 # template instantiation
14320 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14321 $rm out/* && rmdir out
14327 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14328 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14331 hard_links="nottested"
14332 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14333 # do not overwrite the value of need_locks provided by the user
14334 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14335 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14338 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14340 ln conftest.a conftest.b 2>&5 || hard_links=no
14341 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14342 { echo "$as_me:$LINENO: result: $hard_links" >&5
14343 echo "${ECHO_T}$hard_links" >&6; }
14344 if test "$hard_links" = no; then
14345 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14346 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14353 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14354 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14357 allow_undefined_flag_F77=
14358 enable_shared_with_static_runtimes_F77=no
14360 archive_expsym_cmds_F77=
14361 old_archive_From_new_cmds_F77=
14362 old_archive_from_expsyms_cmds_F77=
14363 export_dynamic_flag_spec_F77=
14364 whole_archive_flag_spec_F77=
14365 thread_safe_flag_spec_F77=
14366 hardcode_libdir_flag_spec_F77=
14367 hardcode_libdir_flag_spec_ld_F77=
14368 hardcode_libdir_separator_F77=
14369 hardcode_direct_F77=no
14370 hardcode_minus_L_F77=no
14371 hardcode_shlibpath_var_F77=unsupported
14372 link_all_deplibs_F77=unknown
14373 hardcode_automatic_F77=no
14375 module_expsym_cmds_F77=
14376 always_export_symbols_F77=no
14377 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14378 # include_expsyms should be a list of space-separated symbols to be *always*
14379 # included in the symbol list
14380 include_expsyms_F77=
14381 # exclude_expsyms can be an extended regexp of symbols to exclude
14382 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14383 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14384 # as well as any symbol that contains `d'.
14385 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14386 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14387 # platforms (ab)use it in PIC code, but their linkers get confused if
14388 # the symbol is explicitly referenced. Since portable code cannot
14389 # rely on this symbol name, it's probably fine to never include it in
14390 # preloaded symbol tables.
14391 extract_expsyms_cmds=
14392 # Just being paranoid about ensuring that cc_basename is set.
14393 for cc_temp in $compiler""; do
14395 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14396 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14401 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14404 cygwin* | mingw* | pw32*)
14405 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14406 # When not using gcc, we currently assume that we are using
14407 # Microsoft Visual C++.
14408 if test "$GCC" != yes; then
14413 # we just hope/assume this is gcc and not c89 (= MSVC++)
14422 if test "$with_gnu_ld" = yes; then
14423 # If archive_cmds runs LD, not CC, wlarc should be empty
14426 # Set some defaults for GNU ld with shared library support. These
14427 # are reset later if shared libraries are not supported. Putting them
14428 # here allows them to be overridden if necessary.
14429 runpath_var=LD_RUN_PATH
14430 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14431 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14432 # ancient GNU ld didn't support --whole-archive et. al.
14433 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14434 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14436 whole_archive_flag_spec_F77=
14438 supports_anon_versioning=no
14439 case `$LD -v 2>/dev/null` in
14440 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14441 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14442 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14443 *\ 2.11.*) ;; # other 2.11 versions
14444 *) supports_anon_versioning=yes ;;
14447 # See if GNU ld supports shared libraries.
14449 aix3* | aix4* | aix5*)
14450 # On AIX/PPC, the GNU linker is very broken
14451 if test "$host_cpu" != ia64; then
14455 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14456 *** to be unable to reliably create shared libraries on AIX.
14457 *** Therefore, libtool is disabling shared libraries support. If you
14458 *** really care for shared libraries, you may want to modify your PATH
14459 *** so that a non-GNU linker is found, and then restart.
14466 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)'
14467 hardcode_libdir_flag_spec_F77='-L$libdir'
14468 hardcode_minus_L_F77=yes
14470 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14471 # that the semantics of dynamic libraries on AmigaOS, at least up
14472 # to version 4, is to share data among multiple programs linked
14473 # with the same dynamic library. Since this doesn't match the
14474 # behavior of shared libraries on other platforms, we can't use
14480 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14481 allow_undefined_flag_F77=unsupported
14482 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14483 # support --undefined. This deserves some investigation. FIXME
14484 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14490 cygwin* | mingw* | pw32*)
14491 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14492 # as there is no search path for DLLs.
14493 hardcode_libdir_flag_spec_F77='-L$libdir'
14494 allow_undefined_flag_F77=unsupported
14495 always_export_symbols_F77=no
14496 enable_shared_with_static_runtimes_F77=yes
14497 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14499 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14500 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14501 # If the export-symbols file already is a .def file (1st line
14502 # is EXPORTS), use it as is; otherwise, prepend...
14503 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14504 cp $export_symbols $output_objdir/$soname.def;
14506 echo EXPORTS > $output_objdir/$soname.def;
14507 cat $export_symbols >> $output_objdir/$soname.def;
14509 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14516 hardcode_direct_F77=no
14517 hardcode_shlibpath_var_F77=no
14518 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14519 export_dynamic_flag_spec_F77='${wl}-E'
14520 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14521 # Instead, shared libraries are loaded at an image base (0x10000000 by
14522 # default) and relocated if they conflict, which is a slow very memory
14523 # consuming and fragmenting process. To avoid this, we pick a random,
14524 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14525 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14526 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'
14527 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'
14530 linux* | k*bsd*-gnu)
14531 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14533 case $cc_basename,$host_cpu in
14534 pgcc*) # Portland Group C compiler
14535 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'
14536 tmp_addflag=' $pic_flag'
14538 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14539 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'
14540 tmp_addflag=' $pic_flag -Mnomain' ;;
14541 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14542 tmp_addflag=' -i_dynamic' ;;
14543 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14544 tmp_addflag=' -i_dynamic -nofor_main' ;;
14545 ifc* | ifort*) # Intel Fortran compiler
14546 tmp_addflag=' -nofor_main' ;;
14548 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14550 if test $supports_anon_versioning = yes; then
14551 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14552 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14553 $echo "local: *; };" >> $output_objdir/$libname.ver~
14554 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14556 link_all_deplibs_F77=no
14562 netbsd* | netbsdelf*-gnu)
14563 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14564 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14567 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14568 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14573 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14577 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14578 *** create shared libraries on Solaris systems. Therefore, libtool
14579 *** is disabling shared libraries support. We urge you to upgrade GNU
14580 *** binutils to release 2.9.1 or newer. Another option is to modify
14581 *** your PATH or compiler configuration so that the native linker is
14582 *** used, and then restart.
14585 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14586 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14587 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14593 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14594 case `$LD -v 2>&1` in
14595 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14599 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14600 *** reliably create shared libraries on SCO systems. Therefore, libtool
14601 *** is disabling shared libraries support. We urge you to upgrade GNU
14602 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14603 *** your PATH or compiler configuration so that the native linker is
14604 *** used, and then restart.
14609 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14610 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14611 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14612 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14621 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14623 hardcode_direct_F77=yes
14624 hardcode_shlibpath_var_F77=no
14628 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14629 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14630 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14637 if test "$ld_shlibs_F77" = no; then
14639 hardcode_libdir_flag_spec_F77=
14640 export_dynamic_flag_spec_F77=
14641 whole_archive_flag_spec_F77=
14644 # PORTME fill in a description of your system's linker (not GNU ld)
14647 allow_undefined_flag_F77=unsupported
14648 always_export_symbols_F77=yes
14649 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'
14650 # Note: this linker hardcodes the directories in LIBPATH if there
14651 # are no directories specified by -L.
14652 hardcode_minus_L_F77=yes
14653 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14654 # Neither direct hardcoding nor static linking is supported with a
14656 hardcode_direct_F77=unsupported
14661 if test "$host_cpu" = ia64; then
14662 # On IA64, the linker does run time linking by default, so we don't
14663 # have to do anything special.
14664 aix_use_runtimelinking=no
14665 exp_sym_flag='-Bexport'
14668 # If we're using GNU nm, then we don't want the "-C" option.
14669 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14670 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14671 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'
14673 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'
14675 aix_use_runtimelinking=no
14677 # Test if we are trying to use run time linking or normal
14678 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14679 # need to do runtime linking.
14680 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14681 for ld_flag in $LDFLAGS; do
14682 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14683 aix_use_runtimelinking=yes
14690 exp_sym_flag='-bexport'
14691 no_entry_flag='-bnoentry'
14694 # When large executables or shared objects are built, AIX ld can
14695 # have problems creating the table of contents. If linking a library
14696 # or program results in "error TOC overflow" add -mminimal-toc to
14697 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14698 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14700 archive_cmds_F77=''
14701 hardcode_direct_F77=yes
14702 hardcode_libdir_separator_F77=':'
14703 link_all_deplibs_F77=yes
14705 if test "$GCC" = yes; then
14706 case $host_os in aix4.[012]|aix4.[012].*)
14707 # We only want to do this on AIX 4.2 and lower, the check
14708 # below for broken collect2 doesn't work under 4.3+
14709 collect2name=`${CC} -print-prog-name=collect2`
14710 if test -f "$collect2name" && \
14711 strings "$collect2name" | grep resolve_lib_name >/dev/null
14713 # We have reworked collect2
14714 hardcode_direct_F77=yes
14716 # We have old collect2
14717 hardcode_direct_F77=unsupported
14718 # It fails to find uninstalled libraries when the uninstalled
14719 # path is not listed in the libpath. Setting hardcode_minus_L
14720 # to unsupported forces relinking
14721 hardcode_minus_L_F77=yes
14722 hardcode_libdir_flag_spec_F77='-L$libdir'
14723 hardcode_libdir_separator_F77=
14727 shared_flag='-shared'
14728 if test "$aix_use_runtimelinking" = yes; then
14729 shared_flag="$shared_flag "'${wl}-G'
14733 if test "$host_cpu" = ia64; then
14734 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14735 # chokes on -Wl,-G. The following line is correct:
14738 if test "$aix_use_runtimelinking" = yes; then
14739 shared_flag='${wl}-G'
14741 shared_flag='${wl}-bM:SRE'
14746 # It seems that -bexpall does not export symbols beginning with
14747 # underscore (_), so it is better to generate a list of symbols to export.
14748 always_export_symbols_F77=yes
14749 if test "$aix_use_runtimelinking" = yes; then
14750 # Warning - without using the other runtime loading flags (-brtl),
14751 # -berok will link without error, but may produce a broken library.
14752 allow_undefined_flag_F77='-berok'
14753 # Determine the default libpath from the value encoded in an empty executable.
14754 cat >conftest.$ac_ext <<_ACEOF
14759 rm -f conftest.$ac_objext conftest$ac_exeext
14760 if { (ac_try="$ac_link"
14761 case "(($ac_try" in
14762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14763 *) ac_try_echo=$ac_try;;
14765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14766 (eval "$ac_link") 2>conftest.er1
14768 grep -v '^ *+' conftest.er1 >conftest.err
14770 cat conftest.err >&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); } && {
14773 test -z "$ac_f77_werror_flag" ||
14774 test ! -s conftest.err
14775 } && test -s conftest$ac_exeext &&
14776 $as_test_x conftest$ac_exeext; then
14778 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14780 # Check for a 64-bit object if we didn't find anything.
14781 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14784 echo "$as_me: failed program was:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14791 conftest$ac_exeext conftest.$ac_ext
14792 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14794 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14795 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"
14797 if test "$host_cpu" = ia64; then
14798 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14799 allow_undefined_flag_F77="-z nodefs"
14800 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"
14802 # Determine the default libpath from the value encoded in an empty executable.
14803 cat >conftest.$ac_ext <<_ACEOF
14808 rm -f conftest.$ac_objext conftest$ac_exeext
14809 if { (ac_try="$ac_link"
14810 case "(($ac_try" in
14811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14812 *) ac_try_echo=$ac_try;;
14814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14815 (eval "$ac_link") 2>conftest.er1
14817 grep -v '^ *+' conftest.er1 >conftest.err
14819 cat conftest.err >&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); } && {
14822 test -z "$ac_f77_werror_flag" ||
14823 test ! -s conftest.err
14824 } && test -s conftest$ac_exeext &&
14825 $as_test_x conftest$ac_exeext; then
14827 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14829 # Check for a 64-bit object if we didn't find anything.
14830 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14833 echo "$as_me: failed program was:" >&5
14834 sed 's/^/| /' conftest.$ac_ext >&5
14839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14840 conftest$ac_exeext conftest.$ac_ext
14841 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14843 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14844 # Warning - without using the other run time loading flags,
14845 # -berok will link without error, but may produce a broken library.
14846 no_undefined_flag_F77=' ${wl}-bernotok'
14847 allow_undefined_flag_F77=' ${wl}-berok'
14848 # Exported symbols can be pulled into shared objects from archives
14849 whole_archive_flag_spec_F77='$convenience'
14850 archive_cmds_need_lc_F77=yes
14851 # This is similar to how AIX traditionally builds its shared libraries.
14852 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'
14858 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)'
14859 hardcode_libdir_flag_spec_F77='-L$libdir'
14860 hardcode_minus_L_F77=yes
14861 # see comment about different semantics on the GNU ld section
14866 export_dynamic_flag_spec_F77=-rdynamic
14869 cygwin* | mingw* | pw32*)
14870 # When not using gcc, we currently assume that we are using
14871 # Microsoft Visual C++.
14872 # hardcode_libdir_flag_spec is actually meaningless, as there is
14873 # no search path for DLLs.
14874 hardcode_libdir_flag_spec_F77=' '
14875 allow_undefined_flag_F77=unsupported
14876 # Tell ltmain to make .lib files, not .a files.
14878 # Tell ltmain to make .dll files, not .so files.
14880 # FIXME: Setting linknames here is a bad hack.
14881 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14882 # The linker will automatically build a .lib file if we build a DLL.
14883 old_archive_From_new_cmds_F77='true'
14884 # FIXME: Should let the user specify the lib program.
14885 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14886 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14887 enable_shared_with_static_runtimes_F77=yes
14890 darwin* | rhapsody*)
14892 rhapsody* | darwin1.[012])
14893 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14896 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14897 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14899 case ${MACOSX_DEPLOYMENT_TARGET} in
14901 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14904 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14910 archive_cmds_need_lc_F77=no
14911 hardcode_direct_F77=no
14912 hardcode_automatic_F77=yes
14913 hardcode_shlibpath_var_F77=unsupported
14914 whole_archive_flag_spec_F77=''
14915 link_all_deplibs_F77=yes
14916 if test "$GCC" = yes ; then
14917 output_verbose_link_cmd='echo'
14918 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14919 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14920 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14921 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14922 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}'
14924 case $cc_basename in
14926 output_verbose_link_cmd='echo'
14927 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14928 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14929 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14930 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14931 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}'
14941 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14942 hardcode_libdir_flag_spec_F77='-L$libdir'
14943 hardcode_shlibpath_var_F77=no
14950 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14951 # support. Future versions do this automatically, but an explicit c++rt0.o
14952 # does not break anything, and helps significantly (at the cost of a little
14955 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14956 hardcode_libdir_flag_spec_F77='-R$libdir'
14957 hardcode_direct_F77=yes
14958 hardcode_shlibpath_var_F77=no
14961 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14963 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14964 hardcode_direct_F77=yes
14965 hardcode_minus_L_F77=yes
14966 hardcode_shlibpath_var_F77=no
14969 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14970 freebsd* | dragonfly*)
14971 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14972 hardcode_libdir_flag_spec_F77='-R$libdir'
14973 hardcode_direct_F77=yes
14974 hardcode_shlibpath_var_F77=no
14978 if test "$GCC" = yes; then
14979 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'
14981 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'
14983 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14984 hardcode_libdir_separator_F77=:
14985 hardcode_direct_F77=yes
14987 # hardcode_minus_L: Not really in the search PATH,
14988 # but as the default location of the library.
14989 hardcode_minus_L_F77=yes
14990 export_dynamic_flag_spec_F77='${wl}-E'
14994 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14995 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14997 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14999 if test "$with_gnu_ld" = no; then
15000 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15001 hardcode_libdir_separator_F77=:
15003 hardcode_direct_F77=yes
15004 export_dynamic_flag_spec_F77='${wl}-E'
15006 # hardcode_minus_L: Not really in the search PATH,
15007 # but as the default location of the library.
15008 hardcode_minus_L_F77=yes
15013 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15016 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15019 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15022 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15028 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15031 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15034 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15038 if test "$with_gnu_ld" = no; then
15039 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15040 hardcode_libdir_separator_F77=:
15044 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15045 hardcode_direct_F77=no
15046 hardcode_shlibpath_var_F77=no
15049 hardcode_direct_F77=yes
15050 export_dynamic_flag_spec_F77='${wl}-E'
15052 # hardcode_minus_L: Not really in the search PATH,
15053 # but as the default location of the library.
15054 hardcode_minus_L_F77=yes
15060 irix5* | irix6* | nonstopux*)
15061 if test "$GCC" = yes; then
15062 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'
15064 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'
15065 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15067 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15068 hardcode_libdir_separator_F77=:
15069 link_all_deplibs_F77=yes
15072 netbsd* | netbsdelf*-gnu)
15073 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15074 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15076 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15078 hardcode_libdir_flag_spec_F77='-R$libdir'
15079 hardcode_direct_F77=yes
15080 hardcode_shlibpath_var_F77=no
15084 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15085 hardcode_direct_F77=yes
15086 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15087 hardcode_libdir_separator_F77=:
15088 hardcode_shlibpath_var_F77=no
15092 hardcode_direct_F77=yes
15093 hardcode_shlibpath_var_F77=no
15094 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15095 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15096 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15097 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15098 export_dynamic_flag_spec_F77='${wl}-E'
15101 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15102 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15103 hardcode_libdir_flag_spec_F77='-R$libdir'
15106 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15107 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15114 hardcode_libdir_flag_spec_F77='-L$libdir'
15115 hardcode_minus_L_F77=yes
15116 allow_undefined_flag_F77=unsupported
15117 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'
15118 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15122 if test "$GCC" = yes; then
15123 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15124 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'
15126 allow_undefined_flag_F77=' -expect_unresolved \*'
15127 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'
15129 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15130 hardcode_libdir_separator_F77=:
15133 osf4* | osf5*) # as osf3* with the addition of -msym flag
15134 if test "$GCC" = yes; then
15135 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15136 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'
15137 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15139 allow_undefined_flag_F77=' -expect_unresolved \*'
15140 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'
15141 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~
15142 $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'
15144 # Both c and cxx compiler support -rpath directly
15145 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15147 hardcode_libdir_separator_F77=:
15151 no_undefined_flag_F77=' -z text'
15152 if test "$GCC" = yes; then
15154 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15155 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15156 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15159 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15160 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15161 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15163 hardcode_libdir_flag_spec_F77='-R$libdir'
15164 hardcode_shlibpath_var_F77=no
15166 solaris2.[0-5] | solaris2.[0-5].*) ;;
15168 # The compiler driver will combine linker options so we
15169 # cannot just pass the convience library names through
15170 # without $wl, iff we do not link with $LD.
15171 # Luckily, gcc supports the same syntax we need for Sun Studio.
15172 # Supported since Solaris 2.6 (maybe 2.5.1?)
15175 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15177 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15180 link_all_deplibs_F77=yes
15184 if test "x$host_vendor" = xsequent; then
15185 # Use $CC to link under sequent, because it throws in some extra .o
15186 # files that make .init and .fini sections work.
15187 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15189 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15191 hardcode_libdir_flag_spec_F77='-L$libdir'
15192 hardcode_direct_F77=yes
15193 hardcode_minus_L_F77=yes
15194 hardcode_shlibpath_var_F77=no
15198 case $host_vendor in
15200 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15201 hardcode_direct_F77=yes # is this really true???
15204 ## LD is ld it makes a PLAMLIB
15205 ## CC just makes a GrossModule.
15206 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15207 reload_cmds_F77='$CC -r -o $output$reload_objs'
15208 hardcode_direct_F77=no
15211 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15212 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15215 runpath_var='LD_RUN_PATH'
15216 hardcode_shlibpath_var_F77=no
15220 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15221 hardcode_shlibpath_var_F77=no
15222 export_dynamic_flag_spec_F77='-Bexport'
15226 if test -d /usr/nec; then
15227 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15228 hardcode_shlibpath_var_F77=no
15229 runpath_var=LD_RUN_PATH
15230 hardcode_runpath_var=yes
15235 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15236 no_undefined_flag_F77='${wl}-z,text'
15237 archive_cmds_need_lc_F77=no
15238 hardcode_shlibpath_var_F77=no
15239 runpath_var='LD_RUN_PATH'
15241 if test "$GCC" = yes; then
15242 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15243 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15245 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15246 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15250 sysv5* | sco3.2v5* | sco5v6*)
15251 # Note: We can NOT use -z defs as we might desire, because we do not
15252 # link with -lc, and that would cause any symbols used from libc to
15253 # always be unresolved, which means just about no library would
15254 # ever link correctly. If we're not using GNU ld we use -z text
15255 # though, which does catch some bad symbols but isn't as heavy-handed
15257 no_undefined_flag_F77='${wl}-z,text'
15258 allow_undefined_flag_F77='${wl}-z,nodefs'
15259 archive_cmds_need_lc_F77=no
15260 hardcode_shlibpath_var_F77=no
15261 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15262 hardcode_libdir_separator_F77=':'
15263 link_all_deplibs_F77=yes
15264 export_dynamic_flag_spec_F77='${wl}-Bexport'
15265 runpath_var='LD_RUN_PATH'
15267 if test "$GCC" = yes; then
15268 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15269 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15271 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15272 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15277 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15278 hardcode_libdir_flag_spec_F77='-L$libdir'
15279 hardcode_shlibpath_var_F77=no
15288 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15289 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15290 test "$ld_shlibs_F77" = no && can_build_shared=no
15293 # Do we need to explicitly link libc?
15295 case "x$archive_cmds_need_lc_F77" in
15297 # Assume -lc should be added
15298 archive_cmds_need_lc_F77=yes
15300 if test "$enable_shared" = yes && test "$GCC" = yes; then
15301 case $archive_cmds_F77 in
15303 # FIXME: we may have to deal with multi-command sequences.
15306 # Test whether the compiler implicitly links with -lc since on some
15307 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15308 # to ld, don't add -lc before -lgcc.
15309 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15310 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15312 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15315 (eval $ac_compile) 2>&5
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); } 2>conftest.err; then
15321 libobjs=conftest.$ac_objext
15323 wl=$lt_prog_compiler_wl_F77
15324 pic_flag=$lt_prog_compiler_pic_F77
15330 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15331 allow_undefined_flag_F77=
15332 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15333 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); }
15338 archive_cmds_need_lc_F77=no
15340 archive_cmds_need_lc_F77=yes
15342 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15344 cat conftest.err 1>&5
15347 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15348 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15355 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15356 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15357 library_names_spec=
15358 libname_spec='lib$name'
15362 postuninstall_cmds=
15366 shlibpath_overrides_runpath=unknown
15368 dynamic_linker="$host_os ld.so"
15369 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15370 if test "$GCC" = yes; then
15371 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15372 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15373 # if the path contains ";" then we assume it to be the separator
15374 # otherwise default to the standard path separator (i.e. ":") - it is
15375 # assumed that no part of a normal pathname contains ";" but that should
15376 # okay in the real world where ";" in dirpaths is itself problematic.
15377 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15379 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15382 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15384 need_lib_prefix=unknown
15385 hardcode_into_libs=no
15387 # when you set need_version to no, make sure it does not cause -set_version
15388 # flags to be left without arguments
15389 need_version=unknown
15394 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15395 shlibpath_var=LIBPATH
15397 # AIX 3 has no versioning support, so we append a major version to the name.
15398 soname_spec='${libname}${release}${shared_ext}$major'
15405 hardcode_into_libs=yes
15406 if test "$host_cpu" = ia64; then
15407 # AIX 5 supports IA64
15408 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15409 shlibpath_var=LD_LIBRARY_PATH
15411 # With GCC up to 2.95.x, collect2 would create an import file
15412 # for dependence libraries. The import file would start with
15413 # the line `#! .'. This would cause the generated library to
15414 # depend on `.', always an invalid library. This was fixed in
15415 # development snapshots of GCC prior to 3.0.
15417 aix4 | aix4.[01] | aix4.[01].*)
15418 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15420 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15423 can_build_shared=no
15427 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15428 # soname into executable. Probably we can add versioning support to
15429 # collect2, so additional links can be useful in future.
15430 if test "$aix_use_runtimelinking" = yes; then
15431 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15432 # instead of lib<name>.a to let people know that these are not
15433 # typical AIX shared libraries.
15434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15436 # We preserve .a as extension for shared libraries through AIX4.2
15437 # and later when we are not doing run time linking.
15438 library_names_spec='${libname}${release}.a $libname.a'
15439 soname_spec='${libname}${release}${shared_ext}$major'
15441 shlibpath_var=LIBPATH
15446 library_names_spec='$libname.ixlibrary $libname.a'
15447 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15448 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'
15452 library_names_spec='${libname}${shared_ext}'
15453 dynamic_linker="$host_os ld.so"
15454 shlibpath_var=LIBRARY_PATH
15460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15461 soname_spec='${libname}${release}${shared_ext}$major'
15462 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15463 shlibpath_var=LD_LIBRARY_PATH
15464 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15465 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15466 # the default ld.so.conf also contains /usr/contrib/lib and
15467 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15468 # libtool to hard-code these into programs
15471 cygwin* | mingw* | pw32*)
15472 version_type=windows
15477 case $GCC,$host_os in
15478 yes,cygwin* | yes,mingw* | yes,pw32*)
15479 library_names_spec='$libname.dll.a'
15480 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15481 postinstall_cmds='base_file=`basename \${file}`~
15482 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15483 dldir=$destdir/`dirname \$dlpath`~
15484 test -d \$dldir || mkdir -p \$dldir~
15485 $install_prog $dir/$dlname \$dldir/$dlname~
15486 chmod a+x \$dldir/$dlname'
15487 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15488 dlpath=$dir/\$dldll~
15490 shlibpath_overrides_runpath=yes
15494 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15495 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15496 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15499 # MinGW DLLs use traditional 'lib' prefix
15500 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15501 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15502 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15503 # It is most probably a Windows format PATH printed by
15504 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15505 # path with ; separators, and with drive letters. We can handle the
15506 # drive letters (cygwin fileutils understands them), so leave them,
15507 # especially as we might pass files found there to a mingw objdump,
15508 # which wouldn't understand a cygwinified path. Ahh.
15509 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15511 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15515 # pw32 DLLs use 'pw' prefix rather than 'lib'
15516 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15522 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15525 dynamic_linker='Win32 ld.exe'
15526 # FIXME: first we should search . and the directory the executable is in
15530 darwin* | rhapsody*)
15531 dynamic_linker="$host_os dyld"
15532 version_type=darwin
15535 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15536 soname_spec='${libname}${release}${major}$shared_ext'
15537 shlibpath_overrides_runpath=yes
15538 shlibpath_var=DYLD_LIBRARY_PATH
15539 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15540 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15541 if test "$GCC" = yes; then
15542 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15544 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15546 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15554 soname_spec='${libname}${release}${shared_ext}$major'
15555 shlibpath_var=LD_LIBRARY_PATH
15562 freebsd* | dragonfly*)
15563 # DragonFly does not have aout. When/if they implement a new
15564 # versioning mechanism, adjust this.
15565 if test -x /usr/bin/objformat; then
15566 objformat=`/usr/bin/objformat`
15569 freebsd[123]*) objformat=aout ;;
15570 *) objformat=elf ;;
15573 version_type=freebsd-$objformat
15574 case $version_type in
15576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15581 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15585 shlibpath_var=LD_LIBRARY_PATH
15588 shlibpath_overrides_runpath=yes
15590 freebsd3.[01]* | freebsdelf3.[01]*)
15591 shlibpath_overrides_runpath=yes
15592 hardcode_into_libs=yes
15594 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15595 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15596 shlibpath_overrides_runpath=no
15597 hardcode_into_libs=yes
15599 freebsd*) # from 4.6 on
15600 shlibpath_overrides_runpath=yes
15601 hardcode_into_libs=yes
15610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15611 soname_spec='${libname}${release}${shared_ext}$major'
15612 shlibpath_var=LD_LIBRARY_PATH
15613 hardcode_into_libs=yes
15616 hpux9* | hpux10* | hpux11*)
15617 # Give a soname corresponding to the major version so that dld.sl refuses to
15618 # link against other versions.
15625 hardcode_into_libs=yes
15626 dynamic_linker="$host_os dld.so"
15627 shlibpath_var=LD_LIBRARY_PATH
15628 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15630 soname_spec='${libname}${release}${shared_ext}$major'
15631 if test "X$HPUX_IA64_MODE" = X32; then
15632 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15634 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15636 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15640 hardcode_into_libs=yes
15641 dynamic_linker="$host_os dld.sl"
15642 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15643 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15645 soname_spec='${libname}${release}${shared_ext}$major'
15646 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15647 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15651 dynamic_linker="$host_os dld.sl"
15652 shlibpath_var=SHLIB_PATH
15653 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15655 soname_spec='${libname}${release}${shared_ext}$major'
15658 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15659 postinstall_cmds='chmod 555 $lib'
15666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15667 soname_spec='${libname}${release}${shared_ext}$major'
15668 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15669 shlibpath_var=LD_LIBRARY_PATH
15670 shlibpath_overrides_runpath=no
15671 hardcode_into_libs=yes
15674 irix5* | irix6* | nonstopux*)
15676 nonstopux*) version_type=nonstopux ;;
15678 if test "$lt_cv_prog_gnu_ld" = yes; then
15686 soname_spec='${libname}${release}${shared_ext}$major'
15687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15689 irix5* | nonstopux*)
15690 libsuff= shlibsuff=
15693 case $LD in # libtool.m4 will add one of these switches to LD
15694 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15695 libsuff= shlibsuff= libmagic=32-bit;;
15696 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15697 libsuff=32 shlibsuff=N32 libmagic=N32;;
15698 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15699 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15700 *) libsuff= shlibsuff= libmagic=never-match;;
15704 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15705 shlibpath_overrides_runpath=no
15706 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15707 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15708 hardcode_into_libs=yes
15711 # No shared lib support for Linux oldld, aout, or coff.
15712 linux*oldld* | linux*aout* | linux*coff*)
15716 # This must be Linux ELF.
15717 linux* | k*bsd*-gnu)
15721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15722 soname_spec='${libname}${release}${shared_ext}$major'
15723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15724 shlibpath_var=LD_LIBRARY_PATH
15725 shlibpath_overrides_runpath=no
15726 # This implies no fast_install, which is unacceptable.
15727 # Some rework will be needed to allow for fast_install
15728 # before this can be enabled.
15729 hardcode_into_libs=yes
15731 # Append ld.so.conf contents to the search path
15732 if test -f /etc/ld.so.conf; then
15733 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15734 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15737 # We used to test for /lib/ld.so.1 and disable shared libraries on
15738 # powerpc, because MkLinux only supported shared libraries with the
15739 # GNU dynamic linker. Since this was broken with cross compilers,
15740 # most powerpc-linux boxes support dynamic linking these days and
15741 # people can always --disable-shared, the test was removed, and we
15742 # assume the GNU/Linux dynamic linker is in use.
15743 dynamic_linker='GNU/Linux ld.so'
15750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15751 soname_spec='${libname}${release}${shared_ext}$major'
15752 shlibpath_var=LD_LIBRARY_PATH
15753 shlibpath_overrides_runpath=no
15754 hardcode_into_libs=yes
15755 dynamic_linker='NetBSD ld.elf_so'
15762 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15765 dynamic_linker='NetBSD (a.out) ld.so'
15767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15768 soname_spec='${libname}${release}${shared_ext}$major'
15769 dynamic_linker='NetBSD ld.elf_so'
15771 shlibpath_var=LD_LIBRARY_PATH
15772 shlibpath_overrides_runpath=yes
15773 hardcode_into_libs=yes
15778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15779 shlibpath_var=LD_LIBRARY_PATH
15780 shlibpath_overrides_runpath=yes
15787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15788 soname_spec='${libname}${release}${shared_ext}$major'
15789 shlibpath_var=LD_LIBRARY_PATH
15790 shlibpath_overrides_runpath=yes
15795 sys_lib_dlsearch_path_spec="/usr/lib"
15797 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15799 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15800 *) need_version=no ;;
15802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15803 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15804 shlibpath_var=LD_LIBRARY_PATH
15805 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15807 openbsd2.[89] | openbsd2.[89].*)
15808 shlibpath_overrides_runpath=no
15811 shlibpath_overrides_runpath=yes
15815 shlibpath_overrides_runpath=yes
15820 libname_spec='$name'
15823 library_names_spec='$libname${shared_ext} $libname.a'
15824 dynamic_linker='OS/2 ld.exe'
15825 shlibpath_var=LIBPATH
15828 osf3* | osf4* | osf5*)
15832 soname_spec='${libname}${release}${shared_ext}$major'
15833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15834 shlibpath_var=LD_LIBRARY_PATH
15835 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15836 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15844 soname_spec='${libname}${release}${shared_ext}$major'
15845 shlibpath_var=LD_LIBRARY_PATH
15846 shlibpath_overrides_runpath=yes
15847 hardcode_into_libs=yes
15848 # ldd complains unless libraries are executable
15849 postinstall_cmds='chmod +x $lib'
15854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15855 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15856 shlibpath_var=LD_LIBRARY_PATH
15857 shlibpath_overrides_runpath=yes
15858 if test "$with_gnu_ld" = yes; then
15866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15867 soname_spec='${libname}${release}${shared_ext}$major'
15868 shlibpath_var=LD_LIBRARY_PATH
15869 case $host_vendor in
15871 shlibpath_overrides_runpath=no
15873 export_dynamic_flag_spec='${wl}-Blargedynsym'
15874 runpath_var=LD_RUN_PATH
15882 shlibpath_overrides_runpath=no
15883 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15889 if test -d /usr/nec ;then
15891 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15892 soname_spec='$libname${shared_ext}.$major'
15893 shlibpath_var=LD_LIBRARY_PATH
15897 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15898 version_type=freebsd-elf
15901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15902 soname_spec='${libname}${release}${shared_ext}$major'
15903 shlibpath_var=LD_LIBRARY_PATH
15904 hardcode_into_libs=yes
15905 if test "$with_gnu_ld" = yes; then
15906 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15907 shlibpath_overrides_runpath=no
15909 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15910 shlibpath_overrides_runpath=yes
15913 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15917 sys_lib_dlsearch_path_spec='/usr/lib'
15922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15923 soname_spec='${libname}${release}${shared_ext}$major'
15924 shlibpath_var=LD_LIBRARY_PATH
15931 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15932 echo "${ECHO_T}$dynamic_linker" >&6; }
15933 test "$dynamic_linker" = no && can_build_shared=no
15935 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15936 if test "$GCC" = yes; then
15937 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15940 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15941 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15942 hardcode_action_F77=
15943 if test -n "$hardcode_libdir_flag_spec_F77" || \
15944 test -n "$runpath_var_F77" || \
15945 test "X$hardcode_automatic_F77" = "Xyes" ; then
15947 # We can hardcode non-existant directories.
15948 if test "$hardcode_direct_F77" != no &&
15949 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15950 # have to relink, otherwise we might link with an installed library
15951 # when we should be linking with a yet-to-be-installed one
15952 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15953 test "$hardcode_minus_L_F77" != no; then
15954 # Linking always hardcodes the temporary library directory.
15955 hardcode_action_F77=relink
15957 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15958 hardcode_action_F77=immediate
15961 # We cannot hardcode anything, or else we can only hardcode existing
15963 hardcode_action_F77=unsupported
15965 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15966 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15968 if test "$hardcode_action_F77" = relink; then
15969 # Fast installation is not supported
15970 enable_fast_install=no
15971 elif test "$shlibpath_overrides_runpath" = yes ||
15972 test "$enable_shared" = no; then
15973 # Fast installation is not necessary
15974 enable_fast_install=needless
15978 # The else clause should only fire when bootstrapping the
15979 # libtool distribution, otherwise you forgot to ship ltmain.sh
15980 # with your package, and you will get complaints that there are
15981 # no rules to generate ltmain.sh.
15982 if test -f "$ltmain"; then
15983 # See if we are running on zsh, and set the options which allow our commands through
15984 # without removal of \ escapes.
15985 if test -n "${ZSH_VERSION+set}" ; then
15986 setopt NO_GLOB_SUBST
15988 # Now quote all the things that may contain metacharacters while being
15989 # careful not to overquote the AC_SUBSTed values. We take copies of the
15990 # variables and quote the copies for generation of the libtool script.
15991 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15993 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15994 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15995 deplibs_check_method reload_flag reload_cmds need_locks \
15996 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15997 lt_cv_sys_global_symbol_to_c_name_address \
15998 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15999 old_postinstall_cmds old_postuninstall_cmds \
16003 lt_prog_compiler_wl_F77 \
16004 lt_prog_compiler_pic_F77 \
16005 lt_prog_compiler_static_F77 \
16006 lt_prog_compiler_no_builtin_flag_F77 \
16007 export_dynamic_flag_spec_F77 \
16008 thread_safe_flag_spec_F77 \
16009 whole_archive_flag_spec_F77 \
16010 enable_shared_with_static_runtimes_F77 \
16011 old_archive_cmds_F77 \
16012 old_archive_from_new_cmds_F77 \
16013 predep_objects_F77 \
16014 postdep_objects_F77 \
16017 compiler_lib_search_path_F77 \
16019 archive_expsym_cmds_F77 \
16020 postinstall_cmds_F77 \
16021 postuninstall_cmds_F77 \
16022 old_archive_from_expsyms_cmds_F77 \
16023 allow_undefined_flag_F77 \
16024 no_undefined_flag_F77 \
16025 export_symbols_cmds_F77 \
16026 hardcode_libdir_flag_spec_F77 \
16027 hardcode_libdir_flag_spec_ld_F77 \
16028 hardcode_libdir_separator_F77 \
16029 hardcode_automatic_F77 \
16031 module_expsym_cmds_F77 \
16032 lt_cv_prog_compiler_c_o_F77 \
16033 exclude_expsyms_F77 \
16034 include_expsyms_F77; do
16037 old_archive_cmds_F77 | \
16038 old_archive_from_new_cmds_F77 | \
16039 archive_cmds_F77 | \
16040 archive_expsym_cmds_F77 | \
16041 module_cmds_F77 | \
16042 module_expsym_cmds_F77 | \
16043 old_archive_from_expsyms_cmds_F77 | \
16044 export_symbols_cmds_F77 | \
16045 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16046 postinstall_cmds | postuninstall_cmds | \
16047 old_postinstall_cmds | old_postuninstall_cmds | \
16048 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16049 # Double-quote double-evaled strings.
16050 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16053 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16059 *'\$0 --fallback-echo"')
16060 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16066 cat <<__EOF__ >> "$cfgfile"
16067 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16069 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16071 # Shell to use when invoking shell scripts.
16074 # Whether or not to build shared libraries.
16075 build_libtool_libs=$enable_shared
16077 # Whether or not to build static libraries.
16078 build_old_libs=$enable_static
16080 # Whether or not to add -lc for building shared libraries.
16081 build_libtool_need_lc=$archive_cmds_need_lc_F77
16083 # Whether or not to disallow shared libs when runtime libs are static
16084 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16086 # Whether or not to optimize for fast installation.
16087 fast_install=$enable_fast_install
16090 host_alias=$host_alias
16094 # The build system.
16095 build_alias=$build_alias
16099 # An echo program that does not interpret backslashes.
16104 AR_FLAGS=$lt_AR_FLAGS
16109 # LTCC compiler flags.
16110 LTCFLAGS=$lt_LTCFLAGS
16112 # A language-specific compiler.
16113 CC=$lt_compiler_F77
16115 # Is the compiler the GNU C compiler?
16121 # The linker used to build libraries.
16124 # Whether we need hard or soft links.
16127 # A BSD-compatible nm program.
16130 # A symbol stripping program
16133 # Used to examine libraries when file_magic_cmd begins "file"
16134 MAGIC_CMD=$MAGIC_CMD
16136 # Used on cygwin: DLL creation program.
16139 # Used on cygwin: object dumper.
16142 # Used on cygwin: assembler.
16145 # The name of the directory that contains temporary libtool files.
16148 # How to create reloadable object files.
16149 reload_flag=$lt_reload_flag
16150 reload_cmds=$lt_reload_cmds
16152 # How to pass a linker flag through the compiler.
16153 wl=$lt_lt_prog_compiler_wl_F77
16155 # Object file suffix (normally "o").
16156 objext="$ac_objext"
16158 # Old archive suffix (normally "a").
16161 # Shared library suffix (normally ".so").
16162 shrext_cmds='$shrext_cmds'
16164 # Executable file suffix (normally "").
16167 # Additional compiler flags for building library objects.
16168 pic_flag=$lt_lt_prog_compiler_pic_F77
16171 # What is the maximum length of a command?
16172 max_cmd_len=$lt_cv_sys_max_cmd_len
16174 # Does compiler simultaneously support -c and -o options?
16175 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16177 # Must we lock files when doing compilation?
16178 need_locks=$lt_need_locks
16180 # Do we need the lib prefix for modules?
16181 need_lib_prefix=$need_lib_prefix
16183 # Do we need a version for libraries?
16184 need_version=$need_version
16186 # Whether dlopen is supported.
16187 dlopen_support=$enable_dlopen
16189 # Whether dlopen of programs is supported.
16190 dlopen_self=$enable_dlopen_self
16192 # Whether dlopen of statically linked programs is supported.
16193 dlopen_self_static=$enable_dlopen_self_static
16195 # Compiler flag to prevent dynamic linking.
16196 link_static_flag=$lt_lt_prog_compiler_static_F77
16198 # Compiler flag to turn off builtin functions.
16199 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16201 # Compiler flag to allow reflexive dlopens.
16202 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16204 # Compiler flag to generate shared objects directly from archives.
16205 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16207 # Compiler flag to generate thread-safe objects.
16208 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16210 # Library versioning type.
16211 version_type=$version_type
16213 # Format of library name prefix.
16214 libname_spec=$lt_libname_spec
16216 # List of archive names. First name is the real one, the rest are links.
16217 # The last name is the one that the linker finds with -lNAME.
16218 library_names_spec=$lt_library_names_spec
16220 # The coded name of the library, if different from the real name.
16221 soname_spec=$lt_soname_spec
16223 # Commands used to build and install an old-style archive.
16225 old_archive_cmds=$lt_old_archive_cmds_F77
16226 old_postinstall_cmds=$lt_old_postinstall_cmds
16227 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16229 # Create an old-style archive from a shared archive.
16230 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16232 # Create a temporary old-style archive to link instead of a shared archive.
16233 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16235 # Commands used to build and install a shared archive.
16236 archive_cmds=$lt_archive_cmds_F77
16237 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16238 postinstall_cmds=$lt_postinstall_cmds
16239 postuninstall_cmds=$lt_postuninstall_cmds
16241 # Commands used to build a loadable module (assumed same as above if empty)
16242 module_cmds=$lt_module_cmds_F77
16243 module_expsym_cmds=$lt_module_expsym_cmds_F77
16245 # Commands to strip libraries.
16246 old_striplib=$lt_old_striplib
16247 striplib=$lt_striplib
16249 # Dependencies to place before the objects being linked to create a
16251 predep_objects=$lt_predep_objects_F77
16253 # Dependencies to place after the objects being linked to create a
16255 postdep_objects=$lt_postdep_objects_F77
16257 # Dependencies to place before the objects being linked to create a
16259 predeps=$lt_predeps_F77
16261 # Dependencies to place after the objects being linked to create a
16263 postdeps=$lt_postdeps_F77
16265 # The library search path used internally by the compiler when linking
16266 # a shared library.
16267 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16269 # Method to check whether dependent libraries are shared objects.
16270 deplibs_check_method=$lt_deplibs_check_method
16272 # Command to use when deplibs_check_method == file_magic.
16273 file_magic_cmd=$lt_file_magic_cmd
16275 # Flag that allows shared libraries with undefined symbols to be built.
16276 allow_undefined_flag=$lt_allow_undefined_flag_F77
16278 # Flag that forces no undefined symbols.
16279 no_undefined_flag=$lt_no_undefined_flag_F77
16281 # Commands used to finish a libtool library installation in a directory.
16282 finish_cmds=$lt_finish_cmds
16284 # Same as above, but a single script fragment to be evaled but not shown.
16285 finish_eval=$lt_finish_eval
16287 # Take the output of nm and produce a listing of raw symbols and C names.
16288 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16290 # Transform the output of nm in a proper C declaration
16291 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16293 # Transform the output of nm in a C name address pair
16294 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16296 # This is the shared library runtime path variable.
16297 runpath_var=$runpath_var
16299 # This is the shared library path variable.
16300 shlibpath_var=$shlibpath_var
16302 # Is shlibpath searched before the hard-coded library search path?
16303 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16305 # How to hardcode a shared library path into an executable.
16306 hardcode_action=$hardcode_action_F77
16308 # Whether we should hardcode library paths into libraries.
16309 hardcode_into_libs=$hardcode_into_libs
16311 # Flag to hardcode \$libdir into a binary during linking.
16312 # This must work even if \$libdir does not exist.
16313 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16315 # If ld is used when linking, flag to hardcode \$libdir into
16316 # a binary during linking. This must work even if \$libdir does
16318 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16320 # Whether we need a single -rpath flag with a separated argument.
16321 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16323 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16324 # resulting binary.
16325 hardcode_direct=$hardcode_direct_F77
16327 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16328 # resulting binary.
16329 hardcode_minus_L=$hardcode_minus_L_F77
16331 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16332 # the resulting binary.
16333 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16335 # Set to yes if building a shared library automatically hardcodes DIR into the library
16336 # and all subsequent libraries and executables linked against it.
16337 hardcode_automatic=$hardcode_automatic_F77
16339 # Variables whose values should be saved in libtool wrapper scripts and
16340 # restored at relink time.
16341 variables_saved_for_relink="$variables_saved_for_relink"
16343 # Whether libtool must link a program against all its dependency libraries.
16344 link_all_deplibs=$link_all_deplibs_F77
16346 # Compile-time system search path for libraries
16347 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16349 # Run-time system search path for libraries
16350 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16352 # Fix the shell variable \$srcfile for the compiler.
16353 fix_srcfile_path="$fix_srcfile_path_F77"
16355 # Set to yes if exported symbols are required.
16356 always_export_symbols=$always_export_symbols_F77
16358 # The commands to list exported symbols.
16359 export_symbols_cmds=$lt_export_symbols_cmds_F77
16361 # The commands to extract the exported symbol list from a shared archive.
16362 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16364 # Symbols that should not be listed in the preloaded symbols.
16365 exclude_expsyms=$lt_exclude_expsyms_F77
16367 # Symbols that must always be exported.
16368 include_expsyms=$lt_include_expsyms_F77
16370 # ### END LIBTOOL TAG CONFIG: $tagname
16376 # If there is no Makefile yet, we rely on a make rule to execute
16377 # `config.status --recheck' to rerun these tests and create the
16378 # libtool script then.
16379 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16380 if test -f "$ltmain_in"; then
16381 test -f Makefile && make "$ltmain"
16387 ac_cpp='$CPP $CPPFLAGS'
16388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16400 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16403 # Source file extension for Java test sources.
16406 # Object file extension for compiled Java test sources.
16410 # Code to be used in simple compile tests
16411 lt_simple_compile_test_code="class foo {}\n"
16413 # Code to be used in simple link tests
16414 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16416 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16418 # If no C compiler was specified, use CC.
16421 # If no C compiler flags were specified, use CFLAGS.
16422 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16424 # Allow CC to be a program name with arguments.
16428 # save warnings/boilerplate of simple test code
16429 ac_outfile=conftest.$ac_objext
16430 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16431 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16432 _lt_compiler_boilerplate=`cat conftest.err`
16435 ac_outfile=conftest.$ac_objext
16436 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16437 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16438 _lt_linker_boilerplate=`cat conftest.err`
16442 # Allow CC to be a program name with arguments.
16447 for cc_temp in $compiler""; do
16449 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16450 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16455 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16458 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16459 archive_cmds_need_lc_GCJ=no
16461 old_archive_cmds_GCJ=$old_archive_cmds
16464 lt_prog_compiler_no_builtin_flag_GCJ=
16466 if test "$GCC" = yes; then
16467 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16470 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16471 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16472 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16473 echo $ECHO_N "(cached) $ECHO_C" >&6
16475 lt_cv_prog_compiler_rtti_exceptions=no
16476 ac_outfile=conftest.$ac_objext
16477 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16478 lt_compiler_flag="-fno-rtti -fno-exceptions"
16479 # Insert the option either (1) after the last *FLAGS variable, or
16480 # (2) before a word containing "conftest.", or (3) at the end.
16481 # Note that $ac_compile itself does not contain backslashes and begins
16482 # with a dollar sign (not a hyphen), so the echo should work correctly.
16483 # The option is referenced via a variable to avoid confusing sed.
16484 lt_compile=`echo "$ac_compile" | $SED \
16485 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16487 -e 's:$: $lt_compiler_flag:'`
16488 (eval echo "\"\$as_me:16488: $lt_compile\"" >&5)
16489 (eval "$lt_compile" 2>conftest.err)
16491 cat conftest.err >&5
16492 echo "$as_me:16492: \$? = $ac_status" >&5
16493 if (exit $ac_status) && test -s "$ac_outfile"; then
16494 # The compiler can only warn and ignore the option if not recognized
16495 # So say no if there are warnings other than the usual output.
16496 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16497 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16498 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16499 lt_cv_prog_compiler_rtti_exceptions=yes
16505 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16506 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16508 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16509 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16516 lt_prog_compiler_wl_GCJ=
16517 lt_prog_compiler_pic_GCJ=
16518 lt_prog_compiler_static_GCJ=
16520 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16521 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16523 if test "$GCC" = yes; then
16524 lt_prog_compiler_wl_GCJ='-Wl,'
16525 lt_prog_compiler_static_GCJ='-static'
16529 # All AIX code is PIC.
16530 if test "$host_cpu" = ia64; then
16531 # AIX 5 now supports IA64 processor
16532 lt_prog_compiler_static_GCJ='-Bstatic'
16537 # FIXME: we need at least 68020 code to build shared libraries, but
16538 # adding the `-m68020' flag to GCC prevents building anything better,
16540 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16543 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16544 # PIC is the default for these OSes.
16547 mingw* | pw32* | os2*)
16548 # This hack is so that the source file can tell whether it is being
16549 # built for inclusion in a dll (and should export symbols for example).
16550 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16553 darwin* | rhapsody*)
16554 # PIC is the default on this platform
16555 # Common symbols not allowed in MH_DYLIB files
16556 lt_prog_compiler_pic_GCJ='-fno-common'
16560 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16561 # Instead, we relocate shared libraries at runtime.
16565 # Just because we use GCC doesn't mean we suddenly get shared libraries
16566 # on systems that don't support them.
16567 lt_prog_compiler_can_build_shared_GCJ=no
16572 if test -d /usr/nec; then
16573 lt_prog_compiler_pic_GCJ=-Kconform_pic
16578 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16579 # not for PA HP-UX.
16585 lt_prog_compiler_pic_GCJ='-fPIC'
16591 lt_prog_compiler_pic_GCJ='-fPIC'
16595 # PORTME Check for flag to pass linker flags through the system compiler.
16598 lt_prog_compiler_wl_GCJ='-Wl,'
16599 if test "$host_cpu" = ia64; then
16600 # AIX 5 now supports IA64 processor
16601 lt_prog_compiler_static_GCJ='-Bstatic'
16603 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16607 # PIC is the default on this platform
16608 # Common symbols not allowed in MH_DYLIB files
16609 case $cc_basename in
16611 lt_prog_compiler_pic_GCJ='-qnocommon'
16612 lt_prog_compiler_wl_GCJ='-Wl,'
16617 mingw* | pw32* | os2*)
16618 # This hack is so that the source file can tell whether it is being
16619 # built for inclusion in a dll (and should export symbols for example).
16620 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16623 hpux9* | hpux10* | hpux11*)
16624 lt_prog_compiler_wl_GCJ='-Wl,'
16625 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16626 # not for PA HP-UX.
16632 lt_prog_compiler_pic_GCJ='+Z'
16635 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16636 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16639 irix5* | irix6* | nonstopux*)
16640 lt_prog_compiler_wl_GCJ='-Wl,'
16641 # PIC (with -KPIC) is the default.
16642 lt_prog_compiler_static_GCJ='-non_shared'
16646 lt_prog_compiler_pic_GCJ='-KPIC'
16647 lt_prog_compiler_static_GCJ='-Bstatic'
16650 linux* | k*bsd*-gnu)
16651 case $cc_basename in
16653 lt_prog_compiler_wl_GCJ='-Wl,'
16654 lt_prog_compiler_pic_GCJ='-KPIC'
16655 lt_prog_compiler_static_GCJ='-static'
16657 pgcc* | pgf77* | pgf90* | pgf95*)
16658 # Portland Group compilers (*not* the Pentium gcc compiler,
16659 # which looks to be a dead project)
16660 lt_prog_compiler_wl_GCJ='-Wl,'
16661 lt_prog_compiler_pic_GCJ='-fpic'
16662 lt_prog_compiler_static_GCJ='-Bstatic'
16665 lt_prog_compiler_wl_GCJ='-Wl,'
16666 # All Alpha code is PIC.
16667 lt_prog_compiler_static_GCJ='-non_shared'
16672 osf3* | osf4* | osf5*)
16673 lt_prog_compiler_wl_GCJ='-Wl,'
16674 # All OSF/1 code is PIC.
16675 lt_prog_compiler_static_GCJ='-non_shared'
16679 lt_prog_compiler_pic_GCJ='-KPIC'
16680 lt_prog_compiler_static_GCJ='-Bstatic'
16681 case $cc_basename in
16682 f77* | f90* | f95*)
16683 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16685 lt_prog_compiler_wl_GCJ='-Wl,';;
16690 lt_prog_compiler_wl_GCJ='-Qoption ld '
16691 lt_prog_compiler_pic_GCJ='-PIC'
16692 lt_prog_compiler_static_GCJ='-Bstatic'
16695 sysv4 | sysv4.2uw2* | sysv4.3*)
16696 lt_prog_compiler_wl_GCJ='-Wl,'
16697 lt_prog_compiler_pic_GCJ='-KPIC'
16698 lt_prog_compiler_static_GCJ='-Bstatic'
16702 if test -d /usr/nec ;then
16703 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16704 lt_prog_compiler_static_GCJ='-Bstatic'
16708 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16709 lt_prog_compiler_wl_GCJ='-Wl,'
16710 lt_prog_compiler_pic_GCJ='-KPIC'
16711 lt_prog_compiler_static_GCJ='-Bstatic'
16715 lt_prog_compiler_wl_GCJ='-Wl,'
16716 lt_prog_compiler_can_build_shared_GCJ=no
16720 lt_prog_compiler_pic_GCJ='-pic'
16721 lt_prog_compiler_static_GCJ='-Bstatic'
16725 lt_prog_compiler_can_build_shared_GCJ=no
16730 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16731 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16734 # Check to make sure the PIC flag actually works.
16736 if test -n "$lt_prog_compiler_pic_GCJ"; then
16738 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16739 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16740 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16741 echo $ECHO_N "(cached) $ECHO_C" >&6
16743 lt_prog_compiler_pic_works_GCJ=no
16744 ac_outfile=conftest.$ac_objext
16745 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16746 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16747 # Insert the option either (1) after the last *FLAGS variable, or
16748 # (2) before a word containing "conftest.", or (3) at the end.
16749 # Note that $ac_compile itself does not contain backslashes and begins
16750 # with a dollar sign (not a hyphen), so the echo should work correctly.
16751 # The option is referenced via a variable to avoid confusing sed.
16752 lt_compile=`echo "$ac_compile" | $SED \
16753 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16754 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16755 -e 's:$: $lt_compiler_flag:'`
16756 (eval echo "\"\$as_me:16756: $lt_compile\"" >&5)
16757 (eval "$lt_compile" 2>conftest.err)
16759 cat conftest.err >&5
16760 echo "$as_me:16760: \$? = $ac_status" >&5
16761 if (exit $ac_status) && test -s "$ac_outfile"; then
16762 # The compiler can only warn and ignore the option if not recognized
16763 # So say no if there are warnings other than the usual output.
16764 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16765 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16766 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16767 lt_prog_compiler_pic_works_GCJ=yes
16773 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16774 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16776 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16777 case $lt_prog_compiler_pic_GCJ in
16779 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16782 lt_prog_compiler_pic_GCJ=
16783 lt_prog_compiler_can_build_shared_GCJ=no
16788 # For platforms which do not support PIC, -DPIC is meaningless:
16790 lt_prog_compiler_pic_GCJ=
16793 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16798 # Check to make sure the static flag actually works.
16800 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16801 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16802 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16803 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16804 echo $ECHO_N "(cached) $ECHO_C" >&6
16806 lt_prog_compiler_static_works_GCJ=no
16807 save_LDFLAGS="$LDFLAGS"
16808 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16809 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16810 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16811 # The linker can only warn and ignore the option if not recognized
16812 # So say no if there are warnings
16813 if test -s conftest.err; then
16814 # Append any errors to the config.log.
16815 cat conftest.err 1>&5
16816 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16817 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16818 if diff conftest.exp conftest.er2 >/dev/null; then
16819 lt_prog_compiler_static_works_GCJ=yes
16822 lt_prog_compiler_static_works_GCJ=yes
16826 LDFLAGS="$save_LDFLAGS"
16829 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16830 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16832 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16835 lt_prog_compiler_static_GCJ=
16839 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16840 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16841 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16842 echo $ECHO_N "(cached) $ECHO_C" >&6
16844 lt_cv_prog_compiler_c_o_GCJ=no
16845 $rm -r conftest 2>/dev/null
16849 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16851 lt_compiler_flag="-o out/conftest2.$ac_objext"
16852 # Insert the option either (1) after the last *FLAGS variable, or
16853 # (2) before a word containing "conftest.", or (3) at the end.
16854 # Note that $ac_compile itself does not contain backslashes and begins
16855 # with a dollar sign (not a hyphen), so the echo should work correctly.
16856 lt_compile=`echo "$ac_compile" | $SED \
16857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16859 -e 's:$: $lt_compiler_flag:'`
16860 (eval echo "\"\$as_me:16860: $lt_compile\"" >&5)
16861 (eval "$lt_compile" 2>out/conftest.err)
16863 cat out/conftest.err >&5
16864 echo "$as_me:16864: \$? = $ac_status" >&5
16865 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16867 # The compiler can only warn and ignore the option if not recognized
16868 # So say no if there are warnings
16869 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16870 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16871 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16872 lt_cv_prog_compiler_c_o_GCJ=yes
16877 # SGI C++ compiler will create directory out/ii_files/ for
16878 # template instantiation
16879 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16880 $rm out/* && rmdir out
16886 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16887 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16890 hard_links="nottested"
16891 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16892 # do not overwrite the value of need_locks provided by the user
16893 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16894 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16897 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16899 ln conftest.a conftest.b 2>&5 || hard_links=no
16900 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16901 { echo "$as_me:$LINENO: result: $hard_links" >&5
16902 echo "${ECHO_T}$hard_links" >&6; }
16903 if test "$hard_links" = no; then
16904 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16905 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16912 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16913 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16916 allow_undefined_flag_GCJ=
16917 enable_shared_with_static_runtimes_GCJ=no
16919 archive_expsym_cmds_GCJ=
16920 old_archive_From_new_cmds_GCJ=
16921 old_archive_from_expsyms_cmds_GCJ=
16922 export_dynamic_flag_spec_GCJ=
16923 whole_archive_flag_spec_GCJ=
16924 thread_safe_flag_spec_GCJ=
16925 hardcode_libdir_flag_spec_GCJ=
16926 hardcode_libdir_flag_spec_ld_GCJ=
16927 hardcode_libdir_separator_GCJ=
16928 hardcode_direct_GCJ=no
16929 hardcode_minus_L_GCJ=no
16930 hardcode_shlibpath_var_GCJ=unsupported
16931 link_all_deplibs_GCJ=unknown
16932 hardcode_automatic_GCJ=no
16934 module_expsym_cmds_GCJ=
16935 always_export_symbols_GCJ=no
16936 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16937 # include_expsyms should be a list of space-separated symbols to be *always*
16938 # included in the symbol list
16939 include_expsyms_GCJ=
16940 # exclude_expsyms can be an extended regexp of symbols to exclude
16941 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16942 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16943 # as well as any symbol that contains `d'.
16944 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16945 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16946 # platforms (ab)use it in PIC code, but their linkers get confused if
16947 # the symbol is explicitly referenced. Since portable code cannot
16948 # rely on this symbol name, it's probably fine to never include it in
16949 # preloaded symbol tables.
16950 extract_expsyms_cmds=
16951 # Just being paranoid about ensuring that cc_basename is set.
16952 for cc_temp in $compiler""; do
16954 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16955 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16960 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16963 cygwin* | mingw* | pw32*)
16964 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16965 # When not using gcc, we currently assume that we are using
16966 # Microsoft Visual C++.
16967 if test "$GCC" != yes; then
16972 # we just hope/assume this is gcc and not c89 (= MSVC++)
16981 if test "$with_gnu_ld" = yes; then
16982 # If archive_cmds runs LD, not CC, wlarc should be empty
16985 # Set some defaults for GNU ld with shared library support. These
16986 # are reset later if shared libraries are not supported. Putting them
16987 # here allows them to be overridden if necessary.
16988 runpath_var=LD_RUN_PATH
16989 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16990 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16991 # ancient GNU ld didn't support --whole-archive et. al.
16992 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16993 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16995 whole_archive_flag_spec_GCJ=
16997 supports_anon_versioning=no
16998 case `$LD -v 2>/dev/null` in
16999 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17000 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17001 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17002 *\ 2.11.*) ;; # other 2.11 versions
17003 *) supports_anon_versioning=yes ;;
17006 # See if GNU ld supports shared libraries.
17008 aix3* | aix4* | aix5*)
17009 # On AIX/PPC, the GNU linker is very broken
17010 if test "$host_cpu" != ia64; then
17014 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17015 *** to be unable to reliably create shared libraries on AIX.
17016 *** Therefore, libtool is disabling shared libraries support. If you
17017 *** really care for shared libraries, you may want to modify your PATH
17018 *** so that a non-GNU linker is found, and then restart.
17025 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)'
17026 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17027 hardcode_minus_L_GCJ=yes
17029 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17030 # that the semantics of dynamic libraries on AmigaOS, at least up
17031 # to version 4, is to share data among multiple programs linked
17032 # with the same dynamic library. Since this doesn't match the
17033 # behavior of shared libraries on other platforms, we can't use
17039 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17040 allow_undefined_flag_GCJ=unsupported
17041 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17042 # support --undefined. This deserves some investigation. FIXME
17043 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17049 cygwin* | mingw* | pw32*)
17050 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17051 # as there is no search path for DLLs.
17052 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17053 allow_undefined_flag_GCJ=unsupported
17054 always_export_symbols_GCJ=no
17055 enable_shared_with_static_runtimes_GCJ=yes
17056 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17058 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17059 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17060 # If the export-symbols file already is a .def file (1st line
17061 # is EXPORTS), use it as is; otherwise, prepend...
17062 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17063 cp $export_symbols $output_objdir/$soname.def;
17065 echo EXPORTS > $output_objdir/$soname.def;
17066 cat $export_symbols >> $output_objdir/$soname.def;
17068 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17075 hardcode_direct_GCJ=no
17076 hardcode_shlibpath_var_GCJ=no
17077 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17078 export_dynamic_flag_spec_GCJ='${wl}-E'
17079 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17080 # Instead, shared libraries are loaded at an image base (0x10000000 by
17081 # default) and relocated if they conflict, which is a slow very memory
17082 # consuming and fragmenting process. To avoid this, we pick a random,
17083 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17084 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17085 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'
17086 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'
17089 linux* | k*bsd*-gnu)
17090 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17092 case $cc_basename,$host_cpu in
17093 pgcc*) # Portland Group C compiler
17094 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'
17095 tmp_addflag=' $pic_flag'
17097 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17098 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'
17099 tmp_addflag=' $pic_flag -Mnomain' ;;
17100 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17101 tmp_addflag=' -i_dynamic' ;;
17102 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17103 tmp_addflag=' -i_dynamic -nofor_main' ;;
17104 ifc* | ifort*) # Intel Fortran compiler
17105 tmp_addflag=' -nofor_main' ;;
17107 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17109 if test $supports_anon_versioning = yes; then
17110 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17111 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17112 $echo "local: *; };" >> $output_objdir/$libname.ver~
17113 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17115 link_all_deplibs_GCJ=no
17121 netbsd* | netbsdelf*-gnu)
17122 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17123 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17126 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17127 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17132 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17136 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17137 *** create shared libraries on Solaris systems. Therefore, libtool
17138 *** is disabling shared libraries support. We urge you to upgrade GNU
17139 *** binutils to release 2.9.1 or newer. Another option is to modify
17140 *** your PATH or compiler configuration so that the native linker is
17141 *** used, and then restart.
17144 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17145 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17146 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17152 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17153 case `$LD -v 2>&1` in
17154 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17158 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17159 *** reliably create shared libraries on SCO systems. Therefore, libtool
17160 *** is disabling shared libraries support. We urge you to upgrade GNU
17161 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17162 *** your PATH or compiler configuration so that the native linker is
17163 *** used, and then restart.
17168 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17169 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17170 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17171 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17180 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17182 hardcode_direct_GCJ=yes
17183 hardcode_shlibpath_var_GCJ=no
17187 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17188 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17189 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17196 if test "$ld_shlibs_GCJ" = no; then
17198 hardcode_libdir_flag_spec_GCJ=
17199 export_dynamic_flag_spec_GCJ=
17200 whole_archive_flag_spec_GCJ=
17203 # PORTME fill in a description of your system's linker (not GNU ld)
17206 allow_undefined_flag_GCJ=unsupported
17207 always_export_symbols_GCJ=yes
17208 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'
17209 # Note: this linker hardcodes the directories in LIBPATH if there
17210 # are no directories specified by -L.
17211 hardcode_minus_L_GCJ=yes
17212 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17213 # Neither direct hardcoding nor static linking is supported with a
17215 hardcode_direct_GCJ=unsupported
17220 if test "$host_cpu" = ia64; then
17221 # On IA64, the linker does run time linking by default, so we don't
17222 # have to do anything special.
17223 aix_use_runtimelinking=no
17224 exp_sym_flag='-Bexport'
17227 # If we're using GNU nm, then we don't want the "-C" option.
17228 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17229 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17230 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'
17232 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'
17234 aix_use_runtimelinking=no
17236 # Test if we are trying to use run time linking or normal
17237 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17238 # need to do runtime linking.
17239 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17240 for ld_flag in $LDFLAGS; do
17241 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17242 aix_use_runtimelinking=yes
17249 exp_sym_flag='-bexport'
17250 no_entry_flag='-bnoentry'
17253 # When large executables or shared objects are built, AIX ld can
17254 # have problems creating the table of contents. If linking a library
17255 # or program results in "error TOC overflow" add -mminimal-toc to
17256 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17257 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17259 archive_cmds_GCJ=''
17260 hardcode_direct_GCJ=yes
17261 hardcode_libdir_separator_GCJ=':'
17262 link_all_deplibs_GCJ=yes
17264 if test "$GCC" = yes; then
17265 case $host_os in aix4.[012]|aix4.[012].*)
17266 # We only want to do this on AIX 4.2 and lower, the check
17267 # below for broken collect2 doesn't work under 4.3+
17268 collect2name=`${CC} -print-prog-name=collect2`
17269 if test -f "$collect2name" && \
17270 strings "$collect2name" | grep resolve_lib_name >/dev/null
17272 # We have reworked collect2
17273 hardcode_direct_GCJ=yes
17275 # We have old collect2
17276 hardcode_direct_GCJ=unsupported
17277 # It fails to find uninstalled libraries when the uninstalled
17278 # path is not listed in the libpath. Setting hardcode_minus_L
17279 # to unsupported forces relinking
17280 hardcode_minus_L_GCJ=yes
17281 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17282 hardcode_libdir_separator_GCJ=
17286 shared_flag='-shared'
17287 if test "$aix_use_runtimelinking" = yes; then
17288 shared_flag="$shared_flag "'${wl}-G'
17292 if test "$host_cpu" = ia64; then
17293 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17294 # chokes on -Wl,-G. The following line is correct:
17297 if test "$aix_use_runtimelinking" = yes; then
17298 shared_flag='${wl}-G'
17300 shared_flag='${wl}-bM:SRE'
17305 # It seems that -bexpall does not export symbols beginning with
17306 # underscore (_), so it is better to generate a list of symbols to export.
17307 always_export_symbols_GCJ=yes
17308 if test "$aix_use_runtimelinking" = yes; then
17309 # Warning - without using the other runtime loading flags (-brtl),
17310 # -berok will link without error, but may produce a broken library.
17311 allow_undefined_flag_GCJ='-berok'
17312 # Determine the default libpath from the value encoded in an empty executable.
17313 cat >conftest.$ac_ext <<_ACEOF
17316 cat confdefs.h >>conftest.$ac_ext
17317 cat >>conftest.$ac_ext <<_ACEOF
17318 /* end confdefs.h. */
17328 rm -f conftest.$ac_objext conftest$ac_exeext
17329 if { (ac_try="$ac_link"
17330 case "(($ac_try" in
17331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17332 *) ac_try_echo=$ac_try;;
17334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17335 (eval "$ac_link") 2>conftest.er1
17337 grep -v '^ *+' conftest.er1 >conftest.err
17339 cat conftest.err >&5
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); } && {
17342 test -z "$ac_c_werror_flag" ||
17343 test ! -s conftest.err
17344 } && test -s conftest$ac_exeext &&
17345 $as_test_x conftest$ac_exeext; then
17347 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17349 # Check for a 64-bit object if we didn't find anything.
17350 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17353 echo "$as_me: failed program was:" >&5
17354 sed 's/^/| /' conftest.$ac_ext >&5
17359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17360 conftest$ac_exeext conftest.$ac_ext
17361 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17363 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17364 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"
17366 if test "$host_cpu" = ia64; then
17367 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17368 allow_undefined_flag_GCJ="-z nodefs"
17369 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"
17371 # Determine the default libpath from the value encoded in an empty executable.
17372 cat >conftest.$ac_ext <<_ACEOF
17375 cat confdefs.h >>conftest.$ac_ext
17376 cat >>conftest.$ac_ext <<_ACEOF
17377 /* end confdefs.h. */
17387 rm -f conftest.$ac_objext conftest$ac_exeext
17388 if { (ac_try="$ac_link"
17389 case "(($ac_try" in
17390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17391 *) ac_try_echo=$ac_try;;
17393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17394 (eval "$ac_link") 2>conftest.er1
17396 grep -v '^ *+' conftest.er1 >conftest.err
17398 cat conftest.err >&5
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); } && {
17401 test -z "$ac_c_werror_flag" ||
17402 test ! -s conftest.err
17403 } && test -s conftest$ac_exeext &&
17404 $as_test_x conftest$ac_exeext; then
17406 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17408 # Check for a 64-bit object if we didn't find anything.
17409 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17412 echo "$as_me: failed program was:" >&5
17413 sed 's/^/| /' conftest.$ac_ext >&5
17418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17419 conftest$ac_exeext conftest.$ac_ext
17420 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17422 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17423 # Warning - without using the other run time loading flags,
17424 # -berok will link without error, but may produce a broken library.
17425 no_undefined_flag_GCJ=' ${wl}-bernotok'
17426 allow_undefined_flag_GCJ=' ${wl}-berok'
17427 # Exported symbols can be pulled into shared objects from archives
17428 whole_archive_flag_spec_GCJ='$convenience'
17429 archive_cmds_need_lc_GCJ=yes
17430 # This is similar to how AIX traditionally builds its shared libraries.
17431 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'
17437 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)'
17438 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17439 hardcode_minus_L_GCJ=yes
17440 # see comment about different semantics on the GNU ld section
17445 export_dynamic_flag_spec_GCJ=-rdynamic
17448 cygwin* | mingw* | pw32*)
17449 # When not using gcc, we currently assume that we are using
17450 # Microsoft Visual C++.
17451 # hardcode_libdir_flag_spec is actually meaningless, as there is
17452 # no search path for DLLs.
17453 hardcode_libdir_flag_spec_GCJ=' '
17454 allow_undefined_flag_GCJ=unsupported
17455 # Tell ltmain to make .lib files, not .a files.
17457 # Tell ltmain to make .dll files, not .so files.
17459 # FIXME: Setting linknames here is a bad hack.
17460 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17461 # The linker will automatically build a .lib file if we build a DLL.
17462 old_archive_From_new_cmds_GCJ='true'
17463 # FIXME: Should let the user specify the lib program.
17464 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17465 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17466 enable_shared_with_static_runtimes_GCJ=yes
17469 darwin* | rhapsody*)
17471 rhapsody* | darwin1.[012])
17472 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17475 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17476 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17478 case ${MACOSX_DEPLOYMENT_TARGET} in
17480 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17483 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17489 archive_cmds_need_lc_GCJ=no
17490 hardcode_direct_GCJ=no
17491 hardcode_automatic_GCJ=yes
17492 hardcode_shlibpath_var_GCJ=unsupported
17493 whole_archive_flag_spec_GCJ=''
17494 link_all_deplibs_GCJ=yes
17495 if test "$GCC" = yes ; then
17496 output_verbose_link_cmd='echo'
17497 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17498 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17499 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17500 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17501 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}'
17503 case $cc_basename in
17505 output_verbose_link_cmd='echo'
17506 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17507 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17508 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17509 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17510 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}'
17520 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17521 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17522 hardcode_shlibpath_var_GCJ=no
17529 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17530 # support. Future versions do this automatically, but an explicit c++rt0.o
17531 # does not break anything, and helps significantly (at the cost of a little
17534 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17535 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17536 hardcode_direct_GCJ=yes
17537 hardcode_shlibpath_var_GCJ=no
17540 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17542 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17543 hardcode_direct_GCJ=yes
17544 hardcode_minus_L_GCJ=yes
17545 hardcode_shlibpath_var_GCJ=no
17548 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17549 freebsd* | dragonfly*)
17550 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17551 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17552 hardcode_direct_GCJ=yes
17553 hardcode_shlibpath_var_GCJ=no
17557 if test "$GCC" = yes; then
17558 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'
17560 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'
17562 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17563 hardcode_libdir_separator_GCJ=:
17564 hardcode_direct_GCJ=yes
17566 # hardcode_minus_L: Not really in the search PATH,
17567 # but as the default location of the library.
17568 hardcode_minus_L_GCJ=yes
17569 export_dynamic_flag_spec_GCJ='${wl}-E'
17573 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17574 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17576 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17578 if test "$with_gnu_ld" = no; then
17579 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17580 hardcode_libdir_separator_GCJ=:
17582 hardcode_direct_GCJ=yes
17583 export_dynamic_flag_spec_GCJ='${wl}-E'
17585 # hardcode_minus_L: Not really in the search PATH,
17586 # but as the default location of the library.
17587 hardcode_minus_L_GCJ=yes
17592 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17595 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17598 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17601 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17607 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17610 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17613 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17617 if test "$with_gnu_ld" = no; then
17618 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17619 hardcode_libdir_separator_GCJ=:
17623 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17624 hardcode_direct_GCJ=no
17625 hardcode_shlibpath_var_GCJ=no
17628 hardcode_direct_GCJ=yes
17629 export_dynamic_flag_spec_GCJ='${wl}-E'
17631 # hardcode_minus_L: Not really in the search PATH,
17632 # but as the default location of the library.
17633 hardcode_minus_L_GCJ=yes
17639 irix5* | irix6* | nonstopux*)
17640 if test "$GCC" = yes; then
17641 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'
17643 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'
17644 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17646 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17647 hardcode_libdir_separator_GCJ=:
17648 link_all_deplibs_GCJ=yes
17651 netbsd* | netbsdelf*-gnu)
17652 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17653 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17655 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17657 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17658 hardcode_direct_GCJ=yes
17659 hardcode_shlibpath_var_GCJ=no
17663 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17664 hardcode_direct_GCJ=yes
17665 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17666 hardcode_libdir_separator_GCJ=:
17667 hardcode_shlibpath_var_GCJ=no
17671 hardcode_direct_GCJ=yes
17672 hardcode_shlibpath_var_GCJ=no
17673 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17674 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17675 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17676 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17677 export_dynamic_flag_spec_GCJ='${wl}-E'
17680 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17681 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17682 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17685 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17686 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17693 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17694 hardcode_minus_L_GCJ=yes
17695 allow_undefined_flag_GCJ=unsupported
17696 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'
17697 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17701 if test "$GCC" = yes; then
17702 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17703 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'
17705 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17706 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'
17708 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17709 hardcode_libdir_separator_GCJ=:
17712 osf4* | osf5*) # as osf3* with the addition of -msym flag
17713 if test "$GCC" = yes; then
17714 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17715 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'
17716 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17718 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17719 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'
17720 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~
17721 $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'
17723 # Both c and cxx compiler support -rpath directly
17724 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17726 hardcode_libdir_separator_GCJ=:
17730 no_undefined_flag_GCJ=' -z text'
17731 if test "$GCC" = yes; then
17733 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17734 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17735 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17738 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17739 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17740 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17742 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17743 hardcode_shlibpath_var_GCJ=no
17745 solaris2.[0-5] | solaris2.[0-5].*) ;;
17747 # The compiler driver will combine linker options so we
17748 # cannot just pass the convience library names through
17749 # without $wl, iff we do not link with $LD.
17750 # Luckily, gcc supports the same syntax we need for Sun Studio.
17751 # Supported since Solaris 2.6 (maybe 2.5.1?)
17754 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17756 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17759 link_all_deplibs_GCJ=yes
17763 if test "x$host_vendor" = xsequent; then
17764 # Use $CC to link under sequent, because it throws in some extra .o
17765 # files that make .init and .fini sections work.
17766 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17768 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17770 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17771 hardcode_direct_GCJ=yes
17772 hardcode_minus_L_GCJ=yes
17773 hardcode_shlibpath_var_GCJ=no
17777 case $host_vendor in
17779 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17780 hardcode_direct_GCJ=yes # is this really true???
17783 ## LD is ld it makes a PLAMLIB
17784 ## CC just makes a GrossModule.
17785 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17786 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17787 hardcode_direct_GCJ=no
17790 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17791 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17794 runpath_var='LD_RUN_PATH'
17795 hardcode_shlibpath_var_GCJ=no
17799 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17800 hardcode_shlibpath_var_GCJ=no
17801 export_dynamic_flag_spec_GCJ='-Bexport'
17805 if test -d /usr/nec; then
17806 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17807 hardcode_shlibpath_var_GCJ=no
17808 runpath_var=LD_RUN_PATH
17809 hardcode_runpath_var=yes
17814 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17815 no_undefined_flag_GCJ='${wl}-z,text'
17816 archive_cmds_need_lc_GCJ=no
17817 hardcode_shlibpath_var_GCJ=no
17818 runpath_var='LD_RUN_PATH'
17820 if test "$GCC" = yes; then
17821 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17822 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17824 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17825 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17829 sysv5* | sco3.2v5* | sco5v6*)
17830 # Note: We can NOT use -z defs as we might desire, because we do not
17831 # link with -lc, and that would cause any symbols used from libc to
17832 # always be unresolved, which means just about no library would
17833 # ever link correctly. If we're not using GNU ld we use -z text
17834 # though, which does catch some bad symbols but isn't as heavy-handed
17836 no_undefined_flag_GCJ='${wl}-z,text'
17837 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17838 archive_cmds_need_lc_GCJ=no
17839 hardcode_shlibpath_var_GCJ=no
17840 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17841 hardcode_libdir_separator_GCJ=':'
17842 link_all_deplibs_GCJ=yes
17843 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17844 runpath_var='LD_RUN_PATH'
17846 if test "$GCC" = yes; then
17847 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17848 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17850 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17851 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17856 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17857 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17858 hardcode_shlibpath_var_GCJ=no
17867 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17868 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17869 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17872 # Do we need to explicitly link libc?
17874 case "x$archive_cmds_need_lc_GCJ" in
17876 # Assume -lc should be added
17877 archive_cmds_need_lc_GCJ=yes
17879 if test "$enable_shared" = yes && test "$GCC" = yes; then
17880 case $archive_cmds_GCJ in
17882 # FIXME: we may have to deal with multi-command sequences.
17885 # Test whether the compiler implicitly links with -lc since on some
17886 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17887 # to ld, don't add -lc before -lgcc.
17888 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17889 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17891 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17894 (eval $ac_compile) 2>&5
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); } 2>conftest.err; then
17900 libobjs=conftest.$ac_objext
17902 wl=$lt_prog_compiler_wl_GCJ
17903 pic_flag=$lt_prog_compiler_pic_GCJ
17909 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17910 allow_undefined_flag_GCJ=
17911 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17912 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); }
17917 archive_cmds_need_lc_GCJ=no
17919 archive_cmds_need_lc_GCJ=yes
17921 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17923 cat conftest.err 1>&5
17926 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17927 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17934 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17935 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17936 library_names_spec=
17937 libname_spec='lib$name'
17941 postuninstall_cmds=
17945 shlibpath_overrides_runpath=unknown
17947 dynamic_linker="$host_os ld.so"
17948 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17949 if test "$GCC" = yes; then
17950 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17951 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17952 # if the path contains ";" then we assume it to be the separator
17953 # otherwise default to the standard path separator (i.e. ":") - it is
17954 # assumed that no part of a normal pathname contains ";" but that should
17955 # okay in the real world where ";" in dirpaths is itself problematic.
17956 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17958 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17961 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17963 need_lib_prefix=unknown
17964 hardcode_into_libs=no
17966 # when you set need_version to no, make sure it does not cause -set_version
17967 # flags to be left without arguments
17968 need_version=unknown
17973 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17974 shlibpath_var=LIBPATH
17976 # AIX 3 has no versioning support, so we append a major version to the name.
17977 soname_spec='${libname}${release}${shared_ext}$major'
17984 hardcode_into_libs=yes
17985 if test "$host_cpu" = ia64; then
17986 # AIX 5 supports IA64
17987 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17988 shlibpath_var=LD_LIBRARY_PATH
17990 # With GCC up to 2.95.x, collect2 would create an import file
17991 # for dependence libraries. The import file would start with
17992 # the line `#! .'. This would cause the generated library to
17993 # depend on `.', always an invalid library. This was fixed in
17994 # development snapshots of GCC prior to 3.0.
17996 aix4 | aix4.[01] | aix4.[01].*)
17997 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17999 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18002 can_build_shared=no
18006 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18007 # soname into executable. Probably we can add versioning support to
18008 # collect2, so additional links can be useful in future.
18009 if test "$aix_use_runtimelinking" = yes; then
18010 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18011 # instead of lib<name>.a to let people know that these are not
18012 # typical AIX shared libraries.
18013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18015 # We preserve .a as extension for shared libraries through AIX4.2
18016 # and later when we are not doing run time linking.
18017 library_names_spec='${libname}${release}.a $libname.a'
18018 soname_spec='${libname}${release}${shared_ext}$major'
18020 shlibpath_var=LIBPATH
18025 library_names_spec='$libname.ixlibrary $libname.a'
18026 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18027 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'
18031 library_names_spec='${libname}${shared_ext}'
18032 dynamic_linker="$host_os ld.so"
18033 shlibpath_var=LIBRARY_PATH
18039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18040 soname_spec='${libname}${release}${shared_ext}$major'
18041 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18042 shlibpath_var=LD_LIBRARY_PATH
18043 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18044 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18045 # the default ld.so.conf also contains /usr/contrib/lib and
18046 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18047 # libtool to hard-code these into programs
18050 cygwin* | mingw* | pw32*)
18051 version_type=windows
18056 case $GCC,$host_os in
18057 yes,cygwin* | yes,mingw* | yes,pw32*)
18058 library_names_spec='$libname.dll.a'
18059 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18060 postinstall_cmds='base_file=`basename \${file}`~
18061 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18062 dldir=$destdir/`dirname \$dlpath`~
18063 test -d \$dldir || mkdir -p \$dldir~
18064 $install_prog $dir/$dlname \$dldir/$dlname~
18065 chmod a+x \$dldir/$dlname'
18066 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18067 dlpath=$dir/\$dldll~
18069 shlibpath_overrides_runpath=yes
18073 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18074 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18075 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18078 # MinGW DLLs use traditional 'lib' prefix
18079 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18080 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18081 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18082 # It is most probably a Windows format PATH printed by
18083 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18084 # path with ; separators, and with drive letters. We can handle the
18085 # drive letters (cygwin fileutils understands them), so leave them,
18086 # especially as we might pass files found there to a mingw objdump,
18087 # which wouldn't understand a cygwinified path. Ahh.
18088 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18090 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18094 # pw32 DLLs use 'pw' prefix rather than 'lib'
18095 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18101 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18104 dynamic_linker='Win32 ld.exe'
18105 # FIXME: first we should search . and the directory the executable is in
18109 darwin* | rhapsody*)
18110 dynamic_linker="$host_os dyld"
18111 version_type=darwin
18114 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18115 soname_spec='${libname}${release}${major}$shared_ext'
18116 shlibpath_overrides_runpath=yes
18117 shlibpath_var=DYLD_LIBRARY_PATH
18118 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18119 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18120 if test "$GCC" = yes; then
18121 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18123 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18125 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18133 soname_spec='${libname}${release}${shared_ext}$major'
18134 shlibpath_var=LD_LIBRARY_PATH
18141 freebsd* | dragonfly*)
18142 # DragonFly does not have aout. When/if they implement a new
18143 # versioning mechanism, adjust this.
18144 if test -x /usr/bin/objformat; then
18145 objformat=`/usr/bin/objformat`
18148 freebsd[123]*) objformat=aout ;;
18149 *) objformat=elf ;;
18152 version_type=freebsd-$objformat
18153 case $version_type in
18155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18160 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18164 shlibpath_var=LD_LIBRARY_PATH
18167 shlibpath_overrides_runpath=yes
18169 freebsd3.[01]* | freebsdelf3.[01]*)
18170 shlibpath_overrides_runpath=yes
18171 hardcode_into_libs=yes
18173 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18174 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18175 shlibpath_overrides_runpath=no
18176 hardcode_into_libs=yes
18178 freebsd*) # from 4.6 on
18179 shlibpath_overrides_runpath=yes
18180 hardcode_into_libs=yes
18189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18190 soname_spec='${libname}${release}${shared_ext}$major'
18191 shlibpath_var=LD_LIBRARY_PATH
18192 hardcode_into_libs=yes
18195 hpux9* | hpux10* | hpux11*)
18196 # Give a soname corresponding to the major version so that dld.sl refuses to
18197 # link against other versions.
18204 hardcode_into_libs=yes
18205 dynamic_linker="$host_os dld.so"
18206 shlibpath_var=LD_LIBRARY_PATH
18207 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18209 soname_spec='${libname}${release}${shared_ext}$major'
18210 if test "X$HPUX_IA64_MODE" = X32; then
18211 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18213 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18215 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18219 hardcode_into_libs=yes
18220 dynamic_linker="$host_os dld.sl"
18221 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18222 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18224 soname_spec='${libname}${release}${shared_ext}$major'
18225 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18226 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18230 dynamic_linker="$host_os dld.sl"
18231 shlibpath_var=SHLIB_PATH
18232 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18234 soname_spec='${libname}${release}${shared_ext}$major'
18237 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18238 postinstall_cmds='chmod 555 $lib'
18245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18246 soname_spec='${libname}${release}${shared_ext}$major'
18247 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18248 shlibpath_var=LD_LIBRARY_PATH
18249 shlibpath_overrides_runpath=no
18250 hardcode_into_libs=yes
18253 irix5* | irix6* | nonstopux*)
18255 nonstopux*) version_type=nonstopux ;;
18257 if test "$lt_cv_prog_gnu_ld" = yes; then
18265 soname_spec='${libname}${release}${shared_ext}$major'
18266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18268 irix5* | nonstopux*)
18269 libsuff= shlibsuff=
18272 case $LD in # libtool.m4 will add one of these switches to LD
18273 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18274 libsuff= shlibsuff= libmagic=32-bit;;
18275 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18276 libsuff=32 shlibsuff=N32 libmagic=N32;;
18277 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18278 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18279 *) libsuff= shlibsuff= libmagic=never-match;;
18283 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18284 shlibpath_overrides_runpath=no
18285 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18286 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18287 hardcode_into_libs=yes
18290 # No shared lib support for Linux oldld, aout, or coff.
18291 linux*oldld* | linux*aout* | linux*coff*)
18295 # This must be Linux ELF.
18296 linux* | k*bsd*-gnu)
18300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18301 soname_spec='${libname}${release}${shared_ext}$major'
18302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18303 shlibpath_var=LD_LIBRARY_PATH
18304 shlibpath_overrides_runpath=no
18305 # This implies no fast_install, which is unacceptable.
18306 # Some rework will be needed to allow for fast_install
18307 # before this can be enabled.
18308 hardcode_into_libs=yes
18310 # Append ld.so.conf contents to the search path
18311 if test -f /etc/ld.so.conf; then
18312 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18313 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18316 # We used to test for /lib/ld.so.1 and disable shared libraries on
18317 # powerpc, because MkLinux only supported shared libraries with the
18318 # GNU dynamic linker. Since this was broken with cross compilers,
18319 # most powerpc-linux boxes support dynamic linking these days and
18320 # people can always --disable-shared, the test was removed, and we
18321 # assume the GNU/Linux dynamic linker is in use.
18322 dynamic_linker='GNU/Linux ld.so'
18329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18330 soname_spec='${libname}${release}${shared_ext}$major'
18331 shlibpath_var=LD_LIBRARY_PATH
18332 shlibpath_overrides_runpath=no
18333 hardcode_into_libs=yes
18334 dynamic_linker='NetBSD ld.elf_so'
18341 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18343 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18344 dynamic_linker='NetBSD (a.out) ld.so'
18346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18347 soname_spec='${libname}${release}${shared_ext}$major'
18348 dynamic_linker='NetBSD ld.elf_so'
18350 shlibpath_var=LD_LIBRARY_PATH
18351 shlibpath_overrides_runpath=yes
18352 hardcode_into_libs=yes
18357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18358 shlibpath_var=LD_LIBRARY_PATH
18359 shlibpath_overrides_runpath=yes
18366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18367 soname_spec='${libname}${release}${shared_ext}$major'
18368 shlibpath_var=LD_LIBRARY_PATH
18369 shlibpath_overrides_runpath=yes
18374 sys_lib_dlsearch_path_spec="/usr/lib"
18376 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18378 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18379 *) need_version=no ;;
18381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18383 shlibpath_var=LD_LIBRARY_PATH
18384 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18386 openbsd2.[89] | openbsd2.[89].*)
18387 shlibpath_overrides_runpath=no
18390 shlibpath_overrides_runpath=yes
18394 shlibpath_overrides_runpath=yes
18399 libname_spec='$name'
18402 library_names_spec='$libname${shared_ext} $libname.a'
18403 dynamic_linker='OS/2 ld.exe'
18404 shlibpath_var=LIBPATH
18407 osf3* | osf4* | osf5*)
18411 soname_spec='${libname}${release}${shared_ext}$major'
18412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18413 shlibpath_var=LD_LIBRARY_PATH
18414 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18415 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18423 soname_spec='${libname}${release}${shared_ext}$major'
18424 shlibpath_var=LD_LIBRARY_PATH
18425 shlibpath_overrides_runpath=yes
18426 hardcode_into_libs=yes
18427 # ldd complains unless libraries are executable
18428 postinstall_cmds='chmod +x $lib'
18433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18434 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18435 shlibpath_var=LD_LIBRARY_PATH
18436 shlibpath_overrides_runpath=yes
18437 if test "$with_gnu_ld" = yes; then
18445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18446 soname_spec='${libname}${release}${shared_ext}$major'
18447 shlibpath_var=LD_LIBRARY_PATH
18448 case $host_vendor in
18450 shlibpath_overrides_runpath=no
18452 export_dynamic_flag_spec='${wl}-Blargedynsym'
18453 runpath_var=LD_RUN_PATH
18461 shlibpath_overrides_runpath=no
18462 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18468 if test -d /usr/nec ;then
18470 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18471 soname_spec='$libname${shared_ext}.$major'
18472 shlibpath_var=LD_LIBRARY_PATH
18476 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18477 version_type=freebsd-elf
18480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18481 soname_spec='${libname}${release}${shared_ext}$major'
18482 shlibpath_var=LD_LIBRARY_PATH
18483 hardcode_into_libs=yes
18484 if test "$with_gnu_ld" = yes; then
18485 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18486 shlibpath_overrides_runpath=no
18488 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18489 shlibpath_overrides_runpath=yes
18492 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18496 sys_lib_dlsearch_path_spec='/usr/lib'
18501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18502 soname_spec='${libname}${release}${shared_ext}$major'
18503 shlibpath_var=LD_LIBRARY_PATH
18510 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18511 echo "${ECHO_T}$dynamic_linker" >&6; }
18512 test "$dynamic_linker" = no && can_build_shared=no
18514 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18515 if test "$GCC" = yes; then
18516 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18519 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18520 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18521 hardcode_action_GCJ=
18522 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18523 test -n "$runpath_var_GCJ" || \
18524 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18526 # We can hardcode non-existant directories.
18527 if test "$hardcode_direct_GCJ" != no &&
18528 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18529 # have to relink, otherwise we might link with an installed library
18530 # when we should be linking with a yet-to-be-installed one
18531 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18532 test "$hardcode_minus_L_GCJ" != no; then
18533 # Linking always hardcodes the temporary library directory.
18534 hardcode_action_GCJ=relink
18536 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18537 hardcode_action_GCJ=immediate
18540 # We cannot hardcode anything, or else we can only hardcode existing
18542 hardcode_action_GCJ=unsupported
18544 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18545 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18547 if test "$hardcode_action_GCJ" = relink; then
18548 # Fast installation is not supported
18549 enable_fast_install=no
18550 elif test "$shlibpath_overrides_runpath" = yes ||
18551 test "$enable_shared" = no; then
18552 # Fast installation is not necessary
18553 enable_fast_install=needless
18557 # The else clause should only fire when bootstrapping the
18558 # libtool distribution, otherwise you forgot to ship ltmain.sh
18559 # with your package, and you will get complaints that there are
18560 # no rules to generate ltmain.sh.
18561 if test -f "$ltmain"; then
18562 # See if we are running on zsh, and set the options which allow our commands through
18563 # without removal of \ escapes.
18564 if test -n "${ZSH_VERSION+set}" ; then
18565 setopt NO_GLOB_SUBST
18567 # Now quote all the things that may contain metacharacters while being
18568 # careful not to overquote the AC_SUBSTed values. We take copies of the
18569 # variables and quote the copies for generation of the libtool script.
18570 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18572 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18573 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18574 deplibs_check_method reload_flag reload_cmds need_locks \
18575 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18576 lt_cv_sys_global_symbol_to_c_name_address \
18577 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18578 old_postinstall_cmds old_postuninstall_cmds \
18582 lt_prog_compiler_wl_GCJ \
18583 lt_prog_compiler_pic_GCJ \
18584 lt_prog_compiler_static_GCJ \
18585 lt_prog_compiler_no_builtin_flag_GCJ \
18586 export_dynamic_flag_spec_GCJ \
18587 thread_safe_flag_spec_GCJ \
18588 whole_archive_flag_spec_GCJ \
18589 enable_shared_with_static_runtimes_GCJ \
18590 old_archive_cmds_GCJ \
18591 old_archive_from_new_cmds_GCJ \
18592 predep_objects_GCJ \
18593 postdep_objects_GCJ \
18596 compiler_lib_search_path_GCJ \
18598 archive_expsym_cmds_GCJ \
18599 postinstall_cmds_GCJ \
18600 postuninstall_cmds_GCJ \
18601 old_archive_from_expsyms_cmds_GCJ \
18602 allow_undefined_flag_GCJ \
18603 no_undefined_flag_GCJ \
18604 export_symbols_cmds_GCJ \
18605 hardcode_libdir_flag_spec_GCJ \
18606 hardcode_libdir_flag_spec_ld_GCJ \
18607 hardcode_libdir_separator_GCJ \
18608 hardcode_automatic_GCJ \
18610 module_expsym_cmds_GCJ \
18611 lt_cv_prog_compiler_c_o_GCJ \
18612 exclude_expsyms_GCJ \
18613 include_expsyms_GCJ; do
18616 old_archive_cmds_GCJ | \
18617 old_archive_from_new_cmds_GCJ | \
18618 archive_cmds_GCJ | \
18619 archive_expsym_cmds_GCJ | \
18620 module_cmds_GCJ | \
18621 module_expsym_cmds_GCJ | \
18622 old_archive_from_expsyms_cmds_GCJ | \
18623 export_symbols_cmds_GCJ | \
18624 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18625 postinstall_cmds | postuninstall_cmds | \
18626 old_postinstall_cmds | old_postuninstall_cmds | \
18627 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18628 # Double-quote double-evaled strings.
18629 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18632 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18638 *'\$0 --fallback-echo"')
18639 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18645 cat <<__EOF__ >> "$cfgfile"
18646 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18648 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18650 # Shell to use when invoking shell scripts.
18653 # Whether or not to build shared libraries.
18654 build_libtool_libs=$enable_shared
18656 # Whether or not to build static libraries.
18657 build_old_libs=$enable_static
18659 # Whether or not to add -lc for building shared libraries.
18660 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18662 # Whether or not to disallow shared libs when runtime libs are static
18663 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18665 # Whether or not to optimize for fast installation.
18666 fast_install=$enable_fast_install
18669 host_alias=$host_alias
18673 # The build system.
18674 build_alias=$build_alias
18678 # An echo program that does not interpret backslashes.
18683 AR_FLAGS=$lt_AR_FLAGS
18688 # LTCC compiler flags.
18689 LTCFLAGS=$lt_LTCFLAGS
18691 # A language-specific compiler.
18692 CC=$lt_compiler_GCJ
18694 # Is the compiler the GNU C compiler?
18700 # The linker used to build libraries.
18703 # Whether we need hard or soft links.
18706 # A BSD-compatible nm program.
18709 # A symbol stripping program
18712 # Used to examine libraries when file_magic_cmd begins "file"
18713 MAGIC_CMD=$MAGIC_CMD
18715 # Used on cygwin: DLL creation program.
18718 # Used on cygwin: object dumper.
18721 # Used on cygwin: assembler.
18724 # The name of the directory that contains temporary libtool files.
18727 # How to create reloadable object files.
18728 reload_flag=$lt_reload_flag
18729 reload_cmds=$lt_reload_cmds
18731 # How to pass a linker flag through the compiler.
18732 wl=$lt_lt_prog_compiler_wl_GCJ
18734 # Object file suffix (normally "o").
18735 objext="$ac_objext"
18737 # Old archive suffix (normally "a").
18740 # Shared library suffix (normally ".so").
18741 shrext_cmds='$shrext_cmds'
18743 # Executable file suffix (normally "").
18746 # Additional compiler flags for building library objects.
18747 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18750 # What is the maximum length of a command?
18751 max_cmd_len=$lt_cv_sys_max_cmd_len
18753 # Does compiler simultaneously support -c and -o options?
18754 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18756 # Must we lock files when doing compilation?
18757 need_locks=$lt_need_locks
18759 # Do we need the lib prefix for modules?
18760 need_lib_prefix=$need_lib_prefix
18762 # Do we need a version for libraries?
18763 need_version=$need_version
18765 # Whether dlopen is supported.
18766 dlopen_support=$enable_dlopen
18768 # Whether dlopen of programs is supported.
18769 dlopen_self=$enable_dlopen_self
18771 # Whether dlopen of statically linked programs is supported.
18772 dlopen_self_static=$enable_dlopen_self_static
18774 # Compiler flag to prevent dynamic linking.
18775 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18777 # Compiler flag to turn off builtin functions.
18778 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18780 # Compiler flag to allow reflexive dlopens.
18781 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18783 # Compiler flag to generate shared objects directly from archives.
18784 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18786 # Compiler flag to generate thread-safe objects.
18787 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18789 # Library versioning type.
18790 version_type=$version_type
18792 # Format of library name prefix.
18793 libname_spec=$lt_libname_spec
18795 # List of archive names. First name is the real one, the rest are links.
18796 # The last name is the one that the linker finds with -lNAME.
18797 library_names_spec=$lt_library_names_spec
18799 # The coded name of the library, if different from the real name.
18800 soname_spec=$lt_soname_spec
18802 # Commands used to build and install an old-style archive.
18804 old_archive_cmds=$lt_old_archive_cmds_GCJ
18805 old_postinstall_cmds=$lt_old_postinstall_cmds
18806 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18808 # Create an old-style archive from a shared archive.
18809 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18811 # Create a temporary old-style archive to link instead of a shared archive.
18812 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18814 # Commands used to build and install a shared archive.
18815 archive_cmds=$lt_archive_cmds_GCJ
18816 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18817 postinstall_cmds=$lt_postinstall_cmds
18818 postuninstall_cmds=$lt_postuninstall_cmds
18820 # Commands used to build a loadable module (assumed same as above if empty)
18821 module_cmds=$lt_module_cmds_GCJ
18822 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18824 # Commands to strip libraries.
18825 old_striplib=$lt_old_striplib
18826 striplib=$lt_striplib
18828 # Dependencies to place before the objects being linked to create a
18830 predep_objects=$lt_predep_objects_GCJ
18832 # Dependencies to place after the objects being linked to create a
18834 postdep_objects=$lt_postdep_objects_GCJ
18836 # Dependencies to place before the objects being linked to create a
18838 predeps=$lt_predeps_GCJ
18840 # Dependencies to place after the objects being linked to create a
18842 postdeps=$lt_postdeps_GCJ
18844 # The library search path used internally by the compiler when linking
18845 # a shared library.
18846 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18848 # Method to check whether dependent libraries are shared objects.
18849 deplibs_check_method=$lt_deplibs_check_method
18851 # Command to use when deplibs_check_method == file_magic.
18852 file_magic_cmd=$lt_file_magic_cmd
18854 # Flag that allows shared libraries with undefined symbols to be built.
18855 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18857 # Flag that forces no undefined symbols.
18858 no_undefined_flag=$lt_no_undefined_flag_GCJ
18860 # Commands used to finish a libtool library installation in a directory.
18861 finish_cmds=$lt_finish_cmds
18863 # Same as above, but a single script fragment to be evaled but not shown.
18864 finish_eval=$lt_finish_eval
18866 # Take the output of nm and produce a listing of raw symbols and C names.
18867 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18869 # Transform the output of nm in a proper C declaration
18870 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18872 # Transform the output of nm in a C name address pair
18873 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18875 # This is the shared library runtime path variable.
18876 runpath_var=$runpath_var
18878 # This is the shared library path variable.
18879 shlibpath_var=$shlibpath_var
18881 # Is shlibpath searched before the hard-coded library search path?
18882 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18884 # How to hardcode a shared library path into an executable.
18885 hardcode_action=$hardcode_action_GCJ
18887 # Whether we should hardcode library paths into libraries.
18888 hardcode_into_libs=$hardcode_into_libs
18890 # Flag to hardcode \$libdir into a binary during linking.
18891 # This must work even if \$libdir does not exist.
18892 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18894 # If ld is used when linking, flag to hardcode \$libdir into
18895 # a binary during linking. This must work even if \$libdir does
18897 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18899 # Whether we need a single -rpath flag with a separated argument.
18900 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18902 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18903 # resulting binary.
18904 hardcode_direct=$hardcode_direct_GCJ
18906 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18907 # resulting binary.
18908 hardcode_minus_L=$hardcode_minus_L_GCJ
18910 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18911 # the resulting binary.
18912 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18914 # Set to yes if building a shared library automatically hardcodes DIR into the library
18915 # and all subsequent libraries and executables linked against it.
18916 hardcode_automatic=$hardcode_automatic_GCJ
18918 # Variables whose values should be saved in libtool wrapper scripts and
18919 # restored at relink time.
18920 variables_saved_for_relink="$variables_saved_for_relink"
18922 # Whether libtool must link a program against all its dependency libraries.
18923 link_all_deplibs=$link_all_deplibs_GCJ
18925 # Compile-time system search path for libraries
18926 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18928 # Run-time system search path for libraries
18929 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18931 # Fix the shell variable \$srcfile for the compiler.
18932 fix_srcfile_path="$fix_srcfile_path_GCJ"
18934 # Set to yes if exported symbols are required.
18935 always_export_symbols=$always_export_symbols_GCJ
18937 # The commands to list exported symbols.
18938 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18940 # The commands to extract the exported symbol list from a shared archive.
18941 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18943 # Symbols that should not be listed in the preloaded symbols.
18944 exclude_expsyms=$lt_exclude_expsyms_GCJ
18946 # Symbols that must always be exported.
18947 include_expsyms=$lt_include_expsyms_GCJ
18949 # ### END LIBTOOL TAG CONFIG: $tagname
18955 # If there is no Makefile yet, we rely on a make rule to execute
18956 # `config.status --recheck' to rerun these tests and create the
18957 # libtool script then.
18958 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18959 if test -f "$ltmain_in"; then
18960 test -f Makefile && make "$ltmain"
18966 ac_cpp='$CPP $CPPFLAGS'
18967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18981 # Source file extension for RC test sources.
18984 # Object file extension for compiled RC test sources.
18988 # Code to be used in simple compile tests
18989 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18991 # Code to be used in simple link tests
18992 lt_simple_link_test_code="$lt_simple_compile_test_code"
18994 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18996 # If no C compiler was specified, use CC.
18999 # If no C compiler flags were specified, use CFLAGS.
19000 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19002 # Allow CC to be a program name with arguments.
19006 # save warnings/boilerplate of simple test code
19007 ac_outfile=conftest.$ac_objext
19008 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19009 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19010 _lt_compiler_boilerplate=`cat conftest.err`
19013 ac_outfile=conftest.$ac_objext
19014 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19015 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19016 _lt_linker_boilerplate=`cat conftest.err`
19020 # Allow CC to be a program name with arguments.
19025 for cc_temp in $compiler""; do
19027 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19028 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19033 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19035 lt_cv_prog_compiler_c_o_RC=yes
19037 # The else clause should only fire when bootstrapping the
19038 # libtool distribution, otherwise you forgot to ship ltmain.sh
19039 # with your package, and you will get complaints that there are
19040 # no rules to generate ltmain.sh.
19041 if test -f "$ltmain"; then
19042 # See if we are running on zsh, and set the options which allow our commands through
19043 # without removal of \ escapes.
19044 if test -n "${ZSH_VERSION+set}" ; then
19045 setopt NO_GLOB_SUBST
19047 # Now quote all the things that may contain metacharacters while being
19048 # careful not to overquote the AC_SUBSTed values. We take copies of the
19049 # variables and quote the copies for generation of the libtool script.
19050 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19052 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19053 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19054 deplibs_check_method reload_flag reload_cmds need_locks \
19055 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19056 lt_cv_sys_global_symbol_to_c_name_address \
19057 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19058 old_postinstall_cmds old_postuninstall_cmds \
19062 lt_prog_compiler_wl_RC \
19063 lt_prog_compiler_pic_RC \
19064 lt_prog_compiler_static_RC \
19065 lt_prog_compiler_no_builtin_flag_RC \
19066 export_dynamic_flag_spec_RC \
19067 thread_safe_flag_spec_RC \
19068 whole_archive_flag_spec_RC \
19069 enable_shared_with_static_runtimes_RC \
19070 old_archive_cmds_RC \
19071 old_archive_from_new_cmds_RC \
19072 predep_objects_RC \
19073 postdep_objects_RC \
19076 compiler_lib_search_path_RC \
19078 archive_expsym_cmds_RC \
19079 postinstall_cmds_RC \
19080 postuninstall_cmds_RC \
19081 old_archive_from_expsyms_cmds_RC \
19082 allow_undefined_flag_RC \
19083 no_undefined_flag_RC \
19084 export_symbols_cmds_RC \
19085 hardcode_libdir_flag_spec_RC \
19086 hardcode_libdir_flag_spec_ld_RC \
19087 hardcode_libdir_separator_RC \
19088 hardcode_automatic_RC \
19090 module_expsym_cmds_RC \
19091 lt_cv_prog_compiler_c_o_RC \
19092 exclude_expsyms_RC \
19093 include_expsyms_RC; do
19096 old_archive_cmds_RC | \
19097 old_archive_from_new_cmds_RC | \
19098 archive_cmds_RC | \
19099 archive_expsym_cmds_RC | \
19101 module_expsym_cmds_RC | \
19102 old_archive_from_expsyms_cmds_RC | \
19103 export_symbols_cmds_RC | \
19104 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19105 postinstall_cmds | postuninstall_cmds | \
19106 old_postinstall_cmds | old_postuninstall_cmds | \
19107 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19108 # Double-quote double-evaled strings.
19109 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19112 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19118 *'\$0 --fallback-echo"')
19119 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19125 cat <<__EOF__ >> "$cfgfile"
19126 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19128 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19130 # Shell to use when invoking shell scripts.
19133 # Whether or not to build shared libraries.
19134 build_libtool_libs=$enable_shared
19136 # Whether or not to build static libraries.
19137 build_old_libs=$enable_static
19139 # Whether or not to add -lc for building shared libraries.
19140 build_libtool_need_lc=$archive_cmds_need_lc_RC
19142 # Whether or not to disallow shared libs when runtime libs are static
19143 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19145 # Whether or not to optimize for fast installation.
19146 fast_install=$enable_fast_install
19149 host_alias=$host_alias
19153 # The build system.
19154 build_alias=$build_alias
19158 # An echo program that does not interpret backslashes.
19163 AR_FLAGS=$lt_AR_FLAGS
19168 # LTCC compiler flags.
19169 LTCFLAGS=$lt_LTCFLAGS
19171 # A language-specific compiler.
19174 # Is the compiler the GNU C compiler?
19180 # The linker used to build libraries.
19183 # Whether we need hard or soft links.
19186 # A BSD-compatible nm program.
19189 # A symbol stripping program
19192 # Used to examine libraries when file_magic_cmd begins "file"
19193 MAGIC_CMD=$MAGIC_CMD
19195 # Used on cygwin: DLL creation program.
19198 # Used on cygwin: object dumper.
19201 # Used on cygwin: assembler.
19204 # The name of the directory that contains temporary libtool files.
19207 # How to create reloadable object files.
19208 reload_flag=$lt_reload_flag
19209 reload_cmds=$lt_reload_cmds
19211 # How to pass a linker flag through the compiler.
19212 wl=$lt_lt_prog_compiler_wl_RC
19214 # Object file suffix (normally "o").
19215 objext="$ac_objext"
19217 # Old archive suffix (normally "a").
19220 # Shared library suffix (normally ".so").
19221 shrext_cmds='$shrext_cmds'
19223 # Executable file suffix (normally "").
19226 # Additional compiler flags for building library objects.
19227 pic_flag=$lt_lt_prog_compiler_pic_RC
19230 # What is the maximum length of a command?
19231 max_cmd_len=$lt_cv_sys_max_cmd_len
19233 # Does compiler simultaneously support -c and -o options?
19234 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19236 # Must we lock files when doing compilation?
19237 need_locks=$lt_need_locks
19239 # Do we need the lib prefix for modules?
19240 need_lib_prefix=$need_lib_prefix
19242 # Do we need a version for libraries?
19243 need_version=$need_version
19245 # Whether dlopen is supported.
19246 dlopen_support=$enable_dlopen
19248 # Whether dlopen of programs is supported.
19249 dlopen_self=$enable_dlopen_self
19251 # Whether dlopen of statically linked programs is supported.
19252 dlopen_self_static=$enable_dlopen_self_static
19254 # Compiler flag to prevent dynamic linking.
19255 link_static_flag=$lt_lt_prog_compiler_static_RC
19257 # Compiler flag to turn off builtin functions.
19258 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19260 # Compiler flag to allow reflexive dlopens.
19261 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19263 # Compiler flag to generate shared objects directly from archives.
19264 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19266 # Compiler flag to generate thread-safe objects.
19267 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19269 # Library versioning type.
19270 version_type=$version_type
19272 # Format of library name prefix.
19273 libname_spec=$lt_libname_spec
19275 # List of archive names. First name is the real one, the rest are links.
19276 # The last name is the one that the linker finds with -lNAME.
19277 library_names_spec=$lt_library_names_spec
19279 # The coded name of the library, if different from the real name.
19280 soname_spec=$lt_soname_spec
19282 # Commands used to build and install an old-style archive.
19284 old_archive_cmds=$lt_old_archive_cmds_RC
19285 old_postinstall_cmds=$lt_old_postinstall_cmds
19286 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19288 # Create an old-style archive from a shared archive.
19289 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19291 # Create a temporary old-style archive to link instead of a shared archive.
19292 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19294 # Commands used to build and install a shared archive.
19295 archive_cmds=$lt_archive_cmds_RC
19296 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19297 postinstall_cmds=$lt_postinstall_cmds
19298 postuninstall_cmds=$lt_postuninstall_cmds
19300 # Commands used to build a loadable module (assumed same as above if empty)
19301 module_cmds=$lt_module_cmds_RC
19302 module_expsym_cmds=$lt_module_expsym_cmds_RC
19304 # Commands to strip libraries.
19305 old_striplib=$lt_old_striplib
19306 striplib=$lt_striplib
19308 # Dependencies to place before the objects being linked to create a
19310 predep_objects=$lt_predep_objects_RC
19312 # Dependencies to place after the objects being linked to create a
19314 postdep_objects=$lt_postdep_objects_RC
19316 # Dependencies to place before the objects being linked to create a
19318 predeps=$lt_predeps_RC
19320 # Dependencies to place after the objects being linked to create a
19322 postdeps=$lt_postdeps_RC
19324 # The library search path used internally by the compiler when linking
19325 # a shared library.
19326 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19328 # Method to check whether dependent libraries are shared objects.
19329 deplibs_check_method=$lt_deplibs_check_method
19331 # Command to use when deplibs_check_method == file_magic.
19332 file_magic_cmd=$lt_file_magic_cmd
19334 # Flag that allows shared libraries with undefined symbols to be built.
19335 allow_undefined_flag=$lt_allow_undefined_flag_RC
19337 # Flag that forces no undefined symbols.
19338 no_undefined_flag=$lt_no_undefined_flag_RC
19340 # Commands used to finish a libtool library installation in a directory.
19341 finish_cmds=$lt_finish_cmds
19343 # Same as above, but a single script fragment to be evaled but not shown.
19344 finish_eval=$lt_finish_eval
19346 # Take the output of nm and produce a listing of raw symbols and C names.
19347 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19349 # Transform the output of nm in a proper C declaration
19350 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19352 # Transform the output of nm in a C name address pair
19353 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19355 # This is the shared library runtime path variable.
19356 runpath_var=$runpath_var
19358 # This is the shared library path variable.
19359 shlibpath_var=$shlibpath_var
19361 # Is shlibpath searched before the hard-coded library search path?
19362 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19364 # How to hardcode a shared library path into an executable.
19365 hardcode_action=$hardcode_action_RC
19367 # Whether we should hardcode library paths into libraries.
19368 hardcode_into_libs=$hardcode_into_libs
19370 # Flag to hardcode \$libdir into a binary during linking.
19371 # This must work even if \$libdir does not exist.
19372 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19374 # If ld is used when linking, flag to hardcode \$libdir into
19375 # a binary during linking. This must work even if \$libdir does
19377 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19379 # Whether we need a single -rpath flag with a separated argument.
19380 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19382 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19383 # resulting binary.
19384 hardcode_direct=$hardcode_direct_RC
19386 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19387 # resulting binary.
19388 hardcode_minus_L=$hardcode_minus_L_RC
19390 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19391 # the resulting binary.
19392 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19394 # Set to yes if building a shared library automatically hardcodes DIR into the library
19395 # and all subsequent libraries and executables linked against it.
19396 hardcode_automatic=$hardcode_automatic_RC
19398 # Variables whose values should be saved in libtool wrapper scripts and
19399 # restored at relink time.
19400 variables_saved_for_relink="$variables_saved_for_relink"
19402 # Whether libtool must link a program against all its dependency libraries.
19403 link_all_deplibs=$link_all_deplibs_RC
19405 # Compile-time system search path for libraries
19406 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19408 # Run-time system search path for libraries
19409 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19411 # Fix the shell variable \$srcfile for the compiler.
19412 fix_srcfile_path="$fix_srcfile_path_RC"
19414 # Set to yes if exported symbols are required.
19415 always_export_symbols=$always_export_symbols_RC
19417 # The commands to list exported symbols.
19418 export_symbols_cmds=$lt_export_symbols_cmds_RC
19420 # The commands to extract the exported symbol list from a shared archive.
19421 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19423 # Symbols that should not be listed in the preloaded symbols.
19424 exclude_expsyms=$lt_exclude_expsyms_RC
19426 # Symbols that must always be exported.
19427 include_expsyms=$lt_include_expsyms_RC
19429 # ### END LIBTOOL TAG CONFIG: $tagname
19435 # If there is no Makefile yet, we rely on a make rule to execute
19436 # `config.status --recheck' to rerun these tests and create the
19437 # libtool script then.
19438 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19439 if test -f "$ltmain_in"; then
19440 test -f Makefile && make "$ltmain"
19446 ac_cpp='$CPP $CPPFLAGS'
19447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19456 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19457 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19458 { (exit 1); exit 1; }; }
19462 # Append the new tag name to the list of available tags.
19463 if test -n "$tagname" ; then
19464 available_tags="$available_tags $tagname"
19470 # Now substitute the updated list of available tags.
19471 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19472 mv "${ofile}T" "$ofile"
19476 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19477 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19478 { (exit 1); exit 1; }; }
19484 # This can be used to rebuild libtool when needed
19485 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19487 # Always use our own libtool.
19488 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19490 # Prevent multiple expansion
19516 { echo "$as_me:$LINENO: result: " >&5
19517 echo "${ECHO_T}" >&6; }
19518 { echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
19519 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6; }
19522 ac_cpp='$CPP $CPPFLAGS'
19523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19526 if test -n "$ac_tool_prefix"; then
19527 for ac_prog in xlC gcc cc
19529 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19530 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19533 if test "${ac_cv_prog_CC+set}" = set; then
19534 echo $ECHO_N "(cached) $ECHO_C" >&6
19536 if test -n "$CC"; then
19537 ac_cv_prog_CC="$CC" # Let the user override the test.
19539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19540 for as_dir in $PATH
19543 test -z "$as_dir" && as_dir=.
19544 for ac_exec_ext in '' $ac_executable_extensions; do
19545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19546 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19557 if test -n "$CC"; then
19558 { echo "$as_me:$LINENO: result: $CC" >&5
19559 echo "${ECHO_T}$CC" >&6; }
19561 { echo "$as_me:$LINENO: result: no" >&5
19562 echo "${ECHO_T}no" >&6; }
19566 test -n "$CC" && break
19569 if test -z "$CC"; then
19571 for ac_prog in xlC gcc cc
19573 # Extract the first word of "$ac_prog", so it can be a program name with args.
19574 set dummy $ac_prog; ac_word=$2
19575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19577 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19578 echo $ECHO_N "(cached) $ECHO_C" >&6
19580 if test -n "$ac_ct_CC"; then
19581 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19584 for as_dir in $PATH
19587 test -z "$as_dir" && as_dir=.
19588 for ac_exec_ext in '' $ac_executable_extensions; do
19589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19590 ac_cv_prog_ac_ct_CC="$ac_prog"
19591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19600 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19601 if test -n "$ac_ct_CC"; then
19602 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19603 echo "${ECHO_T}$ac_ct_CC" >&6; }
19605 { echo "$as_me:$LINENO: result: no" >&5
19606 echo "${ECHO_T}no" >&6; }
19610 test -n "$ac_ct_CC" && break
19613 if test "x$ac_ct_CC" = x; then
19616 case $cross_compiling:$ac_tool_warned in
19618 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19619 whose name does not start with the host triplet. If you think this
19620 configuration is useful to you, please write to autoconf@gnu.org." >&5
19621 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19622 whose name does not start with the host triplet. If you think this
19623 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19624 ac_tool_warned=yes ;;
19631 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19632 See \`config.log' for more details." >&5
19633 echo "$as_me: error: no acceptable C compiler found in \$PATH
19634 See \`config.log' for more details." >&2;}
19635 { (exit 1); exit 1; }; }
19637 # Provide some information about the compiler.
19638 echo "$as_me:$LINENO: checking for C compiler version" >&5
19639 ac_compiler=`set X $ac_compile; echo $2`
19640 { (ac_try="$ac_compiler --version >&5"
19641 case "(($ac_try" in
19642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643 *) ac_try_echo=$ac_try;;
19645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646 (eval "$ac_compiler --version >&5") 2>&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }
19650 { (ac_try="$ac_compiler -v >&5"
19651 case "(($ac_try" in
19652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19653 *) ac_try_echo=$ac_try;;
19655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19656 (eval "$ac_compiler -v >&5") 2>&5
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); }
19660 { (ac_try="$ac_compiler -V >&5"
19661 case "(($ac_try" in
19662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19663 *) ac_try_echo=$ac_try;;
19665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19666 (eval "$ac_compiler -V >&5") 2>&5
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); }
19671 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19672 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19673 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19674 echo $ECHO_N "(cached) $ECHO_C" >&6
19676 cat >conftest.$ac_ext <<_ACEOF
19679 cat confdefs.h >>conftest.$ac_ext
19680 cat >>conftest.$ac_ext <<_ACEOF
19681 /* end confdefs.h. */
19694 rm -f conftest.$ac_objext
19695 if { (ac_try="$ac_compile"
19696 case "(($ac_try" in
19697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698 *) ac_try_echo=$ac_try;;
19700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701 (eval "$ac_compile") 2>conftest.er1
19703 grep -v '^ *+' conftest.er1 >conftest.err
19705 cat conftest.err >&5
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); } && {
19708 test -z "$ac_c_werror_flag" ||
19709 test ! -s conftest.err
19710 } && test -s conftest.$ac_objext; then
19711 ac_compiler_gnu=yes
19713 echo "$as_me: failed program was:" >&5
19714 sed 's/^/| /' conftest.$ac_ext >&5
19719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19720 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19723 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19724 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19725 GCC=`test $ac_compiler_gnu = yes && echo yes`
19726 ac_test_CFLAGS=${CFLAGS+set}
19727 ac_save_CFLAGS=$CFLAGS
19728 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19729 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19730 if test "${ac_cv_prog_cc_g+set}" = set; then
19731 echo $ECHO_N "(cached) $ECHO_C" >&6
19733 ac_save_c_werror_flag=$ac_c_werror_flag
19734 ac_c_werror_flag=yes
19737 cat >conftest.$ac_ext <<_ACEOF
19740 cat confdefs.h >>conftest.$ac_ext
19741 cat >>conftest.$ac_ext <<_ACEOF
19742 /* end confdefs.h. */
19752 rm -f conftest.$ac_objext
19753 if { (ac_try="$ac_compile"
19754 case "(($ac_try" in
19755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19756 *) ac_try_echo=$ac_try;;
19758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19759 (eval "$ac_compile") 2>conftest.er1
19761 grep -v '^ *+' conftest.er1 >conftest.err
19763 cat conftest.err >&5
19764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 (exit $ac_status); } && {
19766 test -z "$ac_c_werror_flag" ||
19767 test ! -s conftest.err
19768 } && test -s conftest.$ac_objext; then
19769 ac_cv_prog_cc_g=yes
19771 echo "$as_me: failed program was:" >&5
19772 sed 's/^/| /' conftest.$ac_ext >&5
19775 cat >conftest.$ac_ext <<_ACEOF
19778 cat confdefs.h >>conftest.$ac_ext
19779 cat >>conftest.$ac_ext <<_ACEOF
19780 /* end confdefs.h. */
19790 rm -f conftest.$ac_objext
19791 if { (ac_try="$ac_compile"
19792 case "(($ac_try" in
19793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794 *) ac_try_echo=$ac_try;;
19796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797 (eval "$ac_compile") 2>conftest.er1
19799 grep -v '^ *+' conftest.er1 >conftest.err
19801 cat conftest.err >&5
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); } && {
19804 test -z "$ac_c_werror_flag" ||
19805 test ! -s conftest.err
19806 } && test -s conftest.$ac_objext; then
19809 echo "$as_me: failed program was:" >&5
19810 sed 's/^/| /' conftest.$ac_ext >&5
19812 ac_c_werror_flag=$ac_save_c_werror_flag
19814 cat >conftest.$ac_ext <<_ACEOF
19817 cat confdefs.h >>conftest.$ac_ext
19818 cat >>conftest.$ac_ext <<_ACEOF
19819 /* end confdefs.h. */
19829 rm -f conftest.$ac_objext
19830 if { (ac_try="$ac_compile"
19831 case "(($ac_try" in
19832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19833 *) ac_try_echo=$ac_try;;
19835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19836 (eval "$ac_compile") 2>conftest.er1
19838 grep -v '^ *+' conftest.er1 >conftest.err
19840 cat conftest.err >&5
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); } && {
19843 test -z "$ac_c_werror_flag" ||
19844 test ! -s conftest.err
19845 } && test -s conftest.$ac_objext; then
19846 ac_cv_prog_cc_g=yes
19848 echo "$as_me: failed program was:" >&5
19849 sed 's/^/| /' conftest.$ac_ext >&5
19854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19861 ac_c_werror_flag=$ac_save_c_werror_flag
19863 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19864 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19865 if test "$ac_test_CFLAGS" = set; then
19866 CFLAGS=$ac_save_CFLAGS
19867 elif test $ac_cv_prog_cc_g = yes; then
19868 if test "$GCC" = yes; then
19874 if test "$GCC" = yes; then
19880 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19881 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19882 if test "${ac_cv_prog_cc_c89+set}" = set; then
19883 echo $ECHO_N "(cached) $ECHO_C" >&6
19885 ac_cv_prog_cc_c89=no
19887 cat >conftest.$ac_ext <<_ACEOF
19890 cat confdefs.h >>conftest.$ac_ext
19891 cat >>conftest.$ac_ext <<_ACEOF
19892 /* end confdefs.h. */
19893 #include <stdarg.h>
19895 #include <sys/types.h>
19896 #include <sys/stat.h>
19897 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19898 struct buf { int x; };
19899 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19900 static char *e (p, i)
19906 static char *f (char * (*g) (char **, int), char **p, ...)
19911 s = g (p, va_arg (v,int));
19916 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19917 function prototypes and stuff, but not '\xHH' hex character constants.
19918 These don't provoke an error unfortunately, instead are silently treated
19919 as 'x'. The following induces an error, until -std is added to get
19920 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19921 array size at least. It's necessary to write '\x00'==0 to get something
19922 that's true only with -std. */
19923 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19925 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19926 inside strings and character constants. */
19928 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19930 int test (int i, double x);
19931 struct s1 {int (*f) (int a);};
19932 struct s2 {int (*f) (double a);};
19933 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19939 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19944 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19945 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19947 CC="$ac_save_CC $ac_arg"
19948 rm -f conftest.$ac_objext
19949 if { (ac_try="$ac_compile"
19950 case "(($ac_try" in
19951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19952 *) ac_try_echo=$ac_try;;
19954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19955 (eval "$ac_compile") 2>conftest.er1
19957 grep -v '^ *+' conftest.er1 >conftest.err
19959 cat conftest.err >&5
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); } && {
19962 test -z "$ac_c_werror_flag" ||
19963 test ! -s conftest.err
19964 } && test -s conftest.$ac_objext; then
19965 ac_cv_prog_cc_c89=$ac_arg
19967 echo "$as_me: failed program was:" >&5
19968 sed 's/^/| /' conftest.$ac_ext >&5
19973 rm -f core conftest.err conftest.$ac_objext
19974 test "x$ac_cv_prog_cc_c89" != "xno" && break
19976 rm -f conftest.$ac_ext
19981 case "x$ac_cv_prog_cc_c89" in
19983 { echo "$as_me:$LINENO: result: none needed" >&5
19984 echo "${ECHO_T}none needed" >&6; } ;;
19986 { echo "$as_me:$LINENO: result: unsupported" >&5
19987 echo "${ECHO_T}unsupported" >&6; } ;;
19989 CC="$CC $ac_cv_prog_cc_c89"
19990 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19991 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19996 ac_cpp='$CPP $CPPFLAGS'
19997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20001 depcc="$CC" am_compiler_list=
20003 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20004 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20005 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20006 echo $ECHO_N "(cached) $ECHO_C" >&6
20008 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20009 # We make a subdir and do the tests there. Otherwise we can end up
20010 # making bogus files that we don't know about and never remove. For
20011 # instance it was reported that on HP-UX the gcc test will end up
20012 # making a dummy file named `D' -- because `-MD' means `put the output
20015 # Copy depcomp to subdir because otherwise we won't find it if we're
20016 # using a relative directory.
20017 cp "$am_depcomp" conftest.dir
20019 # We will build objects and dependencies in a subdirectory because
20020 # it helps to detect inapplicable dependency modes. For instance
20021 # both Tru64's cc and ICC support -MD to output dependencies as a
20022 # side effect of compilation, but ICC will put the dependencies in
20023 # the current directory while Tru64 will put them in the object
20027 am_cv_CC_dependencies_compiler_type=none
20028 if test "$am_compiler_list" = ""; then
20029 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20031 for depmode in $am_compiler_list; do
20032 # Setup a source with many dependencies, because some compilers
20033 # like to wrap large dependency lists on column 80 (with \), and
20034 # we should not choose a depcomp mode which is confused by this.
20036 # We need to recreate these files for each test, as the compiler may
20037 # overwrite some of them when testing with obscure command lines.
20038 # This happens at least with the AIX C compiler.
20040 for i in 1 2 3 4 5 6; do
20041 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20042 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20043 # Solaris 8's {/usr,}/bin/sh.
20044 touch sub/conftst$i.h
20046 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20050 # after this tag, mechanisms are not by side-effect, so they'll
20051 # only be used when explicitly requested
20052 if test "x$enable_dependency_tracking" = xyes; then
20060 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20061 # mode. It turns out that the SunPro C++ compiler does not properly
20062 # handle `-M -o', and we need to detect this.
20063 if depmode=$depmode \
20064 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20065 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20066 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20067 >/dev/null 2>conftest.err &&
20068 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20069 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20070 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20071 # icc doesn't choke on unknown options, it will just issue warnings
20072 # or remarks (even with -Werror). So we grep stderr for any message
20073 # that says an option was ignored or not supported.
20074 # When given -MP, icc 7.0 and 7.1 complain thusly:
20075 # icc: Command line warning: ignoring option '-M'; no argument required
20076 # The diagnosis changed in icc 8.0:
20077 # icc: Command line remark: option '-MP' not supported
20078 if (grep 'ignoring option' conftest.err ||
20079 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20080 am_cv_CC_dependencies_compiler_type=$depmode
20087 rm -rf conftest.dir
20089 am_cv_CC_dependencies_compiler_type=none
20093 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20094 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20095 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20100 test "x$enable_dependency_tracking" != xno \
20101 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20102 am__fastdepCC_TRUE=
20103 am__fastdepCC_FALSE='#'
20105 am__fastdepCC_TRUE='#'
20106 am__fastdepCC_FALSE=
20110 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20111 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
20114 echo timestamp > conftest.file
20115 # Do `set' in a subshell so we don't clobber the current shell's
20116 # arguments. Must try -L first in case configure is actually a
20117 # symlink; some systems play weird games with the mod time of symlinks
20118 # (eg FreeBSD returns the mod time of the symlink's containing
20121 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
20122 if test "$*" = "X"; then
20124 set X `ls -t $srcdir/configure conftest.file`
20126 rm -f conftest.file
20127 if test "$*" != "X $srcdir/configure conftest.file" \
20128 && test "$*" != "X conftest.file $srcdir/configure"; then
20130 # If neither matched, then we have a broken ls. This can happen
20131 # if, for instance, CONFIG_SHELL is bash and it inherits a
20132 # broken ls alias from the environment. This has actually
20133 # happened. Such a system could not be considered "sane".
20134 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
20135 alias in your environment" >&5
20136 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
20137 alias in your environment" >&2;}
20138 { (exit 1); exit 1; }; }
20141 test "$2" = conftest.file
20147 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20148 Check your system clock" >&5
20149 echo "$as_me: error: newly created file is older than distributed files!
20150 Check your system clock" >&2;}
20151 { (exit 1); exit 1; }; }
20153 { echo "$as_me:$LINENO: result: yes" >&5
20154 echo "${ECHO_T}yes" >&6; }
20155 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20156 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20157 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20158 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20159 echo $ECHO_N "(cached) $ECHO_C" >&6
20161 cat >conftest.make <<\_ACEOF
20164 @echo '@@@%%%=$(MAKE)=@@@%%%'
20166 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20167 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20168 *@@@%%%=?*=@@@%%%*)
20169 eval ac_cv_prog_make_${ac_make}_set=yes;;
20171 eval ac_cv_prog_make_${ac_make}_set=no;;
20173 rm -f conftest.make
20175 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20176 { echo "$as_me:$LINENO: result: yes" >&5
20177 echo "${ECHO_T}yes" >&6; }
20180 { echo "$as_me:$LINENO: result: no" >&5
20181 echo "${ECHO_T}no" >&6; }
20182 SET_MAKE="MAKE=${MAKE-make}"
20186 { echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
20187 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6; }
20188 if test "$cross_compiling" = yes; then
20189 { echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
20190 echo "${ECHO_T}assuming the worse in cross-compilation" >&6; }
20192 cat >conftest.$ac_ext <<_ACEOF
20195 cat confdefs.h >>conftest.$ac_ext
20196 cat >>conftest.$ac_ext <<_ACEOF
20197 /* end confdefs.h. */
20207 rm -f conftest$ac_exeext
20208 if { (ac_try="$ac_link"
20209 case "(($ac_try" in
20210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20211 *) ac_try_echo=$ac_try;;
20213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20214 (eval "$ac_link") 2>&5
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20218 { (case "(($ac_try" in
20219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20220 *) ac_try_echo=$ac_try;;
20222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20223 (eval "$ac_try") 2>&5
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); }; }; then
20228 cat >>confdefs.h <<\_ACEOF
20229 #define PRINTF_NULL_WORKING 1
20232 { echo "$as_me:$LINENO: result: yes" >&5
20233 echo "${ECHO_T}yes" >&6; }
20235 echo "$as_me: program exited with status $ac_status" >&5
20236 echo "$as_me: failed program was:" >&5
20237 sed 's/^/| /' conftest.$ac_ext >&5
20239 ( exit $ac_status )
20240 { echo "$as_me:$LINENO: result: no" >&5
20241 echo "${ECHO_T}no" >&6; }
20243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20249 { echo "$as_me:$LINENO: checking for va_copy() function" >&5
20250 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6; }
20251 if test "${ac_cv_va_copy+set}" = set; then
20252 echo $ECHO_N "(cached) $ECHO_C" >&6
20259 if test ".$ac_cv_va_copy" = .; then
20260 if test "$cross_compiling" = yes; then
20261 ac_cv_va_copy="C99"
20263 cat >conftest.$ac_ext <<_ACEOF
20266 cat confdefs.h >>conftest.$ac_ext
20267 cat >>conftest.$ac_ext <<_ACEOF
20268 /* end confdefs.h. */
20270 #include <stdlib.h>
20271 #include <stdarg.h>
20272 #include <string.h>
20273 #define DO_VA_COPY(d, s) va_copy((d), (s))
20274 void test(char *str, ...)
20279 DO_VA_COPY(ap2, ap);
20280 for (i = 1; i <= 9; i++) {
20281 int k = (int)va_arg(ap, int);
20285 DO_VA_COPY(ap, ap2);
20286 for (i = 1; i <= 9; i++) {
20287 int k = (int)va_arg(ap, int);
20293 int main(int argc, char *argv[])
20295 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20300 rm -f conftest$ac_exeext
20301 if { (ac_try="$ac_link"
20302 case "(($ac_try" in
20303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20304 *) ac_try_echo=$ac_try;;
20306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20307 (eval "$ac_link") 2>&5
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20311 { (case "(($ac_try" in
20312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20313 *) ac_try_echo=$ac_try;;
20315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20316 (eval "$ac_try") 2>&5
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); }; }; then
20320 ac_cv_va_copy="C99"
20322 echo "$as_me: program exited with status $ac_status" >&5
20323 echo "$as_me: failed program was:" >&5
20324 sed 's/^/| /' conftest.$ac_ext >&5
20327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20336 if test ".$ac_cv_va_copy" = .; then
20337 if test "$cross_compiling" = yes; then
20338 ac_cv_va_copy="GCM"
20340 cat >conftest.$ac_ext <<_ACEOF
20343 cat confdefs.h >>conftest.$ac_ext
20344 cat >>conftest.$ac_ext <<_ACEOF
20345 /* end confdefs.h. */
20347 #include <stdlib.h>
20348 #include <stdarg.h>
20349 #include <string.h>
20350 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
20351 void test(char *str, ...)
20356 DO_VA_COPY(ap2, ap);
20357 for (i = 1; i <= 9; i++) {
20358 int k = (int)va_arg(ap, int);
20362 DO_VA_COPY(ap, ap2);
20363 for (i = 1; i <= 9; i++) {
20364 int k = (int)va_arg(ap, int);
20370 int main(int argc, char *argv[])
20372 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20377 rm -f conftest$ac_exeext
20378 if { (ac_try="$ac_link"
20379 case "(($ac_try" in
20380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20381 *) ac_try_echo=$ac_try;;
20383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20384 (eval "$ac_link") 2>&5
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20388 { (case "(($ac_try" in
20389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20390 *) ac_try_echo=$ac_try;;
20392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20393 (eval "$ac_try") 2>&5
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); }; }; then
20397 ac_cv_va_copy="GCM"
20399 echo "$as_me: program exited with status $ac_status" >&5
20400 echo "$as_me: failed program was:" >&5
20401 sed 's/^/| /' conftest.$ac_ext >&5
20404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20413 if test ".$ac_cv_va_copy" = .; then
20414 if test "$cross_compiling" = yes; then
20415 ac_cv_va_copy="GCH"
20417 cat >conftest.$ac_ext <<_ACEOF
20420 cat confdefs.h >>conftest.$ac_ext
20421 cat >>conftest.$ac_ext <<_ACEOF
20422 /* end confdefs.h. */
20424 #include <stdlib.h>
20425 #include <stdarg.h>
20426 #include <string.h>
20427 #define DO_VA_COPY(d, s) __va_copy((d), (s))
20428 void test(char *str, ...)
20433 DO_VA_COPY(ap2, ap);
20434 for (i = 1; i <= 9; i++) {
20435 int k = (int)va_arg(ap, int);
20439 DO_VA_COPY(ap, ap2);
20440 for (i = 1; i <= 9; i++) {
20441 int k = (int)va_arg(ap, int);
20447 int main(int argc, char *argv[])
20449 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20454 rm -f conftest$ac_exeext
20455 if { (ac_try="$ac_link"
20456 case "(($ac_try" in
20457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20458 *) ac_try_echo=$ac_try;;
20460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20461 (eval "$ac_link") 2>&5
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20465 { (case "(($ac_try" in
20466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20467 *) ac_try_echo=$ac_try;;
20469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20470 (eval "$ac_try") 2>&5
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); }; }; then
20474 ac_cv_va_copy="GCH"
20476 echo "$as_me: program exited with status $ac_status" >&5
20477 echo "$as_me: failed program was:" >&5
20478 sed 's/^/| /' conftest.$ac_ext >&5
20481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20490 if test ".$ac_cv_va_copy" = .; then
20491 if test "$cross_compiling" = yes; then
20492 ac_cv_va_copy="GCB"
20494 cat >conftest.$ac_ext <<_ACEOF
20497 cat confdefs.h >>conftest.$ac_ext
20498 cat >>conftest.$ac_ext <<_ACEOF
20499 /* end confdefs.h. */
20501 #include <stdlib.h>
20502 #include <stdarg.h>
20503 #include <string.h>
20504 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
20505 void test(char *str, ...)
20510 DO_VA_COPY(ap2, ap);
20511 for (i = 1; i <= 9; i++) {
20512 int k = (int)va_arg(ap, int);
20516 DO_VA_COPY(ap, ap2);
20517 for (i = 1; i <= 9; i++) {
20518 int k = (int)va_arg(ap, int);
20524 int main(int argc, char *argv[])
20526 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20531 rm -f conftest$ac_exeext
20532 if { (ac_try="$ac_link"
20533 case "(($ac_try" in
20534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20535 *) ac_try_echo=$ac_try;;
20537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20538 (eval "$ac_link") 2>&5
20540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20542 { (case "(($ac_try" in
20543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20544 *) ac_try_echo=$ac_try;;
20546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20547 (eval "$ac_try") 2>&5
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); }; }; then
20551 ac_cv_va_copy="GCB"
20553 echo "$as_me: program exited with status $ac_status" >&5
20554 echo "$as_me: failed program was:" >&5
20555 sed 's/^/| /' conftest.$ac_ext >&5
20558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20567 if test ".$ac_cv_va_copy" = .; then
20568 if test "$cross_compiling" = yes; then
20569 ac_cv_va_copy="ASS"
20571 cat >conftest.$ac_ext <<_ACEOF
20574 cat confdefs.h >>conftest.$ac_ext
20575 cat >>conftest.$ac_ext <<_ACEOF
20576 /* end confdefs.h. */
20578 #include <stdlib.h>
20579 #include <stdarg.h>
20580 #include <string.h>
20581 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
20582 void test(char *str, ...)
20587 DO_VA_COPY(ap2, ap);
20588 for (i = 1; i <= 9; i++) {
20589 int k = (int)va_arg(ap, int);
20593 DO_VA_COPY(ap, ap2);
20594 for (i = 1; i <= 9; i++) {
20595 int k = (int)va_arg(ap, int);
20601 int main(int argc, char *argv[])
20603 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20608 rm -f conftest$ac_exeext
20609 if { (ac_try="$ac_link"
20610 case "(($ac_try" in
20611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20612 *) ac_try_echo=$ac_try;;
20614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20615 (eval "$ac_link") 2>&5
20617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20619 { (case "(($ac_try" in
20620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20621 *) ac_try_echo=$ac_try;;
20623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20624 (eval "$ac_try") 2>&5
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); }; }; then
20628 ac_cv_va_copy="ASS"
20630 echo "$as_me: program exited with status $ac_status" >&5
20631 echo "$as_me: failed program was:" >&5
20632 sed 's/^/| /' conftest.$ac_ext >&5
20635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20644 if test ".$ac_cv_va_copy" = .; then
20645 if test "$cross_compiling" = yes; then
20646 ac_cv_va_copy="ASP"
20648 cat >conftest.$ac_ext <<_ACEOF
20651 cat confdefs.h >>conftest.$ac_ext
20652 cat >>conftest.$ac_ext <<_ACEOF
20653 /* end confdefs.h. */
20655 #include <stdlib.h>
20656 #include <stdarg.h>
20657 #include <string.h>
20658 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
20659 void test(char *str, ...)
20664 DO_VA_COPY(ap2, ap);
20665 for (i = 1; i <= 9; i++) {
20666 int k = (int)va_arg(ap, int);
20670 DO_VA_COPY(ap, ap2);
20671 for (i = 1; i <= 9; i++) {
20672 int k = (int)va_arg(ap, int);
20678 int main(int argc, char *argv[])
20680 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20685 rm -f conftest$ac_exeext
20686 if { (ac_try="$ac_link"
20687 case "(($ac_try" in
20688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20689 *) ac_try_echo=$ac_try;;
20691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20692 (eval "$ac_link") 2>&5
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20696 { (case "(($ac_try" in
20697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20698 *) ac_try_echo=$ac_try;;
20700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20701 (eval "$ac_try") 2>&5
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); }; }; then
20705 ac_cv_va_copy="ASP"
20707 echo "$as_me: program exited with status $ac_status" >&5
20708 echo "$as_me: failed program was:" >&5
20709 sed 's/^/| /' conftest.$ac_ext >&5
20712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20721 if test ".$ac_cv_va_copy" = .; then
20722 if test "$cross_compiling" = yes; then
20723 ac_cv_va_copy="CPS"
20725 cat >conftest.$ac_ext <<_ACEOF
20728 cat confdefs.h >>conftest.$ac_ext
20729 cat >>conftest.$ac_ext <<_ACEOF
20730 /* end confdefs.h. */
20732 #include <stdlib.h>
20733 #include <stdarg.h>
20734 #include <string.h>
20735 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
20736 void test(char *str, ...)
20741 DO_VA_COPY(ap2, ap);
20742 for (i = 1; i <= 9; i++) {
20743 int k = (int)va_arg(ap, int);
20747 DO_VA_COPY(ap, ap2);
20748 for (i = 1; i <= 9; i++) {
20749 int k = (int)va_arg(ap, int);
20755 int main(int argc, char *argv[])
20757 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20762 rm -f conftest$ac_exeext
20763 if { (ac_try="$ac_link"
20764 case "(($ac_try" in
20765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20766 *) ac_try_echo=$ac_try;;
20768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20769 (eval "$ac_link") 2>&5
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20773 { (case "(($ac_try" in
20774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20775 *) ac_try_echo=$ac_try;;
20777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20778 (eval "$ac_try") 2>&5
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); }; }; then
20782 ac_cv_va_copy="CPS"
20784 echo "$as_me: program exited with status $ac_status" >&5
20785 echo "$as_me: failed program was:" >&5
20786 sed 's/^/| /' conftest.$ac_ext >&5
20789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20798 if test ".$ac_cv_va_copy" = .; then
20799 if test "$cross_compiling" = yes; then
20800 ac_cv_va_copy="CPP"
20802 cat >conftest.$ac_ext <<_ACEOF
20805 cat confdefs.h >>conftest.$ac_ext
20806 cat >>conftest.$ac_ext <<_ACEOF
20807 /* end confdefs.h. */
20809 #include <stdlib.h>
20810 #include <stdarg.h>
20811 #include <string.h>
20812 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
20813 void test(char *str, ...)
20818 DO_VA_COPY(ap2, ap);
20819 for (i = 1; i <= 9; i++) {
20820 int k = (int)va_arg(ap, int);
20824 DO_VA_COPY(ap, ap2);
20825 for (i = 1; i <= 9; i++) {
20826 int k = (int)va_arg(ap, int);
20832 int main(int argc, char *argv[])
20834 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20839 rm -f conftest$ac_exeext
20840 if { (ac_try="$ac_link"
20841 case "(($ac_try" in
20842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20843 *) ac_try_echo=$ac_try;;
20845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20846 (eval "$ac_link") 2>&5
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20850 { (case "(($ac_try" in
20851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20852 *) ac_try_echo=$ac_try;;
20854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20855 (eval "$ac_try") 2>&5
20857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858 (exit $ac_status); }; }; then
20859 ac_cv_va_copy="CPP"
20861 echo "$as_me: program exited with status $ac_status" >&5
20862 echo "$as_me: failed program was:" >&5
20863 sed 's/^/| /' conftest.$ac_ext >&5
20866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20872 if test ".$ac_cv_va_copy" = .; then
20873 { { echo "$as_me:$LINENO: error: no working implementation found" >&5
20874 echo "$as_me: error: no working implementation found" >&2;}
20875 { (exit 1); exit 1; }; }
20880 if test ".$ac_cv_va_copy" = ".C99"; then
20882 cat >>confdefs.h <<\_ACEOF
20883 #define HAVE_VA_COPY 1
20888 cat >>confdefs.h <<_ACEOF
20889 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
20894 if test ".$ac_cv_va_copy" = ".C99"; then
20895 { echo "$as_me:$LINENO: result: yes" >&5
20896 echo "${ECHO_T}yes" >&6; }
20898 { echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
20899 echo "${ECHO_T}no (using fallback implementation)" >&6; }
20903 # Checks for header files.
20904 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20905 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20906 if test "${ac_cv_header_stdc+set}" = set; then
20907 echo $ECHO_N "(cached) $ECHO_C" >&6
20909 cat >conftest.$ac_ext <<_ACEOF
20912 cat confdefs.h >>conftest.$ac_ext
20913 cat >>conftest.$ac_ext <<_ACEOF
20914 /* end confdefs.h. */
20915 #include <stdlib.h>
20916 #include <stdarg.h>
20917 #include <string.h>
20928 rm -f conftest.$ac_objext
20929 if { (ac_try="$ac_compile"
20930 case "(($ac_try" in
20931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20932 *) ac_try_echo=$ac_try;;
20934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20935 (eval "$ac_compile") 2>conftest.er1
20937 grep -v '^ *+' conftest.er1 >conftest.err
20939 cat conftest.err >&5
20940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941 (exit $ac_status); } && {
20942 test -z "$ac_c_werror_flag" ||
20943 test ! -s conftest.err
20944 } && test -s conftest.$ac_objext; then
20945 ac_cv_header_stdc=yes
20947 echo "$as_me: failed program was:" >&5
20948 sed 's/^/| /' conftest.$ac_ext >&5
20950 ac_cv_header_stdc=no
20953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20955 if test $ac_cv_header_stdc = yes; then
20956 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20957 cat >conftest.$ac_ext <<_ACEOF
20960 cat confdefs.h >>conftest.$ac_ext
20961 cat >>conftest.$ac_ext <<_ACEOF
20962 /* end confdefs.h. */
20963 #include <string.h>
20966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20967 $EGREP "memchr" >/dev/null 2>&1; then
20970 ac_cv_header_stdc=no
20976 if test $ac_cv_header_stdc = yes; then
20977 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20978 cat >conftest.$ac_ext <<_ACEOF
20981 cat confdefs.h >>conftest.$ac_ext
20982 cat >>conftest.$ac_ext <<_ACEOF
20983 /* end confdefs.h. */
20984 #include <stdlib.h>
20987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20988 $EGREP "free" >/dev/null 2>&1; then
20991 ac_cv_header_stdc=no
20997 if test $ac_cv_header_stdc = yes; then
20998 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20999 if test "$cross_compiling" = yes; then
21002 cat >conftest.$ac_ext <<_ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h. */
21009 #include <stdlib.h>
21010 #if ((' ' & 0x0FF) == 0x020)
21011 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21012 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21014 # define ISLOWER(c) \
21015 (('a' <= (c) && (c) <= 'i') \
21016 || ('j' <= (c) && (c) <= 'r') \
21017 || ('s' <= (c) && (c) <= 'z'))
21018 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21021 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21026 for (i = 0; i < 256; i++)
21027 if (XOR (islower (i), ISLOWER (i))
21028 || toupper (i) != TOUPPER (i))
21033 rm -f conftest$ac_exeext
21034 if { (ac_try="$ac_link"
21035 case "(($ac_try" in
21036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21037 *) ac_try_echo=$ac_try;;
21039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21040 (eval "$ac_link") 2>&5
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21044 { (case "(($ac_try" in
21045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21046 *) ac_try_echo=$ac_try;;
21048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21049 (eval "$ac_try") 2>&5
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); }; }; then
21055 echo "$as_me: program exited with status $ac_status" >&5
21056 echo "$as_me: failed program was:" >&5
21057 sed 's/^/| /' conftest.$ac_ext >&5
21059 ( exit $ac_status )
21060 ac_cv_header_stdc=no
21062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21068 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21069 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21070 if test $ac_cv_header_stdc = yes; then
21072 cat >>confdefs.h <<\_ACEOF
21073 #define STDC_HEADERS 1
21078 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21079 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21080 if test "${ac_cv_header_time+set}" = set; then
21081 echo $ECHO_N "(cached) $ECHO_C" >&6
21083 cat >conftest.$ac_ext <<_ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h. */
21089 #include <sys/types.h>
21090 #include <sys/time.h>
21096 if ((struct tm *) 0)
21102 rm -f conftest.$ac_objext
21103 if { (ac_try="$ac_compile"
21104 case "(($ac_try" in
21105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21106 *) ac_try_echo=$ac_try;;
21108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21109 (eval "$ac_compile") 2>conftest.er1
21111 grep -v '^ *+' conftest.er1 >conftest.err
21113 cat conftest.err >&5
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); } && {
21116 test -z "$ac_c_werror_flag" ||
21117 test ! -s conftest.err
21118 } && test -s conftest.$ac_objext; then
21119 ac_cv_header_time=yes
21121 echo "$as_me: failed program was:" >&5
21122 sed 's/^/| /' conftest.$ac_ext >&5
21124 ac_cv_header_time=no
21127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21129 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21130 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21131 if test $ac_cv_header_time = yes; then
21133 cat >>confdefs.h <<\_ACEOF
21134 #define TIME_WITH_SYS_TIME 1
21149 for ac_header in sys/socket.h \
21151 windows.h winsock.h winsock2.h \
21157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21162 echo $ECHO_N "(cached) $ECHO_C" >&6
21164 ac_res=`eval echo '${'$as_ac_Header'}'`
21165 { echo "$as_me:$LINENO: result: $ac_res" >&5
21166 echo "${ECHO_T}$ac_res" >&6; }
21168 # Is the header compilable?
21169 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21171 cat >conftest.$ac_ext <<_ACEOF
21174 cat confdefs.h >>conftest.$ac_ext
21175 cat >>conftest.$ac_ext <<_ACEOF
21176 /* end confdefs.h. */
21177 $ac_includes_default
21178 #include <$ac_header>
21180 rm -f conftest.$ac_objext
21181 if { (ac_try="$ac_compile"
21182 case "(($ac_try" in
21183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21184 *) ac_try_echo=$ac_try;;
21186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21187 (eval "$ac_compile") 2>conftest.er1
21189 grep -v '^ *+' conftest.er1 >conftest.err
21191 cat conftest.err >&5
21192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193 (exit $ac_status); } && {
21194 test -z "$ac_c_werror_flag" ||
21195 test ! -s conftest.err
21196 } && test -s conftest.$ac_objext; then
21197 ac_header_compiler=yes
21199 echo "$as_me: failed program was:" >&5
21200 sed 's/^/| /' conftest.$ac_ext >&5
21202 ac_header_compiler=no
21205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21207 echo "${ECHO_T}$ac_header_compiler" >&6; }
21209 # Is the header present?
21210 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21212 cat >conftest.$ac_ext <<_ACEOF
21215 cat confdefs.h >>conftest.$ac_ext
21216 cat >>conftest.$ac_ext <<_ACEOF
21217 /* end confdefs.h. */
21218 #include <$ac_header>
21220 if { (ac_try="$ac_cpp conftest.$ac_ext"
21221 case "(($ac_try" in
21222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21223 *) ac_try_echo=$ac_try;;
21225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21228 grep -v '^ *+' conftest.er1 >conftest.err
21230 cat conftest.err >&5
21231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); } >/dev/null && {
21233 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21234 test ! -s conftest.err
21236 ac_header_preproc=yes
21238 echo "$as_me: failed program was:" >&5
21239 sed 's/^/| /' conftest.$ac_ext >&5
21241 ac_header_preproc=no
21244 rm -f conftest.err conftest.$ac_ext
21245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21246 echo "${ECHO_T}$ac_header_preproc" >&6; }
21248 # So? What about this header?
21249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21255 ac_header_preproc=yes
21258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21261 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21262 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21263 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21264 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21265 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21268 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21269 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21271 ## -------------------------------------------------- ##
21272 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
21273 ## -------------------------------------------------- ##
21275 ) | sed "s/^/$as_me: WARNING: /" >&2
21278 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21281 echo $ECHO_N "(cached) $ECHO_C" >&6
21283 eval "$as_ac_Header=\$ac_header_preproc"
21285 ac_res=`eval echo '${'$as_ac_Header'}'`
21286 { echo "$as_me:$LINENO: result: $ac_res" >&5
21287 echo "${ECHO_T}$ac_res" >&6; }
21290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21291 cat >>confdefs.h <<_ACEOF
21292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21307 for ac_func in gettimeofday usleep \
21315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21316 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21318 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21319 echo $ECHO_N "(cached) $ECHO_C" >&6
21321 cat >conftest.$ac_ext <<_ACEOF
21324 cat confdefs.h >>conftest.$ac_ext
21325 cat >>conftest.$ac_ext <<_ACEOF
21326 /* end confdefs.h. */
21327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21329 #define $ac_func innocuous_$ac_func
21331 /* System header to define __stub macros and hopefully few prototypes,
21332 which can conflict with char $ac_func (); below.
21333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21334 <limits.h> exists even on freestanding compilers. */
21337 # include <limits.h>
21339 # include <assert.h>
21344 /* Override any GCC internal prototype to avoid an error.
21345 Use char because int might match the return type of a GCC
21346 builtin and then its argument prototype would still apply. */
21351 /* The GNU C library defines this for functions which it implements
21352 to always fail with ENOSYS. Some functions are actually named
21353 something starting with __ and the normal name is an alias. */
21354 #if defined __stub_$ac_func || defined __stub___$ac_func
21361 return $ac_func ();
21366 rm -f conftest.$ac_objext conftest$ac_exeext
21367 if { (ac_try="$ac_link"
21368 case "(($ac_try" in
21369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21370 *) ac_try_echo=$ac_try;;
21372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21373 (eval "$ac_link") 2>conftest.er1
21375 grep -v '^ *+' conftest.er1 >conftest.err
21377 cat conftest.err >&5
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); } && {
21380 test -z "$ac_c_werror_flag" ||
21381 test ! -s conftest.err
21382 } && test -s conftest$ac_exeext &&
21383 $as_test_x conftest$ac_exeext; then
21384 eval "$as_ac_var=yes"
21386 echo "$as_me: failed program was:" >&5
21387 sed 's/^/| /' conftest.$ac_ext >&5
21389 eval "$as_ac_var=no"
21392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21393 conftest$ac_exeext conftest.$ac_ext
21395 ac_res=`eval echo '${'$as_ac_var'}'`
21396 { echo "$as_me:$LINENO: result: $ac_res" >&5
21397 echo "${ECHO_T}$ac_res" >&6; }
21398 if test `eval echo '${'$as_ac_var'}'` = yes; then
21399 cat >>confdefs.h <<_ACEOF
21400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21407 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
21410 for ac_func in snprintf vsnprintf
21412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21413 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21415 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21416 echo $ECHO_N "(cached) $ECHO_C" >&6
21418 cat >conftest.$ac_ext <<_ACEOF
21421 cat confdefs.h >>conftest.$ac_ext
21422 cat >>conftest.$ac_ext <<_ACEOF
21423 /* end confdefs.h. */
21424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21426 #define $ac_func innocuous_$ac_func
21428 /* System header to define __stub macros and hopefully few prototypes,
21429 which can conflict with char $ac_func (); below.
21430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21431 <limits.h> exists even on freestanding compilers. */
21434 # include <limits.h>
21436 # include <assert.h>
21441 /* Override any GCC internal prototype to avoid an error.
21442 Use char because int might match the return type of a GCC
21443 builtin and then its argument prototype would still apply. */
21448 /* The GNU C library defines this for functions which it implements
21449 to always fail with ENOSYS. Some functions are actually named
21450 something starting with __ and the normal name is an alias. */
21451 #if defined __stub_$ac_func || defined __stub___$ac_func
21458 return $ac_func ();
21463 rm -f conftest.$ac_objext conftest$ac_exeext
21464 if { (ac_try="$ac_link"
21465 case "(($ac_try" in
21466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21467 *) ac_try_echo=$ac_try;;
21469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21470 (eval "$ac_link") 2>conftest.er1
21472 grep -v '^ *+' conftest.er1 >conftest.err
21474 cat conftest.err >&5
21475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476 (exit $ac_status); } && {
21477 test -z "$ac_c_werror_flag" ||
21478 test ! -s conftest.err
21479 } && test -s conftest$ac_exeext &&
21480 $as_test_x conftest$ac_exeext; then
21481 eval "$as_ac_var=yes"
21483 echo "$as_me: failed program was:" >&5
21484 sed 's/^/| /' conftest.$ac_ext >&5
21486 eval "$as_ac_var=no"
21489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21490 conftest$ac_exeext conftest.$ac_ext
21492 ac_res=`eval echo '${'$as_ac_var'}'`
21493 { echo "$as_me:$LINENO: result: $ac_res" >&5
21494 echo "${ECHO_T}$ac_res" >&6; }
21495 if test `eval echo '${'$as_ac_var'}'` = yes; then
21496 cat >>confdefs.h <<_ACEOF
21497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21503 { echo "$as_me:$LINENO: checking for working snprintf" >&5
21504 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
21505 if test "${ac_cv_have_working_snprintf+set}" = set; then
21506 echo $ECHO_N "(cached) $ECHO_C" >&6
21508 if test "$cross_compiling" = yes; then
21509 ac_cv_have_working_snprintf=cross
21511 cat >conftest.$ac_ext <<_ACEOF
21514 cat confdefs.h >>conftest.$ac_ext
21515 cat >>conftest.$ac_ext <<_ACEOF
21516 /* end confdefs.h. */
21521 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21522 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21524 i = snprintf (bufs, 2, "%s", "111");
21525 if (strcmp (bufs, "1")) exit (1);
21526 if (i != 3) exit (1);
21527 i = snprintf (bufd, 2, "%d", 111);
21528 if (strcmp (bufd, "1")) exit (1);
21529 if (i != 3) exit (1);
21533 rm -f conftest$ac_exeext
21534 if { (ac_try="$ac_link"
21535 case "(($ac_try" in
21536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21537 *) ac_try_echo=$ac_try;;
21539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21540 (eval "$ac_link") 2>&5
21542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21544 { (case "(($ac_try" in
21545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21546 *) ac_try_echo=$ac_try;;
21548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21549 (eval "$ac_try") 2>&5
21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); }; }; then
21553 ac_cv_have_working_snprintf=yes
21555 echo "$as_me: program exited with status $ac_status" >&5
21556 echo "$as_me: failed program was:" >&5
21557 sed 's/^/| /' conftest.$ac_ext >&5
21559 ( exit $ac_status )
21560 ac_cv_have_working_snprintf=no
21562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21568 { echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
21569 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; }
21570 { echo "$as_me:$LINENO: checking for working vsnprintf" >&5
21571 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
21572 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
21573 echo $ECHO_N "(cached) $ECHO_C" >&6
21575 if test "$cross_compiling" = yes; then
21576 ac_cv_have_working_vsnprintf=cross
21578 cat >conftest.$ac_ext <<_ACEOF
21581 cat confdefs.h >>conftest.$ac_ext
21582 cat >>conftest.$ac_ext <<_ACEOF
21583 /* end confdefs.h. */
21585 #include <stdarg.h>
21587 int my_vsnprintf (char *buf, const char *tmpl, ...)
21591 va_start (args, tmpl);
21592 i = vsnprintf (buf, 2, tmpl, args);
21599 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21600 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21602 i = my_vsnprintf (bufs, "%s", "111");
21603 if (strcmp (bufs, "1")) exit (1);
21604 if (i != 3) exit (1);
21605 i = my_vsnprintf (bufd, "%d", 111);
21606 if (strcmp (bufd, "1")) exit (1);
21607 if (i != 3) exit (1);
21611 rm -f conftest$ac_exeext
21612 if { (ac_try="$ac_link"
21613 case "(($ac_try" in
21614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21615 *) ac_try_echo=$ac_try;;
21617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21618 (eval "$ac_link") 2>&5
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21622 { (case "(($ac_try" in
21623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21624 *) ac_try_echo=$ac_try;;
21626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21627 (eval "$ac_try") 2>&5
21629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); }; }; then
21631 ac_cv_have_working_vsnprintf=yes
21633 echo "$as_me: program exited with status $ac_status" >&5
21634 echo "$as_me: failed program was:" >&5
21635 sed 's/^/| /' conftest.$ac_ext >&5
21637 ( exit $ac_status )
21638 ac_cv_have_working_vsnprintf=no
21640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21646 { echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
21647 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; }
21648 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
21649 case " $LIBOBJS " in
21650 *" snprintf.$ac_objext "* ) ;;
21651 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21655 { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
21656 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
21658 cat >>confdefs.h <<\_ACEOF
21659 #define PREFER_PORTABLE_SNPRINTF 1
21663 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
21664 { echo "$as_me:$LINENO: checking for asprintf" >&5
21665 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6; }
21666 if test "${ac_cv_func_asprintf+set}" = set; then
21667 echo $ECHO_N "(cached) $ECHO_C" >&6
21669 cat >conftest.$ac_ext <<_ACEOF
21672 cat confdefs.h >>conftest.$ac_ext
21673 cat >>conftest.$ac_ext <<_ACEOF
21674 /* end confdefs.h. */
21675 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
21676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21677 #define asprintf innocuous_asprintf
21679 /* System header to define __stub macros and hopefully few prototypes,
21680 which can conflict with char asprintf (); below.
21681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21682 <limits.h> exists even on freestanding compilers. */
21685 # include <limits.h>
21687 # include <assert.h>
21692 /* Override any GCC internal prototype to avoid an error.
21693 Use char because int might match the return type of a GCC
21694 builtin and then its argument prototype would still apply. */
21699 /* The GNU C library defines this for functions which it implements
21700 to always fail with ENOSYS. Some functions are actually named
21701 something starting with __ and the normal name is an alias. */
21702 #if defined __stub_asprintf || defined __stub___asprintf
21709 return asprintf ();
21714 rm -f conftest.$ac_objext conftest$ac_exeext
21715 if { (ac_try="$ac_link"
21716 case "(($ac_try" in
21717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21718 *) ac_try_echo=$ac_try;;
21720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21721 (eval "$ac_link") 2>conftest.er1
21723 grep -v '^ *+' conftest.er1 >conftest.err
21725 cat conftest.err >&5
21726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727 (exit $ac_status); } && {
21728 test -z "$ac_c_werror_flag" ||
21729 test ! -s conftest.err
21730 } && test -s conftest$ac_exeext &&
21731 $as_test_x conftest$ac_exeext; then
21732 ac_cv_func_asprintf=yes
21734 echo "$as_me: failed program was:" >&5
21735 sed 's/^/| /' conftest.$ac_ext >&5
21737 ac_cv_func_asprintf=no
21740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21741 conftest$ac_exeext conftest.$ac_ext
21743 { echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
21744 echo "${ECHO_T}$ac_cv_func_asprintf" >&6; }
21745 if test $ac_cv_func_asprintf = yes; then
21749 cat >>confdefs.h <<\_ACEOF
21750 #define NEED_ASPRINTF 1
21755 { echo "$as_me:$LINENO: checking for vasprintf" >&5
21756 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6; }
21757 if test "${ac_cv_func_vasprintf+set}" = set; then
21758 echo $ECHO_N "(cached) $ECHO_C" >&6
21760 cat >conftest.$ac_ext <<_ACEOF
21763 cat confdefs.h >>conftest.$ac_ext
21764 cat >>conftest.$ac_ext <<_ACEOF
21765 /* end confdefs.h. */
21766 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
21767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21768 #define vasprintf innocuous_vasprintf
21770 /* System header to define __stub macros and hopefully few prototypes,
21771 which can conflict with char vasprintf (); below.
21772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21773 <limits.h> exists even on freestanding compilers. */
21776 # include <limits.h>
21778 # include <assert.h>
21783 /* Override any GCC internal prototype to avoid an error.
21784 Use char because int might match the return type of a GCC
21785 builtin and then its argument prototype would still apply. */
21790 /* The GNU C library defines this for functions which it implements
21791 to always fail with ENOSYS. Some functions are actually named
21792 something starting with __ and the normal name is an alias. */
21793 #if defined __stub_vasprintf || defined __stub___vasprintf
21800 return vasprintf ();
21805 rm -f conftest.$ac_objext conftest$ac_exeext
21806 if { (ac_try="$ac_link"
21807 case "(($ac_try" in
21808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21809 *) ac_try_echo=$ac_try;;
21811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21812 (eval "$ac_link") 2>conftest.er1
21814 grep -v '^ *+' conftest.er1 >conftest.err
21816 cat conftest.err >&5
21817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); } && {
21819 test -z "$ac_c_werror_flag" ||
21820 test ! -s conftest.err
21821 } && test -s conftest$ac_exeext &&
21822 $as_test_x conftest$ac_exeext; then
21823 ac_cv_func_vasprintf=yes
21825 echo "$as_me: failed program was:" >&5
21826 sed 's/^/| /' conftest.$ac_ext >&5
21828 ac_cv_func_vasprintf=no
21831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21832 conftest$ac_exeext conftest.$ac_ext
21834 { echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
21835 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6; }
21836 if test $ac_cv_func_vasprintf = yes; then
21840 cat >>confdefs.h <<\_ACEOF
21841 #define NEED_VASPRINTF 1
21847 # Checks for typedefs, structures, and compiler characteristics.
21848 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21849 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21850 if test "${ac_cv_c_const+set}" = set; then
21851 echo $ECHO_N "(cached) $ECHO_C" >&6
21853 cat >conftest.$ac_ext <<_ACEOF
21856 cat confdefs.h >>conftest.$ac_ext
21857 cat >>conftest.$ac_ext <<_ACEOF
21858 /* end confdefs.h. */
21863 /* FIXME: Include the comments suggested by Paul. */
21864 #ifndef __cplusplus
21865 /* Ultrix mips cc rejects this. */
21866 typedef int charset[2];
21868 /* SunOS 4.1.1 cc rejects this. */
21869 char const *const *pcpcc;
21871 /* NEC SVR4.0.2 mips cc rejects this. */
21872 struct point {int x, y;};
21873 static struct point const zero = {0,0};
21874 /* AIX XL C 1.02.0.0 rejects this.
21875 It does not let you subtract one const X* pointer from another in
21876 an arm of an if-expression whose if-part is not a constant
21878 const char *g = "string";
21879 pcpcc = &g + (g ? g-g : 0);
21880 /* HPUX 7.0 cc rejects these. */
21882 ppc = (char**) pcpcc;
21883 pcpcc = (char const *const *) ppc;
21884 { /* SCO 3.2v4 cc rejects this. */
21886 char const *s = 0 ? (char *) 0 : (char const *) 0;
21891 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21892 int x[] = {25, 17};
21893 const int *foo = &x[0];
21896 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21897 typedef const int *iptr;
21901 { /* AIX XL C 1.02.0.0 rejects this saying
21902 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21903 struct s { int j; const int *ap[3]; };
21904 struct s *b; b->j = 5;
21906 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21907 const int foo = 10;
21908 if (!foo) return 0;
21910 return !cs[0] && !zero.x;
21917 rm -f conftest.$ac_objext
21918 if { (ac_try="$ac_compile"
21919 case "(($ac_try" in
21920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21921 *) ac_try_echo=$ac_try;;
21923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21924 (eval "$ac_compile") 2>conftest.er1
21926 grep -v '^ *+' conftest.er1 >conftest.err
21928 cat conftest.err >&5
21929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930 (exit $ac_status); } && {
21931 test -z "$ac_c_werror_flag" ||
21932 test ! -s conftest.err
21933 } && test -s conftest.$ac_objext; then
21936 echo "$as_me: failed program was:" >&5
21937 sed 's/^/| /' conftest.$ac_ext >&5
21942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21944 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21945 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21946 if test $ac_cv_c_const = no; then
21948 cat >>confdefs.h <<\_ACEOF
21954 { echo "$as_me:$LINENO: checking for inline" >&5
21955 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21956 if test "${ac_cv_c_inline+set}" = set; then
21957 echo $ECHO_N "(cached) $ECHO_C" >&6
21960 for ac_kw in inline __inline__ __inline; do
21961 cat >conftest.$ac_ext <<_ACEOF
21964 cat confdefs.h >>conftest.$ac_ext
21965 cat >>conftest.$ac_ext <<_ACEOF
21966 /* end confdefs.h. */
21967 #ifndef __cplusplus
21969 static $ac_kw foo_t static_foo () {return 0; }
21970 $ac_kw foo_t foo () {return 0; }
21974 rm -f conftest.$ac_objext
21975 if { (ac_try="$ac_compile"
21976 case "(($ac_try" in
21977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21978 *) ac_try_echo=$ac_try;;
21980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21981 (eval "$ac_compile") 2>conftest.er1
21983 grep -v '^ *+' conftest.er1 >conftest.err
21985 cat conftest.err >&5
21986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987 (exit $ac_status); } && {
21988 test -z "$ac_c_werror_flag" ||
21989 test ! -s conftest.err
21990 } && test -s conftest.$ac_objext; then
21991 ac_cv_c_inline=$ac_kw
21993 echo "$as_me: failed program was:" >&5
21994 sed 's/^/| /' conftest.$ac_ext >&5
21999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22000 test "$ac_cv_c_inline" != no && break
22004 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22005 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
22008 case $ac_cv_c_inline in
22011 case $ac_cv_c_inline in
22013 *) ac_val=$ac_cv_c_inline;;
22015 cat >>confdefs.h <<_ACEOF
22016 #ifndef __cplusplus
22017 #define inline $ac_val
22023 { echo "$as_me:$LINENO: checking for size_t" >&5
22024 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22025 if test "${ac_cv_type_size_t+set}" = set; then
22026 echo $ECHO_N "(cached) $ECHO_C" >&6
22028 cat >conftest.$ac_ext <<_ACEOF
22031 cat confdefs.h >>conftest.$ac_ext
22032 cat >>conftest.$ac_ext <<_ACEOF
22033 /* end confdefs.h. */
22034 $ac_includes_default
22035 typedef size_t ac__type_new_;
22039 if ((ac__type_new_ *) 0)
22041 if (sizeof (ac__type_new_))
22047 rm -f conftest.$ac_objext
22048 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
22064 ac_cv_type_size_t=yes
22066 echo "$as_me: failed program was:" >&5
22067 sed 's/^/| /' conftest.$ac_ext >&5
22069 ac_cv_type_size_t=no
22072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22074 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22075 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22076 if test $ac_cv_type_size_t = yes; then
22080 cat >>confdefs.h <<_ACEOF
22081 #define size_t unsigned int
22087 ###################################
22088 ## SimGrid and GRAS specific checks
22092 { echo "$as_me:$LINENO: result: " >&5
22093 echo "${ECHO_T}" >&6; }
22094 { echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
22095 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6; }
22097 # Check architecture signature begin
22099 # Check for the architecture
22100 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22101 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22102 if test "${ac_cv_c_bigendian+set}" = set; then
22103 echo $ECHO_N "(cached) $ECHO_C" >&6
22105 # See if sys/param.h defines the BYTE_ORDER macro.
22106 cat >conftest.$ac_ext <<_ACEOF
22109 cat confdefs.h >>conftest.$ac_ext
22110 cat >>conftest.$ac_ext <<_ACEOF
22111 /* end confdefs.h. */
22112 #include <sys/types.h>
22113 #include <sys/param.h>
22118 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22119 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22120 bogus endian macros
22127 rm -f conftest.$ac_objext
22128 if { (ac_try="$ac_compile"
22129 case "(($ac_try" in
22130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22131 *) ac_try_echo=$ac_try;;
22133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22134 (eval "$ac_compile") 2>conftest.er1
22136 grep -v '^ *+' conftest.er1 >conftest.err
22138 cat conftest.err >&5
22139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); } && {
22141 test -z "$ac_c_werror_flag" ||
22142 test ! -s conftest.err
22143 } && test -s conftest.$ac_objext; then
22144 # It does; now see whether it defined to BIG_ENDIAN or not.
22145 cat >conftest.$ac_ext <<_ACEOF
22148 cat confdefs.h >>conftest.$ac_ext
22149 cat >>conftest.$ac_ext <<_ACEOF
22150 /* end confdefs.h. */
22151 #include <sys/types.h>
22152 #include <sys/param.h>
22157 #if BYTE_ORDER != BIG_ENDIAN
22165 rm -f conftest.$ac_objext
22166 if { (ac_try="$ac_compile"
22167 case "(($ac_try" in
22168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22169 *) ac_try_echo=$ac_try;;
22171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22172 (eval "$ac_compile") 2>conftest.er1
22174 grep -v '^ *+' conftest.er1 >conftest.err
22176 cat conftest.err >&5
22177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178 (exit $ac_status); } && {
22179 test -z "$ac_c_werror_flag" ||
22180 test ! -s conftest.err
22181 } && test -s conftest.$ac_objext; then
22182 ac_cv_c_bigendian=yes
22184 echo "$as_me: failed program was:" >&5
22185 sed 's/^/| /' conftest.$ac_ext >&5
22187 ac_cv_c_bigendian=no
22190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22192 echo "$as_me: failed program was:" >&5
22193 sed 's/^/| /' conftest.$ac_ext >&5
22195 # It does not; compile a test program.
22196 if test "$cross_compiling" = yes; then
22197 # try to guess the endianness by grepping values into an object file
22198 ac_cv_c_bigendian=unknown
22199 cat >conftest.$ac_ext <<_ACEOF
22202 cat confdefs.h >>conftest.$ac_ext
22203 cat >>conftest.$ac_ext <<_ACEOF
22204 /* end confdefs.h. */
22205 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22206 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22207 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22208 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22209 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22210 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22214 _ascii (); _ebcdic ();
22219 rm -f conftest.$ac_objext
22220 if { (ac_try="$ac_compile"
22221 case "(($ac_try" in
22222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22223 *) ac_try_echo=$ac_try;;
22225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22226 (eval "$ac_compile") 2>conftest.er1
22228 grep -v '^ *+' conftest.er1 >conftest.err
22230 cat conftest.err >&5
22231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232 (exit $ac_status); } && {
22233 test -z "$ac_c_werror_flag" ||
22234 test ! -s conftest.err
22235 } && test -s conftest.$ac_objext; then
22236 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22237 ac_cv_c_bigendian=yes
22239 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22240 if test "$ac_cv_c_bigendian" = unknown; then
22241 ac_cv_c_bigendian=no
22243 # finding both strings is unlikely to happen, but who knows?
22244 ac_cv_c_bigendian=unknown
22248 echo "$as_me: failed program was:" >&5
22249 sed 's/^/| /' conftest.$ac_ext >&5
22254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22256 cat >conftest.$ac_ext <<_ACEOF
22259 cat confdefs.h >>conftest.$ac_ext
22260 cat >>conftest.$ac_ext <<_ACEOF
22261 /* end confdefs.h. */
22262 $ac_includes_default
22267 /* Are we little or big endian? From Harbison&Steele. */
22271 char c[sizeof (long int)];
22274 return u.c[sizeof (long int) - 1] == 1;
22280 rm -f conftest$ac_exeext
22281 if { (ac_try="$ac_link"
22282 case "(($ac_try" in
22283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22284 *) ac_try_echo=$ac_try;;
22286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22287 (eval "$ac_link") 2>&5
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22291 { (case "(($ac_try" in
22292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22293 *) ac_try_echo=$ac_try;;
22295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22296 (eval "$ac_try") 2>&5
22298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); }; }; then
22300 ac_cv_c_bigendian=no
22302 echo "$as_me: program exited with status $ac_status" >&5
22303 echo "$as_me: failed program was:" >&5
22304 sed 's/^/| /' conftest.$ac_ext >&5
22306 ( exit $ac_status )
22307 ac_cv_c_bigendian=yes
22309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22317 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22318 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22319 case $ac_cv_c_bigendian in
22325 { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
22326 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
22327 { (exit 1); exit 1; }; } ;;
22331 cat >>confdefs.h <<_ACEOF
22332 #define GRAS_BIGENDIAN $endian
22336 { echo "$as_me:$LINENO: checking size of char" >&5
22337 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22338 if test "${ac_cv_sizeof_char+set}" = set; then
22339 echo $ECHO_N "(cached) $ECHO_C" >&6
22341 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22342 cat >conftest.$ac_ext <<_ACEOF
22345 cat confdefs.h >>conftest.$ac_ext
22346 cat >>conftest.$ac_ext <<_ACEOF
22347 /* end confdefs.h. */
22348 #include "confdefs.h"
22349 #include <sys/types.h>
22355 switch (0) case 0: case (sizeof (char) == $ac_size):;
22360 rm -f conftest.$ac_objext
22361 if { (ac_try="$ac_compile"
22362 case "(($ac_try" in
22363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22364 *) ac_try_echo=$ac_try;;
22366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22367 (eval "$ac_compile") 2>conftest.er1
22369 grep -v '^ *+' conftest.er1 >conftest.err
22371 cat conftest.err >&5
22372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373 (exit $ac_status); } && {
22374 test -z "$ac_c_werror_flag" ||
22375 test ! -s conftest.err
22376 } && test -s conftest.$ac_objext; then
22377 ac_cv_sizeof_char=$ac_size
22379 echo "$as_me: failed program was:" >&5
22380 sed 's/^/| /' conftest.$ac_ext >&5
22385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22386 if test x$ac_cv_sizeof_char != x ; then break; fi
22392 unspecif=$ac_cv_sizeof_char
22393 if test x$unspecif = x ; then
22394 { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
22395 echo "$as_me: error: cannot determine a size for char" >&2;}
22396 { (exit 1); exit 1; }; }
22399 if test "${ac_cv_sizeof_signed_char+set}" = set; then
22400 echo $ECHO_N "(cached) $ECHO_C" >&6
22402 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22403 cat >conftest.$ac_ext <<_ACEOF
22406 cat confdefs.h >>conftest.$ac_ext
22407 cat >>conftest.$ac_ext <<_ACEOF
22408 /* end confdefs.h. */
22409 #include "confdefs.h"
22410 #include <sys/types.h>
22416 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
22421 rm -f conftest.$ac_objext
22422 if { (ac_try="$ac_compile"
22423 case "(($ac_try" in
22424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22425 *) ac_try_echo=$ac_try;;
22427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22428 (eval "$ac_compile") 2>conftest.er1
22430 grep -v '^ *+' conftest.er1 >conftest.err
22432 cat conftest.err >&5
22433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434 (exit $ac_status); } && {
22435 test -z "$ac_c_werror_flag" ||
22436 test ! -s conftest.err
22437 } && test -s conftest.$ac_objext; then
22438 ac_cv_sizeof_signed_char=$ac_size
22440 echo "$as_me: failed program was:" >&5
22441 sed 's/^/| /' conftest.$ac_ext >&5
22446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22447 if test x$ac_cv_sizeof_signed_char != x ; then break; fi
22453 signed=$ac_cv_sizeof_signed_char
22454 if test x$signed = x ; then
22455 { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
22456 echo "$as_me: error: cannot determine a size for signed char" >&2;}
22457 { (exit 1); exit 1; }; }
22459 if test x$unspecif != x$signed ; then
22460 { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
22461 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
22462 { (exit 1); exit 1; }; }
22465 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
22466 echo $ECHO_N "(cached) $ECHO_C" >&6
22468 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22469 cat >conftest.$ac_ext <<_ACEOF
22472 cat confdefs.h >>conftest.$ac_ext
22473 cat >>conftest.$ac_ext <<_ACEOF
22474 /* end confdefs.h. */
22475 #include "confdefs.h"
22476 #include <sys/types.h>
22482 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
22487 rm -f conftest.$ac_objext
22488 if { (ac_try="$ac_compile"
22489 case "(($ac_try" in
22490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22491 *) ac_try_echo=$ac_try;;
22493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22494 (eval "$ac_compile") 2>conftest.er1
22496 grep -v '^ *+' conftest.er1 >conftest.err
22498 cat conftest.err >&5
22499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500 (exit $ac_status); } && {
22501 test -z "$ac_c_werror_flag" ||
22502 test ! -s conftest.err
22503 } && test -s conftest.$ac_objext; then
22504 ac_cv_sizeof_unsigned_char=$ac_size
22506 echo "$as_me: failed program was:" >&5
22507 sed 's/^/| /' conftest.$ac_ext >&5
22512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22513 if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
22519 unsigned=$ac_cv_sizeof_unsigned_char
22520 if test x$unsigned = x ; then
22521 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
22522 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
22523 { (exit 1); exit 1; }; }
22525 if test x$unsigned != x$signed ; then
22526 { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
22527 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
22528 { (exit 1); exit 1; }; }
22531 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
22532 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
22533 { echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
22534 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6; }
22536 if test "${ac_cv_struct_boundary_char+set}" = set; then
22537 echo $ECHO_N "(cached) $ECHO_C" >&6
22539 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22540 cat >conftest.$ac_ext <<_ACEOF
22543 cat confdefs.h >>conftest.$ac_ext
22544 cat >>conftest.$ac_ext <<_ACEOF
22545 /* end confdefs.h. */
22546 #include "confdefs.h"
22547 #include <sys/types.h>
22548 struct s { char c; char i; };
22553 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
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_struct_boundary_char=$ac_size
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 if test x$ac_cv_struct_boundary_char != x ; then break; fi
22589 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
22590 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6; }
22591 if test x$ac_cv_struct_boundary_char = x ; then
22592 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
22593 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
22594 { (exit 1); exit 1; }; }
22597 { echo "$as_me:$LINENO: checking size of short int" >&5
22598 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
22599 if test "${ac_cv_sizeof_short_int+set}" = set; then
22600 echo $ECHO_N "(cached) $ECHO_C" >&6
22602 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22603 cat >conftest.$ac_ext <<_ACEOF
22606 cat confdefs.h >>conftest.$ac_ext
22607 cat >>conftest.$ac_ext <<_ACEOF
22608 /* end confdefs.h. */
22609 #include "confdefs.h"
22610 #include <sys/types.h>
22616 switch (0) case 0: case (sizeof (short int) == $ac_size):;
22621 rm -f conftest.$ac_objext
22622 if { (ac_try="$ac_compile"
22623 case "(($ac_try" in
22624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22625 *) ac_try_echo=$ac_try;;
22627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22628 (eval "$ac_compile") 2>conftest.er1
22630 grep -v '^ *+' conftest.er1 >conftest.err
22632 cat conftest.err >&5
22633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); } && {
22635 test -z "$ac_c_werror_flag" ||
22636 test ! -s conftest.err
22637 } && test -s conftest.$ac_objext; then
22638 ac_cv_sizeof_short_int=$ac_size
22640 echo "$as_me: failed program was:" >&5
22641 sed 's/^/| /' conftest.$ac_ext >&5
22646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22647 if test x$ac_cv_sizeof_short_int != x ; then break; fi
22653 unspecif=$ac_cv_sizeof_short_int
22654 if test x$unspecif = x ; then
22655 { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
22656 echo "$as_me: error: cannot determine a size for short int" >&2;}
22657 { (exit 1); exit 1; }; }
22660 if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
22661 echo $ECHO_N "(cached) $ECHO_C" >&6
22663 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22664 cat >conftest.$ac_ext <<_ACEOF
22667 cat confdefs.h >>conftest.$ac_ext
22668 cat >>conftest.$ac_ext <<_ACEOF
22669 /* end confdefs.h. */
22670 #include "confdefs.h"
22671 #include <sys/types.h>
22677 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
22682 rm -f conftest.$ac_objext
22683 if { (ac_try="$ac_compile"
22684 case "(($ac_try" in
22685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22686 *) ac_try_echo=$ac_try;;
22688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22689 (eval "$ac_compile") 2>conftest.er1
22691 grep -v '^ *+' conftest.er1 >conftest.err
22693 cat conftest.err >&5
22694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695 (exit $ac_status); } && {
22696 test -z "$ac_c_werror_flag" ||
22697 test ! -s conftest.err
22698 } && test -s conftest.$ac_objext; then
22699 ac_cv_sizeof_signed_short_int=$ac_size
22701 echo "$as_me: failed program was:" >&5
22702 sed 's/^/| /' conftest.$ac_ext >&5
22707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22708 if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
22714 signed=$ac_cv_sizeof_signed_short_int
22715 if test x$signed = x ; then
22716 { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
22717 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
22718 { (exit 1); exit 1; }; }
22720 if test x$unspecif != x$signed ; then
22721 { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
22722 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
22723 { (exit 1); exit 1; }; }
22726 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
22727 echo $ECHO_N "(cached) $ECHO_C" >&6
22729 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22730 cat >conftest.$ac_ext <<_ACEOF
22733 cat confdefs.h >>conftest.$ac_ext
22734 cat >>conftest.$ac_ext <<_ACEOF
22735 /* end confdefs.h. */
22736 #include "confdefs.h"
22737 #include <sys/types.h>
22743 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
22748 rm -f conftest.$ac_objext
22749 if { (ac_try="$ac_compile"
22750 case "(($ac_try" in
22751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22752 *) ac_try_echo=$ac_try;;
22754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22755 (eval "$ac_compile") 2>conftest.er1
22757 grep -v '^ *+' conftest.er1 >conftest.err
22759 cat conftest.err >&5
22760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761 (exit $ac_status); } && {
22762 test -z "$ac_c_werror_flag" ||
22763 test ! -s conftest.err
22764 } && test -s conftest.$ac_objext; then
22765 ac_cv_sizeof_unsigned_short_int=$ac_size
22767 echo "$as_me: failed program was:" >&5
22768 sed 's/^/| /' conftest.$ac_ext >&5
22773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22774 if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
22780 unsigned=$ac_cv_sizeof_unsigned_short_int
22781 if test x$unsigned = x ; then
22782 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
22783 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
22784 { (exit 1); exit 1; }; }
22786 if test x$unsigned != x$signed ; then
22787 { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
22788 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
22789 { (exit 1); exit 1; }; }
22792 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
22793 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
22794 { echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
22795 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6; }
22797 if test "${ac_cv_struct_boundary_short_int+set}" = set; then
22798 echo $ECHO_N "(cached) $ECHO_C" >&6
22800 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22801 cat >conftest.$ac_ext <<_ACEOF
22804 cat confdefs.h >>conftest.$ac_ext
22805 cat >>conftest.$ac_ext <<_ACEOF
22806 /* end confdefs.h. */
22807 #include "confdefs.h"
22808 #include <sys/types.h>
22809 struct s { char c; short int i; };
22814 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
22819 rm -f conftest.$ac_objext
22820 if { (ac_try="$ac_compile"
22821 case "(($ac_try" in
22822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22823 *) ac_try_echo=$ac_try;;
22825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22826 (eval "$ac_compile") 2>conftest.er1
22828 grep -v '^ *+' conftest.er1 >conftest.err
22830 cat conftest.err >&5
22831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832 (exit $ac_status); } && {
22833 test -z "$ac_c_werror_flag" ||
22834 test ! -s conftest.err
22835 } && test -s conftest.$ac_objext; then
22836 ac_cv_struct_boundary_short_int=$ac_size
22838 echo "$as_me: failed program was:" >&5
22839 sed 's/^/| /' conftest.$ac_ext >&5
22844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22845 if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
22850 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
22851 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6; }
22852 if test x$ac_cv_struct_boundary_short_int = x ; then
22853 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
22854 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
22855 { (exit 1); exit 1; }; }
22858 { echo "$as_me:$LINENO: checking size of int" >&5
22859 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22860 if test "${ac_cv_sizeof_int+set}" = set; then
22861 echo $ECHO_N "(cached) $ECHO_C" >&6
22863 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22864 cat >conftest.$ac_ext <<_ACEOF
22867 cat confdefs.h >>conftest.$ac_ext
22868 cat >>conftest.$ac_ext <<_ACEOF
22869 /* end confdefs.h. */
22870 #include "confdefs.h"
22871 #include <sys/types.h>
22877 switch (0) case 0: case (sizeof (int) == $ac_size):;
22882 rm -f conftest.$ac_objext
22883 if { (ac_try="$ac_compile"
22884 case "(($ac_try" in
22885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22886 *) ac_try_echo=$ac_try;;
22888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22889 (eval "$ac_compile") 2>conftest.er1
22891 grep -v '^ *+' conftest.er1 >conftest.err
22893 cat conftest.err >&5
22894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895 (exit $ac_status); } && {
22896 test -z "$ac_c_werror_flag" ||
22897 test ! -s conftest.err
22898 } && test -s conftest.$ac_objext; then
22899 ac_cv_sizeof_int=$ac_size
22901 echo "$as_me: failed program was:" >&5
22902 sed 's/^/| /' conftest.$ac_ext >&5
22907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22908 if test x$ac_cv_sizeof_int != x ; then break; fi
22914 unspecif=$ac_cv_sizeof_int
22915 if test x$unspecif = x ; then
22916 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
22917 echo "$as_me: error: cannot determine a size for int" >&2;}
22918 { (exit 1); exit 1; }; }
22921 if test "${ac_cv_sizeof_signed_int+set}" = set; then
22922 echo $ECHO_N "(cached) $ECHO_C" >&6
22924 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22925 cat >conftest.$ac_ext <<_ACEOF
22928 cat confdefs.h >>conftest.$ac_ext
22929 cat >>conftest.$ac_ext <<_ACEOF
22930 /* end confdefs.h. */
22931 #include "confdefs.h"
22932 #include <sys/types.h>
22938 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
22943 rm -f conftest.$ac_objext
22944 if { (ac_try="$ac_compile"
22945 case "(($ac_try" in
22946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22947 *) ac_try_echo=$ac_try;;
22949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22950 (eval "$ac_compile") 2>conftest.er1
22952 grep -v '^ *+' conftest.er1 >conftest.err
22954 cat conftest.err >&5
22955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956 (exit $ac_status); } && {
22957 test -z "$ac_c_werror_flag" ||
22958 test ! -s conftest.err
22959 } && test -s conftest.$ac_objext; then
22960 ac_cv_sizeof_signed_int=$ac_size
22962 echo "$as_me: failed program was:" >&5
22963 sed 's/^/| /' conftest.$ac_ext >&5
22968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22969 if test x$ac_cv_sizeof_signed_int != x ; then break; fi
22975 signed=$ac_cv_sizeof_signed_int
22976 if test x$signed = x ; then
22977 { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
22978 echo "$as_me: error: cannot determine a size for signed int" >&2;}
22979 { (exit 1); exit 1; }; }
22981 if test x$unspecif != x$signed ; then
22982 { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
22983 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
22984 { (exit 1); exit 1; }; }
22987 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
22988 echo $ECHO_N "(cached) $ECHO_C" >&6
22990 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22991 cat >conftest.$ac_ext <<_ACEOF
22994 cat confdefs.h >>conftest.$ac_ext
22995 cat >>conftest.$ac_ext <<_ACEOF
22996 /* end confdefs.h. */
22997 #include "confdefs.h"
22998 #include <sys/types.h>
23004 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
23009 rm -f conftest.$ac_objext
23010 if { (ac_try="$ac_compile"
23011 case "(($ac_try" in
23012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23013 *) ac_try_echo=$ac_try;;
23015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23016 (eval "$ac_compile") 2>conftest.er1
23018 grep -v '^ *+' conftest.er1 >conftest.err
23020 cat conftest.err >&5
23021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022 (exit $ac_status); } && {
23023 test -z "$ac_c_werror_flag" ||
23024 test ! -s conftest.err
23025 } && test -s conftest.$ac_objext; then
23026 ac_cv_sizeof_unsigned_int=$ac_size
23028 echo "$as_me: failed program was:" >&5
23029 sed 's/^/| /' conftest.$ac_ext >&5
23034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23035 if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
23041 unsigned=$ac_cv_sizeof_unsigned_int
23042 if test x$unsigned = x ; then
23043 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
23044 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
23045 { (exit 1); exit 1; }; }
23047 if test x$unsigned != x$signed ; then
23048 { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
23049 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
23050 { (exit 1); exit 1; }; }
23053 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
23054 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
23055 { echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
23056 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6; }
23058 if test "${ac_cv_struct_boundary_int+set}" = set; then
23059 echo $ECHO_N "(cached) $ECHO_C" >&6
23061 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23062 cat >conftest.$ac_ext <<_ACEOF
23065 cat confdefs.h >>conftest.$ac_ext
23066 cat >>conftest.$ac_ext <<_ACEOF
23067 /* end confdefs.h. */
23068 #include "confdefs.h"
23069 #include <sys/types.h>
23070 struct s { char c; int i; };
23075 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
23080 rm -f conftest.$ac_objext
23081 if { (ac_try="$ac_compile"
23082 case "(($ac_try" in
23083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23084 *) ac_try_echo=$ac_try;;
23086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23087 (eval "$ac_compile") 2>conftest.er1
23089 grep -v '^ *+' conftest.er1 >conftest.err
23091 cat conftest.err >&5
23092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23093 (exit $ac_status); } && {
23094 test -z "$ac_c_werror_flag" ||
23095 test ! -s conftest.err
23096 } && test -s conftest.$ac_objext; then
23097 ac_cv_struct_boundary_int=$ac_size
23099 echo "$as_me: failed program was:" >&5
23100 sed 's/^/| /' conftest.$ac_ext >&5
23105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23106 if test x$ac_cv_struct_boundary_int != x ; then break; fi
23111 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
23112 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6; }
23113 if test x$ac_cv_struct_boundary_int = x ; then
23114 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
23115 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
23116 { (exit 1); exit 1; }; }
23119 { echo "$as_me:$LINENO: checking size of long int" >&5
23120 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
23121 if test "${ac_cv_sizeof_long_int+set}" = set; then
23122 echo $ECHO_N "(cached) $ECHO_C" >&6
23124 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23125 cat >conftest.$ac_ext <<_ACEOF
23128 cat confdefs.h >>conftest.$ac_ext
23129 cat >>conftest.$ac_ext <<_ACEOF
23130 /* end confdefs.h. */
23131 #include "confdefs.h"
23132 #include <sys/types.h>
23138 switch (0) case 0: case (sizeof (long int) == $ac_size):;
23143 rm -f conftest.$ac_objext
23144 if { (ac_try="$ac_compile"
23145 case "(($ac_try" in
23146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23147 *) ac_try_echo=$ac_try;;
23149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23150 (eval "$ac_compile") 2>conftest.er1
23152 grep -v '^ *+' conftest.er1 >conftest.err
23154 cat conftest.err >&5
23155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156 (exit $ac_status); } && {
23157 test -z "$ac_c_werror_flag" ||
23158 test ! -s conftest.err
23159 } && test -s conftest.$ac_objext; then
23160 ac_cv_sizeof_long_int=$ac_size
23162 echo "$as_me: failed program was:" >&5
23163 sed 's/^/| /' conftest.$ac_ext >&5
23168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23169 if test x$ac_cv_sizeof_long_int != x ; then break; fi
23175 unspecif=$ac_cv_sizeof_long_int
23176 if test x$unspecif = x ; then
23177 { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
23178 echo "$as_me: error: cannot determine a size for long int" >&2;}
23179 { (exit 1); exit 1; }; }
23182 if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
23183 echo $ECHO_N "(cached) $ECHO_C" >&6
23185 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23186 cat >conftest.$ac_ext <<_ACEOF
23189 cat confdefs.h >>conftest.$ac_ext
23190 cat >>conftest.$ac_ext <<_ACEOF
23191 /* end confdefs.h. */
23192 #include "confdefs.h"
23193 #include <sys/types.h>
23199 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
23204 rm -f conftest.$ac_objext
23205 if { (ac_try="$ac_compile"
23206 case "(($ac_try" in
23207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23208 *) ac_try_echo=$ac_try;;
23210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23211 (eval "$ac_compile") 2>conftest.er1
23213 grep -v '^ *+' conftest.er1 >conftest.err
23215 cat conftest.err >&5
23216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217 (exit $ac_status); } && {
23218 test -z "$ac_c_werror_flag" ||
23219 test ! -s conftest.err
23220 } && test -s conftest.$ac_objext; then
23221 ac_cv_sizeof_signed_long_int=$ac_size
23223 echo "$as_me: failed program was:" >&5
23224 sed 's/^/| /' conftest.$ac_ext >&5
23229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23230 if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
23236 signed=$ac_cv_sizeof_signed_long_int
23237 if test x$signed = x ; then
23238 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
23239 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
23240 { (exit 1); exit 1; }; }
23242 if test x$unspecif != x$signed ; then
23243 { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
23244 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
23245 { (exit 1); exit 1; }; }
23248 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
23249 echo $ECHO_N "(cached) $ECHO_C" >&6
23251 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23252 cat >conftest.$ac_ext <<_ACEOF
23255 cat confdefs.h >>conftest.$ac_ext
23256 cat >>conftest.$ac_ext <<_ACEOF
23257 /* end confdefs.h. */
23258 #include "confdefs.h"
23259 #include <sys/types.h>
23265 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
23270 rm -f conftest.$ac_objext
23271 if { (ac_try="$ac_compile"
23272 case "(($ac_try" in
23273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23274 *) ac_try_echo=$ac_try;;
23276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23277 (eval "$ac_compile") 2>conftest.er1
23279 grep -v '^ *+' conftest.er1 >conftest.err
23281 cat conftest.err >&5
23282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23283 (exit $ac_status); } && {
23284 test -z "$ac_c_werror_flag" ||
23285 test ! -s conftest.err
23286 } && test -s conftest.$ac_objext; then
23287 ac_cv_sizeof_unsigned_long_int=$ac_size
23289 echo "$as_me: failed program was:" >&5
23290 sed 's/^/| /' conftest.$ac_ext >&5
23295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23296 if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
23302 unsigned=$ac_cv_sizeof_unsigned_long_int
23303 if test x$unsigned = x ; then
23304 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
23305 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
23306 { (exit 1); exit 1; }; }
23308 if test x$unsigned != x$signed ; then
23309 { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
23310 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
23311 { (exit 1); exit 1; }; }
23314 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
23315 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
23316 { echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
23317 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6; }
23319 if test "${ac_cv_struct_boundary_long_int+set}" = set; then
23320 echo $ECHO_N "(cached) $ECHO_C" >&6
23322 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23323 cat >conftest.$ac_ext <<_ACEOF
23326 cat confdefs.h >>conftest.$ac_ext
23327 cat >>conftest.$ac_ext <<_ACEOF
23328 /* end confdefs.h. */
23329 #include "confdefs.h"
23330 #include <sys/types.h>
23331 struct s { char c; long int i; };
23336 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
23341 rm -f conftest.$ac_objext
23342 if { (ac_try="$ac_compile"
23343 case "(($ac_try" in
23344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23345 *) ac_try_echo=$ac_try;;
23347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23348 (eval "$ac_compile") 2>conftest.er1
23350 grep -v '^ *+' conftest.er1 >conftest.err
23352 cat conftest.err >&5
23353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23354 (exit $ac_status); } && {
23355 test -z "$ac_c_werror_flag" ||
23356 test ! -s conftest.err
23357 } && test -s conftest.$ac_objext; then
23358 ac_cv_struct_boundary_long_int=$ac_size
23360 echo "$as_me: failed program was:" >&5
23361 sed 's/^/| /' conftest.$ac_ext >&5
23366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23367 if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
23372 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
23373 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6; }
23374 if test x$ac_cv_struct_boundary_long_int = x ; then
23375 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
23376 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
23377 { (exit 1); exit 1; }; }
23380 { echo "$as_me:$LINENO: checking size of long long int" >&5
23381 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
23382 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
23383 echo $ECHO_N "(cached) $ECHO_C" >&6
23385 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23386 cat >conftest.$ac_ext <<_ACEOF
23389 cat confdefs.h >>conftest.$ac_ext
23390 cat >>conftest.$ac_ext <<_ACEOF
23391 /* end confdefs.h. */
23392 #include "confdefs.h"
23393 #include <sys/types.h>
23399 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
23404 rm -f conftest.$ac_objext
23405 if { (ac_try="$ac_compile"
23406 case "(($ac_try" in
23407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23408 *) ac_try_echo=$ac_try;;
23410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23411 (eval "$ac_compile") 2>conftest.er1
23413 grep -v '^ *+' conftest.er1 >conftest.err
23415 cat conftest.err >&5
23416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417 (exit $ac_status); } && {
23418 test -z "$ac_c_werror_flag" ||
23419 test ! -s conftest.err
23420 } && test -s conftest.$ac_objext; then
23421 ac_cv_sizeof_long_long_int=$ac_size
23423 echo "$as_me: failed program was:" >&5
23424 sed 's/^/| /' conftest.$ac_ext >&5
23429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23430 if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
23436 unspecif=$ac_cv_sizeof_long_long_int
23437 if test x$unspecif = x ; then
23438 { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
23439 echo "$as_me: error: cannot determine a size for long long int" >&2;}
23440 { (exit 1); exit 1; }; }
23443 if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
23444 echo $ECHO_N "(cached) $ECHO_C" >&6
23446 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23447 cat >conftest.$ac_ext <<_ACEOF
23450 cat confdefs.h >>conftest.$ac_ext
23451 cat >>conftest.$ac_ext <<_ACEOF
23452 /* end confdefs.h. */
23453 #include "confdefs.h"
23454 #include <sys/types.h>
23460 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
23465 rm -f conftest.$ac_objext
23466 if { (ac_try="$ac_compile"
23467 case "(($ac_try" in
23468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23469 *) ac_try_echo=$ac_try;;
23471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23472 (eval "$ac_compile") 2>conftest.er1
23474 grep -v '^ *+' conftest.er1 >conftest.err
23476 cat conftest.err >&5
23477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23478 (exit $ac_status); } && {
23479 test -z "$ac_c_werror_flag" ||
23480 test ! -s conftest.err
23481 } && test -s conftest.$ac_objext; then
23482 ac_cv_sizeof_signed_long_long_int=$ac_size
23484 echo "$as_me: failed program was:" >&5
23485 sed 's/^/| /' conftest.$ac_ext >&5
23490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23491 if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
23497 signed=$ac_cv_sizeof_signed_long_long_int
23498 if test x$signed = x ; then
23499 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
23500 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
23501 { (exit 1); exit 1; }; }
23503 if test x$unspecif != x$signed ; then
23504 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
23505 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
23506 { (exit 1); exit 1; }; }
23509 if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
23510 echo $ECHO_N "(cached) $ECHO_C" >&6
23512 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23513 cat >conftest.$ac_ext <<_ACEOF
23516 cat confdefs.h >>conftest.$ac_ext
23517 cat >>conftest.$ac_ext <<_ACEOF
23518 /* end confdefs.h. */
23519 #include "confdefs.h"
23520 #include <sys/types.h>
23526 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
23531 rm -f conftest.$ac_objext
23532 if { (ac_try="$ac_compile"
23533 case "(($ac_try" in
23534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23535 *) ac_try_echo=$ac_try;;
23537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23538 (eval "$ac_compile") 2>conftest.er1
23540 grep -v '^ *+' conftest.er1 >conftest.err
23542 cat conftest.err >&5
23543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23544 (exit $ac_status); } && {
23545 test -z "$ac_c_werror_flag" ||
23546 test ! -s conftest.err
23547 } && test -s conftest.$ac_objext; then
23548 ac_cv_sizeof_unsigned_long_long_int=$ac_size
23550 echo "$as_me: failed program was:" >&5
23551 sed 's/^/| /' conftest.$ac_ext >&5
23556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23557 if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
23563 unsigned=$ac_cv_sizeof_unsigned_long_long_int
23564 if test x$unsigned = x ; then
23565 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
23566 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
23567 { (exit 1); exit 1; }; }
23569 if test x$unsigned != x$signed ; then
23570 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
23571 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
23572 { (exit 1); exit 1; }; }
23575 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
23576 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6; }
23577 { echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
23578 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6; }
23580 if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
23581 echo $ECHO_N "(cached) $ECHO_C" >&6
23583 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23584 cat >conftest.$ac_ext <<_ACEOF
23587 cat confdefs.h >>conftest.$ac_ext
23588 cat >>conftest.$ac_ext <<_ACEOF
23589 /* end confdefs.h. */
23590 #include "confdefs.h"
23591 #include <sys/types.h>
23592 struct s { char c; long long int i; };
23597 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
23602 rm -f conftest.$ac_objext
23603 if { (ac_try="$ac_compile"
23604 case "(($ac_try" in
23605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23606 *) ac_try_echo=$ac_try;;
23608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23609 (eval "$ac_compile") 2>conftest.er1
23611 grep -v '^ *+' conftest.er1 >conftest.err
23613 cat conftest.err >&5
23614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615 (exit $ac_status); } && {
23616 test -z "$ac_c_werror_flag" ||
23617 test ! -s conftest.err
23618 } && test -s conftest.$ac_objext; then
23619 ac_cv_struct_boundary_long_long_int=$ac_size
23621 echo "$as_me: failed program was:" >&5
23622 sed 's/^/| /' conftest.$ac_ext >&5
23627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23628 if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
23633 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
23634 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6; }
23635 if test x$ac_cv_struct_boundary_long_long_int = x ; then
23636 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
23637 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
23638 { (exit 1); exit 1; }; }
23642 { echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
23643 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6; }
23645 if test "${ac_cv_struct_boundary_float+set}" = set; then
23646 echo $ECHO_N "(cached) $ECHO_C" >&6
23648 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23649 cat >conftest.$ac_ext <<_ACEOF
23652 cat confdefs.h >>conftest.$ac_ext
23653 cat >>conftest.$ac_ext <<_ACEOF
23654 /* end confdefs.h. */
23655 #include "confdefs.h"
23656 #include <sys/types.h>
23657 struct s { char c; float i; };
23662 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
23667 rm -f conftest.$ac_objext
23668 if { (ac_try="$ac_compile"
23669 case "(($ac_try" in
23670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23671 *) ac_try_echo=$ac_try;;
23673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23674 (eval "$ac_compile") 2>conftest.er1
23676 grep -v '^ *+' conftest.er1 >conftest.err
23678 cat conftest.err >&5
23679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680 (exit $ac_status); } && {
23681 test -z "$ac_c_werror_flag" ||
23682 test ! -s conftest.err
23683 } && test -s conftest.$ac_objext; then
23684 ac_cv_struct_boundary_float=$ac_size
23686 echo "$as_me: failed program was:" >&5
23687 sed 's/^/| /' conftest.$ac_ext >&5
23692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23693 if test x$ac_cv_struct_boundary_float != x ; then break; fi
23698 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
23699 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6; }
23700 if test x$ac_cv_struct_boundary_float = x ; then
23701 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
23702 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
23703 { (exit 1); exit 1; }; }
23705 { echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
23706 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6; }
23708 if test "${ac_cv_struct_boundary_double+set}" = set; then
23709 echo $ECHO_N "(cached) $ECHO_C" >&6
23711 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23712 cat >conftest.$ac_ext <<_ACEOF
23715 cat confdefs.h >>conftest.$ac_ext
23716 cat >>conftest.$ac_ext <<_ACEOF
23717 /* end confdefs.h. */
23718 #include "confdefs.h"
23719 #include <sys/types.h>
23720 struct s { char c; double i; };
23725 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
23730 rm -f conftest.$ac_objext
23731 if { (ac_try="$ac_compile"
23732 case "(($ac_try" in
23733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23734 *) ac_try_echo=$ac_try;;
23736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23737 (eval "$ac_compile") 2>conftest.er1
23739 grep -v '^ *+' conftest.er1 >conftest.err
23741 cat conftest.err >&5
23742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743 (exit $ac_status); } && {
23744 test -z "$ac_c_werror_flag" ||
23745 test ! -s conftest.err
23746 } && test -s conftest.$ac_objext; then
23747 ac_cv_struct_boundary_double=$ac_size
23749 echo "$as_me: failed program was:" >&5
23750 sed 's/^/| /' conftest.$ac_ext >&5
23755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23756 if test x$ac_cv_struct_boundary_double != x ; then break; fi
23761 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
23762 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6; }
23763 if test x$ac_cv_struct_boundary_double = x ; then
23764 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
23765 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
23766 { (exit 1); exit 1; }; }
23770 { echo "$as_me:$LINENO: checking size of void *" >&5
23771 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
23772 if test "${ac_cv_sizeof_void_p+set}" = set; then
23773 echo $ECHO_N "(cached) $ECHO_C" >&6
23775 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23776 cat >conftest.$ac_ext <<_ACEOF
23779 cat confdefs.h >>conftest.$ac_ext
23780 cat >>conftest.$ac_ext <<_ACEOF
23781 /* end confdefs.h. */
23782 #include "confdefs.h"
23783 #include <sys/types.h>
23789 switch (0) case 0: case (sizeof (void *) == $ac_size):;
23794 rm -f conftest.$ac_objext
23795 if { (ac_try="$ac_compile"
23796 case "(($ac_try" in
23797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23798 *) ac_try_echo=$ac_try;;
23800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23801 (eval "$ac_compile") 2>conftest.er1
23803 grep -v '^ *+' conftest.er1 >conftest.err
23805 cat conftest.err >&5
23806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807 (exit $ac_status); } && {
23808 test -z "$ac_c_werror_flag" ||
23809 test ! -s conftest.err
23810 } && test -s conftest.$ac_objext; then
23811 ac_cv_sizeof_void_p=$ac_size
23813 echo "$as_me: failed program was:" >&5
23814 sed 's/^/| /' conftest.$ac_ext >&5
23819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23820 if test x$ac_cv_sizeof_void_p != x ; then break; fi
23826 if test x$ac_cv_sizeof_void_p = x ; then
23827 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
23828 echo "$as_me: error: cannot determine a size for void *" >&2;}
23829 { (exit 1); exit 1; }; }
23831 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23832 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
23833 { echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
23834 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6; }
23836 if test "${ac_cv_struct_boundary_void_p+set}" = set; then
23837 echo $ECHO_N "(cached) $ECHO_C" >&6
23839 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23840 cat >conftest.$ac_ext <<_ACEOF
23843 cat confdefs.h >>conftest.$ac_ext
23844 cat >>conftest.$ac_ext <<_ACEOF
23845 /* end confdefs.h. */
23846 #include "confdefs.h"
23847 #include <sys/types.h>
23848 struct s { char c; void * i; };
23853 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
23858 rm -f conftest.$ac_objext
23859 if { (ac_try="$ac_compile"
23860 case "(($ac_try" in
23861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23862 *) ac_try_echo=$ac_try;;
23864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23865 (eval "$ac_compile") 2>conftest.er1
23867 grep -v '^ *+' conftest.er1 >conftest.err
23869 cat conftest.err >&5
23870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871 (exit $ac_status); } && {
23872 test -z "$ac_c_werror_flag" ||
23873 test ! -s conftest.err
23874 } && test -s conftest.$ac_objext; then
23875 ac_cv_struct_boundary_void_p=$ac_size
23877 echo "$as_me: failed program was:" >&5
23878 sed 's/^/| /' conftest.$ac_ext >&5
23883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23884 if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
23889 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
23890 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6; }
23891 if test x$ac_cv_struct_boundary_void_p = x ; then
23892 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
23893 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
23894 { (exit 1); exit 1; }; }
23897 { echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
23898 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6; }
23899 if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
23900 echo $ECHO_N "(cached) $ECHO_C" >&6
23902 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23903 cat >conftest.$ac_ext <<_ACEOF
23906 cat confdefs.h >>conftest.$ac_ext
23907 cat >>conftest.$ac_ext <<_ACEOF
23908 /* end confdefs.h. */
23909 #include "confdefs.h"
23910 #include <sys/types.h>
23916 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
23921 rm -f conftest.$ac_objext
23922 if { (ac_try="$ac_compile"
23923 case "(($ac_try" in
23924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23925 *) ac_try_echo=$ac_try;;
23927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23928 (eval "$ac_compile") 2>conftest.er1
23930 grep -v '^ *+' conftest.er1 >conftest.err
23932 cat conftest.err >&5
23933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23934 (exit $ac_status); } && {
23935 test -z "$ac_c_werror_flag" ||
23936 test ! -s conftest.err
23937 } && test -s conftest.$ac_objext; then
23938 ac_cv_sizeof_void_LpR_LvoidR=$ac_size
23940 echo "$as_me: failed program was:" >&5
23941 sed 's/^/| /' conftest.$ac_ext >&5
23946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23947 if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
23953 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
23954 { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
23955 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
23956 { (exit 1); exit 1; }; }
23958 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
23959 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6; }
23963 { echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
23964 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6; }
23965 if test x$endian = x1 ; then
23971 trace="$trace_endian"
23973 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
23975 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
23976 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
23977 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
23978 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
23980 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
23981 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
23983 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
23985 # sizeof float/double are not tested since IEEE 754 is assumed.
23986 # Check README.IEEE for rational.
23988 # The numbers after the _ in the arch name are the maximal packing boundary.
23989 # big32_2 means that all data are aligned on a 2 bytes boundary. (ARM)
23990 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
23992 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;;
23993 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;;
23994 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;;
23995 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;;
23997 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;;
23999 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;;
24000 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;;
24001 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;;
24002 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;;
24004 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;;
24005 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;;
24007 if test x$gras_arch = xunknown ; then
24008 { echo "$as_me:$LINENO: result: damnit ($trace)" >&5
24009 echo "${ECHO_T}damnit ($trace)" >&6; }
24010 { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
24011 Please report this architecture trace ($trace) and what it corresponds to." >&5
24012 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
24013 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
24014 { (exit 1); exit 1; }; }
24016 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
24018 cat >>confdefs.h <<_ACEOF
24019 #define GRAS_THISARCH $gras_arch
24022 { echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
24023 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6; }
24027 if test $gras_size=32; then
24028 GRAS_ARCH_32_BITS_TRUE=
24029 GRAS_ARCH_32_BITS_FALSE='#'
24031 GRAS_ARCH_32_BITS_TRUE='#'
24032 GRAS_ARCH_32_BITS_FALSE=
24036 { echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
24037 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6; }
24039 for s in $ac_cv_sizeof_char \
24040 $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
24041 $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
24044 if test $ac_cv_sizeof_max -lt $s ; then
24045 ac_cv_sizeof_max=$s
24048 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
24049 echo "${ECHO_T}$ac_cv_sizeof_max" >&6; }
24051 cat >>confdefs.h <<_ACEOF
24052 #define SIZEOF_MAX $ac_cv_sizeof_max
24057 # Check architecture signature end
24058 { echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
24059 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6; }
24060 cat >conftest.$ac_ext <<_ACEOF
24063 cat confdefs.h >>conftest.$ac_ext
24064 cat >>conftest.$ac_ext <<_ACEOF
24065 /* end confdefs.h. */
24066 #include "confdefs.h"
24067 #include <sys/types.h>
24068 #include <stddef.h> /* offsetof() */
24069 struct s {char c; double d;};
24076 case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
24082 rm -f conftest.$ac_objext
24083 if { (ac_try="$ac_compile"
24084 case "(($ac_try" in
24085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24086 *) ac_try_echo=$ac_try;;
24088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24089 (eval "$ac_compile") 2>conftest.er1
24091 grep -v '^ *+' conftest.er1 >conftest.err
24093 cat conftest.err >&5
24094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24095 (exit $ac_status); } && {
24096 test -z "$ac_c_werror_flag" ||
24097 test ! -s conftest.err
24098 } && test -s conftest.$ac_objext; then
24099 gras_struct_packed=yes
24101 echo "$as_me: failed program was:" >&5
24102 sed 's/^/| /' conftest.$ac_ext >&5
24104 gras_struct_packed=no
24107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24109 { echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
24110 echo "${ECHO_T}$gras_struct_packed" >&6; }
24111 if test x$gras_struct_packed = "xyes" ; then
24112 { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
24113 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
24114 { (exit 1); exit 1; }; }
24117 { echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
24118 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6; }
24119 cat >conftest.$ac_ext <<_ACEOF
24122 cat confdefs.h >>conftest.$ac_ext
24123 cat >>conftest.$ac_ext <<_ACEOF
24124 /* end confdefs.h. */
24125 #include "confdefs.h"
24126 #include <sys/types.h>
24127 #include <stddef.h> /* offsetof() */
24128 struct s {double d; int i; char c;};
24135 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24141 rm -f conftest.$ac_objext
24142 if { (ac_try="$ac_compile"
24143 case "(($ac_try" in
24144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24145 *) ac_try_echo=$ac_try;;
24147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24148 (eval "$ac_compile") 2>conftest.er1
24150 grep -v '^ *+' conftest.er1 >conftest.err
24152 cat conftest.err >&5
24153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24154 (exit $ac_status); } && {
24155 test -z "$ac_c_werror_flag" ||
24156 test ! -s conftest.err
24157 } && test -s conftest.$ac_objext; then
24158 gras_struct_compact=yes
24160 echo "$as_me: failed program was:" >&5
24161 sed 's/^/| /' conftest.$ac_ext >&5
24163 gras_struct_compact=no
24166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24168 { echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
24169 echo "${ECHO_T}$gras_struct_compact" >&6; }
24171 if test x$gras_struct_compact != xyes ; then
24172 { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
24173 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
24174 { (exit 1); exit 1; }; }
24177 cat >>confdefs.h <<_ACEOF
24178 #define GRAS_STRUCT_COMPACT 1
24181 { echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
24182 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6; }
24184 cat >conftest.$ac_ext <<_ACEOF
24187 cat confdefs.h >>conftest.$ac_ext
24188 cat >>conftest.$ac_ext <<_ACEOF
24189 /* end confdefs.h. */
24190 #include "confdefs.h"
24191 #include <sys/types.h>
24192 #include <stddef.h> /* offsetof() */
24193 struct s { double d; int i; char c[6]; };
24200 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24206 rm -f conftest.$ac_objext
24207 if { (ac_try="$ac_compile"
24208 case "(($ac_try" in
24209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24210 *) ac_try_echo=$ac_try;;
24212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24213 (eval "$ac_compile") 2>conftest.er1
24215 grep -v '^ *+' conftest.er1 >conftest.err
24217 cat conftest.err >&5
24218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24219 (exit $ac_status); } && {
24220 test -z "$ac_c_werror_flag" ||
24221 test ! -s conftest.err
24222 } && test -s conftest.$ac_objext; then
24223 gras_array_straddle_struct=yes
24225 echo "$as_me: failed program was:" >&5
24226 sed 's/^/| /' conftest.$ac_ext >&5
24228 gras_array_straddle_struct=no
24231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24233 { echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
24234 echo "${ECHO_T}$gras_array_straddle_struct" >&6; }
24236 if test x$gras_array_straddle_struct = xyes ; then
24238 cat >>confdefs.h <<_ACEOF
24239 #define GRAS_ARRAY_STRADDLE_STRUCT 1
24243 { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
24244 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
24245 { (exit 1); exit 1; }; }
24252 { echo "$as_me:$LINENO: result: " >&5
24253 echo "${ECHO_T}" >&6; }
24254 { echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
24255 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6; }
24260 { echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
24261 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6; }
24262 if test "${ac_cv_check_mcsc+set}" = set; then
24263 echo $ECHO_N "(cached) $ECHO_C" >&6
24266 if test "$cross_compiling" = yes; then
24267 ac_cv_check_mcsc=no
24270 cat >conftest.$ac_ext <<_ACEOF
24273 cat confdefs.h >>conftest.$ac_ext
24274 cat >>conftest.$ac_ext <<_ACEOF
24275 /* end confdefs.h. */
24279 #include <stdlib.h>
24280 #include <ucontext.h>
24282 ucontext_t uc_child;
24283 ucontext_t uc_main;
24285 void child(void *arg)
24287 if (arg != (void *)12345)
24289 if (swapcontext(&uc_child, &uc_main) != 0)
24293 int main(int argc, char *argv[])
24298 /* the default is that it fails */
24299 if ((fp = fopen("conftestval", "w")) == NULL)
24301 fprintf(fp, "no\n");
24304 /* configure a child user-space context */
24305 if ((stack = malloc(64*1024)) == NULL)
24307 if (getcontext(&uc_child) != 0)
24309 uc_child.uc_link = NULL;
24310 uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
24311 uc_child.uc_stack.ss_size = 32*1024;
24312 uc_child.uc_stack.ss_flags = 0;
24313 makecontext(&uc_child, child, 2, (void *)12345);
24315 /* switch into the user context */
24316 if (swapcontext(&uc_main, &uc_child) != 0)
24319 /* Fine, child came home */
24320 if ((fp = fopen("conftestval", "w")) == NULL)
24322 fprintf(fp, "yes\n");
24325 /* die successfully */
24330 rm -f conftest$ac_exeext
24331 if { (ac_try="$ac_link"
24332 case "(($ac_try" in
24333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24334 *) ac_try_echo=$ac_try;;
24336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24337 (eval "$ac_link") 2>&5
24339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24341 { (case "(($ac_try" in
24342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24343 *) ac_try_echo=$ac_try;;
24345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24346 (eval "$ac_try") 2>&5
24348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24349 (exit $ac_status); }; }; then
24350 ac_cv_check_mcsc=`cat conftestval`
24352 echo "$as_me: program exited with status $ac_status" >&5
24353 echo "$as_me: failed program was:" >&5
24354 sed 's/^/| /' conftest.$ac_ext >&5
24356 ( exit $ac_status )
24357 ac_cv_check_mcsc=no
24359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24364 { echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
24365 echo "${ECHO_T}$ac_cv_check_mcsc" >&6; }
24366 if test ".$ac_cv_check_mcsc" = .yes; then
24374 for ac_header in pthread.h
24376 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24378 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24381 echo $ECHO_N "(cached) $ECHO_C" >&6
24383 ac_res=`eval echo '${'$as_ac_Header'}'`
24384 { echo "$as_me:$LINENO: result: $ac_res" >&5
24385 echo "${ECHO_T}$ac_res" >&6; }
24387 # Is the header compilable?
24388 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24390 cat >conftest.$ac_ext <<_ACEOF
24393 cat confdefs.h >>conftest.$ac_ext
24394 cat >>conftest.$ac_ext <<_ACEOF
24395 /* end confdefs.h. */
24396 $ac_includes_default
24397 #include <$ac_header>
24399 rm -f conftest.$ac_objext
24400 if { (ac_try="$ac_compile"
24401 case "(($ac_try" in
24402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24403 *) ac_try_echo=$ac_try;;
24405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24406 (eval "$ac_compile") 2>conftest.er1
24408 grep -v '^ *+' conftest.er1 >conftest.err
24410 cat conftest.err >&5
24411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24412 (exit $ac_status); } && {
24413 test -z "$ac_c_werror_flag" ||
24414 test ! -s conftest.err
24415 } && test -s conftest.$ac_objext; then
24416 ac_header_compiler=yes
24418 echo "$as_me: failed program was:" >&5
24419 sed 's/^/| /' conftest.$ac_ext >&5
24421 ac_header_compiler=no
24424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24425 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24426 echo "${ECHO_T}$ac_header_compiler" >&6; }
24428 # Is the header present?
24429 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24430 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24431 cat >conftest.$ac_ext <<_ACEOF
24434 cat confdefs.h >>conftest.$ac_ext
24435 cat >>conftest.$ac_ext <<_ACEOF
24436 /* end confdefs.h. */
24437 #include <$ac_header>
24439 if { (ac_try="$ac_cpp conftest.$ac_ext"
24440 case "(($ac_try" in
24441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24442 *) ac_try_echo=$ac_try;;
24444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24447 grep -v '^ *+' conftest.er1 >conftest.err
24449 cat conftest.err >&5
24450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24451 (exit $ac_status); } >/dev/null && {
24452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24453 test ! -s conftest.err
24455 ac_header_preproc=yes
24457 echo "$as_me: failed program was:" >&5
24458 sed 's/^/| /' conftest.$ac_ext >&5
24460 ac_header_preproc=no
24463 rm -f conftest.err conftest.$ac_ext
24464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24465 echo "${ECHO_T}$ac_header_preproc" >&6; }
24467 # So? What about this header?
24468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24474 ac_header_preproc=yes
24477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24484 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24490 ## -------------------------------------------------- ##
24491 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24492 ## -------------------------------------------------- ##
24494 ) | sed "s/^/$as_me: WARNING: /" >&2
24497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24500 echo $ECHO_N "(cached) $ECHO_C" >&6
24502 eval "$as_ac_Header=\$ac_header_preproc"
24504 ac_res=`eval echo '${'$as_ac_Header'}'`
24505 { echo "$as_me:$LINENO: result: $ac_res" >&5
24506 echo "${ECHO_T}$ac_res" >&6; }
24509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24510 cat >>confdefs.h <<_ACEOF
24511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24518 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24519 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24520 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24521 echo $ECHO_N "(cached) $ECHO_C" >&6
24523 ac_check_lib_save_LIBS=$LIBS
24524 LIBS="-lpthread $LIBS"
24525 cat >conftest.$ac_ext <<_ACEOF
24528 cat confdefs.h >>conftest.$ac_ext
24529 cat >>conftest.$ac_ext <<_ACEOF
24530 /* end confdefs.h. */
24532 /* Override any GCC internal prototype to avoid an error.
24533 Use char because int might match the return type of a GCC
24534 builtin and then its argument prototype would still apply. */
24538 char pthread_create ();
24542 return pthread_create ();
24547 rm -f conftest.$ac_objext conftest$ac_exeext
24548 if { (ac_try="$ac_link"
24549 case "(($ac_try" in
24550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24551 *) ac_try_echo=$ac_try;;
24553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24554 (eval "$ac_link") 2>conftest.er1
24556 grep -v '^ *+' conftest.er1 >conftest.err
24558 cat conftest.err >&5
24559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24560 (exit $ac_status); } && {
24561 test -z "$ac_c_werror_flag" ||
24562 test ! -s conftest.err
24563 } && test -s conftest$ac_exeext &&
24564 $as_test_x conftest$ac_exeext; then
24565 ac_cv_lib_pthread_pthread_create=yes
24567 echo "$as_me: failed program was:" >&5
24568 sed 's/^/| /' conftest.$ac_ext >&5
24570 ac_cv_lib_pthread_pthread_create=no
24573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24574 conftest$ac_exeext conftest.$ac_ext
24575 LIBS=$ac_check_lib_save_LIBS
24577 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24578 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24579 if test $ac_cv_lib_pthread_pthread_create = yes; then
24587 if test ".$mcsc" = .yes; then
24589 elif test ".$pthread" = .yes; then
24592 ac_header=windows.h
24593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24595 windows_context=yes
24597 { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
24598 echo "$as_me: error: no appropriate backend found" >&2;}
24599 { (exit 1); exit 1; }; }
24604 { echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
24605 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6; }
24608 # Check whether --with-pthread was given.
24609 if test "${with_pthread+set}" = set; then
24610 withval=$with_pthread; with_context=pthread
24614 # Check whether --with-pthread was given.
24615 if test "${with_pthread+set}" = set; then
24616 withval=$with_pthread; with_context=pthread
24621 # Check whether --with-context was given.
24622 if test "${with_context+set}" = set; then
24623 withval=$with_context;
24629 if test "x$with_context$mcsc" = "xucontextno" ; then
24630 { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
24631 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
24632 { (exit 77); exit 77; }; }
24635 case $with_context in
24640 auto) with_context=ucontext;;
24641 *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
24642 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
24643 { (exit 1); exit 1; }; } ;;
24646 if test "x$with_context" = "xucontext" ; then
24647 if test ".$mcsc" = .yes; then
24648 { echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
24649 echo "${ECHO_T}found working ucontext. Great!" >&6; }
24651 cat >>confdefs.h <<\_ACEOF
24652 #define CONTEXT_UCONTEXT 1
24656 if test ".$windows_context" = .yes ; then
24657 { echo "$as_me:$LINENO: result: use windows context portability layer." >&5
24658 echo "${ECHO_T}use windows context portability layer." >&6; }
24659 with_context=windows
24661 { echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
24662 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6; }
24663 with_context=pthread
24668 if test "x$with_context" = "xpthreads"; then
24669 with_context=pthread
24671 if test "x$with_context" = "xpthread"; then
24673 for ac_header in pthread.h
24675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24680 echo $ECHO_N "(cached) $ECHO_C" >&6
24682 ac_res=`eval echo '${'$as_ac_Header'}'`
24683 { echo "$as_me:$LINENO: result: $ac_res" >&5
24684 echo "${ECHO_T}$ac_res" >&6; }
24686 # Is the header compilable?
24687 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24689 cat >conftest.$ac_ext <<_ACEOF
24692 cat confdefs.h >>conftest.$ac_ext
24693 cat >>conftest.$ac_ext <<_ACEOF
24694 /* end confdefs.h. */
24695 $ac_includes_default
24696 #include <$ac_header>
24698 rm -f conftest.$ac_objext
24699 if { (ac_try="$ac_compile"
24700 case "(($ac_try" in
24701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24702 *) ac_try_echo=$ac_try;;
24704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24705 (eval "$ac_compile") 2>conftest.er1
24707 grep -v '^ *+' conftest.er1 >conftest.err
24709 cat conftest.err >&5
24710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24711 (exit $ac_status); } && {
24712 test -z "$ac_c_werror_flag" ||
24713 test ! -s conftest.err
24714 } && test -s conftest.$ac_objext; then
24715 ac_header_compiler=yes
24717 echo "$as_me: failed program was:" >&5
24718 sed 's/^/| /' conftest.$ac_ext >&5
24720 ac_header_compiler=no
24723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24725 echo "${ECHO_T}$ac_header_compiler" >&6; }
24727 # Is the header present?
24728 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24730 cat >conftest.$ac_ext <<_ACEOF
24733 cat confdefs.h >>conftest.$ac_ext
24734 cat >>conftest.$ac_ext <<_ACEOF
24735 /* end confdefs.h. */
24736 #include <$ac_header>
24738 if { (ac_try="$ac_cpp conftest.$ac_ext"
24739 case "(($ac_try" in
24740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24741 *) ac_try_echo=$ac_try;;
24743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24746 grep -v '^ *+' conftest.er1 >conftest.err
24748 cat conftest.err >&5
24749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24750 (exit $ac_status); } >/dev/null && {
24751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24752 test ! -s conftest.err
24754 ac_header_preproc=yes
24756 echo "$as_me: failed program was:" >&5
24757 sed 's/^/| /' conftest.$ac_ext >&5
24759 ac_header_preproc=no
24762 rm -f conftest.err conftest.$ac_ext
24763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24764 echo "${ECHO_T}$ac_header_preproc" >&6; }
24766 # So? What about this header?
24767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24773 ac_header_preproc=yes
24776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24779 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24783 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24789 ## -------------------------------------------------- ##
24790 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24791 ## -------------------------------------------------- ##
24793 ) | sed "s/^/$as_me: WARNING: /" >&2
24796 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24799 echo $ECHO_N "(cached) $ECHO_C" >&6
24801 eval "$as_ac_Header=\$ac_header_preproc"
24803 ac_res=`eval echo '${'$as_ac_Header'}'`
24804 { echo "$as_me:$LINENO: result: $ac_res" >&5
24805 echo "${ECHO_T}$ac_res" >&6; }
24808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24809 cat >>confdefs.h <<_ACEOF
24810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24818 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24819 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24820 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24821 echo $ECHO_N "(cached) $ECHO_C" >&6
24823 ac_check_lib_save_LIBS=$LIBS
24824 LIBS="-lpthread $LIBS"
24825 cat >conftest.$ac_ext <<_ACEOF
24828 cat confdefs.h >>conftest.$ac_ext
24829 cat >>conftest.$ac_ext <<_ACEOF
24830 /* end confdefs.h. */
24832 /* Override any GCC internal prototype to avoid an error.
24833 Use char because int might match the return type of a GCC
24834 builtin and then its argument prototype would still apply. */
24838 char pthread_create ();
24842 return pthread_create ();
24847 rm -f conftest.$ac_objext conftest$ac_exeext
24848 if { (ac_try="$ac_link"
24849 case "(($ac_try" in
24850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24851 *) ac_try_echo=$ac_try;;
24853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24854 (eval "$ac_link") 2>conftest.er1
24856 grep -v '^ *+' conftest.er1 >conftest.err
24858 cat conftest.err >&5
24859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860 (exit $ac_status); } && {
24861 test -z "$ac_c_werror_flag" ||
24862 test ! -s conftest.err
24863 } && test -s conftest$ac_exeext &&
24864 $as_test_x conftest$ac_exeext; then
24865 ac_cv_lib_pthread_pthread_create=yes
24867 echo "$as_me: failed program was:" >&5
24868 sed 's/^/| /' conftest.$ac_ext >&5
24870 ac_cv_lib_pthread_pthread_create=no
24873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24874 conftest$ac_exeext conftest.$ac_ext
24875 LIBS=$ac_check_lib_save_LIBS
24877 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24878 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24879 if test $ac_cv_lib_pthread_pthread_create = yes; then
24880 cat >>confdefs.h <<_ACEOF
24881 #define HAVE_LIBPTHREAD 1
24884 LIBS="-lpthread $LIBS"
24887 { { echo "$as_me:$LINENO: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&5
24888 echo "$as_me: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&2;}
24889 { (exit 1); exit 1; }; }
24893 cat >>confdefs.h <<\_ACEOF
24894 #define CONTEXT_THREADS 1
24897 { echo "$as_me:$LINENO: result: You have pthreads. Let's use them." >&5
24898 echo "${ECHO_T}You have pthreads. Let's use them." >&6; }
24902 if test "x$with_context" = "xucontext" ; then
24903 { echo "$as_me:$LINENO: checking for direction of stack growth" >&5
24904 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6; }
24905 if test "${ac_cv_check_stackgrowth+set}" = set; then
24906 echo $ECHO_N "(cached) $ECHO_C" >&6
24910 if test "$cross_compiling" = yes; then
24911 ac_cv_check_stackgrowth=down
24914 cat >conftest.$ac_ext <<_ACEOF
24917 cat confdefs.h >>conftest.$ac_ext
24918 cat >>conftest.$ac_ext <<_ACEOF
24919 /* end confdefs.h. */
24922 #include <stdlib.h>
24923 static int iterate = 10;
24924 static int growsdown(int *x)
24934 int main(int argc, char *argv[])
24938 if ((f = fopen("conftestval", "w")) == NULL)
24940 fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
24947 rm -f conftest$ac_exeext
24948 if { (ac_try="$ac_link"
24949 case "(($ac_try" in
24950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24951 *) ac_try_echo=$ac_try;;
24953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24954 (eval "$ac_link") 2>&5
24956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24958 { (case "(($ac_try" in
24959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24960 *) ac_try_echo=$ac_try;;
24962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24963 (eval "$ac_try") 2>&5
24965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24966 (exit $ac_status); }; }; then
24967 ac_cv_check_stackgrowth=`cat conftestval`
24969 echo "$as_me: program exited with status $ac_status" >&5
24970 echo "$as_me: failed program was:" >&5
24971 sed 's/^/| /' conftest.$ac_ext >&5
24973 ( exit $ac_status )
24974 ac_cv_check_stackgrowth=down
24976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24981 { echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
24982 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6; }
24983 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24989 cat >>confdefs.h <<_ACEOF
24990 #define PTH_STACKGROWTH $val
24994 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24995 PTH_STACK_GROWTH="down"
24997 PTH_STACK_GROWTH="up"
25005 for ac_func in makecontext
25007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25008 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25010 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25011 echo $ECHO_N "(cached) $ECHO_C" >&6
25013 cat >conftest.$ac_ext <<_ACEOF
25016 cat confdefs.h >>conftest.$ac_ext
25017 cat >>conftest.$ac_ext <<_ACEOF
25018 /* end confdefs.h. */
25019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25021 #define $ac_func innocuous_$ac_func
25023 /* System header to define __stub macros and hopefully few prototypes,
25024 which can conflict with char $ac_func (); below.
25025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25026 <limits.h> exists even on freestanding compilers. */
25029 # include <limits.h>
25031 # include <assert.h>
25036 /* Override any GCC internal prototype to avoid an error.
25037 Use char because int might match the return type of a GCC
25038 builtin and then its argument prototype would still apply. */
25043 /* The GNU C library defines this for functions which it implements
25044 to always fail with ENOSYS. Some functions are actually named
25045 something starting with __ and the normal name is an alias. */
25046 #if defined __stub_$ac_func || defined __stub___$ac_func
25053 return $ac_func ();
25058 rm -f conftest.$ac_objext conftest$ac_exeext
25059 if { (ac_try="$ac_link"
25060 case "(($ac_try" in
25061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25062 *) ac_try_echo=$ac_try;;
25064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25065 (eval "$ac_link") 2>conftest.er1
25067 grep -v '^ *+' conftest.er1 >conftest.err
25069 cat conftest.err >&5
25070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25071 (exit $ac_status); } && {
25072 test -z "$ac_c_werror_flag" ||
25073 test ! -s conftest.err
25074 } && test -s conftest$ac_exeext &&
25075 $as_test_x conftest$ac_exeext; then
25076 eval "$as_ac_var=yes"
25078 echo "$as_me: failed program was:" >&5
25079 sed 's/^/| /' conftest.$ac_ext >&5
25081 eval "$as_ac_var=no"
25084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25085 conftest$ac_exeext conftest.$ac_ext
25087 ac_res=`eval echo '${'$as_ac_var'}'`
25088 { echo "$as_me:$LINENO: result: $ac_res" >&5
25089 echo "${ECHO_T}$ac_res" >&6; }
25090 if test `eval echo '${'$as_ac_var'}'` = yes; then
25091 cat >>confdefs.h <<_ACEOF
25092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25099 { echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
25100 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6; }
25101 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
25102 echo $ECHO_N "(cached) $ECHO_C" >&6
25105 if test ".$ac_cv_func_makecontext" = .no; then
25106 ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
25109 CFLAGS="$CFLAGS -DTEST_makecontext"
25111 if test "$cross_compiling" = yes; then
25113 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25116 cat >conftest.$ac_ext <<_ACEOF
25119 cat confdefs.h >>conftest.$ac_ext
25120 cat >>conftest.$ac_ext <<_ACEOF
25121 /* end confdefs.h. */
25124 #include <stdlib.h>
25125 #include <string.h>
25126 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25127 #include <sys/types.h>
25128 #include <signal.h>
25129 #include <unistd.h>
25131 #if defined(TEST_makecontext)
25132 #include <ucontext.h>
25141 static volatile char *handler_addr = (char *)0xDEAD;
25142 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25143 static volatile int handler_done = 0;
25144 void handler(int sig)
25146 char garbage[1024];
25149 for (i = 0; i < 1024; i++)
25151 handler_addr = (char *)&dummy;
25156 #if defined(TEST_makecontext)
25157 static ucontext_t uc_handler;
25158 static ucontext_t uc_main;
25161 char garbage[1024];
25164 for (i = 0; i < 1024; i++)
25166 handler_addr = (char *)&dummy;
25167 swapcontext(&uc_handler, &uc_main);
25171 int main(int argc, char *argv[])
25180 skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
25183 for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
25185 skaddr = skbuf+sizeof(union alltypes);
25186 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25188 struct sigaction sa;
25189 #if defined(TEST_sigstack)
25190 struct sigstack ss;
25191 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
25194 struct sigaltstack ss;
25196 #if defined(TEST_sigstack)
25197 ss.ss_sp = (void *)(skaddr + sksize);
25199 if (sigstack(&ss, NULL) < 0)
25201 #elif defined(TEST_sigaltstack)
25202 ss.ss_sp = (void *)(skaddr + sksize);
25203 ss.ss_size = sksize;
25205 if (sigaltstack(&ss, NULL) < 0)
25208 memset((void *)&sa, 0, sizeof(struct sigaction));
25209 sa.sa_handler = handler;
25210 sa.sa_flags = SA_ONSTACK;
25211 sigemptyset(&sa.sa_mask);
25212 sigaction(SIGUSR1, &sa, NULL);
25213 kill(getpid(), SIGUSR1);
25214 while (!handler_done)
25218 #if defined(TEST_makecontext)
25220 if (getcontext(&uc_handler) != 0)
25222 uc_handler.uc_link = NULL;
25223 uc_handler.uc_stack.ss_sp = (void *)(skaddr + sksize);
25224 uc_handler.uc_stack.ss_size = sksize;
25225 uc_handler.uc_stack.ss_flags = 0;
25226 makecontext(&uc_handler, handler, 1);
25227 swapcontext(&uc_main, &uc_handler);
25230 if (handler_addr == (char *)0xDEAD)
25232 if (handler_addr < skaddr+sksize) {
25233 /* stack was placed into lower area */
25234 if (*(skaddr+sksize) != 'A')
25235 sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
25236 sizeof(union alltypes), sizeof(union alltypes));
25238 strcpy(result, "(skaddr)+(sksize),(sksize)");
25241 /* stack was placed into higher area */
25242 if (*(skaddr+sksize*2) != 'A')
25243 sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
25245 strcpy(result, "(skaddr),(sksize)");
25247 if ((f = fopen("conftestval", "w")) == NULL)
25249 fprintf(f, "%s\n", result);
25255 rm -f conftest$ac_exeext
25256 if { (ac_try="$ac_link"
25257 case "(($ac_try" in
25258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25259 *) ac_try_echo=$ac_try;;
25261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25262 (eval "$ac_link") 2>&5
25264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25266 { (case "(($ac_try" in
25267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25268 *) ac_try_echo=$ac_try;;
25270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25271 (eval "$ac_try") 2>&5
25273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25274 (exit $ac_status); }; }; then
25276 ac_cv_stacksetup_makecontext=`cat conftestval`
25277 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
25280 echo "$as_me: program exited with status $ac_status" >&5
25281 echo "$as_me: failed program was:" >&5
25282 sed 's/^/| /' conftest.$ac_ext >&5
25284 ( exit $ac_status )
25286 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25297 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
25298 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
25299 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
25300 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
25301 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
25302 { echo "$as_me:$LINENO: result: $type" >&5
25303 echo "${ECHO_T}$type" >&6; }
25304 if test ".$verbose" = .yes; then
25305 { echo "$as_me:$LINENO: result: $pth_skaddr_makecontext" >&5
25306 echo "${ECHO_T} $pth_skaddr_makecontext" >&6; }
25309 if test ".$verbose" = .yes; then
25310 { echo "$as_me:$LINENO: result: $pth_sksize_makecontext" >&5
25311 echo "${ECHO_T} $pth_sksize_makecontext" >&6; }
25318 #########################################
25319 ## Build optional modules (simix)
25322 { echo "$as_me:$LINENO: result: " >&5
25323 echo "${ECHO_T}" >&6; }
25324 { echo "$as_me:$LINENO: result: ${T_MD}Optional modules${T_ME}" >&5
25325 echo "${ECHO_T}${T_MD}Optional modules${T_ME}" >&6; }
25327 # Check whether --enable-simix was given.
25328 if test "${enable_simix+set}" = set; then
25329 enableval=$enable_simix; enable_simix=$enableval
25334 if test "x$enable_simix" = "xyes" ; then
25335 { echo "$as_me:$LINENO: result: ***** You have decided to use the experimental SimIX. We hope you know what you're doing.. ****" >&5
25336 echo "${ECHO_T}***** You have decided to use the experimental SimIX. We hope you know what you're doing.. ****" >&6; }
25338 cat >>confdefs.h <<\_ACEOF
25339 #define USE_SIMIX 1
25343 { echo "$as_me:$LINENO: result: Eventually you will come to SimIX." >&5
25344 echo "${ECHO_T}Eventually you will come to SimIX." >&6; }
25348 if test x$enable_simix != xno; then
25350 USE_SIMIX_FALSE='#'
25357 #########################################
25358 ## Build optional modules (gtnets)
25361 # Check whether --with-gtnets was given.
25362 if test "${with_gtnets+set}" = set; then
25363 withval=$with_gtnets; gtnets_path="$withval"
25368 if test "x$gtnets_path" = "xNO" ; then
25369 { echo "$as_me:$LINENO: result: Eventually you will come to GTNetS." >&5
25370 echo "${ECHO_T}Eventually you will come to GTNetS." >&6; }
25372 { echo "$as_me:$LINENO: result: ***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. ****" >&5
25373 echo "${ECHO_T}***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. ****" >&6; }
25375 cat >>confdefs.h <<\_ACEOF
25376 #define USE_GTNETS 1
25379 if ! test -e $gtnets_path ; then
25380 { { echo "$as_me:$LINENO: error: Provided path to GTNetS include files ($gtnets_path) do not exist!" >&5
25381 echo "$as_me: error: Provided path to GTNetS include files ($gtnets_path) do not exist!" >&2;}
25382 { (exit 1); exit 1; }; }
25384 GTNETS_CFLAGS=-I$gtnets_path/include
25386 GTNETS_LDFLAGS=-L$gtnets_path/lib
25391 if test "x$gtnets_path" != xNO; then
25393 USE_GTNETS_FALSE='#'
25395 USE_GTNETS_TRUE='#'
25400 #########################################
25401 ## Check for libraries extra-dependencies
25405 { echo "$as_me:$LINENO: result: " >&5
25406 echo "${ECHO_T}" >&6; }
25407 { echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
25408 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6; }
25413 if test xpthread=xyes ; then
25414 # if the pthreads are usable
25415 if test "x$with_context" = "xpthread" ; then
25416 # if we use them to implement the xbt_context
25417 SIMGRID_DEP="-lpthread"
25419 # we need them in any case for the gras lib (which is multithreaded)
25420 GRAS_DEP="-lpthread"
25423 { echo "$as_me:$LINENO: checking for csdp" >&5
25424 echo $ECHO_N "checking for csdp... $ECHO_C" >&6; }
25426 { echo "$as_me:$LINENO: checking for sdp in -lsdp" >&5
25427 echo $ECHO_N "checking for sdp in -lsdp... $ECHO_C" >&6; }
25428 if test "${ac_cv_lib_sdp_sdp+set}" = set; then
25429 echo $ECHO_N "(cached) $ECHO_C" >&6
25431 ac_check_lib_save_LIBS=$LIBS
25432 LIBS="-lsdp -llapack -lblas -lm $LIBS"
25433 cat >conftest.$ac_ext <<_ACEOF
25436 cat confdefs.h >>conftest.$ac_ext
25437 cat >>conftest.$ac_ext <<_ACEOF
25438 /* end confdefs.h. */
25440 /* Override any GCC internal prototype to avoid an error.
25441 Use char because int might match the return type of a GCC
25442 builtin and then its argument prototype would still apply. */
25455 rm -f conftest.$ac_objext conftest$ac_exeext
25456 if { (ac_try="$ac_link"
25457 case "(($ac_try" in
25458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25459 *) ac_try_echo=$ac_try;;
25461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25462 (eval "$ac_link") 2>conftest.er1
25464 grep -v '^ *+' conftest.er1 >conftest.err
25466 cat conftest.err >&5
25467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25468 (exit $ac_status); } && {
25469 test -z "$ac_c_werror_flag" ||
25470 test ! -s conftest.err
25471 } && test -s conftest$ac_exeext &&
25472 $as_test_x conftest$ac_exeext; then
25473 ac_cv_lib_sdp_sdp=yes
25475 echo "$as_me: failed program was:" >&5
25476 sed 's/^/| /' conftest.$ac_ext >&5
25478 ac_cv_lib_sdp_sdp=no
25481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25482 conftest$ac_exeext conftest.$ac_ext
25483 LIBS=$ac_check_lib_save_LIBS
25485 { echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_sdp" >&5
25486 echo "${ECHO_T}$ac_cv_lib_sdp_sdp" >&6; }
25487 if test $ac_cv_lib_sdp_sdp = yes; then
25493 if test "x$csdp" = xyes; then
25494 SIMGRID_DEP="$SIMGRID_DEP -lsdp -llapack -lblas -lm"
25495 { echo "$as_me:$LINENO: result: Found working sdp library." >&5
25496 echo "${ECHO_T}Found working sdp library." >&6; }
25498 cat >>confdefs.h <<\_ACEOF
25503 { echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
25504 echo "${ECHO_T}Could not find any working sdp library." >&6; }
25508 if test x$csdp != xno; then
25519 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25520 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
25521 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25522 echo $ECHO_N "(cached) $ECHO_C" >&6
25524 ac_check_lib_save_LIBS=$LIBS
25526 cat >conftest.$ac_ext <<_ACEOF
25529 cat confdefs.h >>conftest.$ac_ext
25530 cat >>conftest.$ac_ext <<_ACEOF
25531 /* end confdefs.h. */
25533 /* Override any GCC internal prototype to avoid an error.
25534 Use char because int might match the return type of a GCC
25535 builtin and then its argument prototype would still apply. */
25539 char gethostbyname ();
25543 return gethostbyname ();
25548 rm -f conftest.$ac_objext conftest$ac_exeext
25549 if { (ac_try="$ac_link"
25550 case "(($ac_try" in
25551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25552 *) ac_try_echo=$ac_try;;
25554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25555 (eval "$ac_link") 2>conftest.er1
25557 grep -v '^ *+' conftest.er1 >conftest.err
25559 cat conftest.err >&5
25560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25561 (exit $ac_status); } && {
25562 test -z "$ac_c_werror_flag" ||
25563 test ! -s conftest.err
25564 } && test -s conftest$ac_exeext &&
25565 $as_test_x conftest$ac_exeext; then
25566 ac_cv_lib_nsl_gethostbyname=yes
25568 echo "$as_me: failed program was:" >&5
25569 sed 's/^/| /' conftest.$ac_ext >&5
25571 ac_cv_lib_nsl_gethostbyname=no
25574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25575 conftest$ac_exeext conftest.$ac_ext
25576 LIBS=$ac_check_lib_save_LIBS
25578 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25579 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
25580 if test $ac_cv_lib_nsl_gethostbyname = yes; then
25581 GRAS_DEP="$GRAS_DEP -lnsl"
25584 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25585 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
25586 if test "${ac_cv_lib_socket_connect+set}" = set; then
25587 echo $ECHO_N "(cached) $ECHO_C" >&6
25589 ac_check_lib_save_LIBS=$LIBS
25590 LIBS="-lsocket $LIBS"
25591 cat >conftest.$ac_ext <<_ACEOF
25594 cat confdefs.h >>conftest.$ac_ext
25595 cat >>conftest.$ac_ext <<_ACEOF
25596 /* end confdefs.h. */
25598 /* Override any GCC internal prototype to avoid an error.
25599 Use char because int might match the return type of a GCC
25600 builtin and then its argument prototype would still apply. */
25613 rm -f conftest.$ac_objext conftest$ac_exeext
25614 if { (ac_try="$ac_link"
25615 case "(($ac_try" in
25616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25617 *) ac_try_echo=$ac_try;;
25619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25620 (eval "$ac_link") 2>conftest.er1
25622 grep -v '^ *+' conftest.er1 >conftest.err
25624 cat conftest.err >&5
25625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25626 (exit $ac_status); } && {
25627 test -z "$ac_c_werror_flag" ||
25628 test ! -s conftest.err
25629 } && test -s conftest$ac_exeext &&
25630 $as_test_x conftest$ac_exeext; then
25631 ac_cv_lib_socket_connect=yes
25633 echo "$as_me: failed program was:" >&5
25634 sed 's/^/| /' conftest.$ac_ext >&5
25636 ac_cv_lib_socket_connect=no
25639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25640 conftest$ac_exeext conftest.$ac_ext
25641 LIBS=$ac_check_lib_save_LIBS
25643 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25644 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
25645 if test $ac_cv_lib_socket_connect = yes; then
25646 GRAS_DEP="$GRAS_DEP -lsocket"
25650 { echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
25651 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6; }
25653 *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32";
25654 AM_CFLAGS=-DDLL_EXPORT
25656 cat >>confdefs.h <<\_ACEOF
25657 #define CONTEXT_THREADS 1
25662 if test "x$GRAS_DEP" = x; then
25663 { echo "$as_me:$LINENO: result: none" >&5
25664 echo "${ECHO_T}none" >&6; }
25666 { echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
25667 echo "${ECHO_T}$GRAS_DEP" >&6; }
25672 ##############################################
25673 ## Enhance maintainer mode and SUBST variables
25674 ## (must be placed after any compilation tests since our overprotective flags
25675 ## let some tests fail)
25677 # Check whether we are doing a regular build or a GRAMINE (minimal) one
25678 # Next line is modified by sed when building gramine source tree
25680 if test x$gramine_mode = xyes
25682 USE_MAINTAINER_MODE=no
25686 if test x$gramine_mode != xno; then
25688 GRAMINE_MODE_FALSE='#'
25690 GRAMINE_MODE_TRUE='#'
25691 GRAMINE_MODE_FALSE=
25696 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
25697 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
25698 # Check whether --enable-maintainer-mode was given.
25699 if test "${enable_maintainer_mode+set}" = set; then
25700 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
25702 USE_MAINTAINER_MODE=no
25705 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
25706 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
25709 if test $USE_MAINTAINER_MODE = yes; then
25710 MAINTAINER_MODE_TRUE=
25711 MAINTAINER_MODE_FALSE='#'
25713 MAINTAINER_MODE_TRUE='#'
25714 MAINTAINER_MODE_FALSE=
25717 MAINT=$MAINTAINER_MODE_TRUE
25720 if test x$USE_MAINTAINER_MODE = xyes
25722 # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
25723 enable_compile_warnings=yes
25726 # Check whether --enable-compile-warnings was given.
25727 if test "${enable_compile_warnings+set}" = set; then
25728 enableval=$enable_compile_warnings; enable_compile_warnings=$enableval
25730 enable_compile_warnings=no
25734 # Check whether --enable-compile-optimizations was given.
25735 if test "${enable_compile_optimizations+set}" = set; then
25736 enableval=$enable_compile_optimizations; enable_compile_optimizations=$enableval
25738 enable_compile_optimizations=auto
25742 if test "x$cflags_set" != "xyes" ; then
25743 # if user didn't specify CFLAGS explicitely
25745 # AC PROG CC tests whether -g is accepted.
25746 # Cool, but it also tries to set -O2. I don't want it with gcc
25747 saveCFLAGS="$CFLAGS"
25749 case " $saveCFLAGS " in
25750 *-g*) CFLAGS="-g" ;;
25752 case " $saveCFLAGS " in
25753 *-O2*) test "x$CC" = xgcc || CFLAGS="$CFLAGS -O2" ;;
25756 # damn AC PROG CC, why did you set -O??
25760 if test "x$enable_compile_warnings" = "xyes" ; then
25761 { echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
25762 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6; }
25764 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25765 case " $CFLAGS " in
25767 *) warnCFLAGS="-Wall -Wunused" ;;
25770 ## -W is not all that useful. And it cannot be controlled
25771 ## with individual -Wno-xxx flags, unlike -Wall
25773 ##Â -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
25774 ## -Wshadow chokes on try{ try{} } constructs
25775 if test "x$enable_compile_warnings" = "xyes"; then
25776 warnCFLAGS=`echo $warnCFLAGS -Wmissing-prototypes -Wmissing-declarations \
25777 -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
25778 -Wno-unused-function \
25781 # -Wno-unused-variable -Wno-unused-label
25784 { echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
25785 echo "${ECHO_T}$warnCFLAGS" >&6; }
25786 # placed before since gcc remembers the last one on conflict
25787 CFLAGS="$warnCFLAGS $CFLAGS"
25790 if test "x$enable_compile_optimizations" = "xyes" ||
25791 test "x$enable_compile_optimizations" = "xauto" ; then
25792 { echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
25793 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6; }
25795 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25796 case " $CFLAGS " in
25798 *) optCFLAGS="$optCFLAGS -O3" ;;
25800 optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
25802 GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
25803 GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
25804 if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" != "x2" ; then
25805 # avoid gcc bug #12828, which is fixed in 3.4.0, but this version
25806 # isn't propagated enough to desserve an extra check
25808 # Note that the flag didn't exist before gcc 3.0
25809 optCFLAGS="$optCFLAGS -fno-loop-optimize"
25812 { echo "$as_me:$LINENO: result: $optCFLAGS" >&5
25813 echo "${ECHO_T}$optCFLAGS" >&6; }
25814 # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
25815 if test "x$cflags_set" != "xyes" ; then
25816 CFLAGS="$optCFLAGS $CFLAGS"
25820 if test x$lt_cv_prog_gnu_ld = xyes ; then
25821 LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
25837 #####################
25838 ## Check for programs
25842 { echo "$as_me:$LINENO: result: " >&5
25843 echo "${ECHO_T}" >&6; }
25844 { echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
25845 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6; }
25847 # Extract the first word of "bash", so it can be a program name with args.
25848 set dummy bash; ac_word=$2
25849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25851 if test "${ac_cv_prog_BASH+set}" = set; then
25852 echo $ECHO_N "(cached) $ECHO_C" >&6
25854 if test -n "$BASH"; then
25855 ac_cv_prog_BASH="$BASH" # Let the user override the test.
25857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25858 for as_dir in $PATH
25861 test -z "$as_dir" && as_dir=.
25862 for ac_exec_ext in '' $ac_executable_extensions; do
25863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25864 ac_cv_prog_BASH="`which bash`"
25865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25872 test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
25875 BASH=$ac_cv_prog_BASH
25876 if test -n "$BASH"; then
25877 { echo "$as_me:$LINENO: result: $BASH" >&5
25878 echo "${ECHO_T}$BASH" >&6; }
25880 { echo "$as_me:$LINENO: result: no" >&5
25881 echo "${ECHO_T}no" >&6; }
25885 WARNING="This file is generated, do not edit"
25889 # Can we rebuild the parsers?
25890 # We really want flex and refuse other lex. So, the parser is portable and
25891 # does not induce extra lib dependency
25892 for ac_prog in flex lex
25894 # Extract the first word of "$ac_prog", so it can be a program name with args.
25895 set dummy $ac_prog; ac_word=$2
25896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25898 if test "${ac_cv_prog_LEX+set}" = set; then
25899 echo $ECHO_N "(cached) $ECHO_C" >&6
25901 if test -n "$LEX"; then
25902 ac_cv_prog_LEX="$LEX" # Let the user override the test.
25904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25905 for as_dir in $PATH
25908 test -z "$as_dir" && as_dir=.
25909 for ac_exec_ext in '' $ac_executable_extensions; do
25910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25911 ac_cv_prog_LEX="$ac_prog"
25912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25921 LEX=$ac_cv_prog_LEX
25922 if test -n "$LEX"; then
25923 { echo "$as_me:$LINENO: result: $LEX" >&5
25924 echo "${ECHO_T}$LEX" >&6; }
25926 { echo "$as_me:$LINENO: result: no" >&5
25927 echo "${ECHO_T}no" >&6; }
25931 test -n "$LEX" && break
25933 test -n "$LEX" || LEX=":"
25935 if test "x$LEX" != "x:"; then
25936 cat >conftest.l <<_ACEOF
25942 e { yyless (input () != 0); }
25943 f { unput (yytext[0]); }
25944 . { BEGIN INITIAL; }
25946 #ifdef YYTEXT_POINTER
25947 extern char *yytext;
25952 return ! yylex () + ! yywrap ();
25955 { (ac_try="$LEX conftest.l"
25956 case "(($ac_try" in
25957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25958 *) ac_try_echo=$ac_try;;
25960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25961 (eval "$LEX conftest.l") 2>&5
25963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964 (exit $ac_status); }
25965 { echo "$as_me:$LINENO: checking lex output file root" >&5
25966 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
25967 if test "${ac_cv_prog_lex_root+set}" = set; then
25968 echo $ECHO_N "(cached) $ECHO_C" >&6
25971 if test -f lex.yy.c; then
25972 ac_cv_prog_lex_root=lex.yy
25973 elif test -f lexyy.c; then
25974 ac_cv_prog_lex_root=lexyy
25976 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
25977 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
25978 { (exit 1); exit 1; }; }
25981 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
25982 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
25983 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
25985 if test -z "${LEXLIB+set}"; then
25986 { echo "$as_me:$LINENO: checking lex library" >&5
25987 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
25988 if test "${ac_cv_lib_lex+set}" = set; then
25989 echo $ECHO_N "(cached) $ECHO_C" >&6
25993 ac_cv_lib_lex='none needed'
25994 for ac_lib in '' -lfl -ll; do
25995 LIBS="$ac_lib $ac_save_LIBS"
25996 cat >conftest.$ac_ext <<_ACEOF
25997 `cat $LEX_OUTPUT_ROOT.c`
25999 rm -f conftest.$ac_objext conftest$ac_exeext
26000 if { (ac_try="$ac_link"
26001 case "(($ac_try" in
26002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26003 *) ac_try_echo=$ac_try;;
26005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26006 (eval "$ac_link") 2>conftest.er1
26008 grep -v '^ *+' conftest.er1 >conftest.err
26010 cat conftest.err >&5
26011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26012 (exit $ac_status); } && {
26013 test -z "$ac_c_werror_flag" ||
26014 test ! -s conftest.err
26015 } && test -s conftest$ac_exeext &&
26016 $as_test_x conftest$ac_exeext; then
26017 ac_cv_lib_lex=$ac_lib
26019 echo "$as_me: failed program was:" >&5
26020 sed 's/^/| /' conftest.$ac_ext >&5
26025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26026 conftest$ac_exeext conftest.$ac_ext
26027 test "$ac_cv_lib_lex" != 'none needed' && break
26032 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
26033 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
26034 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
26038 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
26039 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
26040 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
26041 echo $ECHO_N "(cached) $ECHO_C" >&6
26043 # POSIX says lex can declare yytext either as a pointer or an array; the
26044 # default is implementation-dependent. Figure out which it is, since
26045 # not all implementations provide the %pointer and %array declarations.
26046 ac_cv_prog_lex_yytext_pointer=no
26048 LIBS="$LEXLIB $ac_save_LIBS"
26049 cat >conftest.$ac_ext <<_ACEOF
26050 #define YYTEXT_POINTER 1
26051 `cat $LEX_OUTPUT_ROOT.c`
26053 rm -f conftest.$ac_objext conftest$ac_exeext
26054 if { (ac_try="$ac_link"
26055 case "(($ac_try" in
26056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26057 *) ac_try_echo=$ac_try;;
26059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26060 (eval "$ac_link") 2>conftest.er1
26062 grep -v '^ *+' conftest.er1 >conftest.err
26064 cat conftest.err >&5
26065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066 (exit $ac_status); } && {
26067 test -z "$ac_c_werror_flag" ||
26068 test ! -s conftest.err
26069 } && test -s conftest$ac_exeext &&
26070 $as_test_x conftest$ac_exeext; then
26071 ac_cv_prog_lex_yytext_pointer=yes
26073 echo "$as_me: failed program was:" >&5
26074 sed 's/^/| /' conftest.$ac_ext >&5
26079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26080 conftest$ac_exeext conftest.$ac_ext
26084 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
26085 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
26086 if test $ac_cv_prog_lex_yytext_pointer = yes; then
26088 cat >>confdefs.h <<\_ACEOF
26089 #define YYTEXT_POINTER 1
26093 rm -f conftest.l $LEX_OUTPUT_ROOT.c
26097 if test "$LEX" != flex; then
26098 { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
26099 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
26100 LEX=${am_missing_run}flex
26104 if test "x2.5.30" != "x" ; then
26105 FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
26107 FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
26108 FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
26109 FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
26111 WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
26112 WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
26113 WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
26115 if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
26116 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED" ||
26117 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
26119 { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
26120 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
26121 LEX=${am_missing_run}flex
26125 { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
26126 echo "$as_me: Flex found. Parsers will get updated" >&6;}
26132 # Can we rebuild the xml-lexers from the XML specification?
26133 # if not, simply touch the flex source files (which are distributed in
26134 # tarballs even if generated by flexml) and hope for the best.
26135 # Extract the first word of "flexml", so it can be a program name with args.
26136 set dummy flexml; ac_word=$2
26137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26139 if test "${ac_cv_prog_FLEXML+set}" = set; then
26140 echo $ECHO_N "(cached) $ECHO_C" >&6
26142 if test -n "$FLEXML"; then
26143 ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
26145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26146 for as_dir in $PATH
26149 test -z "$as_dir" && as_dir=.
26150 for ac_exec_ext in '' $ac_executable_extensions; do
26151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26152 ac_cv_prog_FLEXML="`which flexml`"
26153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26160 test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
26163 FLEXML=$ac_cv_prog_FLEXML
26164 if test -n "$FLEXML"; then
26165 { echo "$as_me:$LINENO: result: $FLEXML" >&5
26166 echo "${ECHO_T}$FLEXML" >&6; }
26168 { echo "$as_me:$LINENO: result: no" >&5
26169 echo "${ECHO_T}no" >&6; }
26175 if test x$FLEXML != xNOTFOUND; then
26177 HAVE_FLEXML_FALSE='#'
26179 HAVE_FLEXML_TRUE='#'
26184 if test x$USE_MAINTAINER_MODE = xyes
26186 # Check for doxygen when in maintainer mode since dist* targets fail
26188 # Extract the first word of "doxygen", so it can be a program name with args.
26189 set dummy doxygen; ac_word=$2
26190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26192 if test "${ac_cv_path_DOXYGEN+set}" = set; then
26193 echo $ECHO_N "(cached) $ECHO_C" >&6
26197 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
26200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26201 for as_dir in $PATH
26204 test -z "$as_dir" && as_dir=.
26205 for ac_exec_ext in '' $ac_executable_extensions; do
26206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26207 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
26208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26215 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
26219 DOXYGEN=$ac_cv_path_DOXYGEN
26220 if test -n "$DOXYGEN"; then
26221 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
26222 echo "${ECHO_T}$DOXYGEN" >&6; }
26224 { echo "$as_me:$LINENO: result: no" >&5
26225 echo "${ECHO_T}no" >&6; }
26229 if test x$DOXYGEN = x ; then
26230 { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
26231 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
26232 { (exit 1); exit 1; }; }
26236 # Can we extract really usable backtraces? (also need the popen function)
26237 # Extract the first word of "addr2line", so it can be a program name with args.
26238 set dummy addr2line; ac_word=$2
26239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26241 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
26242 echo $ECHO_N "(cached) $ECHO_C" >&6
26246 ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
26249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26250 for as_dir in $PATH
26253 test -z "$as_dir" && as_dir=.
26254 for ac_exec_ext in '' $ac_executable_extensions; do
26255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26256 ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
26257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26267 ADDR2LINE=$ac_cv_path_ADDR2LINE
26268 if test -n "$ADDR2LINE"; then
26269 { echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
26270 echo "${ECHO_T}$ADDR2LINE" >&6; }
26272 { echo "$as_me:$LINENO: result: no" >&5
26273 echo "${ECHO_T}no" >&6; }
26277 if test x$ADDR2LINE != x ; then
26279 cat >>confdefs.h <<_ACEOF
26280 #define ADDR2LINE "$ADDR2LINE"
26286 # Can we make status line about the compilation result?
26287 # Extract the first word of "md5sum", so it can be a program name with args.
26288 set dummy md5sum; ac_word=$2
26289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26291 if test "${ac_cv_prog_MD5SUM+set}" = set; then
26292 echo $ECHO_N "(cached) $ECHO_C" >&6
26294 if test -n "$MD5SUM"; then
26295 ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
26297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26298 for as_dir in $PATH
26301 test -z "$as_dir" && as_dir=.
26302 for ac_exec_ext in '' $ac_executable_extensions; do
26303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26304 ac_cv_prog_MD5SUM="`which md5sum`"
26305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26314 MD5SUM=$ac_cv_prog_MD5SUM
26315 if test -n "$MD5SUM"; then
26316 { echo "$as_me:$LINENO: result: $MD5SUM" >&5
26317 echo "${ECHO_T}$MD5SUM" >&6; }
26319 { echo "$as_me:$LINENO: result: no" >&5
26320 echo "${ECHO_T}no" >&6; }
26324 if test x$MD5SUM != xno ; then
26325 build_version=`find -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
26326 xargs cat| $MD5SUM | sed 's/ .*$//'`
26328 build_version="no_md5sum_binary"
26330 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
26333 ###################
26334 ## Makes the output
26339 # examples/gras/chord/Makefile examples/gras/chord/test_sg examples/gras/chord/test_rl
26340 # src/amok/Makefile
26343 { echo "$as_me:$LINENO: result: " >&5
26344 echo "${ECHO_T}" >&6; }
26345 { echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
26346 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6; }
26349 # Core of the libraries
26351 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
26354 # Tools being embeeded in gramine (stub generator)
26355 ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile tools/tesh/Makefile"
26359 # GRAMINE_CUT_BEGIN
26361 # Tools NOT being embeeded in gramine
26362 ac_config_files="$ac_config_files tools/graspe-slave"
26367 ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage"
26371 ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
26376 # examples/gras/p2p/Makefile
26377 # examples/gras/p2p/chord/Makefile
26378 # examples/gras/p2p/can/Makefile
26380 ac_config_files="$ac_config_files examples/Makefile examples/msg/Makefile examples/msg/basic.tesh examples/msg/small_plat.tesh examples/msg/suspend.tesh examples/msg/flexml_bypass.tesh examples/simdag/Makefile examples/simdag/test_simdag examples/gras/Makefile examples/gras/ping/Makefile examples/gras/rpc/Makefile examples/gras/timer/Makefile examples/gras/chrono/Makefile examples/gras/mutual_exclusion/simple_token/Makefile examples/gras/mmrpc/Makefile examples/gras/pmm/Makefile examples/gras/all2all/Makefile examples/amok/Makefile examples/amok/bandwidth/Makefile examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl examples/amok/saturate/Makefile examples/amok/saturate/test_sg examples/amok/saturate/test_rl"
26386 cat >confcache <<\_ACEOF
26387 # This file is a shell script that caches the results of configure
26388 # tests run on this system so they can be shared between configure
26389 # scripts and configure runs, see configure's option --config-cache.
26390 # It is not useful on other systems. If it contains results you don't
26391 # want to keep, you may remove or edit it.
26393 # config.status only pays attention to the cache file if you give it
26394 # the --recheck option to rerun configure.
26396 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26397 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26398 # following values.
26402 # The following way of writing the cache mishandles newlines in values,
26403 # but we know of no workaround that is simple, portable, and efficient.
26404 # So, we kill variables containing newlines.
26405 # Ultrix sh set writes to stderr and can't be redirected directly,
26406 # and sets the high bit in the cache file unless we assign to the vars.
26408 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26409 eval ac_val=\$$ac_var
26413 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26414 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26417 _ | IFS | as_nl) ;; #(
26418 *) $as_unset $ac_var ;;
26424 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26425 *${as_nl}ac_space=\ *)
26426 # `set' does not quote correctly, so add quotes (double-quote
26427 # substitution turns \\\\ into \\, and sed turns \\ into \).
26430 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26433 # `set' quotes correctly as required by POSIX, so do not add quotes.
26434 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26443 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26445 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26447 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26448 if test -w "$cache_file"; then
26449 test "x$cache_file" != "x/dev/null" &&
26450 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26451 echo "$as_me: updating cache $cache_file" >&6;}
26452 cat confcache >$cache_file
26454 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26455 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26460 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26461 # Let make expand exec_prefix.
26462 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26464 DEFS=-DHAVE_CONFIG_H
26468 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26469 # 1. Remove the extension, and $U if already installed.
26470 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26471 ac_i=`echo "$ac_i" | sed "$ac_script"`
26472 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26473 # will be set to the directory where LIBOBJS objects are built.
26474 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26475 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26477 LIBOBJS=$ac_libobjs
26479 LTLIBOBJS=$ac_ltlibobjs
26482 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26483 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26484 Usually this means the macro was only invoked conditionally." >&5
26485 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26486 Usually this means the macro was only invoked conditionally." >&2;}
26487 { (exit 1); exit 1; }; }
26489 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26490 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26491 Usually this means the macro was only invoked conditionally." >&5
26492 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26493 Usually this means the macro was only invoked conditionally." >&2;}
26494 { (exit 1); exit 1; }; }
26496 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26497 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26498 Usually this means the macro was only invoked conditionally." >&5
26499 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26500 Usually this means the macro was only invoked conditionally." >&2;}
26501 { (exit 1); exit 1; }; }
26503 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26504 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26505 Usually this means the macro was only invoked conditionally." >&5
26506 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26507 Usually this means the macro was only invoked conditionally." >&2;}
26508 { (exit 1); exit 1; }; }
26510 if test -z "${GRAS_ARCH_32_BITS_TRUE}" && test -z "${GRAS_ARCH_32_BITS_FALSE}"; then
26511 { { echo "$as_me:$LINENO: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
26512 Usually this means the macro was only invoked conditionally." >&5
26513 echo "$as_me: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
26514 Usually this means the macro was only invoked conditionally." >&2;}
26515 { (exit 1); exit 1; }; }
26517 if test -z "${USE_SIMIX_TRUE}" && test -z "${USE_SIMIX_FALSE}"; then
26518 { { echo "$as_me:$LINENO: error: conditional \"USE_SIMIX\" was never defined.
26519 Usually this means the macro was only invoked conditionally." >&5
26520 echo "$as_me: error: conditional \"USE_SIMIX\" was never defined.
26521 Usually this means the macro was only invoked conditionally." >&2;}
26522 { (exit 1); exit 1; }; }
26524 if test -z "${USE_GTNETS_TRUE}" && test -z "${USE_GTNETS_FALSE}"; then
26525 { { echo "$as_me:$LINENO: error: conditional \"USE_GTNETS\" was never defined.
26526 Usually this means the macro was only invoked conditionally." >&5
26527 echo "$as_me: error: conditional \"USE_GTNETS\" was never defined.
26528 Usually this means the macro was only invoked conditionally." >&2;}
26529 { (exit 1); exit 1; }; }
26531 if test -z "${HAVE_SDP_TRUE}" && test -z "${HAVE_SDP_FALSE}"; then
26532 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDP\" was never defined.
26533 Usually this means the macro was only invoked conditionally." >&5
26534 echo "$as_me: error: conditional \"HAVE_SDP\" was never defined.
26535 Usually this means the macro was only invoked conditionally." >&2;}
26536 { (exit 1); exit 1; }; }
26538 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
26539 { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
26540 Usually this means the macro was only invoked conditionally." >&5
26541 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
26542 Usually this means the macro was only invoked conditionally." >&2;}
26543 { (exit 1); exit 1; }; }
26545 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26546 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26547 Usually this means the macro was only invoked conditionally." >&5
26548 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26549 Usually this means the macro was only invoked conditionally." >&2;}
26550 { (exit 1); exit 1; }; }
26552 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
26553 { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
26554 Usually this means the macro was only invoked conditionally." >&5
26555 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
26556 Usually this means the macro was only invoked conditionally." >&2;}
26557 { (exit 1); exit 1; }; }
26560 : ${CONFIG_STATUS=./config.status}
26561 ac_clean_files_save=$ac_clean_files
26562 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26563 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26564 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26565 cat >$CONFIG_STATUS <<_ACEOF
26567 # Generated by $as_me.
26568 # Run this file to recreate the current configuration.
26569 # Compiler output produced by configure, useful for debugging
26570 # configure, is in config.log if it exists.
26573 ac_cs_recheck=false
26575 SHELL=\${CONFIG_SHELL-$SHELL}
26578 cat >>$CONFIG_STATUS <<\_ACEOF
26579 ## --------------------- ##
26580 ## M4sh Initialization. ##
26581 ## --------------------- ##
26583 # Be more Bourne compatible
26584 DUALCASE=1; export DUALCASE # for MKS sh
26585 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26588 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26589 # is contrary to our usage. Disable this feature.
26590 alias -g '${1+"$@"}'='"$@"'
26591 setopt NO_GLOB_SUBST
26593 case `(set -o) 2>/dev/null` in
26594 *posix*) set -o posix ;;
26603 # Avoid depending upon Character Ranges.
26604 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26605 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26606 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26607 as_cr_digits='0123456789'
26608 as_cr_alnum=$as_cr_Letters$as_cr_digits
26610 # The user is always right.
26611 if test "${PATH_SEPARATOR+set}" != set; then
26612 echo "#! /bin/sh" >conf$$.sh
26613 echo "exit 0" >>conf$$.sh
26615 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26623 # Support unset when possible.
26624 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26632 # We need space, tab and new line, in precisely that order. Quoting is
26633 # there to prevent editors from complaining about space-tab.
26634 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26635 # splitting by setting IFS to empty value.)
26640 # Find who we are. Look in the path if we contain no directory separator.
26642 *[\\/]* ) as_myself=$0 ;;
26643 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26644 for as_dir in $PATH
26647 test -z "$as_dir" && as_dir=.
26648 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26654 # We did not find ourselves, most probably we were run as `sh COMMAND'
26655 # in which case we are not to be found in the path.
26656 if test "x$as_myself" = x; then
26659 if test ! -f "$as_myself"; then
26660 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26661 { (exit 1); exit 1; }
26664 # Work around bugs in pre-3.0 UWIN ksh.
26665 for as_var in ENV MAIL MAILPATH
26666 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26674 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26675 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26676 LC_TELEPHONE LC_TIME
26678 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26679 eval $as_var=C; export $as_var
26681 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26685 # Required to use basename.
26686 if expr a : '\(a\)' >/dev/null 2>&1 &&
26687 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26693 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26694 as_basename=basename
26700 # Name of the executable.
26701 as_me=`$as_basename -- "$0" ||
26702 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26703 X"$0" : 'X\(//\)$' \| \
26704 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26706 sed '/^.*\/\([^/][^/]*\)\/*$/{
26725 as_lineno_1=$LINENO
26726 as_lineno_2=$LINENO
26727 test "x$as_lineno_1" != "x$as_lineno_2" &&
26728 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26730 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26731 # uniformly replaced by the line number. The first 'sed' inserts a
26732 # line-number line after each line using $LINENO; the second 'sed'
26733 # does the real work. The second script uses 'N' to pair each
26734 # line-number line with the line containing $LINENO, and appends
26735 # trailing '-' during substitution so that $LINENO is not a special
26736 # case at line end.
26737 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26738 # scripts with optimization help from Paolo Bonzini. Blame Lee
26739 # E. McMahon (1931-1989) for sed's syntax. :-)
26751 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26754 ' >$as_me.lineno &&
26755 chmod +x "$as_me.lineno" ||
26756 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26757 { (exit 1); exit 1; }; }
26759 # Don't try to exec as it changes $[0], causing all sort of problems
26760 # (the dirname of $[0] is not the place where we might find the
26761 # original and so on. Autoconf is especially sensitive to this).
26762 . "./$as_me.lineno"
26763 # Exit status is that of the last command.
26768 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26774 ECHO_C= ECHO_N= ECHO_T=
26775 case `echo -n x` in
26777 case `echo 'x\c'` in
26778 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26785 if expr a : '\(a\)' >/dev/null 2>&1 &&
26786 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26792 rm -f conf$$ conf$$.exe conf$$.file
26793 if test -d conf$$.dir; then
26794 rm -f conf$$.dir/conf$$.file
26800 if ln -s conf$$.file conf$$ 2>/dev/null; then
26802 # ... but there are two gotchas:
26803 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26804 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26805 # In both cases, we have to default to `cp -p'.
26806 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26808 elif ln conf$$.file conf$$ 2>/dev/null; then
26813 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26814 rmdir conf$$.dir 2>/dev/null
26816 if mkdir -p . 2>/dev/null; then
26819 test -d ./-p && rmdir ./-p
26823 if test -x / >/dev/null 2>&1; then
26824 as_test_x='test -x'
26826 if ls -dL / >/dev/null 2>&1; then
26833 if test -d "$1"; then
26839 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26840 ???[sx]*):;;*)false;;esac;fi
26844 as_executable_p=$as_test_x
26846 # Sed expression to map a string onto a valid CPP name.
26847 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26849 # Sed expression to map a string onto a valid variable name.
26850 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26855 # Save the log message, to keep $[0] and so on meaningful, and to
26856 # report actual input values of CONFIG_FILES etc. instead of their
26857 # values after options handling.
26859 This file was extended by simgrid $as_me 3.3-cvs, which was
26860 generated by GNU Autoconf 2.61. Invocation command line was
26862 CONFIG_FILES = $CONFIG_FILES
26863 CONFIG_HEADERS = $CONFIG_HEADERS
26864 CONFIG_LINKS = $CONFIG_LINKS
26865 CONFIG_COMMANDS = $CONFIG_COMMANDS
26868 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26873 cat >>$CONFIG_STATUS <<_ACEOF
26874 # Files that config.status was made for.
26875 config_files="$ac_config_files"
26876 config_headers="$ac_config_headers"
26877 config_commands="$ac_config_commands"
26881 cat >>$CONFIG_STATUS <<\_ACEOF
26883 \`$as_me' instantiates files from templates according to the
26884 current configuration.
26886 Usage: $0 [OPTIONS] [FILE]...
26888 -h, --help print this help, then exit
26889 -V, --version print version number and configuration settings, then exit
26890 -q, --quiet do not print progress messages
26891 -d, --debug don't remove temporary files
26892 --recheck update $as_me by reconfiguring in the same conditions
26893 --file=FILE[:TEMPLATE]
26894 instantiate the configuration file FILE
26895 --header=FILE[:TEMPLATE]
26896 instantiate the configuration header FILE
26898 Configuration files:
26901 Configuration headers:
26904 Configuration commands:
26907 Report bugs to <bug-autoconf@gnu.org>."
26910 cat >>$CONFIG_STATUS <<_ACEOF
26912 simgrid config.status 3.3-cvs
26913 configured by $0, generated by GNU Autoconf 2.61,
26914 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26916 Copyright (C) 2006 Free Software Foundation, Inc.
26917 This config.status script is free software; the Free Software Foundation
26918 gives unlimited permission to copy, distribute and modify it."
26925 cat >>$CONFIG_STATUS <<\_ACEOF
26926 # If no file are specified by the user, then we need to provide default
26927 # value. By we need to know if files were specified by the user.
26933 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26934 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26945 # Handling of the options.
26946 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26948 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26949 echo "$ac_cs_version"; exit ;;
26950 --debug | --debu | --deb | --de | --d | -d )
26952 --file | --fil | --fi | --f )
26954 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26955 ac_need_defaults=false;;
26956 --header | --heade | --head | --hea )
26958 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26959 ac_need_defaults=false;;
26961 # Conflict between --help and --header
26962 { echo "$as_me: error: ambiguous option: $1
26963 Try \`$0 --help' for more information." >&2
26964 { (exit 1); exit 1; }; };;
26965 --help | --hel | -h )
26966 echo "$ac_cs_usage"; exit ;;
26967 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26968 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26971 # This is an error.
26972 -*) { echo "$as_me: error: unrecognized option: $1
26973 Try \`$0 --help' for more information." >&2
26974 { (exit 1); exit 1; }; } ;;
26976 *) ac_config_targets="$ac_config_targets $1"
26977 ac_need_defaults=false ;;
26983 ac_configure_extra_args=
26985 if $ac_cs_silent; then
26987 ac_configure_extra_args="$ac_configure_extra_args --silent"
26991 cat >>$CONFIG_STATUS <<_ACEOF
26992 if \$ac_cs_recheck; then
26993 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26994 CONFIG_SHELL=$SHELL
26995 export CONFIG_SHELL
26996 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27000 cat >>$CONFIG_STATUS <<\_ACEOF
27004 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27005 ## Running $as_me. ##
27011 cat >>$CONFIG_STATUS <<_ACEOF
27015 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27019 cat >>$CONFIG_STATUS <<\_ACEOF
27021 # Handling of arguments.
27022 for ac_config_target in $ac_config_targets
27024 case $ac_config_target in
27025 "src/gras_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
27026 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27027 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27028 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
27029 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27030 "src/ucontext_stack.h") CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
27031 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
27032 "tools/gras/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
27033 "tools/tesh/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tesh/Makefile" ;;
27034 "tools/graspe-slave") CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
27035 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
27036 "testsuite/run_tests") CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
27037 "testsuite/gras/trp_tcp_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_tcp_usage" ;;
27038 "testsuite/gras/trp_file_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_file_usage" ;;
27039 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27040 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
27041 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
27042 "examples/msg/Makefile") CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
27043 "examples/msg/basic.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/basic.tesh" ;;
27044 "examples/msg/small_plat.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/small_plat.tesh" ;;
27045 "examples/msg/suspend.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/suspend.tesh" ;;
27046 "examples/msg/flexml_bypass.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/flexml_bypass.tesh" ;;
27047 "examples/simdag/Makefile") CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
27048 "examples/simdag/test_simdag") CONFIG_FILES="$CONFIG_FILES examples/simdag/test_simdag" ;;
27049 "examples/gras/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
27050 "examples/gras/ping/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
27051 "examples/gras/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
27052 "examples/gras/timer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
27053 "examples/gras/chrono/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
27054 "examples/gras/mutual_exclusion/simple_token/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
27055 "examples/gras/mmrpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
27056 "examples/gras/pmm/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
27057 "examples/gras/all2all/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
27058 "examples/amok/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
27059 "examples/amok/bandwidth/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/Makefile" ;;
27060 "examples/amok/bandwidth/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_sg" ;;
27061 "examples/amok/bandwidth/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_rl" ;;
27062 "examples/amok/saturate/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/Makefile" ;;
27063 "examples/amok/saturate/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_sg" ;;
27064 "examples/amok/saturate/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_rl" ;;
27066 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27067 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27068 { (exit 1); exit 1; }; };;
27073 # If the user did not use the arguments to specify the items to instantiate,
27074 # then the envvar interface is used. Set only those that are not.
27075 # We use the long form for the default assignment because of an extremely
27076 # bizarre bug on SunOS 4.1.3.
27077 if $ac_need_defaults; then
27078 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27079 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27080 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27083 # Have a temporary directory for convenience. Make it in the build tree
27084 # simply because there is no reason against having it here, and in addition,
27085 # creating and moving files from /tmp can sometimes cause problems.
27086 # Hook for its removal unless debugging.
27087 # Note that there is a small window in which the directory will not be cleaned:
27088 # after its creation but before its name has been assigned to `$tmp'.
27092 trap 'exit_status=$?
27093 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27095 trap '{ (exit 1); exit 1; }' 1 2 13 15
27097 # Create a (secure) tmp directory for tmp files.
27100 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27101 test -n "$tmp" && test -d "$tmp"
27104 tmp=./conf$$-$RANDOM
27105 (umask 077 && mkdir "$tmp")
27108 echo "$me: cannot create a temporary directory in ." >&2
27109 { (exit 1); exit 1; }
27113 # Set up the sed scripts for CONFIG_FILES section.
27116 # No need to generate the scripts if there are no CONFIG_FILES.
27117 # This happens for instance when ./config.status config.h
27118 if test -n "$CONFIG_FILES"; then
27125 for ac_last_try in false false false false false :; do
27126 cat >conf$$subs.sed <<_ACEOF
27127 SHELL!$SHELL$ac_delim
27128 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27129 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27130 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27131 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27132 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27133 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27134 exec_prefix!$exec_prefix$ac_delim
27135 prefix!$prefix$ac_delim
27136 program_transform_name!$program_transform_name$ac_delim
27137 bindir!$bindir$ac_delim
27138 sbindir!$sbindir$ac_delim
27139 libexecdir!$libexecdir$ac_delim
27140 datarootdir!$datarootdir$ac_delim
27141 datadir!$datadir$ac_delim
27142 sysconfdir!$sysconfdir$ac_delim
27143 sharedstatedir!$sharedstatedir$ac_delim
27144 localstatedir!$localstatedir$ac_delim
27145 includedir!$includedir$ac_delim
27146 oldincludedir!$oldincludedir$ac_delim
27147 docdir!$docdir$ac_delim
27148 infodir!$infodir$ac_delim
27149 htmldir!$htmldir$ac_delim
27150 dvidir!$dvidir$ac_delim
27151 pdfdir!$pdfdir$ac_delim
27152 psdir!$psdir$ac_delim
27153 libdir!$libdir$ac_delim
27154 localedir!$localedir$ac_delim
27155 mandir!$mandir$ac_delim
27156 DEFS!$DEFS$ac_delim
27157 ECHO_C!$ECHO_C$ac_delim
27158 ECHO_N!$ECHO_N$ac_delim
27159 ECHO_T!$ECHO_T$ac_delim
27160 LIBS!$LIBS$ac_delim
27161 build_alias!$build_alias$ac_delim
27162 host_alias!$host_alias$ac_delim
27163 target_alias!$target_alias$ac_delim
27164 build!$build$ac_delim
27165 build_cpu!$build_cpu$ac_delim
27166 build_vendor!$build_vendor$ac_delim
27167 build_os!$build_os$ac_delim
27168 host!$host$ac_delim
27169 host_cpu!$host_cpu$ac_delim
27170 host_vendor!$host_vendor$ac_delim
27171 host_os!$host_os$ac_delim
27172 target!$target$ac_delim
27173 target_cpu!$target_cpu$ac_delim
27174 target_vendor!$target_vendor$ac_delim
27175 target_os!$target_os$ac_delim
27176 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27177 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27178 INSTALL_DATA!$INSTALL_DATA$ac_delim
27179 CYGPATH_W!$CYGPATH_W$ac_delim
27180 PACKAGE!$PACKAGE$ac_delim
27181 VERSION!$VERSION$ac_delim
27182 ACLOCAL!$ACLOCAL$ac_delim
27183 AUTOCONF!$AUTOCONF$ac_delim
27184 AUTOMAKE!$AUTOMAKE$ac_delim
27185 AUTOHEADER!$AUTOHEADER$ac_delim
27186 MAKEINFO!$MAKEINFO$ac_delim
27187 install_sh!$install_sh$ac_delim
27188 STRIP!$STRIP$ac_delim
27189 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27190 mkdir_p!$mkdir_p$ac_delim
27192 SET_MAKE!$SET_MAKE$ac_delim
27193 am__leading_dot!$am__leading_dot$ac_delim
27194 AMTAR!$AMTAR$ac_delim
27195 am__tar!$am__tar$ac_delim
27196 am__untar!$am__untar$ac_delim
27198 CFLAGS!$CFLAGS$ac_delim
27199 LDFLAGS!$LDFLAGS$ac_delim
27200 CPPFLAGS!$CPPFLAGS$ac_delim
27201 ac_ct_CC!$ac_ct_CC$ac_delim
27202 EXEEXT!$EXEEXT$ac_delim
27203 OBJEXT!$OBJEXT$ac_delim
27204 DEPDIR!$DEPDIR$ac_delim
27205 am__include!$am__include$ac_delim
27206 am__quote!$am__quote$ac_delim
27207 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27208 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27209 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27210 CCDEPMODE!$CCDEPMODE$ac_delim
27211 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27212 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27213 GREP!$GREP$ac_delim
27214 EGREP!$EGREP$ac_delim
27215 LN_S!$LN_S$ac_delim
27216 ECHO!$ECHO$ac_delim
27218 RANLIB!$RANLIB$ac_delim
27219 DLLTOOL!$DLLTOOL$ac_delim
27221 OBJDUMP!$OBJDUMP$ac_delim
27226 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27228 elif $ac_last_try; then
27229 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27230 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27231 { (exit 1); exit 1; }; }
27233 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27237 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27238 if test -n "$ac_eof"; then
27239 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27240 ac_eof=`expr $ac_eof + 1`
27243 cat >>$CONFIG_STATUS <<_ACEOF
27244 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27245 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27248 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27249 s/^/s,@/; s/!/@,|#_!!_#|/
27252 s/'"$ac_delim"'$/,g/; t
27254 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27255 ' >>$CONFIG_STATUS <conf$$subs.sed
27256 rm -f conf$$subs.sed
27257 cat >>$CONFIG_STATUS <<_ACEOF
27263 for ac_last_try in false false false false false :; do
27264 cat >conf$$subs.sed <<_ACEOF
27265 CXXFLAGS!$CXXFLAGS$ac_delim
27266 ac_ct_CXX!$ac_ct_CXX$ac_delim
27267 CXXDEPMODE!$CXXDEPMODE$ac_delim
27268 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27269 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27270 CXXCPP!$CXXCPP$ac_delim
27272 FFLAGS!$FFLAGS$ac_delim
27273 ac_ct_F77!$ac_ct_F77$ac_delim
27274 LIBTOOL!$LIBTOOL$ac_delim
27275 LIBOBJS!$LIBOBJS$ac_delim
27276 GRAS_ARCH_32_BITS_TRUE!$GRAS_ARCH_32_BITS_TRUE$ac_delim
27277 GRAS_ARCH_32_BITS_FALSE!$GRAS_ARCH_32_BITS_FALSE$ac_delim
27278 PTH_STACK_GROWTH!$PTH_STACK_GROWTH$ac_delim
27279 pth_skaddr_makecontext!$pth_skaddr_makecontext$ac_delim
27280 pth_sksize_makecontext!$pth_sksize_makecontext$ac_delim
27281 USE_SIMIX_TRUE!$USE_SIMIX_TRUE$ac_delim
27282 USE_SIMIX_FALSE!$USE_SIMIX_FALSE$ac_delim
27283 GTNETS_CFLAGS!$GTNETS_CFLAGS$ac_delim
27284 GTNETS_LDFLAGS!$GTNETS_LDFLAGS$ac_delim
27285 USE_GTNETS_TRUE!$USE_GTNETS_TRUE$ac_delim
27286 USE_GTNETS_FALSE!$USE_GTNETS_FALSE$ac_delim
27287 HAVE_SDP_TRUE!$HAVE_SDP_TRUE$ac_delim
27288 HAVE_SDP_FALSE!$HAVE_SDP_FALSE$ac_delim
27289 SIMGRID_DEP!$SIMGRID_DEP$ac_delim
27290 AM_CFLAGS!$AM_CFLAGS$ac_delim
27291 GRAS_DEP!$GRAS_DEP$ac_delim
27292 GRAMINE_MODE_TRUE!$GRAMINE_MODE_TRUE$ac_delim
27293 GRAMINE_MODE_FALSE!$GRAMINE_MODE_FALSE$ac_delim
27294 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
27295 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
27296 MAINT!$MAINT$ac_delim
27297 LD_DYNAMIC_FLAGS!$LD_DYNAMIC_FLAGS$ac_delim
27298 abs_builddir!$abs_builddir$ac_delim
27299 abs_srcdir!$abs_srcdir$ac_delim
27300 abs_top_builddir!$abs_top_builddir$ac_delim
27301 abs_top_srcdir!$abs_top_srcdir$ac_delim
27302 BASH!$BASH$ac_delim
27303 WARNING!$WARNING$ac_delim
27305 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
27306 LEXLIB!$LEXLIB$ac_delim
27307 FLEXML!$FLEXML$ac_delim
27308 HAVE_FLEXML_TRUE!$HAVE_FLEXML_TRUE$ac_delim
27309 HAVE_FLEXML_FALSE!$HAVE_FLEXML_FALSE$ac_delim
27310 DOXYGEN!$DOXYGEN$ac_delim
27311 ADDR2LINE!$ADDR2LINE$ac_delim
27312 ac_configure_args!$ac_configure_args$ac_delim
27313 MD5SUM!$MD5SUM$ac_delim
27314 build_id!$build_id$ac_delim
27315 LTLIBOBJS!$LTLIBOBJS$ac_delim
27318 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 51; then
27320 elif $ac_last_try; then
27321 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27322 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27323 { (exit 1); exit 1; }; }
27325 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27329 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27330 if test -n "$ac_eof"; then
27331 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27332 ac_eof=`expr $ac_eof + 1`
27335 cat >>$CONFIG_STATUS <<_ACEOF
27336 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27337 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27340 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27341 s/^/s,@/; s/!/@,|#_!!_#|/
27344 s/'"$ac_delim"'$/,g/; t
27346 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27347 ' >>$CONFIG_STATUS <conf$$subs.sed
27348 rm -f conf$$subs.sed
27349 cat >>$CONFIG_STATUS <<_ACEOF
27356 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27357 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27358 # trailing colons and then remove the whole line if VPATH becomes empty
27359 # (actually we leave an empty line to preserve line numbers).
27360 if test "x$srcdir" = x.; then
27361 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27362 s/:*\$(srcdir):*/:/
27363 s/:*\${srcdir}:*/:/
27365 s/^\([^=]*=[ ]*\):*/\1/
27371 cat >>$CONFIG_STATUS <<\_ACEOF
27372 fi # test -n "$CONFIG_FILES"
27375 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
27378 :[FHLC]) ac_mode=$ac_tag; continue;;
27380 case $ac_mode$ac_tag in
27382 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27383 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27384 { (exit 1); exit 1; }; };;
27385 :[FH]-) ac_tag=-:-;;
27386 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27403 -) ac_f="$tmp/stdin";;
27404 *) # Look for the file first in the build tree, then in the source tree
27405 # (if the path is not absolute). The absolute path cannot be DOS-style,
27406 # because $ac_f cannot contain `:'.
27410 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27412 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27413 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27414 { (exit 1); exit 1; }; };;
27416 ac_file_inputs="$ac_file_inputs $ac_f"
27419 # Let's still pretend it is `configure' which instantiates (i.e., don't
27420 # use $as_me), people would be surprised to read:
27421 # /* config.h. Generated by config.status. */
27422 configure_input="Generated from "`IFS=:
27423 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27424 if test x"$ac_file" != x-; then
27425 configure_input="$ac_file. $configure_input"
27426 { echo "$as_me:$LINENO: creating $ac_file" >&5
27427 echo "$as_me: creating $ac_file" >&6;}
27431 *:-:* | *:-) cat >"$tmp/stdin";;
27436 ac_dir=`$as_dirname -- "$ac_file" ||
27437 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27438 X"$ac_file" : 'X\(//\)[^/]' \| \
27439 X"$ac_file" : 'X\(//\)$' \| \
27440 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27446 /^X\(\/\/\)[^/].*/{
27461 -*) as_dir=./$as_dir;;
27463 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27467 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27468 *) as_qdir=$as_dir;;
27470 as_dirs="'$as_qdir' $as_dirs"
27471 as_dir=`$as_dirname -- "$as_dir" ||
27472 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27473 X"$as_dir" : 'X\(//\)[^/]' \| \
27474 X"$as_dir" : 'X\(//\)$' \| \
27475 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27481 /^X\(\/\/\)[^/].*/{
27494 test -d "$as_dir" && break
27496 test -z "$as_dirs" || eval "mkdir $as_dirs"
27497 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27498 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27499 { (exit 1); exit 1; }; }; }
27503 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27505 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27506 # A ".." for each directory in $ac_dir_suffix.
27507 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27508 case $ac_top_builddir_sub in
27509 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27510 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27513 ac_abs_top_builddir=$ac_pwd
27514 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27515 # for backward compatibility:
27516 ac_top_builddir=$ac_top_build_prefix
27519 .) # We are building in place.
27521 ac_top_srcdir=$ac_top_builddir_sub
27522 ac_abs_top_srcdir=$ac_pwd ;;
27523 [\\/]* | ?:[\\/]* ) # Absolute name.
27524 ac_srcdir=$srcdir$ac_dir_suffix;
27525 ac_top_srcdir=$srcdir
27526 ac_abs_top_srcdir=$srcdir ;;
27527 *) # Relative name.
27528 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27529 ac_top_srcdir=$ac_top_build_prefix$srcdir
27530 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27532 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27542 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27543 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27547 cat >>$CONFIG_STATUS <<\_ACEOF
27548 # If the template does not know about datarootdir, expand it.
27549 # FIXME: This hack should be removed a few years after 2.60.
27550 ac_datarootdir_hack=; ac_datarootdir_seen=
27552 case `sed -n '/datarootdir/ {
27561 ' $ac_file_inputs` in
27562 *datarootdir*) ac_datarootdir_seen=yes;;
27563 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27564 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27565 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27567 cat >>$CONFIG_STATUS <<_ACEOF
27568 ac_datarootdir_hack='
27569 s&@datadir@&$datadir&g
27570 s&@docdir@&$docdir&g
27571 s&@infodir@&$infodir&g
27572 s&@localedir@&$localedir&g
27573 s&@mandir@&$mandir&g
27574 s&\\\${datarootdir}&$datarootdir&g' ;;
27578 # Neutralize VPATH when `$srcdir' = `.'.
27579 # Shell code in configure.ac might set extrasub.
27580 # FIXME: do we really want to maintain this feature?
27581 cat >>$CONFIG_STATUS <<_ACEOF
27585 cat >>$CONFIG_STATUS <<\_ACEOF
27587 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27588 s&@configure_input@&$configure_input&;t t
27589 s&@top_builddir@&$ac_top_builddir_sub&;t t
27590 s&@srcdir@&$ac_srcdir&;t t
27591 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27592 s&@top_srcdir@&$ac_top_srcdir&;t t
27593 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27594 s&@builddir@&$ac_builddir&;t t
27595 s&@abs_builddir@&$ac_abs_builddir&;t t
27596 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27597 s&@INSTALL@&$ac_INSTALL&;t t
27598 $ac_datarootdir_hack
27599 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27601 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27602 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27603 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27604 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27605 which seems to be undefined. Please make sure it is defined." >&5
27606 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27607 which seems to be undefined. Please make sure it is defined." >&2;}
27611 -) cat "$tmp/out"; rm -f "$tmp/out";;
27612 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27621 # Transform confdefs.h into a sed script `conftest.defines', that
27622 # substitutes the proper values into config.h.in to produce config.h.
27623 rm -f conftest.defines conftest.tail
27624 # First, append a space to every undef/define line, to ease matching.
27625 echo 's/$/ /' >conftest.defines
27626 # Then, protect against being on the right side of a sed subst, or in
27627 # an unquoted here document, in config.status. If some macros were
27628 # called several times there might be several #defines for the same
27629 # symbol, which is useless. But do not sort them, since the last
27630 # AC_DEFINE must be honored.
27631 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27632 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27633 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27634 # PARAMS is the parameter list in the macro definition--in most cases, it's
27635 # just an empty string.
27636 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27637 ac_dB='\\)[ (].*,\\1define\\2'
27645 s/^[ ]*#[ ]*define[ ][ ]*//
27650 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27651 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27652 ' >>conftest.defines
27654 # Remove the space that was appended to ease matching.
27655 # Then replace #undef with comments. This is necessary, for
27656 # example, in the case of _POSIX_SOURCE, which is predefined and required
27657 # on some systems where configure will not decide to define it.
27658 # (The regexp can be short, since the line contains either #define or #undef.)
27660 s,^[ #]*u.*,/* & */,' >>conftest.defines
27662 # Break up conftest.defines:
27663 ac_max_sed_lines=50
27665 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27666 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27667 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27669 ac_in='$ac_file_inputs'
27670 ac_out='"$tmp/out1"'
27671 ac_nxt='"$tmp/out2"'
27675 # Write a here document:
27676 cat >>$CONFIG_STATUS <<_ACEOF
27677 # First, check the format of the line:
27678 cat >"\$tmp/defines.sed" <<\\CEOF
27679 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27680 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27684 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27686 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27687 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27688 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27689 grep . conftest.tail >/dev/null || break
27690 rm -f conftest.defines
27691 mv conftest.tail conftest.defines
27693 rm -f conftest.defines conftest.tail
27695 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27696 cat >>$CONFIG_STATUS <<\_ACEOF
27697 if test x"$ac_file" != x-; then
27698 echo "/* $configure_input */" >"$tmp/config.h"
27699 cat "$ac_result" >>"$tmp/config.h"
27700 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27701 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27702 echo "$as_me: $ac_file is unchanged" >&6;}
27705 mv "$tmp/config.h" $ac_file
27708 echo "/* $configure_input */"
27712 # Compute $ac_file's index in $config_headers.
27714 for _am_header in $config_headers :; do
27715 case $_am_header in
27716 $ac_file | $ac_file:* )
27719 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27722 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
27723 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27724 X$ac_file : 'X\(//\)[^/]' \| \
27725 X$ac_file : 'X\(//\)$' \| \
27726 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
27728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27732 /^X\(\/\/\)[^/].*/{
27744 s/.*/./; q'`/stamp-h$_am_stamp_count
27747 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27748 echo "$as_me: executing $ac_file commands" >&6;}
27753 case $ac_file$ac_mode in
27754 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27755 # Strip MF so we end up with the name of the file.
27756 mf=`echo "$mf" | sed -e 's/:.*$//'`
27757 # Check whether this is an Automake generated Makefile or not.
27758 # We used to match only the files named `Makefile.in', but
27759 # some people rename them; so instead we look at the file content.
27760 # Grep'ing the first line is not enough: some people post-process
27761 # each Makefile.in and add a new line on top of each file to say so.
27762 # So let's grep whole file.
27763 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27764 dirpart=`$as_dirname -- "$mf" ||
27765 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27766 X"$mf" : 'X\(//\)[^/]' \| \
27767 X"$mf" : 'X\(//\)$' \| \
27768 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27774 /^X\(\/\/\)[^/].*/{
27790 # Extract the definition of DEPDIR, am__include, and am__quote
27791 # from the Makefile without running `make'.
27792 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27793 test -z "$DEPDIR" && continue
27794 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27795 test -z "am__include" && continue
27796 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27797 # When using ansi2knr, U may be empty or an underscore; expand it
27798 U=`sed -n 's/^U = //p' < "$mf"`
27799 # Find all dependency output files, they are included files with
27800 # $(DEPDIR) in their names. We invoke sed twice because it is the
27801 # simplest approach to changing $(DEPDIR) to its actual value in the
27803 for file in `sed -n "
27804 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27805 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27806 # Make sure the directory exists.
27807 test -f "$dirpart/$file" && continue
27808 fdir=`$as_dirname -- "$file" ||
27809 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27810 X"$file" : 'X\(//\)[^/]' \| \
27811 X"$file" : 'X\(//\)$' \| \
27812 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27818 /^X\(\/\/\)[^/].*/{
27831 { as_dir=$dirpart/$fdir
27833 -*) as_dir=./$as_dir;;
27835 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27839 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27840 *) as_qdir=$as_dir;;
27842 as_dirs="'$as_qdir' $as_dirs"
27843 as_dir=`$as_dirname -- "$as_dir" ||
27844 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27845 X"$as_dir" : 'X\(//\)[^/]' \| \
27846 X"$as_dir" : 'X\(//\)$' \| \
27847 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27853 /^X\(\/\/\)[^/].*/{
27866 test -d "$as_dir" && break
27868 test -z "$as_dirs" || eval "mkdir $as_dirs"
27869 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27870 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27871 { (exit 1); exit 1; }; }; }
27872 # echo "creating $dirpart/$file"
27873 echo '# dummy' > "$dirpart/$file"
27877 "tools/graspe-slave":F)
27879 tools/graspe-slave tools/graspe-master \
27881 test -e $file && chmod +x $file; \
27884 "testsuite/Makefile":F)
27886 testsuite/run_tests \
27887 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27889 test -e $file && chmod +x $file; \
27892 "testsuite/run_tests":F)
27894 testsuite/run_tests \
27895 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27897 test -e $file && chmod +x $file; \
27900 "testsuite/gras/trp_tcp_usage":F)
27902 testsuite/run_tests \
27903 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27905 test -e $file && chmod +x $file; \
27908 "testsuite/gras/trp_file_usage":F)
27910 testsuite/run_tests \
27911 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27913 test -e $file && chmod +x $file; \
27916 "examples/Makefile":F)
27919 examples/msg/run_msg_test \
27920 examples/simdag/test_simdag \
27922 test -e $file && chmod +x $file; \
27925 "examples/msg/Makefile":F)
27928 examples/msg/run_msg_test \
27929 examples/simdag/test_simdag \
27931 test -e $file && chmod +x $file; \
27934 "examples/msg/basic.tesh":F)
27937 examples/msg/run_msg_test \
27938 examples/simdag/test_simdag \
27940 test -e $file && chmod +x $file; \
27943 "examples/msg/small_plat.tesh":F)
27946 examples/msg/run_msg_test \
27947 examples/simdag/test_simdag \
27949 test -e $file && chmod +x $file; \
27952 "examples/msg/suspend.tesh":F)
27955 examples/msg/run_msg_test \
27956 examples/simdag/test_simdag \
27958 test -e $file && chmod +x $file; \
27961 "examples/msg/flexml_bypass.tesh":F)
27964 examples/msg/run_msg_test \
27965 examples/simdag/test_simdag \
27967 test -e $file && chmod +x $file; \
27970 "examples/simdag/Makefile":F)
27973 examples/msg/run_msg_test \
27974 examples/simdag/test_simdag \
27976 test -e $file && chmod +x $file; \
27979 "examples/simdag/test_simdag":F)
27982 examples/msg/run_msg_test \
27983 examples/simdag/test_simdag \
27985 test -e $file && chmod +x $file; \
27988 "examples/gras/Makefile":F)
27991 examples/msg/run_msg_test \
27992 examples/simdag/test_simdag \
27994 test -e $file && chmod +x $file; \
27997 "examples/gras/ping/Makefile":F)
28000 examples/msg/run_msg_test \
28001 examples/simdag/test_simdag \
28003 test -e $file && chmod +x $file; \
28006 "examples/gras/rpc/Makefile":F)
28009 examples/msg/run_msg_test \
28010 examples/simdag/test_simdag \
28012 test -e $file && chmod +x $file; \
28015 "examples/gras/timer/Makefile":F)
28018 examples/msg/run_msg_test \
28019 examples/simdag/test_simdag \
28021 test -e $file && chmod +x $file; \
28024 "examples/gras/chrono/Makefile":F)
28027 examples/msg/run_msg_test \
28028 examples/simdag/test_simdag \
28030 test -e $file && chmod +x $file; \
28033 "examples/gras/mutual_exclusion/simple_token/Makefile":F)
28036 examples/msg/run_msg_test \
28037 examples/simdag/test_simdag \
28039 test -e $file && chmod +x $file; \
28042 "examples/gras/mmrpc/Makefile":F)
28045 examples/msg/run_msg_test \
28046 examples/simdag/test_simdag \
28048 test -e $file && chmod +x $file; \
28051 "examples/gras/pmm/Makefile":F)
28054 examples/msg/run_msg_test \
28055 examples/simdag/test_simdag \
28057 test -e $file && chmod +x $file; \
28060 "examples/gras/all2all/Makefile":F)
28063 examples/msg/run_msg_test \
28064 examples/simdag/test_simdag \
28066 test -e $file && chmod +x $file; \
28069 "examples/amok/Makefile":F)
28072 examples/msg/run_msg_test \
28073 examples/simdag/test_simdag \
28075 test -e $file && chmod +x $file; \
28078 "examples/amok/bandwidth/Makefile":F)
28081 examples/msg/run_msg_test \
28082 examples/simdag/test_simdag \
28084 test -e $file && chmod +x $file; \
28087 "examples/amok/bandwidth/test_sg":F)
28090 examples/msg/run_msg_test \
28091 examples/simdag/test_simdag \
28093 test -e $file && chmod +x $file; \
28096 "examples/amok/bandwidth/test_rl":F)
28099 examples/msg/run_msg_test \
28100 examples/simdag/test_simdag \
28102 test -e $file && chmod +x $file; \
28105 "examples/amok/saturate/Makefile":F)
28108 examples/msg/run_msg_test \
28109 examples/simdag/test_simdag \
28111 test -e $file && chmod +x $file; \
28114 "examples/amok/saturate/test_sg":F)
28117 examples/msg/run_msg_test \
28118 examples/simdag/test_simdag \
28120 test -e $file && chmod +x $file; \
28123 "examples/amok/saturate/test_rl":F)
28126 examples/msg/run_msg_test \
28127 examples/simdag/test_simdag \
28129 test -e $file && chmod +x $file; \
28137 { (exit 0); exit 0; }
28139 chmod +x $CONFIG_STATUS
28140 ac_clean_files=$ac_clean_files_save
28143 # configure is writing to config.log, and then calls config.status.
28144 # config.status does its own redirection, appending to config.log.
28145 # Unfortunately, on DOS this fails, as config.log is still kept open
28146 # by configure, so config.status won't be able to write to it; its
28147 # output is simply discarded. So we exec the FD to /dev/null,
28148 # effectively closing config.log, so it can be properly (re)opened and
28149 # appended to by config.status. When coming back to configure, we
28150 # need to make the FD available again.
28151 if test "$no_create" != yes; then
28153 ac_config_status_args=
28154 test "$silent" = yes &&
28155 ac_config_status_args="$ac_config_status_args --quiet"
28157 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28159 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28160 # would make configure fail if this is the last instruction.
28161 $ac_cs_success || { (exit 1); exit 1; }
28167 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
28169 Compiler: ${CC} (version: ${GCC_VERSION})
28172 CPPFlags: ${CPPFLAGS}
28173 LDFlags: ${LDFLAGS}
28175 Context backend: ${with_context}
28178 if test -e CVS && test x$USE_MAINTAINER_MODE != xyes ; then
28180 echo "WARNING: you seem to compile the CVS version without the maintainer mode."
28181 echo "WARNING: You won't be able to build archives that way (make dist is likely to fail). "
28182 echo "WARNING: If you want to enable the maintainer mode, juste specify it like this:"
28184 echo "WARNING: ./configure '--enable-maintainer-mode' $ac_configure_args"
28187 echo $build_id > stamp.configure